/* ============================================
   NimbusMesh — Alive & Warm (Apple/Sierra feel)
   ============================================ */

:root {
    --bg: #fafaf9;
    --bg-warm: #f5f3ef;
    --bg-dark: #0c0c0f;
    --bg-card: #ffffff;
    --border: rgba(0, 0, 0, 0.06);
    --border-hover: rgba(0, 0, 0, 0.12);
    --text: #1a1a1a;
    --text-secondary: #555;
    --text-muted: #888;
    --text-on-dark: #f5f5f5;
    --accent: #5046e5;
    --accent-light: #6d62ff;
    --accent-glow: rgba(80, 70, 229, 0.12);
    --green: #10b981;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'Outfit', -apple-system, system-ui, sans-serif;
}

/* ---- Reset ---- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }

/* ---- Utilities ---- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 2.5rem; }
.w-full { width: 100%; }

/* ---- Grain Texture Overlay (warmth & tactility) ---- */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 9998;
    pointer-events: none;
    opacity: 0.025;
    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");
    background-repeat: repeat;
    background-size: 256px 256px;
}

/* ===========================================
   INTRO SEQUENCE (dark cinematic → opens to light)
   =========================================== */
.intro {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: var(--bg-dark);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 1s ease, transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.intro.done {
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
}

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

.intro-line {
    font-family: var(--font-body);
    font-size: clamp(1.15rem, 2.8vw, 1.65rem);
    font-weight: 300;
    color: var(--text-on-dark);
    letter-spacing: 0.01em;
    line-height: 1.6;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.9s ease, transform 0.9s ease;
    margin-bottom: 0.3rem;
}
.intro-line.show { opacity: 1; transform: translateY(0); }
.intro-line.fade { opacity: 0; transform: translateY(-8px); }

.intro-logo {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
    opacity: 0;
    transform: scale(0.92);
    transition: opacity 1s ease, transform 1s ease;
    margin-top: 0.75rem;
}
.intro-logo.show { opacity: 1; transform: scale(1); }

.intro-progress {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    border-radius: 2px;
    overflow: hidden;
}
.intro-progress-bar {
    height: 100%;
    width: 0%;
    background: #fff;
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* ===========================================
   NAVIGATION
   =========================================== */
.nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(250, 250, 249, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 2.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--text);
}

.nav-links { display: flex; gap: 2.5rem; }
.nav-link {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: color 0.2s ease;
}
.nav-link:hover { color: var(--text); }

.nav-right { display: flex; align-items: center; gap: 0.6rem; }

/* ---- Buttons ---- */
.btn-primary {
    display: inline-flex;
    align-items: center; justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: var(--text);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.btn-primary:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.btn-soft {
    display: inline-flex;
    align-items: center; justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: var(--bg-warm);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.btn-soft:hover {
    background: #fff;
    border-color: var(--border-hover);
    transform: translateY(-1px);
}

/* Glow variant for CTAs */
.btn-glow {
    display: inline-flex;
    align-items: center; justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 500;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 12px var(--accent-glow);
}
.btn-glow:hover {
    background: var(--accent-light);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(80, 70, 229, 0.25);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.75rem;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 400;
    border: 1px solid var(--border);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.25s ease;
}
.btn-outline:hover { background: #fff; border-color: var(--border-hover); }

.btn-sm { padding: 0.5rem 1.2rem; font-size: 0.82rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-xl { padding: 1.15rem 3.25rem; font-size: 1.08rem; }

/* ===========================================
   FULL-SCREEN SECTIONS
   =========================================== */
.full-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.section-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

/* ===========================================
   HERO — with living gradient mesh
   =========================================== */
.hero {
    justify-content: center;
    padding-top: 4rem;
    overflow: hidden;
}

/* Animated gradient mesh background */
.hero-gradient {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-gradient .mesh {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    will-change: transform;
}

.mesh-1 {
    width: 50vw; height: 50vw;
    max-width: 700px; max-height: 700px;
    background: radial-gradient(circle, rgba(80,70,229,0.18), transparent 70%);
    top: -15%; right: -5%;
    animation: meshFloat1 18s ease-in-out infinite;
}
.mesh-2 {
    width: 40vw; height: 40vw;
    max-width: 550px; max-height: 550px;
    background: radial-gradient(circle, rgba(16,185,129,0.14), transparent 70%);
    bottom: -10%; left: -5%;
    animation: meshFloat2 22s ease-in-out infinite;
}
.mesh-3 {
    width: 35vw; height: 35vw;
    max-width: 450px; max-height: 450px;
    background: radial-gradient(circle, rgba(244,114,182,0.1), transparent 70%);
    top: 30%; left: 40%;
    animation: meshFloat3 20s ease-in-out infinite;
}

@keyframes meshFloat1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(-40px, 30px) scale(1.08); }
    66% { transform: translate(20px, -20px) scale(0.95); }
}
@keyframes meshFloat2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -25px) scale(1.05); }
    66% { transform: translate(-25px, 15px) scale(0.97); }
}
@keyframes meshFloat3 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-30px, -20px) scale(1.1); }
}

