/* ─────────────────────────────────────
    TOKENS
───────────────────────────────────── */
:root {
    --bg:          #080808;
    --bg-2:        #0f0f0f;
    --bg-3:        #141414;
    --bg-4:        #1a1a1a;
    --border:      rgba(255,255,255,0.07);
    --border-mid:  rgba(255,255,255,0.13);
    --text:        #ebebeb;
    --text-mid:    rgba(235,235,235,0.6);
    --text-dim:    rgba(235,235,235,0.32);
    --green:       #7dda7d;
    --mono:        'Geist Mono', monospace;
    --sans:        'Geist', sans-serif;
    --display:     'Barlow Condensed', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    overflow-x: hidden;
}

/* ─────────────────────────────────────
    BACKGROUND LAYERS
───────────────────────────────────── */
.bg-grid {
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,0.048) 1px, transparent 1px);
    background-size: 28px 28px;
    pointer-events: none;
    z-index: 0;
}

.bg-orb-1 {
    position: fixed;
    width: 800px; height: 800px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.028) 0%, transparent 65%);
    top: -260px; left: -160px;
    pointer-events: none; z-index: 0;
    animation: orb1 22s ease-in-out infinite alternate;
}

.bg-orb-2 {
    position: fixed;
    width: 500px; height: 500px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(125,218,125,0.022) 0%, transparent 70%);
    bottom: -120px; right: -60px;
    pointer-events: none; z-index: 0;
    animation: orb2 18s ease-in-out infinite alternate;
}

@keyframes orb1 {
    from { transform: translate(0,0) scale(1); }
    to   { transform: translate(100px, 70px) scale(1.1); }
}
@keyframes orb2 {
    from { transform: translate(0,0); }
    to   { transform: translate(-60px,-40px) scale(1.08); }
}

/* ─────────────────────────────────────
    NAV
───────────────────────────────────── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 48px;
    background: rgba(8,8,8,0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.wordmark {
    font-family: var(--mono);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text);
    text-decoration: none;
}

.wordmark span { color: var(--text-dim); }

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

.nav-pill {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--text-mid);
    text-decoration: none;
    padding: 5px 14px;
    border: 1px solid var(--border);
    border-radius: 20px;
    transition: border-color 0.2s, color 0.2s;
}

.nav-pill:hover {
    border-color: var(--border-mid);
    color: var(--text);
}

.nav-pill.primary {
    background: var(--text);
    color: #080808;
    border-color: var(--text);
    font-weight: 600;
}

.nav-pill.primary:hover {
    opacity: 0.88;
    color: #080808;
}

/* ─────────────────────────────────────
    SHARED SECTION WRAPPER
───────────────────────────────────── */
.section {
    position: relative;
    z-index: 1;
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 48px;
}

/* ─────────────────────────────────────
    HERO
───────────────────────────────────── */
.hero {
    padding-top: 148px;
    padding-bottom: 100px;
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 64px;
    align-items: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 5px 12px;
    margin-bottom: 32px;
    animation: fadeUp 0.6s ease both;
}

.hero-badge-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--green);
    animation: pulse 2.6s ease-in-out infinite;
}

@keyframes pulse {
    0%,100% { opacity:1; transform:scale(1); }
    50%      { opacity:0.4; transform:scale(0.65); }
}

.hero-headline {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(68px, 7.5vw, 110px);
    line-height: 0.9;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    animation: fadeUp 0.6s ease 0.07s both;
}

.hero-headline .dim { color: var(--text-dim); font-weight: 300; font-style: italic; display: block; }
.hero-headline .bright { display: block; }

.hero-body {
    margin-top: 32px;
    font-size: 15px;
    color: var(--text-mid);
    max-width: 440px;
    line-height: 1.7;
    animation: fadeUp 0.6s ease 0.14s both;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-top: 36px;
    animation: fadeUp 0.6s ease 0.2s both;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    background: var(--text);
    color: #080808;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 10px;
    transition: opacity 0.18s, transform 0.15s;
}

.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: 1px solid var(--border-mid);
    color: var(--text-mid);
    font-family: var(--sans);
    font-size: 14px;
    text-decoration: none;
    border-radius: 10px;
    transition: border-color 0.2s, color 0.2s, transform 0.15s;
}

