/* ===== COLOR SYSTEM: Black / White / Green ===== */
:root {
    /* Green palette */
    --green-50: #ECFDF5;
    --green-100: #D1FAE5;
    --green-200: #A7F3D0;
    --green-300: #6EE7B7;
    --green-400: #34D399;
    --green-500: #10B981;
    --green-600: #059669;
    --green-700: #047857;
    --green-800: #065F46;
    --green-900: #064E3B;

    --radius: 14px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: 0.3s cubic-bezier(0.16, 1, 0.3, 1);

    /* Touch targets for mobile */
    --tap-target: 48px;
}

/* ===== LIGHT MODE (default) ===== */
[data-theme="light"] {
    --bg-body: #ffffff;
    --bg-elevated: #f8f9fa;
    --bg-card: #ffffff;
    --bg-card-hover: #f0fdf4;
    --bg-input: #f3f4f6;
    --bg-nav: rgba(255, 255, 255, 0.88);

    --text-primary: #0a0a0a;
    --text-secondary: #404040;
    --text-muted: #737373;
    --text-inverse: #ffffff;

    --accent: #059669;
    --accent-hover: #047857;
    --accent-light: #10B981;
    --accent-bg: rgba(5, 150, 105, 0.08);
    --accent-border: rgba(5, 150, 105, 0.2);
    --accent-glow: rgba(5, 150, 105, 0.15);

    --border: #e5e5e5;
    --border-hover: #059669;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.08);
    --shadow-glow: 0 0 40px rgba(5, 150, 105, 0.12);
}

/* ===== DARK MODE ===== */
[data-theme="dark"] {
    --bg-body: #0a0a0a;
    --bg-elevated: #141414;
    --bg-card: #171717;
    --bg-card-hover: #1a2e1a;
    --bg-input: #1c1c1c;
    --bg-nav: rgba(10, 10, 10, 0.88);

    --text-primary: #fafafa;
    --text-secondary: #a3a3a3;
    --text-muted: #6b6b6b;
    --text-inverse: #0a0a0a;

    --accent: #34D399;
    --accent-hover: #6EE7B7;
    --accent-light: #34D399;
    --accent-bg: rgba(52, 211, 153, 0.08);
    --accent-border: rgba(52, 211, 153, 0.18);
    --accent-glow: rgba(52, 211, 153, 0.1);

    --border: #262626;
    --border-hover: #34D399;
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.4);
    --shadow-glow: 0 0 40px rgba(52, 211, 153, 0.08);
}

/* ===== RESET ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: background 0.4s ease, color 0.4s ease;
}

img { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }

/* ===== LAYOUT ===== */
.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAV — Mobile First ===== */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: background 0.4s ease;
}
.nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
    padding: 0 20px;
}

/* Logo = h1 for SEO */
.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}
.logo h1 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    line-height: 1;
    color: var(--text-primary);
}
.logo-icon {
    width: 34px;
    height: 34px;
    background: var(--accent);
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.logo-icon svg {
    width: 20px;
    height: 20px;
    color: var(--text-inverse);
}

/* Desktop nav links — hidden on mobile */
.nav-links {
    display: none;
    list-style: none;
    gap: 28px;
    align-items: center;
}
.nav-links a {
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 400;
    transition: color var(--transition);
    padding: 4px 0;
}
.nav-links a:hover { color: var(--accent); }

.nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Theme toggle */
.theme-toggle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: var(--bg-card);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
    color: var(--text-secondary);
    flex-shrink: 0;
}
.theme-toggle:hover {
    border-color: var(--accent);
    color: var(--accent);
}
.theme-toggle svg { width: 18px; height: 18px; }
.theme-icon-dark,
.theme-icon-light { display: none; }
[data-theme="light"] .theme-icon-dark { display: block; }
[data-theme="dark"] .theme-icon-light { display: block; }