.hero-inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--accent);
    margin-bottom: 2rem;
}

.hero-title {
    font-family: var(--font-body);
    font-size: clamp(3rem, 7.5vw, 5.5rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 1.75rem;
    color: var(--text);
}

.hero-title span { display: block; }

.hero-title .accent-line {
    background: linear-gradient(135deg, var(--accent), #f472b6, var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.2rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 2.5rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta { display: flex; gap: 0.75rem; justify-content: center; flex-wrap: wrap; }

.scroll-hint {
    position: absolute;
    bottom: 2.5rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
}
.scroll-hint span {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}
.scroll-line {
    width: 1px; height: 36px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
    animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
    0%, 100% { opacity: 0.3; transform: scaleY(0.5); }
    50% { opacity: 1; transform: scaleY(1); }
}

/* ===========================================
   STORY SECTION
   =========================================== */
.story-section {
    padding: 8rem 0;
    background: var(--bg-warm);
}

.story-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.story-heading {
    font-family: var(--font-body);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.story-heading em {
    font-style: italic;
    font-family: var(--font-display);
    font-weight: 600;
    color: var(--accent);
}

.story-quotes {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.story-quote {
    padding: 1.25rem 1.75rem;
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.story-quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.story-quote p {
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.65;
    color: var(--text-secondary);
    font-style: italic;
}

.story-stat {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}
.stat-number {
    font-family: var(--font-body);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    letter-spacing: -0.03em;
}
.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===========================================
   STATEMENT SECTION — the breathing pause
   =========================================== */
.statement-section {
    justify-content: center;
    text-align: center;
    padding: 6rem 0;
}
.statement-text {
    font-family: var(--font-body);
    font-size: clamp(1.75rem, 4.5vw, 3.5rem);
    font-weight: 600;
    line-height: 1.35;
    letter-spacing: -0.02em;
    color: var(--text);
}
.statement-text em {
    font-style: italic;
    font-family: var(--font-display);
    background: linear-gradient(135deg, var(--accent), #f472b6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===========================================
   DEMO SECTION
   =========================================== */
.demo-section {
    padding: 6rem 0;
    background: var(--bg-dark);
    color: var(--text-on-dark);
}

.demo-section .section-label { color: var(--accent-light); }

.demo-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
    align-items: center;
}

.demo-heading {
    font-family: var(--font-body);
    font-size: clamp(2rem, 3.5vw, 2.75rem);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    color: var(--text-on-dark);
}

.demo-sub {
    font-size: 1.05rem;
    font-weight: 300;
    color: #999;
    line-height: 1.75;
}

.demo-chat {
    background: #111118;
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.5),
                0 0 0 1px rgba(255,255,255,0.03);
}

.demo-chat-header {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1.15rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.demo-avatar {
    width: 34px; height: 34px;
    border-radius: 10px;
    background: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.8rem;
}
.demo-name { font-weight: 600; font-size: 0.88rem; color: #eee; }
.demo-status {
    display: flex; align-items: center; gap: 0.4rem;
    font-size: 0.72rem; color: #666;
}
.status-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.demo-chat-log {
    padding: 1.5rem;
    min-height: 200px;
    max-height: 520px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.demo-msg { max-width: 88%; animation: msgSlide 0.45s ease; }
@keyframes msgSlide {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.demo-msg.agent { align-self: flex-start; }
.demo-msg.agent p {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px 16px 16px 4px;
    padding: 0.95rem 1.15rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #ddd;
}
.demo-msg.agent .demo-hint {
    background: none; border: none;
    padding: 0.35rem 0 0 0.25rem;
    font-size: 0.75rem; color: #555; font-style: italic;
}

.demo-msg.user { align-self: flex-end; }
.demo-msg.user p {
    background: var(--accent);
    border-radius: 16px 16px 4px 16px;
    padding: 0.95rem 1.15rem;
    font-size: 0.9rem;
    line-height: 1.65;
    color: #fff;
}

.demo-typing {
    display: flex; gap: 5px;
    padding: 0.95rem 1.15rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px 16px 16px 4px;
    max-width: 65px;
}
.demo-typing span {
    width: 5px; height: 5px;
    border-radius: 50%; background: #555;
    animation: dotP 1.4s infinite;
}
.demo-typing span:nth-child(2) { animation-delay: 0.2s; }
.demo-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dotP {
    0%, 60%, 100% { opacity: 0.3; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

.demo-chat-input {
    padding: 0.9rem 1.15rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.demo-input-wrapper {
    display: flex; align-items: center; gap: 0.6rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 50px;
    padding: 0.35rem 0.35rem 0.35rem 1rem;
    transition: border-color 0.3s ease;
}
.demo-input-wrapper:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(80,70,229,0.12);
}
#demo-input {
    flex: 1; background: none; border: none; outline: none;
    color: #eee; font-family: var(--font-body); font-size: 0.9rem;
}
#demo-input::placeholder { color: #444; }

.demo-send-btn {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--accent);
    border: none; color: #fff;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.78rem; flex-shrink: 0;
    transition: transform 0.2s ease;
}
.demo-send-btn:hover { transform: scale(1.1); }
.demo-send-btn:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }

.demo-cta-wrap {
    text-align: center;
    padding: 1.5rem 1.25rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}
.demo-cta-wrap p {
    color: #666; margin-bottom: 0.85rem; font-size: 0.88rem;
}

/* --- Scanner Progress --- */
.scan-progress {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 16px;
}

.scan-step {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.85rem;
    color: #555;
    opacity: 0.4;
    transition: opacity 0.4s ease, color 0.4s ease;
}
.scan-step.active {
    opacity: 1;
    color: #ccc;
}
.scan-step.done {
    opacity: 0.7;
    color: var(--green);
}

.scan-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #333;
    flex-shrink: 0;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
.scan-step.active .scan-dot {
    background: var(--accent);
    box-shadow: 0 0 8px rgba(80,70,229,0.5);
    animation: scanPulse 1.5s ease infinite;
}
.scan-step.done .scan-dot {
    background: var(--green);
    box-shadow: 0 0 6px rgba(16,185,129,0.3);
    animation: none;
}
@keyframes scanPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* --- Scan Intro --- */
.scan-intro {
    margin-bottom: 0.5rem !important;
}

/* --- Scan Results --- */
.scan-results {
    margin-top: 0.5rem;
}

.scan-overall {
    text-align: center;
    padding: 1.25rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    margin-bottom: 0.85rem;
}
.scan-overall-label {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #666;
    margin-bottom: 0.3rem;
}
.scan-overall-score {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.03em;
    margin-bottom: 0.4rem;
}
.scan-score-max {
    font-size: 1rem;
    font-weight: 400;
    color: #555;
}
.scan-overall-grade {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.65rem;
    border-radius: 6px;
    letter-spacing: 0.05em;
}

/* --- Category Cards --- */
.scan-categories {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
    margin-bottom: 0.85rem;
}

.scan-category {
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 0.75rem 0.85rem;
}

.scan-cat-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.scan-cat-icon {
    font-size: 0.7rem;
    color: #888;
}
.scan-cat-label {
    flex: 1;
    font-size: 0.72rem;
    font-weight: 600;
    color: #bbb;
}
.scan-cat-grade {
    font-size: 0.68rem;
    font-weight: 700;
}

.scan-bar {
    height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.35rem;
}
.scan-bar-fill {
    height: 100%;
    border-radius: 2px;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.scan-cat-score {
    font-size: 0.68rem;
    font-weight: 600;
    text-align: right;
}

/* --- Findings --- */
.scan-findings {
    margin-bottom: 0.75rem;
}
.scan-findings-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #888;
    margin-bottom: 0.6rem;
}

.scan-finding {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    font-size: 0.82rem;
    line-height: 1.5;
}
.scan-finding:last-child { border-bottom: none; }

.scan-finding i {
    margin-top: 0.15rem;
    font-size: 0.75rem;
    flex-shrink: 0;
}
.scan-finding.pass i { color: var(--green); }
.scan-finding.warn i { color: #eab308; }
.scan-finding.fail i { color: #ef4444; }

.scan-finding-body {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.scan-finding-body strong {
    color: #ccc;
    font-size: 0.8rem;
}
.scan-finding-value {
    color: var(--accent-light);
    font-size: 0.75rem;
    font-style: italic;
    word-break: break-all;
}
.scan-finding-detail {
    color: #777;
    font-size: 0.75rem;
}

/* --- Teaser --- */
.scan-teaser {
    margin-top: 0.5rem;
    padding: 0.85rem 1rem;
    background: rgba(80,70,229,0.06);
    border: 1px solid rgba(80,70,229,0.12);
    border-radius: 12px;
}
.scan-teaser p {
    font-size: 0.82rem;
    color: #aaa;
    line-height: 1.6;
    margin: 0;
}

/* --- Scanner Responsive --- */
@media (max-width: 640px) {
    .scan-categories {
        grid-template-columns: 1fr;
    }
    .scan-overall-score {
        font-size: 2rem;
    }
}

/* ===========================================
   PROCESS SECTION
   =========================================== */
.process-section {
    flex-direction: column;
    justify-content: center;
    padding: 8rem 0;
}

.process-heading {
    font-family: var(--font-body);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 5rem;
}
.process-heading em {
    font-style: italic;
    font-family: var(--font-display);
    color: var(--accent);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.process-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
}
.process-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px -8px rgba(0,0,0,0.08);
    border-color: var(--border-hover);
}

.process-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: var(--accent-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
    transition: background 0.3s ease, color 0.3s ease;
}
.process-card:hover .process-icon {
    background: var(--accent);
    color: #fff;
}

.process-num {
    font-family: var(--font-body);
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 1.5rem;
    line-height: 1;
    letter-spacing: -0.03em;
}

.process-card h3 {
    font-size: 1.12rem;
    font-weight: 600;
    margin-bottom: 0.65rem;
    color: var(--text);
}

.process-card p {
    font-size: 0.92rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===========================================
   STEPS SECTION
   =========================================== */
.steps-section {
    flex-direction: column;
    justify-content: center;
    padding: 8rem 0;
    background: var(--bg-warm);
}

.steps-row {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 680px;
    margin: 0 auto;
}

.step-item {
    display: flex;
    gap: 2rem;
    padding: 2.5rem 0;
    border-bottom: 1px solid var(--border);
}
.step-item:last-child { border-bottom: none; }

.step-num {
    font-family: var(--font-body);
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: -0.03em;
    line-height: 1;
    flex-shrink: 0;
    width: 60px;
}

.step-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.step-content p {
    font-size: 0.95rem;
    font-weight: 300;
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===========================================
   CTA SECTION
   =========================================== */
.cta-section {
    justify-content: center;
    text-align: center;
    padding: 6rem 0 8rem;
    background: var(--bg-warm);
}

.cta-inner {
    max-width: 640px;
    margin: 0 auto;
    padding: 0 2rem;
}

.cta-heading {
    font-family: var(--font-body);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
}

.cta-sub {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 2.5rem;
}

.cta-note {
    margin-top: 1.25rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}

/* ===========================================
   FOOTER
   =========================================== */
.footer {
    padding: 2rem 0;
    border-top: 1px solid var(--border);
}
.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.footer-text { font-size: 0.78rem; color: var(--text-muted); }

/* ===========================================
   MODALS
   =========================================== */
.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    transition: opacity 0.3s ease;
}
.modal-hidden { opacity: 0; pointer-events: none; }

.modal-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 32px 64px -16px rgba(0,0,0,0.15);
}

.modal-close {
    position: absolute;
    top: 1.25rem; right: 1.5rem;
    background: none; border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
}
.modal-close:hover { color: var(--text); }

.modal-title {
    font-family: var(--font-body);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 0.4rem;
}

.modal-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1.75rem;
}

.modal-form { display: flex; flex-direction: column; gap: 0.8rem; }
.modal-form input {
    width: 100%;
    padding: 0.85rem 1.15rem;
    background: var(--bg-warm);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    color: var(--text);
    transition: border-color 0.3s ease;
}
.modal-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}
.modal-form input::placeholder { color: var(--text-muted); }

/* ===========================================
   SCROLL REVEAL + PARALLAX
   =========================================== */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }
.delay-4 { transition-delay: 0.4s; }
.delay-5 { transition-delay: 0.5s; }

[data-parallax] {
    will-change: transform;
    transition: transform 0.1s linear;
}

/* ===========================================
   RESPONSIVE
   =========================================== */
@media (max-width: 900px) {
    .container { padding: 0 1.75rem; }
    .nav-links { display: none; }

    .story-split { grid-template-columns: 1fr; gap: 3rem; }
    .demo-layout { grid-template-columns: 1fr; gap: 2.5rem; }
    .process-grid { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }

    .full-screen { min-height: auto; padding: 5rem 0; }
    .hero { min-height: 100vh; padding-top: 5rem; }
    .story-section, .process-section { padding: 5rem 0; }
}

@media (max-width: 640px) {
    .container { padding: 0 1.25rem; }
    .nav-inner { padding: 0 1.25rem; }
    .nav-right .btn-outline { display: none; }

    .hero-title { font-size: clamp(2.2rem, 9vw, 2.75rem); }
    .hero-sub { font-size: 1rem; }
    .hero-cta { flex-direction: column; align-items: center; }
    .scroll-hint { display: none; }

    .story-heading { font-size: clamp(1.6rem, 5vw, 2rem); }
    .stat-number { font-size: 2.5rem; }
    .statement-text { font-size: clamp(1.4rem, 5.5vw, 1.75rem); padding: 0 0.5rem; }

    .step-item { gap: 1rem; }
    .step-num { font-size: 1.75rem; width: 40px; }

    .demo-chat { border-radius: 18px; }
    .demo-chat-log { max-height: 400px; padding: 1rem; }
    .demo-msg { max-width: 95%; }
    .scan-overall-score { font-size: 1.8rem; }

    .modal-card { padding: 2rem; border-radius: 18px; }
    .footer-inner { flex-direction: column; gap: 0.5rem; text-align: center; }

    .cta-heading { font-size: clamp(1.8rem, 6vw, 2.5rem); }
    .process-heading { font-size: clamp(1.6rem, 5vw, 2rem); margin-bottom: 3rem; }
}