.btn-ghost:hover { border-color: rgba(255,255,255,0.26); color: var(--text); transform: translateY(-1px); }

/* Hero right — mini stat cards */
.hero-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
    animation: fadeUp 0.6s ease 0.24s both;
}

.stat-card {
    background: var(--bg-2);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px 22px;
    transition: border-color 0.2s;
}

.stat-card:hover { border-color: var(--border-mid); }

.stat-num {
    font-family: var(--display);
    font-size: 44px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.02em;
}

.stat-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-top: 4px;
}

/* ─────────────────────────────────────
    DIVIDER LINE
───────────────────────────────────── */
.rule {
    position: relative;
    z-index: 1;
    height: 1px;
    background: var(--border);
    max-width: 1140px;
    margin: 0 auto;
}

/* ─────────────────────────────────────
    PILLARS STRIP
───────────────────────────────────── */
.pillars {
    padding: 72px 48px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--border);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.pillar {
    background: var(--bg);
    padding: 40px 36px;
    transition: background 0.2s;
}

.pillar:hover { background: var(--bg-2); }

.pillar-icon {
    width: 36px; height: 36px;
    margin-bottom: 20px;
    color: var(--text-mid);
}

.pillar h3 {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 10px;
}

.pillar p {
    font-size: 13px;
    color: var(--text-dim);
    line-height: 1.65;
}

/* ─────────────────────────────────────
    EXPERIENCE SECTION
───────────────────────────────────── */
.experience-section {
    position: relative;
    z-index: 1;
    padding: 120px 0;
}

.exp-inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 48px;
}

.exp-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: end;
    margin-bottom: 64px;
}

.exp-eyebrow {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.exp-headline {
    font-family: var(--display);
    font-size: clamp(48px, 5.5vw, 80px);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.exp-headline .dim {
    display: block;
    font-weight: 300;
    font-style: italic;
    color: var(--text-dim);
}

.exp-desc {
    font-size: 14px;
    color: var(--text-mid);
    line-height: 1.7;
    max-width: 380px;
    align-self: end;
}

.exp-desc p + p { margin-top: 12px; }

/* ── CHAT WINDOW SHELL ── */
.chat-window {
    background: #0a0a0a;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 32px 96px rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
    max-height: 560px;
}

/* ── matches the real sidebar strip ── */
.preview-sidebar {
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 48px;
    background: #0d0d0d;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.preview-layout {
    position: relative;
    display: flex;
    height: 100%;
}

/* ── real chat-messages area ── */
.preview-chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    margin-left: 48px;
}

/* conversation title bar — matches .conversation-title */
.preview-conv-title {
    padding: 12px 20px 0;
    font-family: 'Geist', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    letter-spacing: 0.01em;
    flex-shrink: 0;
}

/* messages scroll area — matches .chat-messages */
.preview-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px 8px;
    display: flex;
    flex-direction: column;
    gap: 0;
    scrollbar-width: none;
}

.preview-messages::-webkit-scrollbar { display: none; }

