/* ---------------------------------------------------------------------------
   FitToRole - Premium UI Design System
   A state-of-the-art, interactive dark theme with glass morphism,
   sophisticated animations, and polished micro-interactions.
   --------------------------------------------------------------------------- */

/**
 * TABLE OF CONTENTS
 * =================
 *
 * 1. DESIGN TOKENS ..................... Line ~20
 *    - Core Palette, Glass Surfaces, Text, Accents
 *    - Gradients, Shadows, Typography
 *    - Spacing, Border Radius, Transitions, Z-index
 *    - Icon Sizes, Header Height
 *
 * 2. RESET & BASE ...................... Line ~135
 *    - Box-sizing, HTML/Body defaults
 *
 * 3. LAYOUT UTILITIES .................. Line ~210
 *    - .wrap, .section, .grid
 *
 * 4. TYPOGRAPHY ........................ Line ~275
 *    - Headings, .lede, .eyebrow, Links
 *
 * 5. BUTTONS ........................... Line ~395
 *    - .btn, .btn-primary, .btn-success, .btn-ghost
 *    - .btn-outline, sizes, .btn-loading
 *
 * 6. PILLS & BADGES .................... Line ~545
 *    - .pill, .pill--accent/glow/success/warning/error/info
 *    - .badge
 *
 * 7. CARDS ............................. Line ~620
 *    - .card, .card__icon, .card__title
 *
 * 8. NAVIGATION ........................ Line ~705
 *    - .masthead, .brand, .nav__links, .nav__toggle
 *
 * 9. HERO SECTION ...................... Line ~870
 *    - .hero, .hero__grid, .hero__preview
 *    - Preview card components
 *
 * 10. FEATURES SECTION ................. Line ~1080
 *     - .features-grid, .feature-card
 *
 * 11. HOW IT WORKS ..................... Line ~1170
 *     - .steps-grid, .step-card
 *
 * 12. PRICING SECTION .................. Line ~1270
 *     - .pricing-grid, .pricing-card
 *
 * 13. CTA SECTION ...................... Line ~1460
 *     - .cta-box
 *
 * 14. UPLOAD FORM ...................... Line ~1520
 *     - .upload-section, .dropzone, .textarea
 *     - .input, .form-error, .form-success
 *
 * 15. RESULTS PAGE ..................... Line ~1835
 *     - .results-section, .loading-state
 *     - .score-banner, .analysis-card
 *
 * 16. STATUS PAGES ..................... Line ~2700
 *     - .status-section, .status-card
 *
 * 17. TOKEN LOOKUP ..................... Line ~2570
 *     - .token-lookup-card, .token-lookup-input
 *
 * 18. FOOTER ........................... Line ~2760
 *     - .site-footer, .footer__grid
 *
 * 19. SCROLL ANIMATIONS ................ Line ~3090
 *     - .animate-on-scroll, .stagger-children
 *
 * 20. LEGAL PAGES ...................... Line ~3130
 *     - .legal-section, .legal-card
 *
 * 21. UTILITY CLASSES .................. Line ~3330
 *     - .sr-only, .hidden, text alignment, margins
 *
 * 22. RESPONSIVE DESIGN ................ Line ~3375
 *     - Breakpoints: 1024px, 768px, 480px
 *
 * 23. COMPONENT SPECIFICS .............. Line ~3530+
 *     - Document Preview, AI Console
 *     - Upgrade Prompt, Document Comparison
 *     - Success Page, Cover Letter, Resume Card
 *
 * 24. CUSTOM SCROLLBARS ................ Line ~4510
 *     - Webkit, Firefox scrollbar styles
 *
 * 25. PRINT STYLES ..................... Line ~4950
 *     - Print media queries
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ==========================================================================
   DESIGN TOKENS
   ========================================================================== */

:root {
    /* Core Palette - Deep space theme with electric accents */
    --bg-deep: #030712;
    --bg: #0a0f1e;
    --bg-elevated: #111827;
    --bg-card: #151c2c;
    --bg-card-hover: #1a2235;

    /* Glass surfaces */
    --glass: rgba(255, 255, 255, 0.03);
    --glass-strong: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-strong: rgba(255, 255, 255, 0.12);

    /* Text hierarchy */
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    --text-subtle: #475569;

    /* Accent colors - Electric cyan/blue gradient */
    --accent: #22d3ee;
    --accent-hover: #06b6d4;
    --accent-light: #67e8f9;
    --accent-subtle: rgba(34, 211, 238, 0.15);
    --accent-glow: rgba(34, 211, 238, 0.4);

    /* Semantic colors */
    --success: #10b981;
    --success-light: #34d399;
    --success-subtle: rgba(16, 185, 129, 0.15);
    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --warning-subtle: rgba(245, 158, 11, 0.15);
    --error: #ef4444;
    --error-light: #f87171;
    --error-subtle: rgba(239, 68, 68, 0.15);
    --info: #3b82f6;
    --info-subtle: rgba(59, 130, 246, 0.15);

    /* Gradients */
    --gradient-accent: linear-gradient(135deg, #22d3ee 0%, #06b6d4 50%, #0891b2 100%);
    --gradient-accent-soft: linear-gradient(135deg, rgba(34, 211, 238, 0.2) 0%, rgba(6, 182, 212, 0.1) 100%);
    --gradient-surface: linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    --gradient-glow: radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.15) 0%, transparent 50%);
    --gradient-hero: radial-gradient(ellipse at 20% 20%, rgba(34, 211, 238, 0.08) 0%, transparent 40%),
                     radial-gradient(ellipse at 80% 80%, rgba(59, 130, 246, 0.06) 0%, transparent 40%);

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.6);
    --shadow-glow: 0 0 40px rgba(34, 211, 238, 0.3);
    --shadow-glow-strong: 0 0 60px rgba(34, 211, 238, 0.4), 0 0 100px rgba(34, 211, 238, 0.2);

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

    /* Font sizes - Fluid typography */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.8rem);
    --text-sm: clamp(0.85rem, 0.8rem + 0.25vw, 0.9rem);
    --text-base: clamp(0.95rem, 0.9rem + 0.25vw, 1rem);
    --text-lg: clamp(1.05rem, 1rem + 0.25vw, 1.125rem);
    --text-xl: clamp(1.2rem, 1.1rem + 0.5vw, 1.35rem);
    --text-2xl: clamp(1.5rem, 1.3rem + 1vw, 1.875rem);
    --text-3xl: clamp(1.875rem, 1.5rem + 1.5vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.75rem + 2vw, 3.25rem);
    --text-5xl: clamp(2.75rem, 2rem + 3vw, 4rem);

    /* Spacing scale */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border radius */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --radius-2xl: 28px;
    --radius-full: 9999px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
    --duration-fast: 150ms;
    --duration-normal: 250ms;
    --duration-slow: 400ms;
    --duration-slower: 600ms;

    /* Z-index scale */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal: 300;
    --z-toast: 400;
    --z-tooltip: 500;

    /* Icon sizes */
    --icon-xs: 12px;
    --icon-sm: 16px;
    --icon-md: 20px;
    --icon-lg: 24px;
    --icon-xl: 32px;
    --icon-2xl: 40px;

    /* Header height (for page-top calculations) */
    --header-height: 72px;
}

/* ==========================================================================
   RESET & BASE
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    font-family: var(--font-sans);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
}

body.page {
    background: var(--bg);
    background-image: var(--gradient-hero);
    background-attachment: fixed;
}

/* Smooth page load */
body.page {
    animation: pageLoad 0.6s var(--ease-out);
}

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

img, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--duration-fast) var(--ease-out);
}

