/* ============================================
   Forge Landing Page Styles
   Minimal, beautiful, performant
   ============================================ */

/* CSS Custom Properties */
:root {
    /* Colors */
    --bg-primary: #0a0a0a;
    --bg-secondary: #121212;
    --bg-tertiary: #1a1a1a;
    --text-primary: #f5f5f5;
    --text-secondary: #a0a0a0;
    --text-muted: #666666;
    --accent: #e8d89a;
    --accent-muted: #f0e4b8;
    --accent-dark: #d4c47a;
    --border-color: rgba(255, 255, 255, 0.08);

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'SF Mono', Monaco, 'Cascadia Code', 'Courier New', monospace;

    /* Spacing Scale */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    --space-xl: 3rem;
    --space-2xl: 4rem;
    --space-3xl: 6rem;

    /* Layout */
    --container-max: 1200px;
    --container-narrow: 800px;
    --border-radius: 12px;
    --border-radius-sm: 8px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Light mode support (respects system preferences) */
@media (prefers-color-scheme: light) {
    :root {
        --bg-primary: #ffffff;
        --bg-secondary: #f9fafb;
        --bg-tertiary: #f3f4f6;
        --text-primary: #1a1a1a;
        --text-secondary: #4a5568;
        --text-muted: #9ca3af;
        --accent: #c4a855;
        --accent-muted: #d4b870;
        --accent-dark: #b39640;
        --border-color: rgba(0, 0, 0, 0.08);
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   Base Styles
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ============================================
   Typography
   ============================================ */

h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
}

h2 {
    font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

p {
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    line-height: 1.7;
}

strong {
    font-weight: 600;
    color: var(--text-primary);
}

em {
    font-style: italic;
}

/* ============================================
   Layout Components
   ============================================ */

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container--narrow {
    max-width: var(--container-narrow);
}

.section {
    padding: var(--space-3xl) 0;
}

.section__eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.section__title {
    margin-bottom: var(--space-xl);
    color: var(--text-primary);
}

.section__insight {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    line-height: 1.5;
    color: var(--text-secondary);
    margin-top: var(--space-xl);
}

.section__insight strong {
    color: var(--text-primary);
}

/* ============================================
   Navigation
   ============================================ */

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: background var(--transition-base);
}

@media (prefers-color-scheme: light) {
    .nav {
        background: rgba(255, 255, 255, 0.8);
    }
}

.nav__container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: var(--space-sm) var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 1.125rem;
}

.nav__logo svg {
    color: var(--accent);
}

.nav__wordmark {
    letter-spacing: -0.02em;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    list-style: none;
}

.nav__links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: color var(--transition-fast);
    position: relative;
}

.nav__links a:hover {
    color: var(--text-primary);
}

.nav__links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform var(--transition-base);
}

.nav__links a:hover::after {
    transform: scaleX(1);
}

.nav__cta {
    color: var(--accent) !important;
}

.nav__cta::after {
    display: none !important;
}

/* Mobile navigation hidden for now - desktop-first approach */
@media (max-width: 768px) {
    .nav__links {
        gap: var(--space-md);
    }

    .nav__links li:first-child,
    .nav__links li:nth-child(2) {
        display: none;
    }
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(4rem, 10vh, 8rem) var(--space-lg) var(--space-3xl);
    position: relative;
    overflow: hidden;
    text-align: center;
    gap: var(--space-3xl);
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(212, 169, 68, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

.hero__content {
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero__eyebrow {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: var(--space-md);
    animation: fadeInUp 0.6s ease;
}

.hero__title {
    margin-bottom: var(--space-lg);
    animation: fadeInUp 0.6s ease 0.1s backwards;
}

.hero__title-accent {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero__description {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
    animation: fadeInUp 0.6s ease 0.2s backwards;
}

.hero__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s backwards;
}

.hero__note {
    margin-top: var(--space-lg);
    font-size: 0.875rem;
    color: var(--text-muted);
    animation: fadeInUp 0.6s ease 0.4s backwards;
}

/* Integrated app preview within hero - enhanced prominence */
.hero__preview {
    max-width: 800px;
    width: 100%;
    position: relative;
    z-index: 1;
    animation: fadeInUp 0.8s ease 0.5s backwards;
}

.hero__preview-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    text-align: center;
    margin-bottom: var(--space-md);
    opacity: 0.8;
}

.hero__preview-screenshot {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    border-radius: var(--border-radius);
    /* Subtle depth with accent glow */
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(212, 169, 68, 0.1);
    transition: all var(--transition-slow);
}

.hero__preview-screenshot:hover {
    transform: translateY(-6px) scale(1.01);
    box-shadow:
        0 28px 80px rgba(0, 0, 0, 0.4),
        0 12px 28px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(212, 169, 68, 0.2),
        0 0 40px rgba(212, 169, 68, 0.15);
}


/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    width: 24px;
    height: 40px;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 6px;
    text-decoration: none;
    animation: fadeIn 0.6s ease 0.6s backwards;
    z-index: 2;
}

.scroll-indicator span {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 2px;
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 1;
    }
    50% {
        transform: translateY(12px);
        opacity: 0.3;
    }
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xs);
    padding: 0.875rem 1.75rem;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    font-family: var(--font-sans);
}

