/* ==========================================================================
   JUST SCAN IT — Landing Page Styles
   Aesthetic: Refined Brutalist / Editorial Dark
   ========================================================================== */

:root {
    /* Colors */
    --bg-primary: #0a0a0b;
    --bg-secondary: #111113;
    --bg-card: #161618;
    --bg-elevated: #1c1c1f;

    --text-primary: #f5f5f7;
    --text-secondary: #8e8e93;
    --text-muted: #48484a;

    --accent: #00d4aa;
    --accent-dim: #00a080;
    --accent-glow: rgba(0, 212, 170, 0.15);

    --border: #2c2c2e;
    --border-light: #3a3a3c;

    /* Typography */
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Source Serif 4', Georgia, serif;
    --font-mono: 'IBM Plex Mono', monospace;

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

    /* Sizing */
    --max-width: 1200px;
    --nav-height: 80px;
}

/* Reset & Base
   ========================================================================== */

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

/* Noise Overlay
   ========================================================================== */

.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

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

.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-lg);
    background: rgba(10, 10, 11, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-family: var(--font-display);
    font-size: 1.25rem;
    letter-spacing: 0.05em;
}

.brand-icon {
    font-size: 1.5rem;
    color: var(--accent);
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-secondary);
    padding: 0.625rem 1rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: var(--text-primary);
    border-color: var(--border-light);
    background: var(--bg-card);
}

.nav-link-icon {
    font-size: 1rem;
}

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

.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-xl);
    padding: calc(var(--nav-height) + var(--space-xl)) var(--space-lg) var(--space-xl);
    max-width: var(--max-width);
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--accent);
    padding: 0.625rem 1rem;
    background: var(--accent-glow);
    border: 1px solid var(--accent-dim);
    border-radius: 100px;
    margin-bottom: var(--space-lg);
    animation: fadeSlideUp 0.6s ease-out;
}

.badge-dot {
    width: 6px;
    height: 6px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

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

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(3.5rem, 8vw, 6rem);
    line-height: 0.95;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-md);
}

.title-line {
    display: block;
    animation: fadeSlideUp 0.6s ease-out backwards;
}

.title-line:nth-child(1) { animation-delay: 0.1s; }
.title-line:nth-child(2) { animation-delay: 0.2s; }
.title-line:nth-child(3) { animation-delay: 0.3s; }

.title-accent {
    color: var(--accent);
    text-shadow: 0 0 60px var(--accent-glow);
}

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

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 400px;
    margin-bottom: var(--space-lg);
    animation: fadeSlideUp 0.6s ease-out 0.4s backwards;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    animation: fadeSlideUp 0.6s ease-out 0.5s backwards;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--bg-primary);
    background: var(--text-primary);
    padding: 1rem 1.75rem;
    border-radius: 8px;
    transition: all 0.25s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dim) 100%);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 40px rgba(0, 212, 170, 0.3);
}

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

.btn-primary span,
.btn-primary {
    position: relative;
}

.btn-primary span,
.btn-primary::after {
    position: relative;
    z-index: 1;
}

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

.btn-icon {
    display: flex;
}

.cta-note {
    font-family: var(--font-mono);
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* Hero Visual */

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeSlideUp 0.8s ease-out 0.3s backwards;
}

.phone-mockup {
    position: relative;
    width: 280px;
    height: 580px;
    background: var(--bg-card);
    border-radius: 44px;
    padding: 12px;
    border: 1px solid var(--border-light);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.05) inset,
        0 50px 100px -20px rgba(0, 0, 0, 0.5);
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 34px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.phone-notch {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: var(--bg-primary);
    border-radius: 20px;
}

.screen-header {
    padding: 16px 24px;
    display: flex;
    justify-content: center;
}

.screen-time {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    font-weight: 500;
}

.screen-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px;
    gap: 32px;
}

.scan-preview {
    position: relative;
    width: 180px;
    height: 240px;
    background: var(--bg-elevated);
    border-radius: 4px;
    animation: scanFloat 3s ease-in-out infinite;
}

@keyframes scanFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-8px) rotate(1deg); }
}

.scan-doc {
    position: absolute;
    inset: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-top: 20px;
}

.doc-line {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
}