/* ── USER MESSAGE — matches real .user-message style ── */
.p-msg-user {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.p-msg-user-inner {
    background: #1a1a1a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px 18px 4px 18px;
    padding: 10px 15px;
    max-width: 68%;
    font-family: 'Geist', sans-serif;
    font-size: 14px;
    color: #e8e8e8;
    line-height: 1.5;
}

/* ── AI MESSAGE — matches real .assistant-message style ── */
.p-msg-ai {
    display: flex;
    justify-content: flex-start;
    margin-bottom: 14px;
}

.p-msg-ai-inner {
    max-width: 80%;
    font-family: 'Geist', sans-serif;
    font-size: 14px;
    color: rgba(235,235,235,0.82);
    line-height: 1.65;
}

.p-msg-ai-inner p { margin-bottom: 8px; }
.p-msg-ai-inner p:last-child { margin-bottom: 0; }

.p-msg-ai-inner strong {
    color: #e8e8e8;
    font-weight: 500;
}

/* bullet list inside AI message */
.p-msg-ai-inner ul {
    margin: 6px 0 6px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.p-msg-ai-inner ul li {
    font-size: 13px;
    color: rgba(235,235,235,0.7);
    line-height: 1.5;
}

/* ── CHAT INPUT BAR — matches real .chat-input-area ── */
.preview-input-area {
    padding: 10px 16px 14px;
    flex-shrink: 0;
}

.preview-form {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #111;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 8px 10px 8px 14px;
}

/* history clock button */
.preview-hist-btn {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.preview-textarea {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-family: 'Geist', sans-serif;
    font-size: 14px;
    color: rgba(255,255,255,0.35);
    font-style: italic;
    resize: none;
    pointer-events: none;
    user-select: none;
    line-height: 1.4;
}

.preview-send-btn {
    background: rgba(255,255,255,0.08);
    border: none;
    border-radius: 8px;
    width: 32px; height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.4);
    flex-shrink: 0;
    pointer-events: none;
}

/* caption */
.chat-caption {
    margin-top: 16px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    text-align: center;
    text-transform: uppercase;
}

/* ─────────────────────────────────────
    HOW IT WORKS
───────────────────────────────────── */
.how-section {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 100px 48px;
    max-width: 1140px;
    margin: 0 auto;
}

.how-eyebrow {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 48px;
}

.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
}

.step {
    background: var(--bg);
    padding: 32px 28px;
    transition: background 0.2s;
}

.step:hover { background: var(--bg-2); }

.step-num {
    font-family: var(--display);
    font-size: 52px;
    font-weight: 800;
    line-height: 1;
    color: var(--border-mid);
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.step h4 {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 8px;
}

.step p {
    font-size: 12px;
    color: var(--text-dim);
    line-height: 1.6;
}

/* ─────────────────────────────────────
    CTA SECTION
───────────────────────────────────── */
.cta-section {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 120px 48px;
    text-align: center;
}

.cta-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 24px;
}

.cta-headline {
    font-family: var(--display);
    font-size: clamp(54px, 7vw, 96px);
    font-weight: 800;
    line-height: 0.92;
    letter-spacing: -0.025em;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.cta-headline .dim {
    font-weight: 300;
    font-style: italic;
    color: var(--text-dim);
}

.cta-sub {
    font-size: 15px;
    color: var(--text-mid);
    max-width: 440px;
    margin: 0 auto 40px;
    line-height: 1.65;
}

.cta-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

/* ─────────────────────────────────────
    FOOTER
───────────────────────────────────── */
footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border);
    padding: 32px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-left {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--text-dim);
}

.footer-links {
    display: flex;
    gap: 24px;
    list-style: none;
}

.footer-links a {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    text-decoration: none;
    transition: color 0.15s;
}

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

/* ─────────────────────────────────────
    SCROLL REVEAL
───────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─────────────────────────────────────
    ANIMATIONS
───────────────────────────────────── */
@keyframes fadeUp {
    from { opacity:0; transform:translateY(14px); }
    to   { opacity:1; transform:translateY(0); }
}

/* ─────────────────────────────────────
    RESPONSIVE
───────────────────────────────────── */
@media (max-width: 900px) {
    nav { padding: 0 24px; }

    .hero {
        grid-template-columns: 1fr;
        padding-top: 100px;
        padding-bottom: 64px;
        padding-left: 24px;
        padding-right: 24px;
        gap: 40px;
    }

    .hero-stats { flex-direction: row; flex-wrap: wrap; }
    .stat-card  { flex: 1; min-width: 140px; }

    .pillars {
        grid-template-columns: 1fr;
        padding: 0;
    }

    .exp-inner { padding: 0 24px; }
    .preview-sidebar { display: none; }
    .preview-chat-area { margin-left: 0; }

    .exp-header {
        grid-template-columns: 1fr;
        gap: 24px;
    }

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

    .how-section { padding: 72px 24px; }
    .cta-section { padding: 80px 24px; }
    footer { padding: 24px; flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 580px) {
    .steps { grid-template-columns: 1fr; }
    .hero-headline { font-size: clamp(56px, 16vw, 88px); }
    .nav-right .nav-pill:first-child { display: none; }
}