/* ========================================
   SaafBG — Global Styles
   ======================================== */

:root {
    /* Colors */
    --bg-primary: #050505;
    --bg-secondary: #0a0a0a;
    --bg-card: #111111;
    --bg-card-hover: #161616;
    --bg-elevated: #1a1a1a;

    --text-primary: #f0f0f0;
    --text-secondary: #888888;
    --text-muted: #555555;

    --accent: #00e89d;
    --accent-hover: #00cc88;
    --accent-glow: rgba(0, 232, 157, 0.15);
    --accent-secondary: #00b4d8;

    --error: #ff4d6a;
    --error-bg: rgba(255, 77, 106, 0.1);

    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);

    /* Typography */
    --font-body: 'Outfit', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --container: 1200px;
    --section-pad: 100px;
    --radius: 12px;
    --radius-lg: 20px;
    --radius-sm: 8px;

    /* Transitions */
    --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ========================================
   Reset & Base
   ======================================== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul { list-style: none; }

.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

.hidden { display: none !important; }

/* ========================================
   Buttons
   ======================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s var(--ease);
    white-space: nowrap;
}

.btn-primary {
    background: var(--accent);
    color: #050505;
}
.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px var(--accent-glow);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
    background: var(--bg-card);
}

.btn-sm { padding: 10px 20px; font-size: 13px; }
.btn-lg { padding: 18px 36px; font-size: 17px; }

/* ========================================
   Navbar
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s var(--ease);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 150px;
    width: auto;
    object-fit: contain;
}

/* Dark bg (default): show light/inverted logo, hide dark logo */
.logo-dark { display: none; }
.logo-light { display: block; }

/* On light-bg pages, body.light-header flips them */
body.light-header .navbar:not(.scrolled) .logo-dark { display: block; }
body.light-header .navbar:not(.scrolled) .logo-light { display: none; }
body.light-header .navbar.scrolled .logo-dark { display: none; }
body.light-header .navbar.scrolled .logo-light { display: block; }

.logo-text {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.logo-accent {
    color: var(--accent);
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links > li {
    position: relative;
}

.nav-links > li > a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s;
    position: relative;
    padding: 8px 0;
}
.nav-links > li > a:hover { color: var(--text-primary); }
.nav-links > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s var(--ease);
}
.nav-links > li > a:hover::after { width: 100%; }

/* Dropdown */
.nav-dropdown .dropdown-menu {
    position: absolute;
    top: 100%;
    left: -12px;
    min-width: 180px;
    padding: 8px 0;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px);
    transition: all 0.25s var(--ease);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.dropdown-menu li a {
    display: block;
    padding: 10px 20px;
    font-size: 13px;
    color: var(--text-secondary);
    transition: all 0.2s;
}
.dropdown-menu li a:hover {
    color: var(--accent);
    background: var(--bg-elevated);
}
.dropdown-menu li a::after { display: none; }

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1002;
    position: relative;
}
.mobile-toggle span {
    width: 26px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all 0.35s var(--ease);
    transform-origin: center;
}

/* Hamburger → X animation */
.mobile-toggle.active span:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.mobile-toggle.active span:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* ========================================
   Hero
   ======================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 800px 600px at 30% 20%, rgba(0, 232, 157, 0.06), transparent),
        radial-gradient(ellipse 600px 400px at 70% 60%, rgba(0, 180, 216, 0.04), transparent);
    pointer-events: none;
}

.hero-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    border: 1px solid rgba(0, 232, 157, 0.2);
    background: rgba(0, 232, 157, 0.05);
    margin-bottom: 28px;
    animation: fadeInDown 0.8s var(--ease) both;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulse 2s infinite;
}