button {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
    cursor: pointer;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

::selection {
    background: var(--accent);
    color: var(--bg-deep);
}

/* ==========================================================================
   LAYOUT UTILITIES
   ========================================================================== */

.wrap {
    width: min(1200px, 90vw);
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.wrap--narrow {
    max-width: 800px;
}

.wrap--wide {
    max-width: 1400px;
}

.section {
    padding: var(--space-20) 0;
    position: relative;
}

.section--compact {
    padding: var(--space-12) 0;
}

.section--hero {
    padding: var(--space-16) 0 var(--space-20);
}

.section--page-top {
    padding-top: calc(var(--header-height) + var(--space-12));
}

.section__header {
    margin-bottom: var(--space-12);
    max-width: 720px;
}

.section__header--center {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
}

/* Grid system */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid--2 {
    grid-template-columns: repeat(2, 1fr);
}

.grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

.grid--auto {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

/* Flex utilities */
.flex {
    display: flex;
}

.flex--center {
    align-items: center;
    justify-content: center;
}

.flex--between {
    justify-content: space-between;
}

.flex--gap-2 {
    gap: var(--space-2);
}

.flex--gap-4 {
    gap: var(--space-4);
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

h1 {
    font-size: var(--text-5xl);
    font-weight: 800;
    letter-spacing: -0.03em;
}

h2 {
    font-size: var(--text-3xl);
}

h3 {
    font-size: var(--text-xl);
}

h4 {
    font-size: var(--text-lg);
    font-weight: 600;
}

p {
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

p:last-child {
    margin-bottom: 0;
}

.text-gradient {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: var(--space-4);
}

.eyebrow::before {
    content: '';
    width: 24px;
    height: 2px;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
}

.lede {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 640px;
}

.mono {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.caption {
    font-size: var(--text-xs);
    color: var(--text-subtle);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1.4;
    border-radius: var(--radius-lg);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
    white-space: nowrap;
}

.btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--duration-fast);
}

.btn:hover::before {
    opacity: 1;
}

.btn:active {
    transform: scale(0.98);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Primary button */
.btn-primary {
    background: var(--gradient-accent);
    color: var(--bg-deep);
    border: none;
    box-shadow: var(--shadow-md), 0 0 20px rgba(34, 211, 238, 0.2);
}

.btn-primary:hover {
    box-shadow: var(--shadow-lg), var(--shadow-glow);
    transform: translateY(-2px);
}

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

/* Success button */
.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 50%, #047857 100%);
    color: var(--bg-deep);
    border: none;
    box-shadow: var(--shadow-md), 0 0 20px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
    box-shadow: var(--shadow-lg), 0 0 40px rgba(16, 185, 129, 0.3);
    transform: translateY(-2px);
}

.btn-success:active {
    transform: translateY(0) scale(0.98);
}

/* Secondary/Ghost button */
.btn-ghost {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn-ghost:hover {
    background: var(--glass-strong);
    border-color: var(--glass-border-strong);
    transform: translateY(-1px);
}

/* Outline button */
.btn-outline {
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background: var(--accent-subtle);
}

/* Size variants */
.btn-sm {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
    border-radius: var(--radius-md);
}

.btn-lg {
    padding: var(--space-4) var(--space-8);
    font-size: var(--text-base);
    border-radius: var(--radius-xl);
}

.btn-block {
    width: 100%;
}

/* Icon button */
.btn-icon {
    padding: var(--space-3);
    border-radius: var(--radius-md);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

/* Button with loading state */
.btn-loading {
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.btn-primary.btn-loading::after {
    border-top-color: var(--bg-deep);
}

/* ==========================================================================
   PILLS & BADGES
   ========================================================================== */

.pill {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-xs);
    font-weight: 500;
    border-radius: var(--radius-full);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-secondary);
}

.pill--accent {
    background: var(--accent-subtle);
    border-color: rgba(34, 211, 238, 0.3);
    color: var(--accent);
}

.pill--glow {
    background: var(--accent-subtle);
    border-color: rgba(34, 211, 238, 0.3);
    color: var(--accent-light);
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
}

.pill--success {
    background: var(--success-subtle);
    border-color: rgba(16, 185, 129, 0.3);
    color: var(--success-light);
}

.pill--warning {
    background: var(--warning-subtle);
    border-color: rgba(245, 158, 11, 0.3);
    color: var(--warning-light);
}

.pill--sm {
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
}

.pill--error {
    background: var(--error-subtle);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--error-light);
}

.pill--info {
    background: var(--info-subtle);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--info);
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 var(--space-2);
    font-size: var(--text-xs);
    font-weight: 700;
    border-radius: var(--radius-full);
    background: var(--accent);
    color: var(--bg-deep);
}

/* ==========================================================================
   CARDS
   ========================================================================== */

.card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all var(--duration-normal) var(--ease-out);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-surface);
    pointer-events: none;
}

.card:hover {
    border-color: var(--glass-border-strong);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.card--glass {
    background: var(--glass);
    backdrop-filter: blur(20px);
}

.card--accent {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.08) 0%, rgba(6, 182, 212, 0.04) 100%);
    border-color: rgba(34, 211, 238, 0.2);
}

.card--accent:hover {
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: var(--shadow-lg), 0 0 40px rgba(34, 211, 238, 0.1);
}

.card--interactive {
    cursor: pointer;
}

.card--flat {
    background: transparent;
    border: none;
    padding: 0;
}

.card--flat:hover {
    transform: none;
    box-shadow: none;
}

.card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.card__title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
}

.card__subtitle {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

.card__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background: var(--accent-subtle);
    color: var(--accent);
    flex-shrink: 0;
}

.card__icon svg {
    width: 24px;
    height: 24px;
}

.card__content {
    position: relative;
}

.card__footer {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--glass-border);
}

/* ==========================================================================
   HEADER / MASTHEAD
   ========================================================================== */

.masthead {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    background: rgba(10, 15, 30, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    transition: all var(--duration-normal) var(--ease-out);
}

.masthead.scrolled {
    background: rgba(10, 15, 30, 0.95);
    border-bottom-color: var(--glass-border);
    box-shadow: var(--shadow-lg);
}

.masthead__inner {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

/* Brand */
.brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-decoration: none;
    transition: opacity var(--duration-fast);
}

.brand:hover {
    opacity: 0.9;
}

.brand__logo {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: var(--radius-lg);
    font-weight: 800;
    font-size: var(--text-lg);
    color: var(--bg-deep);
    box-shadow: var(--shadow-md), 0 0 20px rgba(34, 211, 238, 0.2);
    position: relative;
    overflow: hidden;
}

.brand__logo::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, transparent 50%);
}

.brand__logo-img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(34, 211, 238, 0.4);
    box-shadow:
        var(--shadow-md),
        0 0 15px rgba(34, 211, 238, 0.5),
        0 0 30px rgba(34, 211, 238, 0.3),
        inset 0 0 10px rgba(34, 211, 238, 0.1);
}

.brand__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand__name {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.brand__tagline {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* Navigation */
.nav {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-1);
}

.nav__link {
    padding: var(--space-2) var(--space-4);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: all var(--duration-fast) var(--ease-out);
}

.nav__link:hover {
    color: var(--text-primary);
    background: var(--glass);
}

.nav__link--active {
    color: var(--accent);
}

.nav__cta {
    margin-left: var(--space-4);
}

/* Mobile nav toggle */
.nav__toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    background: var(--glass);
    border: 1px solid var(--glass-border);
}

.nav__toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--duration-fast) var(--ease-out);
}

.nav__toggle[aria-expanded="true"] span:first-child {
    transform: rotate(45deg) translate(5px, 5px);
}

.nav__toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav__toggle[aria-expanded="true"] span:last-child {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero {
    padding: calc(var(--header-height) + var(--space-16)) 0 var(--space-16);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.hero__bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140%;
    height: 100%;
    background: radial-gradient(ellipse at 50% 0%, rgba(34, 211, 238, 0.12) 0%, transparent 60%);
}

.hero__bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(180deg, transparent, var(--bg));
}

.hero__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
}

.hero__content {
    position: relative;
    z-index: 1;
}

.hero__content h1 {
    margin-bottom: var(--space-6);
}

.hero__content .lede {
    margin-bottom: var(--space-8);
}

.hero__actions {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-8);
    flex-wrap: wrap;
}

.hero__features {
    display: flex;
    gap: var(--space-4);
    flex-wrap: wrap;
}

/* Hero preview card */
.hero__preview {
    position: relative;
    z-index: 1;
}

.preview-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
    position: relative;
    overflow: hidden;
}

.preview-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.preview-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
}

.preview-card__score {
    text-align: center;
}

.preview-card__score-value {
    font-size: var(--text-5xl);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: var(--space-2);
}

.preview-card__score-label {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.preview-card__bar {
    height: 8px;
    background: var(--glass-strong);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-6);
}

.preview-card__bar-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: inherit;
    transition: width 1s var(--ease-out);
}

.preview-card__stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-4);
    padding-top: var(--space-6);
    border-top: 1px solid var(--glass-border);
}

.preview-card__stat {
    text-align: center;
}

.preview-card__stat-value {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.preview-card__stat-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* Preview Card: Results Style (matching actual results page) */
.preview-card--results {
    max-width: 340px;
}

/* Preview Score Ring */
.preview-score-ring {
    position: relative;
    width: 140px;
    height: 140px;
    margin: var(--space-4) auto var(--space-5);
}

.preview-ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.preview-ring-bg {
    fill: none;
    stroke: var(--glass-border);
    stroke-width: 6;
}

.preview-ring-fill {
    fill: none;
    stroke: var(--accent);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 264;
    stroke-dashoffset: 58; /* 264 - (264 * 0.78) = 58 for 78% */
    transition: stroke-dashoffset 1.5s var(--ease-out);
}

.preview-ring-value {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.preview-ring-number {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.preview-ring-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Preview Stats Row */
.preview-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-3);
    padding: var(--space-4);
    margin: 0 calc(-1 * var(--space-6));
    background: var(--glass);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.preview-stat {
    text-align: center;
}

.preview-stat-value {
    display: block;
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--accent);
}

.preview-stat-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* Preview Analysis Findings */
.preview-analysis {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.preview-finding {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
}

.preview-finding--good {
    color: var(--success-light);
    background: var(--success-subtle);
}

.preview-finding--good svg {
    color: var(--success);
    flex-shrink: 0;
}

.preview-finding--warn {
    color: var(--warning-light);
    background: var(--warning-subtle);
}

.preview-finding--warn svg {
    color: var(--warning);
    flex-shrink: 0;
}

/* Floating elements animation */
.hero__float {
    animation: float 6s var(--ease-in-out) infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ==========================================================================
   SOCIAL PROOF BAR
   ========================================================================== */

.social-proof-bar {
    background: var(--bg-card);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    padding: var(--space-6) 0;
}

.social-proof-bar__content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-8);
    flex-wrap: wrap;
}

.social-proof-bar__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.social-proof-bar__number {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.social-proof-bar__label {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: var(--space-1);
}

.social-proof-bar__divider {
    width: 1px;
    height: 40px;
    background: var(--glass-border);
}

@media (max-width: 768px) {
    .social-proof-bar__content {
        gap: var(--space-6);
    }

    .social-proof-bar__divider {
        display: none;
    }

    .social-proof-bar__stat {
        flex: 1 1 40%;
    }
}

/* ==========================================================================
   BEFORE/AFTER SECTION
   ========================================================================== */

.before-after-section {
    background: var(--bg-primary);
}

.before-after-grid {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--space-6);
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.before-after-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.before-after-card__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--glass-border);
}