.btn--primary {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn--primary:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(212, 169, 68, 0.3);
}

.btn--primary:active {
    transform: translateY(0);
}

.btn--secondary {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn--secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--accent);
}

.btn--large {
    padding: 1.125rem 2.25rem;
    font-size: 1.0625rem;
}

/* ============================================
   Problem Section
   ============================================ */

.section--problem {
    background: var(--bg-secondary);
    text-align: center;
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.problem-item {
    padding: var(--space-lg);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    transition: all var(--transition-base);
}

.problem-item:hover {
    border-color: rgba(212, 169, 68, 0.3);
    transform: translateY(-4px);
}

.problem-item__label {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.problem-item__description {
    color: var(--text-secondary);
    font-size: 0.9375rem;
}

/* ============================================
   Approach Section (Workflow)
   ============================================ */

.section--approach {
    text-align: center;
}

.workflow {
    display: grid;
    gap: var(--space-3xl);
    margin-top: var(--space-3xl);
}

.workflow-step {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    text-align: left;
}

.workflow-step:nth-child(even) {
    direction: rtl;
}

.workflow-step:nth-child(even) > * {
    direction: ltr;
}

.workflow-step__number {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--accent);
    font-family: var(--font-mono);
    margin-bottom: var(--space-sm);
}

.workflow-step__title {
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.workflow-step__contrast {
    font-size: 0.9375rem;
    font-style: italic;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

.workflow-step__description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Mockup visuals */
.mockup {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: all var(--transition-base);
}

.mockup:hover {
    border-color: rgba(212, 169, 68, 0.3);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.mockup__chrome {
    height: 32px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 var(--space-sm);
}

.mockup__chrome span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--border-color);
}

.mockup__content {
    padding: var(--space-xl);
    min-height: 200px;
}

.mockup__text-line {
    height: 12px;
    background: var(--border-color);
    border-radius: 4px;
    margin-bottom: var(--space-sm);
}

.mockup__card {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    padding: var(--space-lg);
}

.mockup__card-header {
    height: 8px;
    width: 40%;
    background: var(--accent);
    opacity: 0.6;
    border-radius: 4px;
    margin-bottom: var(--space-md);
}

.mockup__network-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--space-sm);
}

.mockup__node {
    aspect-ratio: 1;
    background: var(--accent);
    opacity: 0.3;
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-base);
}

.mockup__node:nth-child(2),
.mockup__node:nth-child(4) {
    opacity: 0.6;
}

.mockup:hover .mockup__node {
    opacity: 0.8;
}

/* Real app screenshots */
.workflow-screenshot {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--border-radius);
    /* Beautiful depth with accent glow */
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 8px 20px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(212, 169, 68, 0.15);
    transition: all var(--transition-slow);
    border: 1px solid var(--border-color);
}

.workflow-screenshot:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 32px 80px rgba(0, 0, 0, 0.4),
        0 16px 32px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(212, 169, 68, 0.3),
        0 0 60px rgba(212, 169, 68, 0.2);
    border-color: rgba(212, 169, 68, 0.4);
}

