/* ─── Reset & Base ─── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
    --bg: #0A0A0A;
    --bg-card: #121212;
    --bg-elevated: #1A1A1A;
    --lime: #CCFF00;
    --lime-dim: rgba(204, 255, 0, 0.15);
    --lime-glow: rgba(204, 255, 0, 0.3);
    --white: #FFFFFF;
    --white-soft: #E0E0E0;
    --gray: #888888;
    --gray-dim: #555555;
    --red: #FF3B30;
    --amber: #FFCC00;
    --green: #34C759;
    --font: 'Plus Jakarta Sans', -apple-system, sans-serif;
    --radius: 16px;
    --radius-sm: 8px;
}

html { scroll-behavior: smooth; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--white);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

/* ─── Nav ─── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 0 40px;
    height: 72px;
    display: flex;
    align-items: center;
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo { display: flex; align-items: center; gap: 10px; }
.logo-icon { color: var(--lime); font-size: 20px; }
.logo-text { font-weight: 800; font-size: 18px; letter-spacing: -0.5px; }
.logo-ai { color: var(--lime); }

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
    text-decoration: none;
    color: var(--gray);
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-cta {
    background: var(--lime) !important;
    color: var(--bg) !important;
    padding: 10px 24px !important;
    border-radius: 8px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    transition: transform 0.15s, box-shadow 0.15s !important;
}
.nav-cta:hover {
    transform: scale(1.03) !important;
    box-shadow: 0 0 20px var(--lime-glow) !important;
}

/* ─── Hero ─── */
.hero {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 40px 80px;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -200px;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--lime-glow) 0%, transparent 70%);
    opacity: 0.15;
    filter: blur(100px);
    animation: drift 8s ease-in-out infinite alternate;
}

@keyframes drift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(80px, 40px); }
}

.hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

/* ─── Hero Text ─── */
.hero-text { z-index: 2; }

.hero-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--lime);
    background: var(--lime-dim);
    padding: 6px 16px;
    border-radius: 100px;
    margin-bottom: 28px;
}

.hero-text h1 {
    font-size: clamp(36px, 5vw, 64px);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 18px;
    color: var(--white-soft);
    line-height: 1.7;
    max-width: 480px;
    margin-bottom: 40px;
}

.hero-buttons { display: flex; gap: 16px; margin-bottom: 32px; }

.btn {
    text-decoration: none;
    font-family: var(--font);
    font-weight: 700;
    font-size: 15px;
    padding: 16px 36px;
    border-radius: 10px;
    transition: transform 0.15s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
    background: var(--lime);
    color: var(--bg);
    box-shadow: 0 4px 24px var(--lime-glow);
}
.btn-primary:hover {
    box-shadow: 0 8px 40px var(--lime-glow);
}

.btn-outline {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255,255,255,0.2);
}
.btn-outline:hover {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.03);
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--gray);
}
.trust-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px var(--green);
}

/* ─── 3D Phone ─── */
.hero-phone-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

.phone-glow {
    position: absolute;
    width: 320px;
    height: 520px;
    background: radial-gradient(ellipse, var(--lime-glow) 0%, transparent 70%);
    opacity: 0.2;
    filter: blur(60px);
    z-index: 0;
}

.phone-frame {
    position: relative;
    width: 280px;
    height: 580px;
    background: #111;
    border-radius: 40px;
    border: 3px solid #2a2a2a;
    overflow: hidden;
    transform: rotateY(-8deg) rotateX(4deg);
    box-shadow:
        0 40px 80px rgba(0,0,0,0.6),
        0 0 0 1px rgba(255,255,255,0.05),
        inset 0 1px 0 rgba(255,255,255,0.1);
    z-index: 1;
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: rotateY(-8deg) rotateX(4deg) translateY(0); }
    50% { transform: rotateY(-8deg) rotateX(4deg) translateY(-12px); }
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #111;
    border-radius: 0 0 18px 18px;
    z-index: 10;
}

.phone-screen {
    position: absolute;
    inset: 8px;
    border-radius: 32px;
    background: var(--bg);
    overflow: hidden;
}

/* ─── Demo Sequence ─── */
.demo-sequence {
    position: relative;
    width: 100%;
    height: calc(100% - 40px);
}

.demo-step {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.6s ease;
    padding: 20px;
}
.demo-step.active { opacity: 1; }

/* Step backgrounds */
.scan-bg, .detect-bg, .skeleton-bg, .fix-bg, .score-bg {
    position: absolute;
    inset: 0;
    background: var(--bg);
}

/* Scan step */
.scan-line {
    position: absolute;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--lime);
    box-shadow: 0 0 20px var(--lime), 0 0 60px var(--lime-glow);
    animation: scanSweep 2s ease-in-out infinite;
    z-index: 2;
}
@keyframes scanSweep {
    0% { top: 15%; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 85%; opacity: 0; }
}
.scan-label, .detect-label, .skeleton-label, .fix-label {
    position: absolute;
    bottom: 20px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--lime);
    z-index: 3;
}

/* Detect step */
.detect-box {
    position: absolute;
    border: 1.5px solid var(--lime);
    border-radius: 6px;
    z-index: 2;
    animation: boxPop 0.4s ease-out both;
}
.detect-box span {
    position: absolute;
    top: -18px;
    left: 4px;
    font-size: 9px;
    font-weight: 700;
    color: var(--lime);
    background: rgba(10,10,10,0.85);
    padding: 2px 6px;
    border-radius: 3px;
}
.box-monitor { top: 15%; left: 15%; width: 55%; height: 25%; animation-delay: 0.2s; }
.box-chair { top: 55%; left: 10%; width: 35%; height: 35%; animation-delay: 0.5s; }
.box-desk { top: 42%; left: 12%; width: 70%; height: 12%; animation-delay: 0.8s; }