.before-after-card__label {
    font-size: var(--text-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.before-after-card__label--before {
    color: var(--text-muted);
}

.before-after-card__label--after {
    color: var(--accent);
}

.before-after-card__score {
    font-size: var(--text-sm);
    font-weight: 600;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-full);
}

.before-after-card__score--low {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.before-after-card__score--high {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.before-after-card__tag {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.before-after-card__tag--success {
    color: var(--accent);
}

.before-after-note {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-top: var(--space-6);
    font-style: italic;
}

.before-after-card__content {
    padding: var(--space-5);
}

.before-after-card__bullet {
    font-size: var(--text-base);
    color: var(--text-primary);
    font-style: italic;
    line-height: 1.6;
    margin-bottom: var(--space-4);
}

.before-after-card__issues,
.before-after-card__improvements {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.before-after-card__issue,
.before-after-card__improvement {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
}

.before-after-card__issue {
    color: #ef4444;
}

.before-after-card__improvement {
    color: #10b981;
}

.before-after-arrow {
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.before-after-cta {
    text-align: center;
    margin-top: var(--space-10);
}

@media (max-width: 768px) {
    .before-after-grid {
        grid-template-columns: 1fr;
        gap: var(--space-4);
    }

    .before-after-arrow {
        transform: rotate(90deg);
    }
}

/* ==========================================================================
   FEATURES SECTION
   ========================================================================== */

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
}

.feature-card {
    position: relative;
    padding: var(--space-8);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    transition: all var(--duration-normal) var(--ease-out);
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--duration-slow) var(--ease-out);
}

.feature-card:hover {
    border-color: var(--glass-border-strong);
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card__badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.feature-card__badge--premium {
    background: var(--accent-subtle);
    border-color: rgba(34, 211, 238, 0.3);
    color: var(--accent);
}

/* AI Model Badges for Features */
.feature-card__ai-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
    padding: var(--space-1) var(--space-2);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-muted);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
}

.feature-card__ai-badge--premium {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(139, 92, 246, 0.1));
    border-color: rgba(34, 211, 238, 0.3);
    color: var(--accent);
}

.feature-card__icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-5);
    color: var(--accent);
}

.feature-card__icon svg {
    width: 28px;
    height: 28px;
}

.feature-card h3 {
    margin-bottom: var(--space-3);
}

.feature-card p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.feature-card--highlight {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.08) 0%, rgba(6, 182, 212, 0.02) 100%);
    border-color: rgba(34, 211, 238, 0.2);
}

.feature-card--highlight:hover {
    border-color: rgba(34, 211, 238, 0.4);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(34, 211, 238, 0.15);
}

/* ==========================================================================
   WORKFLOW / STEPS SECTION
   ========================================================================== */

.steps-section {
    background: linear-gradient(180deg, var(--glass) 0%, transparent 100%);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
}

.step-card {
    display: flex;
    gap: var(--space-5);
    padding: var(--space-6);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    transition: all var(--duration-normal) var(--ease-out);
}

.step-card:hover {
    border-color: var(--glass-border-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.step-card__number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-accent);
    border-radius: var(--radius-lg);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--bg-deep);
    flex-shrink: 0;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.2);
}

.step-card__content h4 {
    margin-bottom: var(--space-2);
}

.step-card__content p {
    font-size: var(--text-sm);
}

/* ==========================================================================
   PRICING SECTION
   ========================================================================== */

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--space-6);
    max-width: 900px;
    margin: 0 auto;
}

.pricing-card {
    padding: var(--space-8);
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    position: relative;
    transition: all var(--duration-normal) var(--ease-out);
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.pricing-card--featured {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.1) 0%, rgba(6, 182, 212, 0.02) 100%);
    border-color: rgba(34, 211, 238, 0.3);
}

.pricing-card--featured:hover {
    border-color: rgba(34, 211, 238, 0.5);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.pricing-card__badge {
    position: absolute;
    top: -12px;
    right: var(--space-6);
    padding: var(--space-2) var(--space-4);
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--bg-deep);
    box-shadow: var(--shadow-md);
}

.pricing-card__header {
    margin-bottom: var(--space-6);
}

.pricing-card__name {
    font-size: var(--text-xl);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.pricing-card__price {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
}

.pricing-card__amount {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--text-primary);
}

.pricing-card__period {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* AI Model Badge for Pricing Cards */
.pricing-card__ai-model {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-3);
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-muted);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
}

.pricing-card__ai-model svg {
    opacity: 0.7;
}

.pricing-card__ai-model--premium {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.15), rgba(139, 92, 246, 0.15));
    border-color: rgba(34, 211, 238, 0.4);
    color: var(--accent);
}

.pricing-card__ai-model--premium svg {
    opacity: 1;
    color: var(--accent);
}

.pricing-card__features {
    list-style: none;
    margin-bottom: var(--space-8);
}

.pricing-card__features li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    border-bottom: 1px solid var(--glass-border);
}

.pricing-card__features li:last-child {
    border-bottom: none;
}

.pricing-card__features li::before {
    content: '';
    width: 18px;
    height: 18px;
    background: var(--success);
    border-radius: 50%;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23030712' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}

/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta-section {
    position: relative;
    overflow: hidden;
}

.cta-box {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.15) 0%, rgba(6, 182, 212, 0.05) 100%);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: var(--radius-2xl);
    padding: var(--space-12);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    box-shadow: var(--shadow-lg), 0 0 80px rgba(34, 211, 238, 0.1);
    position: relative;
    overflow: hidden;
}

.cta-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.cta-box__content h2 {
    margin-bottom: var(--space-3);
}

.cta-box__content p {
    max-width: 480px;
}

/* ==========================================================================
   UPLOAD FORM
   ========================================================================== */

.upload-section {
    padding-top: calc(var(--header-height) + var(--space-12));
}

.upload-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--space-8);
    align-items: start;
}

.upload-form {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
}

.form-section {
    margin-bottom: var(--space-8);
}

.form-section:last-child {
    margin-bottom: 0;
}

.form-section__header {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.form-section__number {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--accent);
    flex-shrink: 0;
}

.form-section__title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-1);
}

.form-section__subtitle {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Dropzone */
.dropzone {
    position: relative;
    padding: var(--space-10);
    background: var(--glass);
    border: 2px dashed var(--glass-border-strong);
    border-radius: var(--radius-xl);
    text-align: center;
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
}

.dropzone:hover,
.dropzone.dragover {
    border-color: var(--accent);
    background: var(--accent-subtle);
}

.dropzone input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
}

.dropzone__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: var(--radius-lg);
    color: var(--accent);
}

.dropzone__icon svg {
    width: 28px;
    height: 28px;
}

.dropzone__text {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.dropzone__hint {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* File selected state */
.dropzone.has-file {
    border-style: solid;
    border-color: var(--success);
    background: var(--success-subtle);
}

.dropzone__file {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.dropzone__file-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    text-align: left;
}

.dropzone__file-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success);
    border-radius: var(--radius-md);
    color: var(--bg-deep);
}

.dropzone__file-icon svg {
    width: 22px;
    height: 22px;
}

.dropzone__file-name {
    font-weight: 600;
    color: var(--text-primary);
}

.dropzone__file-size {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.dropzone__remove {
    padding: var(--space-2) var(--space-4);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast);
}

.dropzone__remove:hover {
    background: var(--error-subtle);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--error-light);
}

/* Textarea */
.textarea {
    width: 100%;
    min-height: 220px;
    padding: var(--space-5);
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-primary);
    resize: vertical;
    transition: all var(--duration-fast);
}

.textarea::placeholder {
    color: var(--text-subtle);
}

.textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

/* Input fields */
.input {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--text-primary);
    transition: all var(--duration-fast);
}

.input::placeholder {
    color: var(--text-subtle);
}

.input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.1);
}

.input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Input sizes */
.input-sm {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
}

.input-lg {
    padding: var(--space-4) var(--space-5);
    font-size: var(--text-base);
}

.textarea-hint {
    display: block;
    margin-top: var(--space-2);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* Form submit */
.form-submit {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding-top: var(--space-6);
    border-top: 1px solid var(--glass-border);
}

.form-submit__note {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Form error */
.form-error {
    margin-top: var(--space-4);
    padding: var(--space-4);
    background: var(--error-subtle);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-lg);
    color: var(--error-light);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    animation: shake 0.4s var(--ease-out);
}

.form-success {
    margin-top: var(--space-4);
    padding: var(--space-4);
    background: var(--success-subtle);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: var(--radius-lg);
    color: var(--success-light);
    font-size: var(--text-sm);
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}

/* Upload sidebar */
.upload-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
}