/* Tablet layout optimizations */
@media (max-width: 1024px) {
    .hero__preview {
        max-width: 700px;
    }

    .workflow-step {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .workflow-step:nth-child(even) {
        direction: ltr;
    }

    .workflow-step__visual {
        order: -1;
    }
}

/* Tablet portrait */
@media (max-width: 768px) {
    .hero {
        gap: var(--space-2xl);
    }

    .hero__preview {
        max-width: 600px;
    }

    .hero__preview-label {
        font-size: 0.75rem;
    }
}

/* ============================================
   Data Section
   ============================================ */

.section--data {
    background: var(--bg-secondary);
    text-align: center;
}

.data-principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
}

.data-principle {
    text-align: center;
}

.data-principle__icon {
    color: var(--accent);
    margin-bottom: var(--space-md);
}

.data-principle__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.data-principle__description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   Focus Section
   ============================================ */

.section--focus {
    text-align: center;
}

.focus-features {
    display: grid;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
    text-align: left;
}

.focus-feature {
    position: relative;
    padding: var(--space-xl);
    background: var(--bg-secondary);
    border-radius: var(--border-radius-sm);
    transition: all var(--transition-base);
    isolation: isolate;
}

/* Gradient border using pseudo-element */
.focus-feature::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--border-radius-sm);
    padding: 1px;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(212, 169, 68, 0.3) 50%,
        transparent 100%
    );
    -webkit-mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    mask:
        linear-gradient(#fff 0 0) content-box,
        linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0.4;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.focus-feature:hover {
    background: var(--bg-tertiary);
    transform: translateY(-2px);
}

.focus-feature:hover::before {
    opacity: 1;
    background: linear-gradient(
        135deg,
        rgba(212, 169, 68, 0.5) 0%,
        rgba(232, 193, 95, 0.6) 50%,
        rgba(212, 169, 68, 0.5) 100%
    );
}

/* Subtle glow on hover */
.focus-feature:hover::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: var(--border-radius-sm);
    background: radial-gradient(
        circle at 50% 0%,
        rgba(212, 169, 68, 0.15) 0%,
        transparent 70%
    );
    z-index: -1;
    pointer-events: none;
}

.focus-feature__title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    transition: color var(--transition-base);
}

.focus-feature:hover .focus-feature__title {
    color: var(--accent-muted);
}

.focus-feature__description {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   Who Section - Redesigned for clarity and speed
   ============================================ */

.section--who {
    background: var(--bg-secondary);
    text-align: center;
}

.who-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl) var(--space-2xl);
    margin-top: var(--space-2xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.who-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    text-align: left;
    transition: all var(--transition-fast);
    padding: var(--space-sm) 0;
}

.who-item:hover {
    transform: translateX(8px);
}

.who-item__icon {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 4px;
    width: 24px;
    height: 24px;
    transition: all var(--transition-fast);
}

.who-item:hover .who-item__icon {
    transform: scale(1.15);
    filter: drop-shadow(0 0 8px rgba(212, 169, 68, 0.5));
}

.who-item p {
    font-size: 1.0625rem;
    color: var(--text-primary);
    line-height: 1.7;
    font-weight: 400;
}

.who-item strong {
    color: var(--accent-muted);
    font-weight: 600;
}

.design-philosophy {
    margin-top: var(--space-3xl);
    padding: var(--space-2xl);
    background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-primary) 100%);
    border: 1px solid rgba(212, 169, 68, 0.15);
    border-radius: var(--border-radius);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.design-philosophy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5;
}