.btn-nav {
    display: none;
    background: var(--accent);
    color: var(--text-inverse);
    border: none;
    padding: 9px 22px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
}
.btn-nav:hover {
    background: var(--accent-hover);
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* Mobile hamburger */
.mobile-toggle {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: var(--text-primary);
}
.mobile-toggle svg { width: 22px; height: 22px; }

/* Mobile menu — hidden by default */
.mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-body);
    z-index: 999;
    padding: 8px 20px 40px;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
    color: var(--text-primary);
    font-size: 1.05rem;
    font-weight: 500;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    min-height: var(--tap-target);
}
.mobile-menu a:active { color: var(--accent); }
.mobile-menu-cta {
    margin-top: 24px;
    display: block;
    background: var(--accent);
    color: var(--text-inverse);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
    font-weight: 700;
    font-size: 1rem;
}

/* ===== HERO ===== */
.hero {
    padding: 84px 0 56px;
    position: relative;
    overflow: hidden;
}
.hero-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--accent-glow);
    filter: blur(100px);
    pointer-events: none;
    top: -80px;
    right: -60px;
}
.hero .container {
    position: relative;
    z-index: 1;
}
.hero-content {
    max-width: 100%;
}
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    color: var(--accent);
    margin-bottom: 20px;
    font-weight: 500;
}
.hero-badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
.hero-title {
    font-size: 2rem;
    font-weight: 900;
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.hero-title .accent {
    color: var(--accent);
}
.hero-desc {
    font-size: 0.98rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-bottom: 28px;
    line-height: 1.8;
}
.hero-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 36px;
}
.btn-primary {
    background: var(--accent);
    color: var(--text-inverse);
    border: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--tap-target);
    box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
    background: var(--accent-hover);
}
.btn-primary svg { width: 18px; height: 18px; }
.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: var(--tap-target);
}
.btn-ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

/* Hero stats */
.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.hero-stat {
    text-align: center;
    padding: 16px 8px;
    background: var(--bg-elevated);
    border-radius: var(--radius);
    border: 1px solid var(--border);
}
.hero-stat-num {
    font-size: 1.35rem;
    font-weight: 800;
    font-family: 'JetBrains Mono', monospace;
    color: var(--accent);
    line-height: 1.2;
}
.hero-stat-label {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 2px;
}

/* Hero scan animation card */
.hero-visual {
    margin-top: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}
.hero-visual::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-bg), transparent);
    pointer-events: none;
}
.scan-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    position: relative;
}
.scan-title {
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-weight: 500;
}
.scan-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--accent);
    font-weight: 600;
}
.scan-status-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}
.scan-progress {
    width: 100%;
    height: 4px;
    background: var(--bg-input);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 20px;
}
.scan-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
    border-radius: 2px;
    width: 0;
    animation: scanAnim 3s ease-in-out infinite;
}
@keyframes scanAnim {
    0% { width: 0; }
    50% { width: 78%; }
    100% { width: 100%; }
}
.file-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.file-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    animation: fileAppear 0.5s ease both;
}
.file-item:nth-child(1) { animation-delay: 0.5s; }
.file-item:nth-child(2) { animation-delay: 1s; }
.file-item:nth-child(3) { animation-delay: 1.5s; }
.file-item:nth-child(4) { animation-delay: 2s; }
@keyframes fileAppear {
    from { opacity: 0; transform: translateX(-8px); }
    to { opacity: 1; transform: translateX(0); }
}
.file-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
    background: var(--accent-bg);
}
.file-name {
    flex: 1;
    font-size: 0.8rem;
    font-weight: 400;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.file-size {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    flex-shrink: 0;
    display: none;
}
.file-tag {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 50px;
    font-weight: 600;
    background: var(--accent-bg);
    color: var(--accent);
    flex-shrink: 0;
    border: 1px solid var(--accent-border);
}

/* ===== SECTIONS ===== */
section {
    padding: 64px 0;
    position: relative;
}
.section-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 8px;
}
.section-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}
.section-desc {
    font-size: 0.92rem;
    color: var(--text-secondary);
    max-width: 520px;
    line-height: 1.8;
}
.section-header {
    margin-bottom: 40px;
}
.section-header.center {
    text-align: center;
}
.section-header.center .section-desc {
    margin: 0 auto;
}