.info-card h4 {
    margin-bottom: var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.info-card ul {
    list-style: none;
}

.info-card li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.info-card li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 8px;
}

/* ==========================================================================
   RESULTS PAGE
   ========================================================================== */

.results-section {
    padding-top: calc(var(--header-height) + var(--space-12));
}

/* Loading state */
.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-16);
    text-align: center;
}

.loader {
    width: 48px;
    height: 48px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: var(--space-6);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-state p {
    color: var(--text-muted);
    font-family: var(--font-mono);
}

/* Score banner */
.score-banner {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.1) 0%, rgba(6, 182, 212, 0.02) 100%);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    margin-bottom: var(--space-8);
    box-shadow: var(--shadow-lg), 0 0 60px rgba(34, 211, 238, 0.1);
    position: relative;
    overflow: hidden;
}

.score-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.score-display {
    display: flex;
    align-items: center;
    gap: var(--space-8);
}

/* Score ring */
.score-ring {
    position: relative;
    width: 140px;
    height: 140px;
    flex-shrink: 0;
}

.score-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.score-ring__bg {
    fill: none;
    stroke: var(--glass-strong);
    stroke-width: 10;
}

.score-ring__fill {
    fill: none;
    stroke: var(--accent);
    stroke-width: 10;
    stroke-linecap: round;
    stroke-dasharray: 0;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 1.2s var(--ease-out);
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.4));
}

.score-ring__value {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.score-ring__number {
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.score-ring__label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Score levels */
.score-ring.score-high .score-ring__fill { stroke: var(--success); filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.4)); }
.score-ring.score-good .score-ring__fill { stroke: var(--accent); }
.score-ring.score-fair .score-ring__fill { stroke: var(--warning); filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.4)); }
.score-ring.score-low .score-ring__fill { stroke: var(--error); filter: drop-shadow(0 0 8px rgba(239, 68, 68, 0.4)); }

.score-meta {
    flex: 1;
}

.score-meta .pill {
    margin-bottom: var(--space-3);
}

.score-summary {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    margin-bottom: var(--space-4);
}

.score-note {
    font-size: var(--text-sm);
    color: var(--text-muted);
    padding-top: var(--space-4);
    border-top: 1px solid var(--glass-border);
}

/* Analysis grid */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-bottom: var(--space-8);
}

.analysis-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: all var(--duration-normal) var(--ease-out);
}

.analysis-card:hover {
    border-color: var(--glass-border-strong);
}

.analysis-card.wide {
    grid-column: 1 / -1;
}

.analysis-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-4);
    margin-bottom: var(--space-5);
}

.analysis-card__title {
    font-size: var(--text-lg);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.analysis-card__subtitle {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* Breakdown bars */
.breakdown-bars {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.bar-item {
    display: grid;
    gap: var(--space-2);
}

.bar-item__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bar-item__label {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
}

.bar-item__value {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.bar-item__track {
    height: 8px;
    background: var(--glass-strong);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.bar-item__fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: inherit;
    width: 0;
    transition: width 0.8s var(--ease-out);
}

/* Keywords */
.keywords-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.keyword-tag {
    padding: var(--space-2) var(--space-3);
    background: var(--accent-subtle);
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--accent-light);
    transition: all var(--duration-fast);
}

.keyword-tag:hover {
    background: rgba(34, 211, 238, 0.2);
    border-color: rgba(34, 211, 238, 0.4);
}

/* Findings */
.findings-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.finding {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-3);
    background: var(--glass);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
}

.finding__icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.finding--positive .finding__icon {
    background: var(--success);
}

.finding--warning .finding__icon {
    background: var(--warning);
}

.finding--info .finding__icon {
    background: var(--info);
}

.finding__icon svg {
    width: 12px;
    height: 12px;
    color: var(--bg-deep);
}

.finding__text {
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Rewrites */
.rewrites-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.rewrite-item {
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.rewrite-item__before,
.rewrite-item__after {
    padding: var(--space-4);
}

.rewrite-item__before {
    border-bottom: 1px solid var(--glass-border);
}

.rewrite-item__label {
    display: inline-flex;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-2);
}

.rewrite-item__before .rewrite-item__label {
    background: var(--glass-strong);
    color: var(--text-muted);
}

.rewrite-item__after .rewrite-item__label {
    background: var(--accent-subtle);
    color: var(--accent);
}

.rewrite-item__text {
    font-size: var(--text-sm);
    line-height: 1.6;
}

.rewrite-item__before .rewrite-item__text {
    color: var(--text-muted);
}

.rewrite-item__after .rewrite-item__text {
    color: var(--text-primary);
}

/* Analysis columns - Feedback Cards Layout */
.analysis-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}

/* Scrollable variant - each column scrolls independently */
.analysis-columns--scrollable {
    /* No scroll on container - individual columns scroll */
}

/* Compact card variant */
.analysis-card--compact {
    margin-bottom: var(--space-6);
}

@media (max-width: 1024px) {
    .analysis-columns {
        grid-template-columns: repeat(2, 1fr);
    }
    .analysis-columns .feedback-column:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .analysis-columns {
        grid-template-columns: 1fr;
    }
    .analysis-columns .feedback-column:last-child {
        grid-column: span 1;
    }
    /* On mobile, limit individual card height for better scroll experience */
    .feedback-column__items {
        max-height: 280px;
    }
}

/* Feedback Column Cards */
.feedback-column {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-5);
    display: flex;
    flex-direction: column;
}

.feedback-column:hover {
    border-color: var(--glass-border-strong);
}

.feedback-column__header {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-5);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--glass-border);
}

.feedback-column__icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-base);
    font-weight: 600;
    flex-shrink: 0;
}

.feedback-column__icon--strengths {
    background: rgba(16, 185, 129, 0.15);
    color: #10b981;
}

.feedback-column__icon--improvements {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
}

.feedback-column__icon--next-steps {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
}

.feedback-column__icon--summary {
    background: rgba(139, 92, 246, 0.15);
    color: #8b5cf6;
}

.feedback-column__title {
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.feedback-column__items {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    flex-grow: 1;
    max-height: 350px;
    overflow-y: auto;
    padding-right: var(--space-2);
}

/* Scrollbar styling for individual column scrolls */
.feedback-column__items::-webkit-scrollbar {
    width: 6px;
}

.feedback-column__items::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.feedback-column__items::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 3px;
}

.feedback-column__items::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Individual Feedback Items */
.feedback-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    transition: all var(--duration-fast) var(--ease-out);
}

.feedback-item:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
}

.feedback-item__header {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--accent);
    margin-bottom: var(--space-2);
    line-height: 1.4;
}

.feedback-column--strengths .feedback-item__header {
    color: #10b981;
}

.feedback-column--improvements .feedback-item__header {
    color: #fbbf24;
}

.feedback-column--next-steps .feedback-item__header {
    color: #3b82f6;
}

.feedback-item__body {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Legacy support for old analysis-col class */
.analysis-col h4 {
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.analysis-col ul {
    list-style: none;
}

.analysis-col li {
    position: relative;
    padding: var(--space-2) 0 var(--space-2) var(--space-5);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.analysis-col li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12px;
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

/* Results CTA */
.results-cta {
    margin-bottom: var(--space-8);
}

.results-cta-box {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-6);
}

.results-cta-box--success {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.1) 0%, rgba(6, 182, 212, 0.02) 100%);
    border-color: rgba(34, 211, 238, 0.3);
    box-shadow: 0 0 40px rgba(34, 211, 238, 0.1);
}

.results-cta__content {
    flex: 1;
}

.results-cta__content .pill {
    margin-bottom: var(--space-4);
    display: inline-flex;
}

.results-cta__title {
    font-size: var(--text-lg);
    font-weight: 600;
    margin-bottom: var(--space-2);
}

.results-cta__features {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2) var(--space-4);
    margin-top: var(--space-3);
}

.results-cta__features li {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.results-cta__features li::before {
    content: '';
    width: 16px;
    height: 16px;
    background: var(--success);
    border-radius: 50%;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23030712' stroke-width='3'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M5 13l4 4L19 7'/%3E%3C/svg%3E");
    background-size: 10px;
    background-repeat: no-repeat;
    background-position: center;
}

.results-cta__action {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: var(--space-2);
    text-align: right;
}

.results-cta__price {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--text-primary);
}

.results-cta__note {
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.results-footer {
    text-align: center;
    padding-top: var(--space-8);
    border-top: 1px solid var(--glass-border);
}

/* Error state */
.error-state {
    background: var(--error-subtle);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    text-align: center;
}

.error-state h2 {
    color: var(--error-light);
    margin-bottom: var(--space-3);
}

.error-state p {
    margin-bottom: var(--space-6);
}

/* No data placeholder */
.no-data {
    color: var(--text-muted);
    font-style: italic;
    font-size: var(--text-sm);
}

/* ==========================================================================
   TOKEN LOOKUP STATE
   ========================================================================== */

.token-lookup-state {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 60vh;
    padding: var(--space-8);
}

.token-lookup-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-10);
    max-width: 520px;
    width: 100%;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.token-lookup-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
}

.token-lookup-card h2 {
    font-size: var(--text-3xl);
    font-weight: 700;
    color: var(--text-primary);
    margin: var(--space-4) 0 var(--space-3);
}