.design-philosophy__title {
    font-size: 1.375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

.design-philosophy__description {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 1.0625rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================
   Download Section
   ============================================ */

.section--download {
    text-align: center;
}

.download-cta {
    margin: var(--space-2xl) 0;
}

.download-note {
    margin-top: var(--space-md);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.download-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.download-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.download-step__number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 1.25rem;
    border-radius: 50%;
}

.download-step p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

/* ============================================
   Footer
   ============================================ */

.footer {
    padding: var(--space-3xl) 0 var(--space-xl);
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.footer__content {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.footer__brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
}

.footer__brand svg {
    color: var(--accent);
}

.footer__tagline {
    color: var(--text-muted);
    font-size: 0.9375rem;
}

.footer__bottom {
    text-align: center;
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.footer__bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer__links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-sm);
    font-size: 0.875rem;
}

.footer__links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__links a:hover {
    color: var(--accent);
}

.footer__links span {
    color: var(--text-muted);
    opacity: 0.5;
}

/* ============================================
   Legal Content
   ============================================ */

.legal-content {
    margin-top: 2rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

.legal-content h2 {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 3rem;
    margin-bottom: 1rem;
}

.legal-content h3 {
    color: var(--text-primary);
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}

.legal-content p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.legal-content ul {
    margin-bottom: 1.5rem;
    margin-left: 1.5rem;
    list-style-type: disc;
}

.legal-content li {
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
}

.legal-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

/* ============================================
   Animations
   ============================================ */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Scroll-triggered animations */
@media (prefers-reduced-motion: no-preference) {
    .section {
        opacity: 0;
        animation: fadeIn 0.4s ease forwards;
        animation-timeline: view();
        animation-range: entry 0% cover 25%;
    }
}

/* ============================================
   Mobile Optimizations
   ============================================ */

@media (max-width: 640px) {
    :root {
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-2xl: 3rem;
        --space-3xl: 4rem;
    }

    .section {
        padding: var(--space-2xl) 0;
    }

    .hero {
        padding: clamp(3rem, 8vh, 5rem) var(--space-md) var(--space-xl);
        gap: var(--space-2xl);
    }

    .hero__cta {
        flex-direction: column;
        width: 100%;
    }

    .btn {
        width: 100%;
    }

    /* App preview mobile optimizations */
    .hero__preview {
        max-width: 100%;
    }

    .hero__preview-label {
        font-size: 0.7rem;
        margin-bottom: var(--space-sm);
    }

    .hero__preview-screenshot {
        border-radius: var(--border-radius-sm);
        box-shadow:
            0 12px 40px rgba(0, 0, 0, 0.25),
            0 4px 12px rgba(0, 0, 0, 0.15),
            0 0 0 1px rgba(212, 169, 68, 0.12);
    }

    /* Reduce hover effect intensity on mobile */
    .hero__preview-screenshot:hover {
        transform: translateY(-3px) scale(1.005);
        box-shadow:
            0 16px 48px rgba(0, 0, 0, 0.3),
            0 6px 16px rgba(0, 0, 0, 0.2),
            0 0 0 1px rgba(212, 169, 68, 0.18),
            0 0 24px rgba(212, 169, 68, 0.1);
    }

    .scroll-indicator {
        bottom: var(--space-md);
    }

    .problem-grid {
        grid-template-columns: 1fr;
    }

    .who-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .who-item:hover {
        transform: translateX(4px);
    }

    .download-steps {
        grid-template-columns: 1fr;
    }

    /* Optimize screenshot presentation on mobile */
    .workflow-screenshot {
        border-radius: var(--border-radius-sm);
        box-shadow:
            0 12px 40px rgba(0, 0, 0, 0.25),
            0 4px 12px rgba(0, 0, 0, 0.15),
            0 0 0 1px rgba(212, 169, 68, 0.12);
    }

    .workflow-screenshot:hover {
        transform: translateY(-4px) scale(1.01);
        box-shadow:
            0 20px 50px rgba(0, 0, 0, 0.3),
            0 8px 16px rgba(0, 0, 0, 0.2),
            0 0 0 1px rgba(212, 169, 68, 0.2),
            0 0 32px rgba(212, 169, 68, 0.15);
    }
}

/* ============================================
   Blog Styles
   ============================================ */

/* Blog Header */
.blog-header {
    padding: clamp(6rem, 12vh, 10rem) var(--space-lg) var(--space-3xl);
    text-align: center;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.blog-header__title {
    margin-bottom: var(--space-lg);
    font-size: clamp(2.5rem, 5vw, 3.5rem);
}

.blog-header__description {
    font-size: clamp(1.125rem, 2vw, 1.25rem);
    line-height: 1.7;
    color: var(--text-secondary);
    max-width: 700px;
    margin: 0 auto;
}

/* Blog Posts Grid */
.blog-posts {
    padding: var(--space-3xl) 0;
    background: var(--bg-primary);
}

.blog-card {
    padding: var(--space-2xl) 0;
    border-bottom: 1px solid var(--border-color);
    transition: all var(--transition-base);
}

.blog-card:last-of-type {
    border-bottom: none;
}

.blog-card:hover {
    transform: translateX(8px);
}

.blog-card__date {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
    font-family: var(--font-mono);
}

.blog-card__title {
    margin-bottom: var(--space-md);
    font-size: clamp(1.5rem, 3vw, 2rem);
}

.blog-card__title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

.blog-card__title a:hover {
    color: var(--accent);
}

.blog-card__excerpt {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
    font-size: 1.0625rem;
}

.blog-card__link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all var(--transition-fast);
}

.blog-card__link:hover {
    gap: calc(var(--space-xs) + 4px);
}

.blog-card__link svg {
    transition: transform var(--transition-fast);
}

.blog-card__link:hover svg {
    transform: translateX(4px);
}

.blog-empty-state {
    text-align: center;
    padding: var(--space-3xl) 0;
    color: var(--text-muted);
    font-style: italic;
}

/* Blog Post (Individual) */
.blog-post {
    background: var(--bg-primary);
}

.blog-post__header {
    padding: clamp(6rem, 12vh, 10rem) var(--space-lg) var(--space-3xl);
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.blog-post__back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    margin-bottom: var(--space-lg);
    transition: all var(--transition-fast);
}

.blog-post__back:hover {
    color: var(--accent);
    gap: calc(var(--space-xs) + 2px);
}

.blog-post__back svg {
    transition: transform var(--transition-fast);
}

.blog-post__back:hover svg {
    transform: translateX(-2px);
}

.blog-post__date {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
    font-family: var(--font-mono);
}

.blog-post__title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--space-md);
    line-height: 1.2;
}

.blog-post__subtitle {
    font-size: clamp(1.125rem, 2vw, 1.375rem);
    line-height: 1.6;
    color: var(--text-secondary);
}

.blog-post__content {
    padding: var(--space-3xl) var(--space-lg);
    background: var(--bg-primary);
}

.blog-post__content p {
    margin-bottom: var(--space-lg);
    line-height: 1.8;
    color: var(--text-secondary);
}

.blog-post__lead {
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
    line-height: 1.6;
}

.blog-post__content h2 {
    margin-top: var(--space-3xl);
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
    font-size: clamp(1.5rem, 3vw, 2rem);
    letter-spacing: -0.02em;
}

.blog-post__content h3 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    color: var(--text-primary);
    font-size: clamp(1.25rem, 2.5vw, 1.5rem);
}