.hero h1 {
    font-size: clamp(40px, 7vw, 72px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 20px;
    animation: fadeInUp 0.8s 0.1s var(--ease) both;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto 40px;
    animation: fadeInUp 0.8s 0.2s var(--ease) both;
}

/* Upload Zone */
.upload-zone {
    background: var(--bg-card);
    border: 2px dashed var(--border-hover);
    border-radius: var(--radius-lg);
    padding: 50px 40px;
    cursor: pointer;
    transition: all 0.4s var(--ease);
    animation: fadeInUp 0.8s 0.3s var(--ease) both;
    position: relative;
}

.upload-zone:hover,
.upload-zone.drag-over {
    border-color: var(--accent);
    background: rgba(0, 232, 157, 0.03);
    box-shadow: 0 0 60px var(--accent-glow);
}

.upload-zone.drag-over {
    transform: scale(1.01);
}

.upload-icon-wrap {
    margin-bottom: 16px;
    color: var(--text-muted);
    transition: color 0.3s;
}
.upload-zone:hover .upload-icon-wrap { color: var(--accent); }

.upload-text {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.upload-link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.upload-hint {
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Processing */
.spinner {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px;
}
.spinner-svg {
    animation: spin 1.2s linear infinite;
}

.processing-text {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.dots::after {
    content: '';
    animation: dots 1.5s infinite;
}

.processing-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Error */
.error-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    background: var(--error-bg);
    border: 1px solid rgba(255, 77, 106, 0.2);
    border-radius: var(--radius);
    margin-top: 16px;
    font-size: 14px;
    color: var(--error);
    animation: fadeInUp 0.4s var(--ease);
}
.error-close {
    margin-left: auto;
    background: none;
    border: none;
    color: var(--error);
    font-size: 20px;
    cursor: pointer;
    line-height: 1;
}

/* Preview Area (shows immediately on file select) */
.preview-area {
    margin-top: 20px;
    animation: fadeInUp 0.5s var(--ease);
}

.preview-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.preview-label {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.preview-img-container {
    border-radius: var(--radius);
    overflow: hidden;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    margin-bottom: 16px;
}

.preview-img-container img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.spinner-inline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 8px 0;
}

.spinner-inline .spinner {
    width: 32px;
    height: 32px;
    margin: 0;
}

/* Results */
.result-area {
    margin-top: 20px;
    animation: fadeInUp 0.6s var(--ease);
}

.result-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.result-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

.result-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 20px;
    flex-wrap: wrap;
}

/* ── Slider Comparison ── */
.slider-comparison {
    user-select: none;
    -webkit-user-select: none;
}

.slider-img-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    max-width: 100%;
    margin: 0 auto;
    background: #111;
}

/* After image — flows naturally, defines container height */
.slider-img-after {
    display: block;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
}

/* Clip — narrows on drag, crops the before image */
.slider-clip {
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    overflow: hidden;
    z-index: 2;
}

/* Before image — same rendering as after, but positioned inside the clip.
   Key: width must equal the CONTAINER width (not clip width) so it stays
   aligned with the after image underneath. We use the container's offsetWidth
   in pixels, set by JS. */
.slider-clip img.slider-img-before {
    display: block;
    height: 100%;
    width: auto;
    max-width: none;
    position: absolute;
    top: 0;
    left: 0;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 3px;
    height: 100%;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: translateX(-50%);
    pointer-events: none;
}

.slider-line {
    flex: 1;
    width: 3px;
    background: white;
    box-shadow: 0 0 8px rgba(0,0,0,0.5);
}

.slider-knob {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.4);
    flex-shrink: 0;
    pointer-events: auto;
    cursor: ew-resize;
}

.slider-label {
    position: absolute;
    bottom: 12px;
    z-index: 4;
    padding: 4px 12px;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(8px);
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    pointer-events: none;
}

.slider-label-before { left: 12px; color: var(--text-primary); }
.slider-label-after  { right: 12px; color: var(--accent); }

.slider-hint {
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
}

.checkerboard {
    background-image:
        linear-gradient(45deg, #1a1a1a 25%, transparent 25%),
        linear-gradient(-45deg, #1a1a1a 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #1a1a1a 75%),
        linear-gradient(-45deg, transparent 75%, #1a1a1a 75%);
    background-size: 16px 16px;
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-color: #111;
}

/* ── Lightbox / Zoom Viewer ── */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(0,0,0,0.92);
    backdrop-filter: blur(12px);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.25s var(--ease);
}

.lightbox.hidden { display: none; }

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10001;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}
.lightbox-close:hover {
    background: rgba(255,255,255,0.2);
}

.lightbox-body {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    cursor: zoom-in;
}

.lightbox-body img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    transition: transform 0.1s ease-out;
    transform-origin: center center;
}

/* Hero Trust */
.hero-trust {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 36px;
    animation: fadeInUp 0.8s 0.5s var(--ease) both;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ========================================
   Sections
   ======================================== */
.section {
    padding: var(--section-pad) 0;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 800;
    text-align: center;
    letter-spacing: -1px;
    margin-bottom: 12px;
}

.section-sub {
    text-align: center;
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 56px;
}

/* Steps */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    text-align: center;
    position: relative;
    transition: all 0.4s var(--ease);
}
.step-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.step-card::before {
    content: attr(data-step);
    position: absolute;
    top: 16px;
    right: 20px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.step-icon {
    margin-bottom: 20px;
}

.step-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.step-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Use Cases */
.usecase-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.usecase-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all 0.4s var(--ease);
}
.usecase-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.usecase-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    margin-bottom: 18px;
    transition: all 0.3s var(--ease);
}

