/* tuvl Teaser Page */
:root {
    --chaos-hue:    #ef4444;
    --chaos-glow:   rgba(239, 68, 68, 0.15);
    --chaos-border: rgba(239, 68, 68, 0.25);

    --ctrl-hue:    #8b5cf6;
    --ctrl-glow:   rgba(139, 92, 246, 0.15);
    --ctrl-border: rgba(139, 92, 246, 0.3);

    --accent:      #fbbf24;

    --bg:      #07050f;
    --bg-card: rgba(12, 9, 24, 0.85);
    --text-1:  #f0eeff;
    --text-2:  rgba(240, 238, 255, 0.6);
    --text-3:  rgba(240, 238, 255, 0.35);
    --border:  rgba(139, 92, 246, 0.14);

    --grad-ctrl:  linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
    --grad-teaser: linear-gradient(135deg, #8b5cf6 0%, #fbbf24 100%);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text-1);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── Ambient Scene ─────────────────────────────── */
.scene { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }

.scene-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(139,92,246,0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(139,92,246,0.035) 1px, transparent 1px);
    background-size: 52px 52px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 10%, transparent 75%);
}

.scene-orb {
    position: absolute; border-radius: 50%; filter: blur(140px);
    animation: drift 28s infinite alternate ease-in-out;
}
.scene-orb-chaos {
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(239,68,68,0.18) 0%, transparent 70%);
    top: -8%; left: -12%; animation-delay: 0s;
}
.scene-orb-control {
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(139,92,246,0.2) 0%, transparent 70%);
    top: -5%; right: -10%; animation-delay: -10s;
}

@keyframes drift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(30px, 50px) scale(1.06); }
}

/* ── Nav ───────────────────────────────────────── */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 40px; height: 60px;
    background: rgba(7, 5, 15, 0.6);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.04);
}
.nav-brand { display: flex; align-items: center; gap: 10px; }
.nav-logo  { width: 28px; height: 28px; filter: drop-shadow(0 0 10px rgba(139,92,246,0.5)); }
.nav-name  { font-size: 1.1rem; font-weight: 900; background: var(--grad-teaser); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
/* ── Hero ──────────────────────────────────────── */
.hero {
    min-height: 36vh; display: flex; flex-direction: column;
    align-items: center; justify-content: flex-end;
    text-align: center; padding: 120px 28px 48px;
}
.hero-logo-lockup {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 2px;
}
.hero-logo {
    width: 72px; height: 72px;
    filter: drop-shadow(0 0 24px rgba(139,92,246,0.6));
}
.hero-logo-name {
    font-size: 3.2rem; font-weight: 900; letter-spacing: -0.05em;
    background: var(--grad-teaser); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.hero-pronounce {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem; color: var(--text-3);
    letter-spacing: 0.04em; margin-bottom: 28px;
}

.hero-eyebrow {
    font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.18em; color: var(--text-3); margin-bottom: 20px;
}
.hero-title {
    font-size: clamp(3rem, 8vw, 6rem); font-weight: 900;
    line-height: 1.05; letter-spacing: -0.04em; margin-bottom: 24px;
}
.hero-title em { font-style: normal; background: var(--grad-teaser); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.hero-sub {
    font-size: clamp(1rem, 2vw, 1.15rem); color: var(--text-2);
    font-weight: 300; line-height: 1.7;
}
.hero-sub strong { color: var(--text-1); font-weight: 600; }
@media (max-width: 600px) { .hero-br { display: none; } }

.hero-intent {
    font-size: 1.1rem; font-weight: 700;
    background: var(--grad-teaser); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    margin-top: 16px; letter-spacing: -0.01em;
}

/* ── Contrast ──────────────────────────────────── */
.contrast {
    display: grid; grid-template-columns: 1fr auto 1fr;
    max-width: 1100px; margin: 60px auto 0; padding: 0 28px;
    gap: 0; min-height: 500px;
}

.contrast-col { padding: 48px 40px; }

.col-label {
    display: flex; align-items: center; gap: 10px;
    font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.16em; margin-bottom: 36px;
}
.col-label--chaos   { color: var(--chaos-hue); }
.col-label--control { color: var(--ctrl-hue); }
.label-dot { width: 8px; height: 8px; border-radius: 50%; }
.label-dot--chaos   { background: var(--chaos-hue); box-shadow: 0 0 8px rgba(239,68,68,0.6); animation: blink 2.5s infinite; }
.label-dot--control { background: var(--ctrl-hue); box-shadow: 0 0 8px rgba(139,92,246,0.6); }

/* Chaos column */
.contrast-col--chaos {
    border-right: 1px solid rgba(239,68,68,0.12);
    background: linear-gradient(135deg, rgba(239,68,68,0.03) 0%, transparent 60%);
    border-radius: 24px 0 0 24px;
}

.col-content { display: flex; flex-direction: column; gap: 18px; }

.vibe-block { display: flex; flex-direction: column; gap: 6px; }
.vibe-prompt {
    font-family: 'JetBrains Mono', monospace; font-size: 0.78rem;
    color: var(--text-3); padding: 8px 12px;
    background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06);
    border-radius: 8px; border-left: 2px solid rgba(255,255,255,0.1);
}
.vibe-arrow { font-size: 0.8rem; color: var(--text-3); padding-left: 4px; }
.vibe-response {
    font-size: 0.82rem; color: rgba(239,68,68,0.75); line-height: 1.5;
    padding: 10px 14px; border-radius: 8px;
    background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.15);
}
.vr-error { color: rgba(239,68,68,0.5); font-style: italic; }
.typing-cursor { animation: blink 1s step-end infinite; color: rgba(239,68,68,0.4); }

.chaos-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.c-tag {
    font-size: 0.68rem; font-weight: 600; padding: 3px 9px; border-radius: 5px;
    background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.2);
    color: rgba(239,68,68,0.6);
}