.token-lookup-card__desc {
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    line-height: 1.6;
    font-size: var(--text-base);
}

.token-lookup-form {
    text-align: left;
    margin-bottom: var(--space-4);
}

.token-lookup-label {
    display: block;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.token-lookup-input-wrap {
    display: flex;
    gap: var(--space-3);
}

.token-lookup-input {
    flex: 1;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    font-size: var(--text-sm);
    font-family: var(--font-mono);
    color: var(--text-primary);
    transition: all var(--duration-fast) var(--ease-out);
}

.token-lookup-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-subtle);
}

.token-lookup-input::placeholder {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
}

.token-lookup-submit {
    white-space: nowrap;
    padding: var(--space-3) var(--space-5);
}

.token-lookup-status {
    font-size: var(--text-sm);
    min-height: 24px;
    margin-top: var(--space-3);
    text-align: center;
}

.token-lookup-status--error {
    color: var(--error-light);
}

.token-lookup-status--success {
    color: var(--success-light);
}

.token-lookup-status--loading {
    color: var(--accent);
}

.token-lookup-saved {
    margin-top: var(--space-6);
}

.token-lookup-divider {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.token-lookup-divider::before,
.token-lookup-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--glass-border);
}

.token-lookup-divider span {
    color: var(--text-muted);
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.token-lookup-saved-btn {
    width: 100%;
    justify-content: center;
}

.token-lookup-saved-hint {
    margin-top: var(--space-2);
    font-size: var(--text-xs);
    color: var(--success);
    text-align: center;
}

.token-lookup-footer {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-4);
}

.token-lookup-footer__text {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

@media (max-width: 640px) {
    .token-lookup-input-wrap {
        flex-direction: column;
    }

    .token-lookup-submit {
        width: 100%;
    }
}

/* ==========================================================================
   STATUS PAGES (Success/Cancel)
   ========================================================================== */

.status-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--header-height) + var(--space-8)) var(--space-4) var(--space-8);
}

.status-section > .wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.status-card {
    max-width: 480px;
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-2xl);
    padding: var(--space-10);
    text-align: center;
    box-shadow: var(--shadow-xl);
}

.status-card--success {
    border-color: rgba(16, 185, 129, 0.3);
    box-shadow: var(--shadow-xl), 0 0 60px rgba(16, 185, 129, 0.1);
}

.status-card--warning {
    border-color: rgba(245, 158, 11, 0.3);
}

.status-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-6);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-xl);
}

.status-icon--success {
    background: var(--success-subtle);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: var(--success);
}

.status-icon--warning {
    background: var(--warning-subtle);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: var(--warning);
}

.status-icon svg {
    width: 40px;
    height: 40px;
}

.status-card h1 {
    font-size: var(--text-2xl);
    margin-bottom: var(--space-3);
}

.status-card > p {
    margin-bottom: var(--space-6);
}

.status-actions {
    display: flex;
    gap: var(--space-3);
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: var(--space-6);
}

.token-display {
    background: var(--bg-elevated);
    border: 1px dashed var(--glass-border-strong);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.token-display__label {
    display: block;
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

.token-display__value {
    display: block;
    padding: var(--space-3);
    background: var(--bg-deep);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-primary);
    word-break: break-all;
    margin-bottom: var(--space-3);
}

.token-display__copy {
    padding: var(--space-2) var(--space-4);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast);
}

.token-display__copy:hover {
    background: var(--glass-strong);
    color: var(--text-primary);
}

.status-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.status-note svg {
    flex-shrink: 0;
}

/* Status card content sections */
.status-card__content {
    margin-bottom: var(--space-8);
}

.status-card__content .pill {
    margin-bottom: var(--space-3);
}

.status-card__content h1 {
    font-size: var(--text-3xl);
    margin-bottom: var(--space-3);
}

.status-card__content p {
    color: var(--text-secondary);
    max-width: 360px;
    margin: 0 auto;
}

.status-card__token {
    padding-top: var(--space-6);
    border-top: 1px solid var(--glass-border);
}

.status-card__policy {
    margin-top: var(--space-6);
    padding-top: var(--space-4);
    border-top: 1px solid var(--glass-border);
    text-align: center;
}

.status-card__policy p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-2);
}

.status-card__policy a {
    color: var(--accent);
    text-decoration: none;
}

.status-card__policy a:hover {
    text-decoration: underline;
}

.status-card__policy .policy-links {
    font-size: var(--text-xs);
}

/* Success animation */
.status-icon--success {
    animation: successPop 0.5s var(--ease-spring);
}

@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Confetti container */
.confetti-container {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    overflow: hidden;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */

.site-footer {
    background: var(--bg-elevated);
    border-top: 1px solid var(--glass-border);
    padding: var(--space-16) 0 var(--space-8);
    margin-top: var(--space-16);
}

.footer__grid {
    display: grid;
    grid-template-columns: 1.5fr repeat(4, auto);
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.footer__brand {
    max-width: 300px;
}

.footer__brand .brand {
    margin-bottom: var(--space-4);
}

.footer__brand p {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.footer__links h4 {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.footer__links a {
    display: block;
    padding: var(--space-2) 0;
    font-size: var(--text-sm);
    color: var(--text-muted);
    transition: color var(--duration-fast);
}

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

.footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
    padding-top: var(--space-8);
    border-top: 1px solid var(--glass-border);
}

.footer__left {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.footer__copyright {
    font-size: var(--text-sm);
    color: var(--text-subtle);
}

.footer__badges {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.footer__payments {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.footer__payments svg {
    width: 32px;
    height: 20px;
    border-radius: 3px;
    opacity: 0.8;
    transition: opacity var(--duration-fast);
}

.footer__payments svg:hover {
    opacity: 1;
}

.footer__socials {
    display: flex;
    gap: var(--space-3);
}

.footer__socials a {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    color: var(--text-muted);
    transition: all var(--duration-fast);
}

.footer__socials a:hover {
    background: var(--accent-subtle);
    border-color: rgba(34, 211, 238, 0.3);
    color: var(--accent);
}

.footer__socials svg {
    width: 18px;
    height: 18px;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */

.toast-container {
    position: fixed;
    top: var(--space-4);
    right: var(--space-4);
    z-index: var(--z-toast);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    pointer-events: none;
}

.toast {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    box-shadow: var(--shadow-lg);
    pointer-events: auto;
    animation: toastIn 0.3s var(--ease-out);
    max-width: 400px;
}

.toast--success {
    border-color: rgba(16, 185, 129, 0.3);
}

.toast--error {
    border-color: rgba(239, 68, 68, 0.3);
}

@keyframes toastIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.toast__icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.toast--success .toast__icon {
    background: var(--success);
    color: var(--bg-deep);
}

.toast--error .toast__icon {
    background: var(--error);
    color: var(--bg-deep);
}

.toast__message {
    flex: 1;
    font-size: var(--text-sm);
    color: var(--text-primary);
}

.toast__close {
    padding: var(--space-1);
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--duration-fast);
}

.toast__close:hover {
    background: var(--glass);
    color: var(--text-primary);
}

/* ==========================================================================
   SCROLL ANIMATIONS
   ========================================================================== */

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 80ms; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 160ms; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 240ms; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 320ms; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 400ms; }
.stagger-children.visible > *:nth-child(7) { transition-delay: 480ms; }
.stagger-children.visible > *:nth-child(8) { transition-delay: 560ms; }
.stagger-children.visible > *:nth-child(9) { transition-delay: 640ms; }
.stagger-children.visible > *:nth-child(10) { transition-delay: 720ms; }

.stagger-children.visible > * {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   LEGAL PAGES (Privacy, Terms)
   ========================================================================== */

.legal-section {
    padding: var(--space-16) 0;
}

.wrap--narrow {
    max-width: 800px;
}

.legal-header {
    text-align: center;
    margin-bottom: var(--space-12);
}

.legal-header h1 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-2);
}

.legal-updated {
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.legal-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

.legal-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
}

.legal-card h2 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--glass-border);
}

.legal-card h3 {
    font-size: var(--text-lg);
    margin-top: var(--space-4);
    margin-bottom: var(--space-2);
    color: var(--text-primary);
}

.legal-card p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-3);
}

.legal-card p:last-child {
    margin-bottom: 0;
}

.legal-card ul {
    margin: var(--space-3) 0;
    padding-left: var(--space-6);
}

.legal-card li {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-2);
}

.legal-card li:last-child {
    margin-bottom: 0;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: var(--space-4) 0;
}

.legal-table th,
.legal-table td {
    padding: var(--space-3) var(--space-4);
    text-align: left;
    border-bottom: 1px solid var(--glass-border);
}

.legal-table th {
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-weight: 600;
    font-size: var(--text-sm);
}

.legal-table td {
    color: var(--text-secondary);
}

.legal-highlight {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.1), rgba(6, 182, 212, 0.05));
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    margin: var(--space-4) 0;
}

.legal-highlight h3 {
    margin-top: 0;
    color: var(--accent);
}

.legal-highlight--warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(245, 158, 11, 0.05));
    border-color: rgba(245, 158, 11, 0.3);
}

.legal-highlight--warning p {
    color: var(--warning);
    font-weight: 500;
}

.legal-footer {
    margin-top: var(--space-12);
    text-align: center;
}

/* ==========================================================================
   METHODOLOGY NOTICE (Results Page)
   ========================================================================== */