.usecase-card:hover .usecase-icon {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.usecase-card h3 {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 8px;
}

.usecase-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Stats */
.section-stats {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    letter-spacing: -1px;
    margin-bottom: 4px;
}

.stat-label {
    font-size: 14px;
    color: var(--text-secondary);
}

/* Premium */
.premium-card {
    background: linear-gradient(135deg, rgba(0, 232, 157, 0.06), rgba(0, 180, 216, 0.06));
    border: 1px solid rgba(0, 232, 157, 0.15);
    border-radius: var(--radius-lg);
    padding: 60px;
    text-align: center;
    position: relative;
}

.premium-badge {
    display: inline-block;
    padding: 6px 16px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent);
    border: 1px solid rgba(0, 232, 157, 0.3);
    border-radius: 50px;
    margin-bottom: 20px;
}

.premium-card h2 {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 800;
    margin-bottom: 14px;
}

.premium-card > p {
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 32px;
    font-size: 16px;
}

.waitlist-form {
    display: flex;
    max-width: 440px;
    margin: 0 auto 28px;
    gap: 10px;
}

.waitlist-form input {
    flex: 1;
    padding: 14px 20px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
}
.waitlist-form input:focus {
    border-color: var(--accent);
}
.waitlist-form input::placeholder {
    color: var(--text-muted);
}

.premium-features-preview {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.pf-tag {
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 50px;
}

/* FAQ */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 0;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    transition: color 0.3s;
}
.faq-item summary:hover { color: var(--accent); }

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    color: var(--text-muted);
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
    color: var(--accent);
}

.faq-item p {
    padding-bottom: 22px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* CTA */
.section-cta {
    padding: 80px 0;
}

.cta-content {
    text-align: center;
}

.cta-content h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 800;
    margin-bottom: 12px;
}

.cta-content p {
    color: var(--text-secondary);
    font-size: 17px;
    margin-bottom: 32px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border);
    padding: 60px 0 40px;
    background: var(--bg-secondary);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-muted);
    font-size: 14px;
    margin-top: 10px;
    max-width: 280px;
    line-height: 1.6;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-col li { margin-bottom: 10px; }
.footer-col a {
    font-size: 14px;
    color: var(--text-muted);
    transition: color 0.3s;
}
.footer-col a:hover { color: var(--accent); }

.footer-bottom {
    border-top: 1px solid var(--border);
    padding-top: 24px;
    text-align: center;
}
.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ========================================
   Animations
   ======================================== */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-16px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.4); }
}

@keyframes dots {
    0% { content: ''; }
    25% { content: '.'; }
    50% { content: '..'; }
    75% { content: '...'; }
}

/* ========================================
   Responsive
   ======================================== */
@media (max-width: 1024px) {
    .steps-grid,
    .usecase-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }

    /* ── Mobile Nav kicks in at 1024px ── */
    .nav-links,
    .nav-actions {
        display: none;
    }

    .mobile-toggle {
        display: flex;
    }

    /* Full-page slide-in from right */
    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 320px;
        max-width: 85vw;
        background: var(--bg-secondary);
        border-left: 1px solid var(--border);
        padding: 100px 32px 40px;
        gap: 0;
        z-index: 1001;
        transform: translateX(0);
        animation: slideInRight 0.35s var(--ease) both;
        overflow-y: auto;
    }

    .nav-links.open > li {
        opacity: 0;
        animation: fadeSlideIn 0.3s var(--ease) forwards;
    }
    .nav-links.open > li:nth-child(1) { animation-delay: 0.05s; }
    .nav-links.open > li:nth-child(2) { animation-delay: 0.1s; }
    .nav-links.open > li:nth-child(3) { animation-delay: 0.15s; }
    .nav-links.open > li:nth-child(4) { animation-delay: 0.2s; }

    .nav-links.open > li > a {
        font-size: 20px;
        font-weight: 600;
        padding: 18px 0;
        border-bottom: 1px solid var(--border);
        color: var(--text-primary);
        display: block;
    }
    .nav-links.open > li > a::after { display: none; }
    .nav-links.open > li > a:hover { color: var(--accent); }

    /* Dropdown inside mobile nav */
    .nav-links.open .dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0 0 8px 16px;
    }
    .nav-links.open .dropdown-menu li a {
        font-size: 15px;
        padding: 12px 0;
        border-bottom: 1px solid var(--border);
        color: var(--text-secondary);
    }

    /* Overlay backdrop */
    .nav-overlay {
        position: fixed;
        inset: 0;
        background: rgba(0, 0, 0, 0.6);
        backdrop-filter: blur(4px);
        z-index: 1000;
        animation: fadeIn 0.25s var(--ease) both;
    }
}