/* Divider column */
.contrast-divider {
    width: 64px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 10px;
    padding: 48px 0;
}
.divider-line { flex: 1; width: 1px; background: var(--border); max-height: 120px; }
.divider-vs {
    font-size: 0.78rem; font-weight: 800; color: var(--text-3);
    text-transform: uppercase; letter-spacing: 0.1em;
    width: 36px; height: 36px; border-radius: 50%;
    background: rgba(255,255,255,0.04); border: 1px solid var(--border);
    display: flex; align-items: center; justify-content: center;
}

/* Control column */
.contrast-col--control {
    border-left: 1px solid rgba(139,92,246,0.14);
    background: linear-gradient(135deg, rgba(139,92,246,0.05) 0%, transparent 60%);
    border-radius: 0 24px 24px 0;
}

/* Flow diagram */
.flow-step { display: flex; align-items: center; gap: 14px; }
.fs-node {
    display: flex; align-items: center; gap: 8px;
    padding: 10px 16px; border-radius: 10px;
    background: rgba(255,255,255,0.04); border: 1px solid var(--ctrl-border);
    min-width: 120px;
}
.fs-kind {
    font-size: 0.6rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.08em; padding: 2px 6px; border-radius: 4px;
    background: rgba(139,92,246,0.2); color: var(--ctrl-hue);
}
.fs-kind--ai { background: rgba(251,191,36,0.15); color: var(--accent); }
.fs-name { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--text-2); }

.fs-signal {
    font-size: 0.72rem; font-weight: 600;
    font-family: 'JetBrains Mono', monospace; padding: 3px 8px; border-radius: 5px;
}
.fs-signal--ok   { color: #4ade80; background: rgba(74,222,128,0.1); }
.fs-signal--ai   { color: var(--accent); background: rgba(251,191,36,0.1); }
.fs-signal--done { color: var(--ctrl-hue); background: rgba(139,92,246,0.1); }

.flow-arrow-down {
    width: 2px; height: 20px; margin: 4px 0 4px 28px;
    background: linear-gradient(to bottom, var(--ctrl-border), transparent);
    position: relative;
}
.flow-arrow-down::after {
    content: ''; position: absolute; bottom: -4px; left: -3px;
    border: 4px solid transparent; border-top: 6px solid rgba(139,92,246,0.4);
}

.fs-active .fs-node { border-color: rgba(139,92,246,0.5); background: rgba(139,92,246,0.08); }

.control-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 20px; }
.k-tag {
    font-size: 0.68rem; font-weight: 600; padding: 3px 9px; border-radius: 5px;
    background: rgba(139,92,246,0.08); border: 1px solid rgba(139,92,246,0.22);
    color: rgba(139,92,246,0.8);
}

/* ── Manifesto ─────────────────────────────────── */
.manifesto {
    max-width: 720px; margin: 80px auto; padding: 0 28px;
    text-align: center;
}
.manifesto-inner { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 56px 0; }
.manifesto-line {
    font-size: clamp(1.1rem, 2.5vw, 1.35rem); font-weight: 300;
    color: var(--text-2); line-height: 1.6; margin-bottom: 20px;
}
.manifesto-line:last-child { margin-bottom: 0; }
.manifesto-line--em { color: var(--text-1); font-weight: 500; font-style: italic; }