.methodology-notice {
    display: flex;
    gap: var(--space-4);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(6, 182, 212, 0.04));
    border: 1px solid rgba(34, 211, 238, 0.2);
    border-radius: var(--radius-lg);
    padding: var(--space-5);
    margin-bottom: var(--space-6);
}

.methodology-notice__icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: var(--radius-md);
    color: var(--bg-deep);
}

.methodology-notice__icon svg {
    width: 20px;
    height: 20px;
}

.methodology-notice__content h4 {
    font-size: var(--text-base);
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.methodology-notice__content p {
    font-size: var(--text-sm);
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: var(--space-2);
}

.methodology-notice__content p:last-child {
    margin-bottom: 0;
}

.methodology-notice__content strong {
    color: var(--accent);
}

@media (max-width: 640px) {
    .methodology-notice {
        flex-direction: column;
        text-align: center;
    }

    .methodology-notice__icon {
        margin: 0 auto;
    }
}

/* ==========================================================================
   UTILITY CLASSES
   ========================================================================== */

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.hidden {
    display: none !important;
}

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

.text-left {
    text-align: left;
}

.text-right {
    text-align: right;
}

.mt-auto {
    margin-top: auto;
}

.mb-0 {
    margin-bottom: 0;
}

/* Spacing utilities */
.mt-1 { margin-top: var(--space-1); }
.mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }

.mb-1 { margin-bottom: var(--space-1); }
.mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

.py-1 { padding-top: var(--space-1); padding-bottom: var(--space-1); }
.py-2 { padding-top: var(--space-2); padding-bottom: var(--space-2); }
.py-3 { padding-top: var(--space-3); padding-bottom: var(--space-3); }
.py-4 { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-6 { padding-top: var(--space-6); padding-bottom: var(--space-6); }
.py-8 { padding-top: var(--space-8); padding-bottom: var(--space-8); }

.px-1 { padding-left: var(--space-1); padding-right: var(--space-1); }
.px-2 { padding-left: var(--space-2); padding-right: var(--space-2); }
.px-3 { padding-left: var(--space-3); padding-right: var(--space-3); }
.px-4 { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6 { padding-left: var(--space-6); padding-right: var(--space-6); }
.px-8 { padding-left: var(--space-8); padding-right: var(--space-8); }

/* Gap utilities */
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

/* Display utilities */
.block { display: block; }
.inline-block { display: inline-block; }
.inline { display: inline; }
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }

/* Flexbox utilities */
.flex-row { flex-direction: row; }
.flex-col { flex-direction: column; }
.items-start { align-items: flex-start; }
.items-center { align-items: center; }
.items-end { align-items: flex-end; }
.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1; }
.flex-shrink-0 { flex-shrink: 0; }

/* Icon size utilities */
.icon-xs { width: var(--icon-xs); height: var(--icon-xs); }
.icon-sm { width: var(--icon-sm); height: var(--icon-sm); }
.icon-md { width: var(--icon-md); height: var(--icon-md); }
.icon-lg { width: var(--icon-lg); height: var(--icon-lg); }
.icon-xl { width: var(--icon-xl); height: var(--icon-xl); }
.icon-2xl { width: var(--icon-2xl); height: var(--icon-2xl); }

/* Width utilities */
.w-full { width: 100%; }
.w-auto { width: auto; }
.max-w-full { max-width: 100%; }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */

@media (max-width: 1024px) {
    .hero__grid {
        grid-template-columns: 1fr;
        gap: var(--space-12);
    }

    .hero__preview {
        max-width: 480px;
        margin: 0 auto;
    }

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

    .upload-sidebar {
        order: -1;
    }

    .cta-box {
        flex-direction: column;
        text-align: center;
    }

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

    .footer__badges {
        align-items: flex-start;
    }
}

@media (max-width: 768px) {
    .section {
        padding: var(--space-12) 0;
    }

    .nav__links {
        position: fixed;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--glass-border);
        padding: var(--space-4);
        flex-direction: column;
        gap: var(--space-2);
        display: none;
        box-shadow: var(--shadow-lg);
    }

    .nav__links.open {
        display: flex;
    }

    .nav__toggle {
        display: flex;
    }

    .nav__cta {
        margin-left: 0;
        width: 100%;
    }

    .hero {
        min-height: auto;
        padding: calc(var(--header-height) + var(--space-10)) 0 var(--space-10);
    }

    .hero__actions {
        flex-direction: column;
    }

    .hero__actions .btn {
        width: 100%;
    }

    .preview-card {
        padding: var(--space-6);
    }

    .preview-card__stats {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    /* Preview card responsive */
    .preview-card--results {
        max-width: 100%;
    }

    .preview-stats-row {
        margin: 0 calc(-1 * var(--space-4));
        padding: var(--space-3);
    }

    .features-grid,
    .steps-grid,
    .pricing-grid,
    .analysis-grid {
        grid-template-columns: 1fr;
    }

    .analysis-card.wide {
        grid-column: auto;
    }

    .score-display {
        flex-direction: column;
        text-align: center;
    }

    .results-cta-box {
        flex-direction: column;
        text-align: center;
    }

    .results-cta__action {
        align-items: center;
        text-align: center;
    }

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

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .wrap {
        padding: 0 var(--space-4);
    }

    .dropzone {
        padding: var(--space-6);
    }

    .status-actions {
        flex-direction: column;
    }

    .status-actions .btn {
        width: 100%;
    }

    .status-card {
        padding: var(--space-6);
    }

    .status-icon {
        width: 64px;
        height: 64px;
    }

    .status-icon svg {
        width: 32px;
        height: 32px;
    }
}

/* ==========================================================================
   ANALYSIS GRID - 3 COLUMN LAYOUT
   ========================================================================== */

.analysis-grid-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
    margin-bottom: var(--space-6);
}

.analysis-grid-3col .analysis-card {
    min-height: 280px;
    display: flex;
    flex-direction: column;
}

.analysis-grid-3col .analysis-card__header {
    flex-shrink: 0;
}

.analysis-grid-3col .breakdown-bars,
.analysis-grid-3col .keywords-grid,
.analysis-grid-3col .findings-list {
    flex: 1;
    overflow-y: auto;
    max-height: 220px;
}

/* Ensure keywords don't stretch to fill container */
.analysis-grid-3col .keywords-grid {
    align-content: flex-start;
    align-items: flex-start;
}

.keywords-grid .keyword-tag {
    flex-shrink: 0;
    flex-grow: 0;
    height: auto;
    width: auto;
}

@media (max-width: 1024px) {
    .analysis-grid-3col {
        grid-template-columns: repeat(2, 1fr);
    }

    .analysis-grid-3col .analysis-card:last-child {
        grid-column: span 2;
    }
}

@media (max-width: 640px) {
    .analysis-grid-3col {
        grid-template-columns: 1fr;
    }

    .analysis-grid-3col .analysis-card:last-child {
        grid-column: span 1;
    }

    .analysis-grid-3col .analysis-card {
        min-height: auto;
    }
}

/* ==========================================================================
   DOCUMENT PREVIEW (Upload Page)
   ========================================================================== */

.doc-preview {
    text-align: left;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border-strong);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.doc-preview__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4);
    background: var(--bg-card);
    border-bottom: 1px solid var(--glass-border);
}

.doc-preview__file-info {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.doc-preview__file-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: var(--radius-md);
    color: var(--accent);
}

.doc-preview__file-icon svg {
    width: 20px;
    height: 20px;
}

.doc-preview__file-name {
    display: block;
    font-weight: 600;
    color: var(--text-primary);
    font-size: var(--text-sm);
}

.doc-preview__file-size {
    display: block;
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.doc-preview__remove {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    color: var(--text-muted);
    cursor: pointer;
    transition: all var(--duration-fast);
}

.doc-preview__remove svg {
    width: 14px;
    height: 14px;
}

.doc-preview__remove:hover {
    background: var(--error-subtle);
    border-color: rgba(239, 68, 68, 0.3);
    color: var(--error-light);
}

.doc-preview__content {
    max-height: 300px;
    overflow-y: auto;
    padding: var(--space-4);
}

.doc-preview__loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    gap: var(--space-3);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.doc-preview__spinner {
    width: 32px;
    height: 32px;
    border: 3px solid var(--glass-border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.doc-preview__error,
.doc-preview__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
    gap: var(--space-2);
    color: var(--text-muted);
    font-size: var(--text-sm);
    text-align: center;
}

.doc-preview__error svg {
    width: 24px;
    height: 24px;
    color: var(--warning);
}

.doc-preview__document {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    line-height: 1.8;
}

.doc-line {
    padding: 2px 0;
    color: var(--text-secondary);
    animation: docLineIn 0.3s ease forwards;
    opacity: 0;
    transform: translateX(-10px);
}

@keyframes docLineIn {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.doc-line--name {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.doc-line--section {
    font-size: var(--text-xs);
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--space-3);
    margin-bottom: var(--space-1);
    padding-bottom: var(--space-1);
    border-bottom: 1px solid var(--glass-border);
}

.doc-line--bullet {
    padding-left: var(--space-4);
    position: relative;
}

.doc-line--bullet::before {
    content: '•';
    position: absolute;
    left: var(--space-2);
    color: var(--accent);
}

.doc-preview__footer {
    padding: var(--space-3) var(--space-4);
    background: var(--bg-card);
    border-top: 1px solid var(--glass-border);
}

.doc-preview__status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--success);
}

.doc-preview__status svg {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   AI CONSOLE (Results Page)
   ========================================================================== */

.ai-console {
    background: var(--bg-deep);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-8);
    box-shadow: var(--shadow-lg);
}

.ai-console__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-3) var(--space-4);
    background: var(--bg-card);
    border-bottom: 1px solid var(--glass-border);
}