@keyframes slideInRight {
    from { transform: translateX(100%); }
    to { transform: translateX(0); }
}

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 64px;
    }

    .hero { padding: 120px 0 60px; min-height: auto; }

    .hero h1 {
        letter-spacing: -1px;
    }

    .hero-sub {
        font-size: 16px;
    }

    .upload-zone {
        padding: 36px 24px;
    }

    .hero-trust {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }

    .usecase-grid {
        grid-template-columns: 1fr;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }

    .premium-card {
        padding: 40px 24px;
    }

    .waitlist-form {
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .result-header {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }

    .slider-img-container {
        max-height: 350px;
    }

    .preview-img-container {
        max-height: 300px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 32px;
    }

    .section-title {
        font-size: 26px;
    }

    .stat-number {
        font-size: 28px;
    }
}

/* ========================================
   Subpage Styles
   ======================================== */

/* Page Hero — used on all subpages */
.page-hero {
    padding: 160px 0 80px;
    position: relative;
    overflow: hidden;
}

.page-hero .hero-bg-pattern {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 800px 600px at 30% 20%, rgba(0, 232, 157, 0.06), transparent),
        radial-gradient(ellipse 600px 400px at 70% 60%, rgba(0, 180, 216, 0.04), transparent);
    pointer-events: none;
}

.page-hero-content {
    max-width: 720px;
    text-align: center;
    margin: 0 auto;
}

.page-hero-content h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
}

.page-hero-content .hero-sub {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}

/* Content Page (Privacy, Terms) */
.content-page {
    padding: 60px 0 100px;
}

.content-page .content-wrap {
    max-width: 760px;
    margin: 0 auto;
}

.content-page h2 {
    font-size: 24px;
    font-weight: 700;
    margin: 48px 0 16px;
    letter-spacing: -0.5px;
}

.content-page h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 32px 0 12px;
}

.content-page p,
.content-page li {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-page ul {
    padding-left: 24px;
    list-style: disc;
    margin-bottom: 20px;
}

.content-page ul li {
    margin-bottom: 8px;
}

.content-page a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.content-page .last-updated {
    font-size: 13px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-bottom: 40px;
}

/* Feature Grid (How It Works, Premium) */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin: 48px 0;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    transition: all 0.4s var(--ease);
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
}

.feature-card .feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 16px;
    margin-bottom: 18px;
    transition: all 0.3s var(--ease);
}

.feature-card:hover .feature-icon {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.feature-card.feature-highlight {
    border-color: rgba(0, 232, 157, 0.2);
    background: linear-gradient(135deg, rgba(0, 232, 157, 0.04), rgba(0, 180, 216, 0.04));
}

/* Premium badge on feature cards */
.feature-card .coming-badge {
    display: inline-block;
    padding: 3px 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent);
    border: 1px solid rgba(0, 232, 157, 0.25);
    border-radius: 50px;
    margin-bottom: 14px;
}

/* Contact Form */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 48px;
}

.contact-info h3 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
}

.contact-info p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 28px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    font-size: 15px;
    color: var(--text-secondary);
}

.contact-detail svg {
    flex-shrink: 0;
    color: var(--accent);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input,
.form-group textarea,
.form-group select {
    padding: 14px 18px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 15px;
    outline: none;
    transition: border-color 0.3s;
    resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group textarea {
    min-height: 120px;
}

.form-status {
    font-size: 14px;
    margin-top: 8px;
    line-height: 1.5;
}

/* Use Case pages — icon row */
.benefit-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 48px 0;
}

.benefit-item {
    text-align: center;
    padding: 32px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.benefit-item .benefit-number {
    font-family: var(--font-mono);
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 8px;
}

.benefit-item h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
}

.benefit-item p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Use Case — long-form content blocks */
.content-block {
    max-width: 760px;
    margin: 0 auto 64px;
}

.content-block h2 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.content-block p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}

.content-block ul {
    list-style: none;
    margin: 20px 0;
}

.content-block ul li {
    position: relative;
    padding-left: 24px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.content-block ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

/* Premium pricing preview */
.pricing-tease {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 48px 0;
}

.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 36px 28px;
    text-align: center;
    transition: all 0.4s var(--ease);
}

.price-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.price-card.price-featured {
    border-color: rgba(0, 232, 157, 0.3);
    background: linear-gradient(135deg, rgba(0, 232, 157, 0.05), rgba(0, 180, 216, 0.05));
}

.price-card h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.price-card .price-amount {
    font-size: 36px;
    font-weight: 800;
    color: var(--accent);
    margin-bottom: 4px;
}

.price-card .price-period {
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.price-card .price-features {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}

.price-card .price-features li {
    padding: 8px 0;
    font-size: 14px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-card .price-features li::before {
    content: '✓';
    color: var(--accent);
    font-weight: 700;
    font-size: 13px;
}

/* Responsive for subpages */
@media (max-width: 768px) {
    .page-hero { padding: 120px 0 60px; }
    .feature-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
    .benefit-row { grid-template-columns: 1fr; }
    .pricing-tease { grid-template-columns: 1fr; }
}