@keyframes boxPop {
    0% { opacity: 0; transform: scale(0.8); }
    100% { opacity: 1; transform: scale(1); }
}

/* Skeleton step */
.skeleton-svg {
    width: 70%;
    z-index: 2;
    animation: skeletonDraw 1s ease-out both;
}
@keyframes skeletonDraw {
    0% { opacity: 0; transform: scale(0.9); }
    100% { opacity: 1; transform: scale(1); }
}
.strain-dot {
    animation: strainPulse 1.2s ease-in-out infinite;
}
@keyframes strainPulse {
    0%, 100% { r: 4; opacity: 0.8; }
    50% { r: 7; opacity: 1; }
}

/* Fix step */
.ghost-svg {
    width: 70%;
    z-index: 2;
    animation: ghostFade 0.8s ease both;
}
@keyframes ghostFade {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.fix-arrow {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    animation: arrowSlide 0.5s ease both;
}
.arrow-monitor { top: 22%; left: 12%; flex-direction: column; }
.arrow-back { top: 55%; right: 12%; }

.arrow-line {
    width: 2px;
    height: 30px;
    background: var(--lime);
    position: relative;
}
.arrow-line::after {
    content: '';
    position: absolute;
    top: -4px;
    left: -3px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-bottom: 6px solid var(--lime);
}
.arrow-line.horizontal {
    width: 30px;
    height: 2px;
}
.arrow-line.horizontal::after {
    top: -3px;
    left: auto;
    right: -4px;
    border-left: 6px solid var(--lime);
    border-right: none;
    border-bottom: 4px solid transparent;
    border-top: 4px solid transparent;
}

.arrow-label {
    font-size: 8px;
    font-weight: 800;
    color: var(--lime);
    background: rgba(10,10,10,0.9);
    padding: 3px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

@keyframes arrowSlide {
    0% { opacity: 0; transform: translateY(8px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Score step */
.score-ring {
    position: relative;
    width: 120px;
    height: 120px;
    z-index: 2;
    margin-bottom: 12px;
}
.score-ring svg { width: 100%; height: 100%; }
.score-arc {
    transition: stroke-dashoffset 1.5s ease-out;
}
.score-number {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2px;
}
.score-value {
    font-size: 36px;
    font-weight: 900;
    color: var(--lime);
    letter-spacing: -2px;
}
.score-max {
    font-size: 14px;
    color: var(--gray);
    font-weight: 600;
    margin-top: 8px;
}
.score-title {
    font-size: 12px;
    font-weight: 700;
    color: var(--gray);
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 2;
    margin-bottom: 4px;
}
.score-verdict {
    font-size: 16px;
    font-weight: 800;
    color: var(--lime);
    z-index: 2;
    margin-bottom: 16px;
}
.score-fixes { z-index: 2; width: 80%; }
.mini-fix {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--white-soft);
    margin-bottom: 6px;
}
.fix-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
}
.mini-fix.good .fix-dot { background: var(--lime); }
.mini-fix.warn .fix-dot { background: var(--amber); }
.mini-fix.bad .fix-dot { background: var(--red); }

/* Step indicators */
.step-indicators {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    background: rgba(10,10,10,0.9);
    border-top: 1px solid rgba(255,255,255,0.05);
    z-index: 5;
}
.indicator {
    font-size: 7px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: var(--gray-dim);
    padding: 4px 8px;
    border-radius: 4px;
    transition: all 0.3s;
    cursor: default;
}
.indicator.active {
    color: var(--lime);
    background: var(--lime-dim);
}

/* ─── Features Strip ─── */
.features-strip {
    position: relative;
    z-index: 1;
    padding: 80px 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.strip-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.feature-card {
    background: var(--bg-card);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
    border-color: rgba(204,255,0,0.15);
    box-shadow: 0 0 40px rgba(204,255,0,0.05);
}
.feature-icon {
    font-size: 28px;
    margin-bottom: 16px;
    color: var(--lime);
}
.feature-card h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}
.feature-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}

/* ─── How It Works ─── */
.how-it-works {
    position: relative;
    z-index: 1;
    padding: 100px 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.hiw-inner {
    max-width: 1200px;
    margin: 0 auto;
}
.hiw-inner h2 {
    font-size: 40px;
    font-weight: 900;
    letter-spacing: -1.5px;
    text-align: center;
    margin-bottom: 60px;
}
.hiw-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}
.hiw-step { text-align: center; }
.hiw-number {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--lime-dim);
    color: var(--lime);
    font-size: 20px;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}
.hiw-step h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 10px;
}
.hiw-step p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    max-width: 280px;
    margin: 0 auto;
}

/* ─── Footer ─── */
.footer {
    position: relative;
    z-index: 1;
    padding: 40px;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer-brand {
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.footer-note {
    font-size: 13px;
    color: var(--gray-dim);
}

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .hero-inner {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .hero-sub { margin: 0 auto 40px; }
    .hero-buttons { justify-content: center; }
    .hero-trust { justify-content: center; }
    .hero-phone-wrapper { order: -1; }
    .phone-frame {
        transform: rotateY(0) rotateX(0);
        animation: none;
        width: 240px;
        height: 500px;
    }
    .strip-inner { grid-template-columns: 1fr; }
    .hiw-steps { grid-template-columns: 1fr; gap: 32px; }
    .nav-links a:not(.nav-cta) { display: none; }
    .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 500px) {
    .hero { padding: 100px 20px 60px; }
    .hero-text h1 { letter-spacing: -1px; }
    .hero-buttons { flex-direction: column; align-items: stretch; }
    .btn { text-align: center; }
    .features-strip, .how-it-works { padding: 60px 20px; }
}