/* ===== FEATURES ===== */
.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    transition: all var(--transition);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.feature-card:active {
    background: var(--bg-card-hover);
}
.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
    background: var(--accent-bg);
    border: 1px solid var(--accent-border);
}
.feature-text h3 {
    font-size: 0.98rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.feature-text p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== SCENARIOS ===== */
.scenarios-section {
    background: var(--bg-elevated);
}
.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.scenario-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    transition: all var(--transition);
}
.scenario-card:active {
    border-color: var(--accent-border);
}
.scenario-icon {
    font-size: 28px;
    margin-bottom: 10px;
    display: block;
}
.scenario-card h3 {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.scenario-card p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== STEPS ===== */
.steps-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    position: relative;
}
/* Vertical connector */
.steps-list::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 56px;
    bottom: 56px;
    width: 2px;
    background: linear-gradient(to bottom, var(--accent), var(--border));
    border-radius: 1px;
}
.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    position: relative;
}
.step-num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 1.1rem;
    font-weight: 800;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent);
    color: var(--text-inverse);
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}
.step-text h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.step-text p {
    font-size: 0.84rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ===== PRICING ===== */
.pricing-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.price-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    transition: all var(--transition);
    position: relative;
}
.price-card.popular {
    border-color: var(--accent);
    box-shadow: var(--shadow-glow);
}
.price-popular-tag {
    display: inline-block;
    background: var(--accent);
    color: var(--text-inverse);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 3px 14px;
    border-radius: 50px;
    margin-bottom: 12px;
}
.price-tier {
    font-size: 0.88rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 8px;
}
.price-amount {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 4px;
}
.price-currency {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
}
.price-value {
    font-family: 'JetBrains Mono', monospace;
    font-size: 2.4rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}
.price-period {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 20px;
}
.price-features {
    list-style: none;
    margin-bottom: 24px;
}
.price-features li {
    font-size: 0.86rem;
    color: var(--text-secondary);
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 10px;
}
.price-features li::before {
    content: '';
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent-bg);
    border: 1.5px solid var(--accent);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23059669'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 12px;
}
[data-theme="dark"] .price-features li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%2334D399'%3E%3Cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3E%3C/svg%3E");
}
.btn-price {
    display: block;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition);
    text-align: center;
    min-height: var(--tap-target);
}
.btn-price.primary {
    background: var(--accent);
    color: var(--text-inverse);
    border: none;
}
.btn-price.primary:hover { background: var(--accent-hover); }
.btn-price.outline {
    background: transparent;
    color: var(--text-primary);
    border: 1px solid var(--border);
}
.btn-price.outline:hover { border-color: var(--accent); color: var(--accent); }

