/* 1v1 landing — "the anti-feed. pick up the phone."
 *
 * Aesthetic: near-black stage, a single cyan spotlight, voice rendered
 * as a live equalizer band (the one thing you remember), oversized
 * Bricolage Grotesque type with editorial restraint. No inline CSS/JS
 * anywhere — the site runs a strict CSP, so everything lives here.
 *
 * Motion is CSS-only: one orchestrated staggered entrance + the
 * perpetually-alive waveform. Everything collapses gracefully under
 * prefers-reduced-motion. */

:root {
    --void: #070b16;
    --ink: #0b1120;
    --cyan: #38bdf8;
    --cyan-bright: #7dd3fc;
    --cyan-deep: #0ea5e9;
    --text: #eaf0fb;
    --muted: #8893aa;
    --line: rgba(148, 163, 184, 0.16);
    --display: 'Bricolage Grotesque', 'Segoe UI', system-ui, sans-serif;
    --body: 'Manrope', 'Segoe UI', system-ui, sans-serif;
}

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

html, body { height: 100%; }

body {
    background: var(--void);
    color: var(--text);
    font-family: var(--body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
}

/* ---- atmosphere ---------------------------------------------------- */

/* Cyan spotlight bleeding up from behind the hero. Slow breathing
   pulse so the "stage" feels alive without distracting. */
.bg-glow {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(60% 50% at 50% 42%, rgba(56, 189, 248, 0.16), transparent 70%),
        radial-gradient(40% 35% at 50% 100%, rgba(14, 165, 233, 0.12), transparent 70%);
    animation: glow-breathe 9s ease-in-out infinite;
}
@keyframes glow-breathe {
    0%, 100% { opacity: 0.75; transform: scale(1); }
    50%      { opacity: 1;    transform: scale(1.06); }
}

/* Fine film grain — SVG fractal noise, multiplied at low opacity so
   the flat black gets a tactile, photographic texture instead of
   reading as a default canvas. */
.bg-grain {
    position: fixed;
    inset: -50%;
    z-index: 1;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
    mix-blend-mode: overlay;
}

/* Everything readable sits above the atmosphere layers. */
.nav, .hero, .footer { position: relative; z-index: 2; }

/* ---- nav ----------------------------------------------------------- */

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: clamp(20px, 4vw, 36px) clamp(20px, 5vw, 56px);
    flex-shrink: 0;
}

.wordmark {
    font-family: var(--display);
    font-weight: 800;
    font-size: 1.7rem;
    letter-spacing: -0.04em;
    text-decoration: none;
    color: var(--cyan);
    line-height: 1;
    filter: drop-shadow(0 0 14px rgba(56, 189, 248, 0.45));
}
.wordmark .wm-v {
    color: var(--cyan-bright);
    /* subtle nod to the split-character brand mark */
    -webkit-text-stroke: 0.5px var(--cyan-deep);
}

.nav-login {
    font-family: var(--body);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--muted);
    text-decoration: none;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid var(--line);
    transition: color 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.nav-login:hover {
    color: var(--text);
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(56, 189, 248, 0.06);
}

/* ---- hero ---------------------------------------------------------- */

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(24px, 5vw, 48px) clamp(20px, 6vw, 64px) clamp(40px, 7vw, 72px);
    gap: clamp(20px, 3.4vw, 34px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--cyan);
    opacity: 0;
    animation: rise 0.7s cubic-bezier(.2,.7,.2,1) 0.05s forwards;
}
.eyebrow-dot {
    width: 7px; height: 7px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.55);
    animation: ping 2.4s ease-out infinite;
}
@keyframes ping {
    0%   { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(56, 189, 248, 0); }
    100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); }
}

.headline {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(2.9rem, 9vw, 6.6rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    max-width: 16ch;
}
.headline .line {
    display: block;
    opacity: 0;
    animation: rise 0.85s cubic-bezier(.2,.7,.2,1) forwards;
}
.headline .line:nth-child(1) { animation-delay: 0.14s; }
.headline .line:nth-child(2) { animation-delay: 0.24s; }
.headline .line:nth-child(3) { animation-delay: 0.34s; }
.headline .accent {
    background: linear-gradient(105deg, var(--cyan-bright), var(--cyan) 45%, var(--cyan-deep));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* The live waveform — the page's signature. 40 bars, each pulsing on
   a delay derived from --i so the band reads as a continuous travelling
   wave of speech, not a row of synced blinkers. */
.waveform {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(3px, 0.7vw, 6px);
    height: clamp(60px, 11vw, 104px);
    width: min(560px, 82vw);
    opacity: 0;
    animation: rise 0.9s cubic-bezier(.2,.7,.2,1) 0.46s forwards;
}
.waveform span {
    flex: 1;
    min-width: 2px;
    max-width: 9px;
    height: 14%;
    border-radius: 999px;
    background: linear-gradient(180deg, var(--cyan-bright), var(--cyan-deep));
    transform-origin: center;
    animation: eq 1.5s ease-in-out infinite;
    animation-delay: calc(var(--i) * -0.07s);
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.28);
}
@keyframes eq {
    0%, 100% { height: 14%; opacity: 0.55; }
    20%      { height: 92%; opacity: 1; }
    45%      { height: 32%; opacity: 0.7; }
    65%      { height: 70%; opacity: 0.95; }
    85%      { height: 22%; opacity: 0.65; }
}

.manifesto {
    max-width: 46ch;
    font-size: clamp(1rem, 1.5vw, 1.18rem);
    line-height: 1.6;
    color: var(--muted);
    opacity: 0;
    animation: rise 0.85s cubic-bezier(.2,.7,.2,1) 0.6s forwards;
}

.cta-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    opacity: 0;
    animation: rise 0.85s cubic-bezier(.2,.7,.2,1) 0.74s forwards;
}