.blog-post__content ul,
.blog-post__content ol {
    margin-bottom: var(--space-lg);
    margin-left: var(--space-xl);
    color: var(--text-secondary);
}

.blog-post__content li {
    margin-bottom: var(--space-sm);
    line-height: 1.8;
}

.blog-post__content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.blog-post__content a {
    color: var(--accent);
    transition: color var(--transition-fast);
}

.blog-post__content a:hover {
    color: var(--accent-muted);
}

.blog-post__signature {
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-style: italic;
}

/* Blog Mobile Optimizations */
@media (max-width: 640px) {
    .blog-header {
        padding: clamp(5rem, 10vh, 7rem) var(--space-md) var(--space-2xl);
    }

    .blog-post__header {
        padding: clamp(5rem, 10vh, 7rem) var(--space-md) var(--space-2xl);
    }

    .blog-post__content {
        padding: var(--space-2xl) var(--space-md);
    }

    .blog-card:hover {
        transform: translateX(4px);
    }

    .blog-post__content ul,
    .blog-post__content ol {
        margin-left: var(--space-lg);
    }
}

/* ============================================
   Performance Optimizations
   ============================================ */

/* GPU acceleration for transforms */
.btn,
.problem-item,
.mockup,
.workflow-screenshot,
.who-item,
.focus-feature {
    will-change: transform;
}

/* Prevent layout shift */
img,
video {
    max-width: 100%;
    height: auto;
}

/* Focus states for accessibility */
a:focus-visible,
button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}

/* Selection color */
::selection {
    background: var(--accent);
    color: var(--bg-primary);
}