.ai-console__title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-primary);
}

.ai-console__icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border-radius: var(--radius-md);
    color: var(--accent);
}

.ai-console__icon svg {
    width: 16px;
    height: 16px;
}

.ai-console__status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

.ai-console__status-dot {
    width: 8px;
    height: 8px;
    background: var(--warning);
    border-radius: 50%;
    animation: pulse 1.5s infinite;
}

.ai-console--complete .ai-console__status-dot {
    background: var(--success);
    animation: none;
}

.ai-console__status-dot--active {
    background: var(--accent);
    animation: pulse 1s infinite;
}

/* AI Console Model Badge */
.ai-console__model-badge {
    margin-left: var(--space-2);
    padding: 2px var(--space-2);
    font-size: var(--text-xs);
    font-weight: 600;
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(139, 92, 246, 0.2));
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: var(--radius-sm);
    color: var(--accent);
}

/* Loading Console State */
.ai-console--loading {
    width: 700px;
    max-width: 100%;
    margin: 0 auto;
}

.ai-console--loading .ai-console__status {
    min-width: 140px;
    justify-content: flex-end;
}

.ai-console--loading .ai-console__body {
    min-height: 300px;
    max-height: 400px;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.ai-console__body {
    padding: var(--space-4);
    max-height: 280px;
    overflow-y: auto;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    line-height: 1.8;
}

.console-line {
    display: flex;
    align-items: flex-start;
    gap: var(--space-2);
    padding: 2px 0;
    animation: consoleFadeIn 0.2s ease forwards;
}

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

.console-prefix {
    flex-shrink: 0;
    width: 20px;
    text-align: center;
}

.prefix-char {
    color: var(--text-muted);
}

.prefix-char--success { color: var(--success); }
.prefix-char--warning { color: var(--warning); }
.prefix-char--error { color: var(--error); }
.prefix-char--info { color: var(--info); }
.prefix-char--ai { color: var(--accent); }
.prefix-char--result { color: var(--accent-light); font-weight: 700; }

.console-text {
    color: var(--text-secondary);
}

.console-line--system .console-text { color: var(--text-muted); }
.console-line--success .console-text { color: var(--success-light); }
.console-line--warning .console-text { color: var(--warning-light); }
.console-line--error .console-text { color: var(--error-light); }
.console-line--ai .console-text { color: var(--accent-light); }
.console-line--result .console-text {
    color: var(--text-primary);
    font-weight: 600;
}

/* ==========================================================================
   UPGRADE PROMPT (Free Users)
   ========================================================================== */

.upgrade-prompt {
    margin-bottom: var(--space-8);
}

.upgrade-prompt__card {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(34, 211, 238, 0.05) 100%);
    border: 2px solid var(--accent-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-10) var(--space-8);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.upgrade-prompt__card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
}

.upgrade-prompt__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-5);
    background: var(--accent-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.upgrade-prompt__icon svg {
    width: 32px;
    height: 32px;
    color: var(--accent);
}

.upgrade-prompt__title {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-3);
}

.upgrade-prompt__description {
    font-size: var(--text-base);
    color: var(--text-secondary);
    margin-bottom: var(--space-6);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.upgrade-prompt__features {
    list-style: none;
    padding: 0;
    margin: 0 auto var(--space-8);
    max-width: 400px;
    text-align: left;
}

.upgrade-prompt__features li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    border-bottom: 1px solid var(--glass-border);
}

.upgrade-prompt__features li:last-child {
    border-bottom: none;
}

.upgrade-prompt__features svg {
    width: 18px;
    height: 18px;
    color: var(--success);
    flex-shrink: 0;
}

.upgrade-prompt__btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-lg);
    padding: var(--space-4) var(--space-8);
}

.upgrade-prompt__btn svg {
    width: 20px;
    height: 20px;
}

.payment-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-4);
}

.payment-icons svg {
    width: 38px;
    height: 24px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.upgrade-prompt__note {
    margin-top: var(--space-3);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* ==========================================================================
   DOCUMENT COMPARISON (Results Page)
   ========================================================================== */

.doc-comparison {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: var(--space-8);
}

.doc-comparison__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) var(--space-5);
    border-bottom: 1px solid var(--glass-border);
}

.doc-comparison__title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-lg);
    font-weight: 600;
}

.doc-comparison__title svg {
    width: 22px;
    height: 22px;
    color: var(--accent);
}

.doc-comparison__toggle {
    display: flex;
    gap: var(--space-1);
    background: var(--bg-elevated);
    padding: var(--space-1);
    border-radius: var(--radius-md);
}

.toggle-btn {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration-fast);
}

.toggle-btn:hover {
    color: var(--text-secondary);
}

.toggle-btn--active {
    background: var(--accent-subtle);
    color: var(--accent);
}

.doc-comparison__body {
    padding: var(--space-4);
}

.doc-comparison__split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
}

.doc-panel {
    position: relative;
    background: var(--bg-elevated);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.doc-panel__label {
    padding: var(--space-3);
    border-bottom: 1px solid var(--glass-border);
}

.doc-panel__badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-size: var(--text-xs);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.doc-panel__badge--before {
    background: var(--glass-strong);
    color: var(--text-muted);
}

.doc-panel__badge--after {
    background: var(--accent-subtle);
    color: var(--accent);
}

.doc-panel__content {
    max-height: 400px;
    overflow-y: auto;
    padding: var(--space-4);
}

.doc-panel__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-8);
    color: var(--text-muted);
    font-size: var(--text-sm);
}

.doc-render {
    font-family: var(--font-mono);
    font-size: 11px;
    line-height: 1.7;
}

.doc-render__line {
    padding: 2px 0;
    color: var(--text-secondary);
}

.doc-render__line--empty {
    height: 12px;
}

.doc-render__line--name {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-primary);
}

.doc-render__line--section {
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--space-3);
    padding-bottom: var(--space-1);
    border-bottom: 1px solid var(--glass-border);
}

.doc-render__line--bullet {
    padding-left: var(--space-3);
}

.doc-render__line--changed {
    background: rgba(34, 211, 238, 0.1);
    border-left: 2px solid var(--accent);
    padding-left: var(--space-2);
    margin-left: -2px;
}

/* Blur Overlay for Free Users */
.doc-blur-overlay {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
        transparent 0%,
        rgba(10, 15, 30, 0.5) 20%,
        rgba(10, 15, 30, 0.85) 50%,
        rgba(10, 15, 30, 0.95) 100%
    );
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-6);
}

.doc-blur-overlay__content {
    text-align: center;
    max-width: 280px;
}

.doc-blur-overlay__icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-4);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-subtle);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: var(--radius-lg);
    color: var(--accent);
}

.doc-blur-overlay__icon svg {
    width: 28px;
    height: 28px;
}

.doc-blur-overlay h4 {
    font-size: var(--text-base);
    margin-bottom: var(--space-2);
}

.doc-blur-overlay p {
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

/* ==========================================================================
   TOKEN BOX (Shared Component)
   ========================================================================== */

.token-box {
    background: var(--bg-elevated);
    border: 1px dashed var(--glass-border-strong);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-3);
}

.token-box__header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-3);
}

.token-box__value {
    display: block;
    padding: var(--space-3);
    background: var(--bg-deep);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    color: var(--text-primary);
    word-break: break-all;
    margin-bottom: var(--space-3);
}

.token-box__copy {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: var(--glass);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--duration-fast);
}

.token-box__copy:hover {
    background: var(--accent-subtle);
    border-color: rgba(34, 211, 238, 0.3);
    color: var(--accent);
}

.token-hint {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    color: var(--text-muted);
}

/* ==========================================================================
   RESPONSIVE - New Components
   ========================================================================== */

@media (max-width: 768px) {
    .doc-comparison__split {
        grid-template-columns: 1fr;
    }

    .doc-comparison__header {
        flex-direction: column;
        gap: var(--space-3);
        align-items: flex-start;
    }

    .ai-console__body {
        max-height: 200px;
    }

    .doc-preview__content {
        max-height: 200px;
    }
}

/* ==========================================================================
   CUSTOM SCROLLBARS
   ========================================================================== */

/* Webkit (Chrome, Safari, Edge) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-elevated);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-hover) 100%);
    border-radius: var(--radius-full);
    border: 2px solid var(--bg-elevated);
    transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-light) 0%, var(--accent) 100%);
}

::-webkit-scrollbar-corner {
    background: var(--bg-elevated);
}

/* Thin scrollbars for smaller elements */
.doc-panel__content::-webkit-scrollbar,
.doc-preview__content::-webkit-scrollbar,
.ai-console__body::-webkit-scrollbar,
.keywords-grid::-webkit-scrollbar,
.findings-list::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.doc-panel__content::-webkit-scrollbar-thumb,
.doc-preview__content::-webkit-scrollbar-thumb,
.ai-console__body::-webkit-scrollbar-thumb,
.keywords-grid::-webkit-scrollbar-thumb,
.findings-list::-webkit-scrollbar-thumb {
    border-width: 1px;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--accent) var(--bg-elevated);
}