/* ── Teaser hint ───────────────────────────────── */
.teaser-hint {
    text-align: center; padding: 60px 28px 48px;
    max-width: 700px; margin: 0 auto;
}
.hint-pill {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.08em;
    color: var(--text-3); background: rgba(255,255,255,0.04);
    border: 1px solid var(--border); padding: 5px 14px; border-radius: 100px;
    margin-bottom: 28px;
}
.hint-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--ctrl-hue); animation: blink 2s infinite;
}
.hint-title {
    font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900;
    line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 20px;
    background: var(--grad-teaser); -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hint-sub {
    font-size: 1rem; color: var(--text-2); line-height: 1.7;
}

/* ── Waitlist ───────────────────────────────────── */
.waitlist { padding: 20px 28px 100px; }
.waitlist-card {
    position: relative; max-width: 540px; margin: 0 auto;
    border-radius: 24px; overflow: hidden;
    background: var(--bg-card); border: 1px solid var(--ctrl-border);
    backdrop-filter: blur(20px);
    box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 60px rgba(139,92,246,0.08);
}
.wl-glow {
    position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(ellipse at 50% 0%, rgba(139,92,246,0.15) 0%, transparent 70%);
}
.wl-inner { position: relative; padding: 48px 44px; text-align: center; }
.wl-badge {
    display: inline-block; font-size: 0.68rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 0.14em;
    color: var(--ctrl-hue); background: rgba(139,92,246,0.12);
    border: 1px solid rgba(139,92,246,0.3); padding: 4px 12px;
    border-radius: 6px; margin-bottom: 18px;
}
.wl-title { font-size: 1.9rem; font-weight: 900; letter-spacing: -0.03em; margin-bottom: 10px; }
.wl-desc  { color: var(--text-2); font-size: 0.92rem; margin-bottom: 32px; }
.wl-form  { display: flex; flex-direction: column; gap: 10px; }
.wl-input {
    padding: 13px 18px; border-radius: 12px;
    background: rgba(255,255,255,0.05); border: 1px solid var(--border);
    color: var(--text-1); font-family: inherit; font-size: 0.95rem;
    outline: none; transition: border-color 0.2s; text-align: center;
}
.wl-input:focus { border-color: var(--ctrl-hue); }
.wl-input::placeholder { color: var(--text-3); }
.wl-btn {
    padding: 13px; border-radius: 12px; border: none; cursor: pointer;
    font-family: inherit; font-size: 0.95rem; font-weight: 700;
    background: var(--grad-ctrl); color: #fff;
    box-shadow: 0 4px 20px rgba(109,40,217,0.4);
    transition: all 0.25s ease;
}
.wl-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(109,40,217,0.5); }
.wl-btn:disabled { opacity: 0.6; transform: none; cursor: default; }
.wl-note { color: var(--text-3); font-size: 0.75rem; margin-top: 16px; }

/* ── Footer ─────────────────────────────────────── */
.footer {
    border-top: 1px solid var(--border); padding: 32px 40px;
    display: flex; align-items: center; justify-content: space-between;
}
.footer-brand    { display: flex; align-items: center; gap: 10px; }
.footer-logo     { width: 24px; height: 24px; opacity: 0.7; }
.footer-name     { font-size: 0.9rem; font-weight: 800; color: var(--text-2); }
.footer-sep      { color: var(--text-3); }
.footer-tagline  { font-size: 0.8rem; color: var(--text-3); }
.footer-links    { display: flex; gap: 24px; }
.footer-links a  { color: var(--text-3); text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text-1); }

/* ── Animations ─────────────────────────────────── */
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.25; }
}

/* ── Responsive ─────────────────────────────────── */
@media (max-width: 860px) {
    .contrast { grid-template-columns: 1fr; grid-template-rows: auto auto auto; }
    .contrast-col--chaos   { border-right: none; border-bottom: 1px solid rgba(239,68,68,0.1); border-radius: 20px 20px 0 0; }
    .contrast-col--control { border-left: none; border-top: 1px solid rgba(139,92,246,0.12); border-radius: 0 0 20px 20px; }
    .contrast-divider { flex-direction: row; width: auto; height: 52px; padding: 0 28px; }
    .divider-line { width: 100%; height: 1px; max-height: none; }
    .scene-divider { display: none; }
    .footer { flex-direction: column; gap: 20px; text-align: center; }
    .footer-brand { flex-wrap: wrap; justify-content: center; }
    .nav { padding: 0 20px; }
}
@media (max-width: 500px) {
    .hero-title { font-size: 2.6rem; }
    .wl-inner   { padding: 36px 28px; }
    .contrast-col { padding: 36px 24px; }
}