/* ===== TESTIMONIALS ===== */
.testimonials-section {
    background: var(--bg-elevated);
}
.testimonials-scroll {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
}
.testimonial-stars {
    color: var(--accent);
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.testimonial-text {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 16px;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 10px;
}
.testimonial-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-inverse);
    flex-shrink: 0;
}
.testimonial-name {
    font-size: 0.84rem;
    font-weight: 600;
}
.testimonial-role {
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ===== FAQ ===== */
.faq-list {
    max-width: 100%;
}
.faq-item {
    border-bottom: 1px solid var(--border);
}
.faq-question {
    width: 100%;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 0.94rem;
    font-weight: 600;
    text-align: left;
    padding: 20px 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: var(--tap-target);
    line-height: 1.5;
}
.faq-question .icon {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: all 0.3s;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--bg-elevated);
}
.faq-item.active .faq-question .icon {
    transform: rotate(45deg);
    color: var(--accent);
    background: var(--accent-bg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.faq-item.active .faq-answer { max-height: 400px; }
.faq-answer p {
    padding: 0 0 20px;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ===== CTA ===== */
.cta-section {
    text-align: center;
    padding: 72px 0;
    position: relative;
}
.cta-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: var(--accent-glow);
    filter: blur(120px);
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h3 {
    font-size: 1.6rem;
    font-weight: 900;
    margin-bottom: 12px;
}
.cta-section p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    max-width: 440px;
    margin: 0 auto 32px;
    line-height: 1.7;
}
.cta-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 360px;
    margin: 0 auto;
}
.cta-note {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 16px;
}

/* ===== FOOTER ===== */
footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 32px;
    background: var(--bg-elevated);
}
.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.84rem;
    margin-top: 10px;
    max-width: 300px;
    line-height: 1.7;
}
.footer-links-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
@media (max-width: 380px) {
    .footer-links-row {
        grid-template-columns: 1fr 1fr;
        gap: 24px 16px;
    }
}
.footer-col h4 {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
    margin-bottom: 12px;
}
.footer-col ul { list-style: none; }
.footer-col a {
    color: var(--text-muted);
    font-size: 0.84rem;
    display: block;
    padding: 5px 0;
    transition: color var(--transition);
    min-height: 36px;
    display: flex;
    align-items: center;
}
.footer-col a:hover, .footer-col a:active { color: var(--accent); }
.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ===== SCROLL ANIMATIONS ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ===== DESKTOP OVERRIDES (768px+) ===== */
@media (min-width: 768px) {
    .container { padding: 0 32px; }
    .nav-inner { height: 72px; padding: 0 32px; }
    .nav-links { display: flex; }
    .btn-nav { display: inline-flex; }
    .mobile-toggle { display: none; }

    .hero { padding: 140px 0 80px; }
    .hero .container {
        display: flex;
        align-items: center;
        gap: 48px;
    }
    .hero-content { flex: 1; }
    .hero-title { font-size: 2.6rem; }
    .hero-actions { flex-direction: row; }
    .hero-visual {
        flex: 1;
        max-width: 440px;
        margin-top: 0;
        padding: 28px;
    }
    .file-size { display: block; }
    .hero-stats { gap: 20px; }
    .hero-stat { text-align: left; background: none; border: none; padding: 0; }
    .hero-stat-num { font-size: 1.6rem; }

    section { padding: 96px 0; }
    .section-header { margin-bottom: 56px; }
    .section-title { font-size: 2rem; }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .feature-card { padding: 28px 24px; }
    .feature-card:hover {
        border-color: var(--border-hover);
        transform: translateY(-3px);
        box-shadow: var(--shadow-glow);
    }

    .scenarios-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; }

    .steps-list {
        flex-direction: row;
        gap: 20px;
    }
    .steps-list::before {
        left: 56px;
        right: 56px;
        top: 36px;
        bottom: auto;
        width: auto;
        height: 2px;
        background: linear-gradient(to right, var(--accent), var(--border));
    }
    .step-card {
        flex: 1;
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding: 32px 24px;
    }

    .pricing-grid {
        flex-direction: row;
        gap: 20px;
        align-items: start;
    }
    .price-card { flex: 1; padding: 36px 28px; }

    .testimonials-scroll {
        flex-direction: row;
        gap: 16px;
    }
    .testimonial-card { flex: 1; }

    .faq-list { max-width: 720px; margin: 0 auto; }

    .cta-section h3 { font-size: 2.2rem; }
    .cta-actions { flex-direction: row; max-width: 460px; }

    .footer-grid { grid-template-columns: 2fr 3fr; gap: 48px; }
    .footer-bottom { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ===== LARGE DESKTOP (1024px+) ===== */
@media (min-width: 1024px) {
    .hero-title { font-size: 3rem; }
    .features-grid { grid-template-columns: repeat(3, 1fr); }
    .feature-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px;
    }
    .section-title { font-size: 2.4rem; }
}

/* ===== SAFE AREA for iPhone notch ===== */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
    footer { padding-bottom: calc(32px + env(safe-area-inset-bottom)); }
    .mobile-menu { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
}