/* ==========================================================================
   COMPARISON SLIDER VIEW
   ========================================================================== */

.doc-comparison__slider {
    display: none;
    position: relative;
    height: 500px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--bg-elevated);
}

.doc-comparison__slider.active {
    display: block;
}

.doc-comparison__split.hidden {
    display: none;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slider-panel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.slider-panel--before {
    z-index: 1;
}

.slider-panel--after {
    z-index: 2;
    clip-path: inset(0 0 0 50%);
    background: var(--bg-card);
}

.slider-panel__label {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: var(--space-3);
    background: inherit;
    border-bottom: 1px solid var(--glass-border);
}

.slider-panel__content {
    padding: var(--space-4);
}

.slider-handle {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 4px;
    background: var(--accent);
    cursor: ew-resize;
    z-index: 20;
    transform: translateX(-50%);
    transition: width 0.15s ease, box-shadow 0.15s ease;
}

.slider-handle::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg), 0 0 20px var(--accent-glow);
}

.slider-handle::after {
    content: '⇔';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 16px;
    color: var(--bg-deep);
    font-weight: 700;
    z-index: 1;
}

.slider-handle:hover {
    width: 6px;
    box-shadow: 0 0 15px var(--accent-glow);
}

.slider-handle:active {
    width: 6px;
    box-shadow: 0 0 25px var(--accent-glow);
}

/* Slider panel badges */
.slider-panel .doc-panel__badge--before {
    background: var(--glass-strong);
    color: var(--text-muted);
}

.slider-panel .doc-panel__badge--after {
    background: var(--accent-subtle);
    color: var(--accent);
}

/* ==========================================================================
   COVER LETTER STYLES
   ========================================================================== */

.cover-letter-content {
    padding: var(--space-6);
    background: var(--glass);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
}

.cover-letter-document {
    font-family: var(--font-sans);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.cover-letter-section {
    margin-bottom: var(--space-6);
}

.cover-letter-section p {
    color: var(--text-primary);
    font-size: var(--text-base);
    margin-bottom: var(--space-4);
}

.cover-letter-section p:last-child {
    margin-bottom: 0;
}

.cover-letter-section--opening {
    padding-bottom: var(--space-4);
}

.cover-letter-section--experience {
    padding: var(--space-4) 0;
}

.cover-letter-section--value {
    padding: var(--space-4) 0;
}

.cover-letter-section--closing {
    padding-top: var(--space-4);
}

.cover-letter-signoff {
    margin-top: var(--space-6) !important;
    font-weight: 500;
}

.cover-letter-signature {
    font-style: italic;
    color: var(--text-secondary);
}

.cover-letter-disclaimer {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4);
    margin-top: var(--space-4);
    background: var(--success-subtle);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    color: var(--success);
}

.cover-letter-disclaimer svg {
    flex-shrink: 0;
}

/* Cover letter card header with copy button */
#cover-letter-card .analysis-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#cover-letter-card .analysis-card__title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

#cover-letter-card .analysis-card__title svg {
    color: var(--accent);
}

.cover-letter-actions {
    display: flex;
    gap: var(--space-2);
}

/* New integrated cover letter format */
.cover-letter {
    font-family: var(--font-sans);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
    padding: var(--space-4);
}

.cover-letter p {
    color: var(--text-primary);
    font-size: var(--text-base);
    margin-bottom: var(--space-4);
}

.cover-letter .cl-greeting {
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    font-size: var(--text-lg);
}

.cover-letter .cl-opening {
    margin-bottom: var(--space-5);
}

.cover-letter .cl-body {
    margin-bottom: var(--space-5);
    text-align: justify;
}

.cover-letter .cl-cta {
    margin-top: var(--space-5);
    margin-bottom: var(--space-4);
}

.cover-letter .cl-signoff {
    margin-top: var(--space-6);
    font-weight: 500;
}

.cover-letter .cl-signoff strong {
    display: block;
    margin-top: var(--space-2);
    color: var(--text-secondary);
    font-style: italic;
}

/* ==========================================================================
   OPTIMIZED RESUME CARD STYLES
   ========================================================================== */

#optimized-resume-card .analysis-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#optimized-resume-card .analysis-card__title {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

#optimized-resume-card .analysis-card__title svg {
    color: var(--accent);
}

.optimized-resume-content {
    padding: var(--space-6);
    background: var(--glass);
    border-radius: var(--radius-lg);
    border: 1px solid var(--glass-border);
    max-height: 600px;
    overflow-y: auto;
}

.resume-render {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.resume-render__line {
    padding: 2px 0;
    color: var(--text-primary);
}

.resume-render__line--empty {
    height: var(--space-3);
}

.resume-render__line--name {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--accent);
    margin-bottom: var(--space-2);
}

.resume-render__line--section {
    font-weight: 600;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: var(--space-4);
    margin-bottom: var(--space-2);
    padding-bottom: var(--space-1);
    border-bottom: 1px solid var(--glass-border);
}

.resume-render__line--bullet {
    padding-left: var(--space-4);
    position: relative;
}

.resume-render__line--bullet::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.7em;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

.resume-empty {
    text-align: center;
    padding: var(--space-8);
    color: var(--text-secondary);
}

/* Card spacing for paid results */
#optimized-resume-card,
#cover-letter-card {
    margin-bottom: var(--space-6);
}

/* Enhanced methodology notice (green style like disclaimer) */
.methodology-notice--enhanced {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: var(--success-subtle);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: var(--radius-lg);
    margin-top: var(--space-6);
}

.methodology-notice--enhanced svg {
    flex-shrink: 0;
    color: var(--success);
    margin-top: 2px;
}

.methodology-notice--enhanced .methodology-notice__text {
    font-size: var(--text-sm);
    color: var(--success);
    line-height: 1.6;
}

.methodology-notice--enhanced .methodology-notice__text strong {
    color: var(--success);
    font-weight: 600;
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */

@media print {
    .masthead,
    .site-footer,
    .btn,
    .toast-container,
    .ai-console,
    .doc-blur-overlay {
        display: none !important;
    }

    body {
        background: white;
        color: black;
    }

    .card,
    .analysis-card {
        border: 1px solid #ddd;
        box-shadow: none;
    }
}

/* ==========================================================================
   SEO LANDING PAGES
   ========================================================================== */

.landing-hero {
    padding-top: calc(var(--header-height) + var(--space-16));
    padding-bottom: var(--space-16);
}

.landing-hero__content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.landing-hero__content h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    margin-bottom: var(--space-6);
}

.landing-hero__content .lede {
    max-width: 700px;
    margin: 0 auto var(--space-8);
}

.landing-hero__content .hero__actions {
    justify-content: center;
}

.landing-stats {
    display: flex;
    justify-content: center;
    gap: var(--space-10);
    margin: var(--space-10) 0;
    flex-wrap: wrap;
}

.landing-stat {
    text-align: center;
}

.landing-stat__number {
    display: block;
    font-size: var(--text-4xl);
    font-weight: 800;
    color: var(--accent);
    line-height: 1;
}

.landing-stat__label {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-secondary);
    margin-top: var(--space-2);
}

.landing-features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-10);
}

.landing-feature-card {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
}

.landing-feature-card__icon {
    width: 48px;
    height: 48px;
    background: rgba(34, 211, 238, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--space-4);
}

.landing-feature-card__icon svg {
    width: 24px;
    height: 24px;
    color: var(--accent);
}

.landing-feature-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-2);
}

.landing-feature-card p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.landing-feature-card__example {
    display: block;
    margin-top: var(--space-4);
    padding: var(--space-2) var(--space-3);
    background: rgba(34, 211, 238, 0.05);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    color: var(--accent);
    font-family: var(--font-mono);
}

.landing-check-section {
    background: var(--bg-card);
}

.landing-checklist-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-10);
}

.landing-checklist h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-4);
    color: var(--accent);
}

.landing-checklist ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.landing-checklist li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--glass-border);
    font-size: var(--text-sm);
    color: var(--text-secondary);
}

.landing-checklist li:last-child {
    border-bottom: none;
}

.landing-checklist li svg {
    color: var(--success);
    flex-shrink: 0;
}

.landing-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-8);
    margin-top: var(--space-10);
}

.landing-step {
    text-align: center;
    position: relative;
}

.landing-step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--accent);
    color: var(--bg-primary);
    font-size: var(--text-xl);
    font-weight: 700;
    border-radius: var(--radius-full);
    margin-bottom: var(--space-4);
}

.landing-step h3 {
    font-size: var(--text-lg);
    margin-bottom: var(--space-2);
}

.landing-step p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.faq-section {
    background: var(--bg-primary);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-10);
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
}

.faq-item h3 {
    font-size: var(--text-base);
    margin-bottom: var(--space-3);
    color: var(--text-primary);
}

.faq-item p {
    color: var(--text-secondary);
    font-size: var(--text-sm);
    line-height: 1.7;
}

@media (max-width: 768px) {
    .landing-stats {
        gap: var(--space-6);
    }

    .landing-stat {
        flex: 1 1 40%;
    }

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