.doc-line.short { width: 60%; }
.doc-line.medium { width: 80%; }

.scan-corners .corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--accent);
}

.corner.tl { top: 8px; left: 8px; border-right: none; border-bottom: none; }
.corner.tr { top: 8px; right: 8px; border-left: none; border-bottom: none; }
.corner.bl { bottom: 8px; left: 8px; border-right: none; border-top: none; }
.corner.br { bottom: 8px; right: 8px; border-left: none; border-top: none; }

.screen-button {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shutter {
    width: 48px;
    height: 48px;
    background: var(--accent);
    border-radius: 50%;
    transition: transform 0.15s ease;
}

.visual-accent {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    pointer-events: none;
}

.accent-1 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: -50px;
    right: -100px;
    opacity: 0.15;
}

.accent-2 {
    width: 200px;
    height: 200px;
    background: var(--accent-dim);
    bottom: 0;
    left: -50px;
    opacity: 0.1;
}

/* Features Section
   ========================================================================== */

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

.features-header {
    margin-bottom: var(--space-xl);
}

.section-number {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    margin-bottom: var(--space-xs);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    letter-spacing: 0.02em;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: var(--space-lg);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

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

.feature-card:hover {
    border-color: var(--border-light);
    transform: translateY(-4px);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid var(--accent-dim);
    border-radius: 12px;
    margin-bottom: var(--space-md);
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-sm);
}

.feature-desc {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.feature-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0.375rem 0.75rem;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 4px;
}

/* Privacy Section
   ========================================================================== */

.privacy {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-xl);
    padding: var(--space-2xl) var(--space-lg);
    max-width: var(--max-width);
    margin: 0 auto;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.privacy-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    letter-spacing: 0.02em;
    margin-bottom: var(--space-md);
}

.privacy-title .highlight {
    color: var(--accent);
}

.privacy-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 480px;
    margin-bottom: var(--space-lg);
}

.privacy-stats {
    display: flex;
    gap: var(--space-lg);
}

.stat {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-value {
    font-family: var(--font-display);
    font-size: 3rem;
    color: var(--accent);
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

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

.shield {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--accent-glow);
    border: 1px solid var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    animation: shieldPulse 3s ease-in-out infinite;
}

@keyframes shieldPulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 var(--accent-glow); }
    50% { transform: scale(1.02); box-shadow: 0 0 60px 20px var(--accent-glow); }
}

.shield-inner {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.shield-icon {
    font-size: 3rem;
    color: var(--accent);
}

/* CTA Section
   ========================================================================== */

.cta-section {
    padding: var(--space-2xl) var(--space-lg);
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5rem);
    letter-spacing: 0.02em;
    margin-bottom: var(--space-sm);
}

.cta-text {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

.btn-large {
    padding: 1.25rem 2.5rem;
    font-size: 1rem;
}

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

.footer {
    padding: var(--space-xl) var(--space-lg);
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
    text-align: center;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.05em;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: var(--space-md);
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--text-secondary);
    transition: color 0.2s ease;
}

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

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

/* Responsive
   ========================================================================== */

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        min-height: auto;
        padding-top: calc(var(--nav-height) + var(--space-lg));
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        align-items: center;
    }

    .hero-visual {
        order: -1;
        margin-bottom: var(--space-lg);
    }

    .phone-mockup {
        width: 240px;
        height: 500px;
    }

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

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

    .privacy-text {
        margin-left: auto;
        margin-right: auto;
    }

    .privacy-stats {
        justify-content: center;
    }

    .privacy-visual {
        order: -1;
        margin-bottom: var(--space-lg);
    }

    .shield {
        width: 150px;
        height: 150px;
    }

    .shield-inner {
        width: 100px;
        height: 100px;
    }

    .shield-icon {
        font-size: 2rem;
    }
}

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

    .nav {
        padding: 0 var(--space-sm);
    }

    .hero,
    .features,
    .privacy,
    .cta-section,
    .footer {
        padding-left: var(--space-sm);
        padding-right: var(--space-sm);
    }

    .privacy-stats {
        flex-wrap: wrap;
        gap: var(--space-md);
    }

    .stat-value {
        font-size: 2rem;
    }
}