.cta {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-family: var(--display);
    font-weight: 700;
    font-size: clamp(1.05rem, 1.7vw, 1.25rem);
    letter-spacing: -0.01em;
    color: #04121f;
    background: linear-gradient(135deg, var(--cyan-bright), var(--cyan) 55%, var(--cyan-deep));
    padding: 17px 34px;
    border-radius: 999px;
    text-decoration: none;
    box-shadow:
        0 14px 40px -10px rgba(56, 189, 248, 0.6),
        0 0 0 1px rgba(125, 211, 252, 0.4) inset;
    transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}
.cta:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow:
        0 22px 54px -10px rgba(56, 189, 248, 0.7),
        0 0 0 1px rgba(125, 211, 252, 0.6) inset;
}
.cta:active { transform: translateY(0); }
.cta-at {
    /* Bricolage Grotesque's @ at weight 800 reads as an abstract spiral,
       which kills the "claim your @handle" hook. Render just this glyph
       in the body face (Manrope), which has a clean, unmistakable @. */
    font-family: var(--body);
    font-weight: 800;
    font-size: 1.05em;
    opacity: 0.9;
}
.cta-arrow {
    display: inline-block;
    transition: transform 0.18s ease;
}
.cta:hover .cta-arrow { transform: translateX(5px); }

.cta-secondary {
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.16s ease, border-color 0.16s ease;
}
.cta-secondary:hover {
    color: var(--cyan-bright);
    border-bottom-color: rgba(56, 189, 248, 0.5);
}

.presence {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--muted);
    margin-top: 4px;
    opacity: 0;
    animation: rise 0.7s cubic-bezier(.2,.7,.2,1) 0.9s forwards;
}
/* The pill ships with [hidden] and is only un-hidden by landing.js
   when a real count comes back. Without this, `.presence{display:
   inline-flex}` (0,1,0) beats the UA `[hidden]` (0,0,1) and the empty
   pill (just its green dot) shows when the Owner "Online Counter"
   toggle is off. Same specificity trap the cookie banner hit. */
.presence[hidden] { display: none; }
.presence-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
    animation: ping-green 2.4s ease-out infinite;
}
@keyframes ping-green {
    0%   { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5); }
    70%  { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
    100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}
.presence b { color: var(--text); font-weight: 800; }

/* ---- footer -------------------------------------------------------- */

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    padding: clamp(18px, 3vw, 28px) clamp(20px, 5vw, 56px);
    border-top: 1px solid var(--line);
    flex-shrink: 0;
}
.footer-tag {
    font-size: 0.82rem;
    color: var(--muted);
    font-style: italic;
}
.footer-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    color: var(--muted);
}
.footer-links a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.16s ease;
}
.footer-links a:hover { color: var(--cyan-bright); }

/* ---- shared entrance keyframe -------------------------------------- */

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

/* ---- focus + reduced motion --------------------------------------- */

a:focus-visible {
    outline: 2px solid var(--cyan);
    outline-offset: 3px;
    border-radius: 6px;
}

@media (prefers-reduced-motion: reduce) {
    .bg-glow, .eyebrow-dot, .presence-dot, .waveform span { animation: none; }
    .eyebrow, .headline .line, .waveform, .manifesto,
    .cta-row, .presence {
        animation: none;
        opacity: 1;
        transform: none;
    }
    /* Motion off (user setting / OS "reduce animations") — instead of a
       flat uniform comb that looks broken, freeze the bars into a
       SHAPED waveform: a smooth 10-bar hump repeated across all 40, so
       it still reads unmistakably as a voice waveform, just static.
       Pure :nth-child (no mod()/JS) → works in every browser. */
    .waveform span { opacity: 0.9; }
    .waveform span:nth-child(10n+1) { height: 22%; }
    .waveform span:nth-child(10n+2) { height: 40%; }
    .waveform span:nth-child(10n+3) { height: 62%; }
    .waveform span:nth-child(10n+4) { height: 84%; }
    .waveform span:nth-child(10n+5) { height: 96%; }
    .waveform span:nth-child(10n+6) { height: 90%; }
    .waveform span:nth-child(10n+7) { height: 68%; }
    .waveform span:nth-child(10n+8) { height: 46%; }
    .waveform span:nth-child(10n+9) { height: 28%; }
    .waveform span:nth-child(10n+10) { height: 18%; }
}

/* ---- mobile -------------------------------------------------------- */

@media (max-width: 560px) {
    .headline { letter-spacing: -0.035em; max-width: 12ch; }
    .manifesto { font-size: 0.98rem; }
    .footer { justify-content: center; text-align: center; }
    .footer-tag { width: 100%; }
}

/* ---- i18n lang switcher ------------------------------------------- */

.nav-right { display: flex; align-items: center; gap: 16px; }
.nav-lang { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.nav-lang:hover { color: var(--text); }
