/* ==========================================================================
   Startup Orbit — landing page
   Palette: black and white foundation; green is the only hue, reserved for
   primary actions and "live" signals. Colour lives in the background nebula.
   ========================================================================== */

:root {
    --bg: #0a0a0a;
    --green: #00ff88;
    --white: #ffffff;
    --subtle: #404040;
    --text-dim: rgba(255, 255, 255, 0.72);
    --text-faint: rgba(255, 255, 255, 0.48);

    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
    --content: 1100px;
    --red: #ff4757;

    /* Type scale: every text style on the page uses one of these steps */
    --fs-xs: 0.75rem;       /* uppercase labels, tags */
    --fs-sm: 0.875rem;      /* captions, meta, small print */
    --fs-body: 1rem;        /* body copy, lists */
    --fs-lead: 1.2rem;      /* section subtitles, taglines, hooks */
    --fs-h4: clamp(1.25rem, 2vw, 1.45rem);   /* lead statements, compact card titles */
    --fs-h3: clamp(1.45rem, 2.6vw, 1.75rem); /* panel and card titles, closing lines */
    --fs-h2: clamp(2.1rem, 4.4vw, 2.9rem);   /* section titles */
    --fs-display: clamp(2.8rem, 7.2vw, 5.4rem); /* the slogan */
    /* The page is designed dark-only */
    color-scheme: dark;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

::selection {
    background: rgba(0, 255, 136, 0.3);
}

/* ---------- Space environment ---------- */

.starfield {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.nebula {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.nebula span {
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    will-change: transform;
}

.nebula-a {
    width: 55vw;
    height: 45vw;
    left: -15vw;
    top: 10vh;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.10), transparent 65%);
    animation: nebula-drift-a 80s var(--ease-in-out) infinite alternate;
}

.nebula-b {
    width: 50vw;
    height: 50vw;
    right: -20vw;
    top: 40vh;
    background: radial-gradient(circle, rgba(194, 110, 255, 0.10), transparent 65%);
    animation: nebula-drift-b 95s var(--ease-in-out) infinite alternate;
}

.nebula-c {
    width: 40vw;
    height: 30vw;
    left: 30vw;
    bottom: -15vh;
    background: radial-gradient(circle, rgba(0, 212, 255, 0.06), rgba(194, 110, 255, 0.04) 45%, transparent 70%);
    animation: nebula-drift-c 70s var(--ease-in-out) infinite alternate;
}

@keyframes nebula-drift-a {
    to { transform: translate(18vw, 12vh) scale(1.15); }
}

@keyframes nebula-drift-b {
    to { transform: translate(-22vw, -18vh) scale(0.9); }
}

@keyframes nebula-drift-c {
    to { transform: translate(-15vw, -10vh) scale(1.2); }
}

.cursor-light {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.6s ease;
    background: radial-gradient(
        600px circle at var(--cx, 50%) var(--cy, 50%),
        rgba(255, 255, 255, 0.05) 0%,
        rgba(255, 255, 255, 0.02) 35%,
        transparent 70%
    );
}

.cursor-light.active {
    opacity: 1;
}

/* Scroll progress: glowing gradient line across the top */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    z-index: 200;
    pointer-events: none;
}

.scroll-progress span {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.4), var(--white));
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
    transform: scaleX(0);
    transform-origin: left;
}

main,
.footer {
    position: relative;
    z-index: 2;
}

/* ---------- Navigation ---------- */

.nav {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    padding: calc(1.1rem + env(safe-area-inset-top, 0px)) 0 1.1rem;
    transition: background 0.4s ease, padding 0.4s ease, backdrop-filter 0.4s ease;
}

.nav.scrolled {
    background: rgba(10, 10, 10, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: calc(0.8rem + env(safe-area-inset-top, 0px)) 0 0.8rem;
}

.nav-container {
    max-width: var(--content);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--white);
}

.logo {
    display: block;
    width: 40px;
    height: 40px;
}

.logo svg {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.35));
}

/* The official wordmark (cut from the brand artwork, white on transparent) */
.brand-name {
    display: block;
    height: 17px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a,
.text-link {
    position: relative;
    color: var(--text-dim);
    text-decoration: none;
    font-size: var(--fs-body);
    transition: color 0.3s ease;
}

/* Underline slides in from the left */
.nav-links a::after,
.text-link::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 1px;
    background: var(--green);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.35s var(--ease-out);
}

.nav-links a:hover,
.nav-links a.active,
.text-link:hover {
    color: var(--white);
}

.nav-links a:hover::after,
.nav-links a.active::after,
.text-link:hover::after {
    transform: scaleX(1);
}

.text-link {
    color: var(--green);
    font-weight: 600;
}

/* Links sit on the right, next to the language picker */
.nav-links {
    margin-left: auto;
}

/* ---------- Language picker ---------- */
.lang-switch {
    position: relative;
    margin-left: 1.75rem;
}

.lang-button {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.65rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    color: var(--text-dim);
    font-family: var(--font-primary);
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.lang-button:hover,
.lang-button[aria-expanded="true"] {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
    background: rgba(255, 255, 255, 0.07);
}

.lang-button:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.lang-globe {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
}

.lang-chevron {
    width: 10px;
    height: 10px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 0.25s var(--ease-out);
}

.lang-button[aria-expanded="true"] .lang-chevron {
    transform: rotate(180deg);
}

.lang-menu {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 0;
    min-width: 170px;
    padding: 0.4rem;
    list-style: none;
    background: rgba(12, 12, 14, 0.97);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(12px);
    animation: card-in 0.25s var(--ease-out);
    z-index: 10;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: none;
    border: none;
    border-radius: 6px;
    color: var(--text-dim);
    font-family: var(--font-primary);
    font-size: var(--fs-sm);
    text-align: left;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.lang-option:hover,
.lang-option:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    outline: none;
}

.lang-short {
    width: 1.6rem;
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-faint);
}

.lang-option[aria-checked="true"] {
    color: var(--white);
}

.lang-option[aria-checked="true"] .lang-short {
    color: var(--green);
}

.lang-option[aria-checked="true"]::after {
    content: "✓";
    margin-left: auto;
    color: var(--green);
    font-weight: 700;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    width: 40px;
    height: 40px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    padding: 8px;
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--white);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */

.hero {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 90px 2rem 60px;
}

.hero-content {
    position: relative;
    text-align: center;
    max-width: 900px;
    will-change: opacity, transform;
}

/* Logo stays fixed. One soft light circles slowly behind it and its glow breathes.
   --near is cursor proximity (0..1). */
.hero-logo {
    --near: 0;
    --logo: 210px;
    --size: 250px;
    position: relative;
    width: var(--size);
    height: var(--size);
    margin: 0 auto 0.25rem;
    display: grid;
    place-items: center;
    animation: logo-in 1.4s var(--ease-out) backwards;
}

.hero-logo > * {
    grid-area: 1 / 1;
}

@keyframes logo-in {
    from { opacity: 0; transform: scale(0.9); filter: blur(8px); }
}

.logo-light {
    width: 100%;
    height: 100%;
    animation: spin 16s linear infinite;
    pointer-events: none;
}

.logo-light span {
    position: absolute;
    top: 14%;
    left: 50%;
    width: 58%;
    height: 58%;
    margin-left: -29%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 65%);
    filter: blur(14px);
    opacity: calc(0.8 + var(--near) * 0.4);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* A blurred copy of the mark acts as its glow */
.logo-glow {
    width: var(--logo);
    height: var(--logo);
    filter: blur(14px);
    opacity: calc(0.35 + var(--near) * 0.3);
    animation: glow-breathe 7s var(--ease-in-out) infinite;
    pointer-events: none;
}

@keyframes glow-breathe {
    0%, 100% { opacity: calc(0.3 + var(--near) * 0.3); }
    50% { opacity: calc(0.6 + var(--near) * 0.3); }
}

.logo-mark {
    position: relative;
    width: var(--logo);
    height: var(--logo);
    filter: drop-shadow(0 0 calc(4px + var(--near) * 6px) rgba(255, 255, 255, calc(0.35 + var(--near) * 0.35)));
}

.eyebrow {
    color: var(--green);
    font-size: var(--fs-sm);
    font-weight: 600;
    margin-bottom: 2.25rem;
}

h1, h2, h3, .pull-quote {
    text-wrap: balance;
}

/* The slogan is the centrepiece: large, tight, pure white */
.hero h1 {
    font-size: var(--fs-display);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.04em;
    max-width: 15ch;
    margin: 0 auto 1.75rem;
    color: var(--white);
    text-shadow: 0 0 40px rgba(255, 255, 255, 0.15);
}

.tagline {
    font-size: var(--fs-lead);
    color: var(--text-dim);
    line-height: 1.55;
    max-width: 780px;
    margin: 0 auto 1.75rem;
    text-wrap: balance;
}

/* Hero entrance */
.hero-in {
    animation: rise-in 0.8s var(--ease-out) backwards;
    animation-delay: var(--d, 0ms);
}

/* ---------- Buttons ---------- */

.btn-primary {
    position: relative;
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: var(--fs-body);
    font-family: var(--font-primary);
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    color: var(--green);
    background: transparent;
    border: 1.5px solid var(--green);
    cursor: pointer;
    overflow: hidden;
    isolation: isolate;
    transition: color 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-out);
}

.btn-primary:hover {
    background: var(--green);
    color: var(--bg);
    box-shadow: 0 0 24px rgba(0, 255, 136, 0.45);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 3px;
}

/* Secondary CTA: cyan */
.btn-secondary {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.6);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border-color: var(--white);
    box-shadow: 0 0 18px rgba(255, 255, 255, 0.12);
}

/* S-Radar CTA: breathing border, radial glow from the centre on hover, cyan text */
.btn-breathe {
    animation: breathe 2s var(--ease-in-out) infinite;
}

.btn-breathe::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background: radial-gradient(circle at center, rgba(0, 255, 136, 0.45) 0%, rgba(0, 255, 136, 0.12) 45%, transparent 70%);
    transform: scale(0);
    transition: transform 0.5s var(--ease-out);
}

.btn-breathe:hover {
    background: transparent;
    color: var(--white);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.4);
}

.btn-breathe:hover::before {
    transform: scale(2.2);
}

@keyframes breathe {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.35); }
    50% { box-shadow: 0 0 0 7px rgba(0, 255, 136, 0); }
}

/* ---------- Shared section layout (single flow, no divider lines) ---------- */

main > section:not(.hero) {
    position: relative;
    padding: 7rem 2rem;
    /* Anchor jumps scroll a bit past the section's top spacing, so its heading sits near the nav */
    scroll-margin-top: -56px;
}

/* A faint green glow at the top of each section that appears as you approach it */
main > section:not(.hero)::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    width: min(900px, 90%);
    height: 220px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse at center, rgba(255, 255, 255, 0.05), transparent 70%);
    opacity: 0;
    transition: opacity 1.2s ease;
    pointer-events: none;
}

main > section.in-view::before {
    opacity: 1;
}

main > section > h2,
.section-head h2,
.section-content h2 {
    font-size: var(--fs-h2);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-align: center;
    margin-bottom: 1.25rem;
    color: var(--white);
}

.section-head {
    max-width: 800px;
    margin: 0 auto 3.5rem;
    text-align: center;
}

.section-sub {
    color: var(--text-dim);
    font-size: var(--fs-lead);
    line-height: 1.6;
    text-align: center;
    max-width: 720px;
    margin: 0 auto 3.5rem;
    text-wrap: balance;
}

.section-head .section-sub {
    margin-bottom: 0;
}

.section-sub em {
    color: var(--white);
    font-style: normal;
    font-weight: 600;
}

.hl-strong {
    color: var(--white);
    font-weight: 600;
}

/* ---------- Scroll reveals (IntersectionObserver adds .is-visible) ---------- */

[data-reveal] {
    opacity: 0;
}

[data-reveal].is-visible {
    opacity: 1;
    animation: var(--reveal-anim, rise-in) 0.75s var(--ease-out) backwards;
    animation-delay: var(--d, 0ms);
}

[data-reveal="up"] { --reveal-anim: rise-in; }
[data-reveal="left"] { --reveal-anim: from-left; }
[data-reveal="right"] { --reveal-anim: from-right; }
[data-reveal="blur"] { --reveal-anim: blur-in; }

@keyframes fade-in {
    from { opacity: 0; }
}

@keyframes rise-in {
    from { opacity: 0; transform: translateY(var(--rise, 30px)); }
}

/* Entering from the top of the screen (scrolling back up): motion comes from above */
[data-from="above"] {
    --rise: -30px;
}

@keyframes from-left {
    from { opacity: 0; transform: translateX(-50px); }
}

@keyframes from-right {
    from { opacity: 0; transform: translateX(50px); }
}

@keyframes blur-in {
    from { opacity: 0; transform: translateY(calc(var(--rise, 30px) * 0.8)); filter: blur(10px); }
}

/* ---------- Problem ---------- */

.section-content {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
}

.problem .section-content h2 {
    margin-bottom: 1.75rem;
}

.punch {
    font-size: var(--fs-h4);
    line-height: 1.5;
    font-weight: 500;
    color: var(--text-dim);
    max-width: 640px;
    margin: 0 auto;
}

.punch .hl {
    font-weight: 600;
}

/* Green highlighter that sweeps in behind the text once it's on screen */
.hl {
    color: var(--white);
    background: linear-gradient(transparent 58%, rgba(0, 255, 136, 0.35) 58%, rgba(0, 255, 136, 0.35) 92%, transparent 92%) no-repeat;
    background-size: 0% 100%;
    transition: background-size 0.9s var(--ease-out) 0.5s;
    padding: 0 0.1em;
}

.is-visible .hl,
.hl.is-visible {
    background-size: 100% 100%;
}

/* Opinions pop in one by one; then reality lands and the opinions fade back */
.feedback-scene {
    position: relative;
    max-width: 520px;
    margin: 3.5rem auto 7rem;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.bubble {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    align-self: flex-start;
    max-width: 85%;
    opacity: 0;
    transform: translateY(12px) scale(0.9);
    transform-origin: left bottom;
    transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out), filter 0.6s ease;
    transition-delay: calc(var(--i) * 550ms);
}

.bubble:nth-child(2) {
    margin-left: 12%;
}

.bubble:nth-child(3) {
    margin-left: 4%;
}

.bubble p {
    padding: 0.7rem 1.1rem;
    border-radius: 18px 18px 18px 4px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    font-size: var(--fs-body);
}

.avatar {
    flex: none;
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    font-size: var(--fs-xs);
    font-weight: 700;
}

/* "6 months later" waits with animated dots (.suspense), then the result blurs into focus
   while the friends' opinions blur out (.revealed). Driven by app.js. */
.reality {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2rem;
    text-align: center;
}

.reality-wait {
    display: flex;
    align-items: baseline;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.5s ease, transform 0.5s var(--ease-out);
}

.reality-label {
    font-size: var(--fs-sm);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
}

.reality-dots {
    display: inline-flex;
    gap: 4px;
    margin-left: 0.4rem;
}

.reality-dots i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--white);
    opacity: 0.2;
    animation: suspense 1.2s var(--ease-in-out) infinite;
}

.reality-dots i:nth-child(2) { animation-delay: 0.2s; }
.reality-dots i:nth-child(3) { animation-delay: 0.4s; }

@keyframes suspense {
    0%, 100% { opacity: 0.2; }
    40% { opacity: 1; }
}

.reality-result {
    font-size: var(--fs-h2);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
    opacity: 0;
    filter: blur(14px);
    transform: scale(0.96);
    transition: opacity 0.9s ease, filter 0.9s ease, transform 0.9s var(--ease-out);
}

.reality-result .zero {
    color: var(--red);
    text-shadow: 0 0 28px rgba(255, 71, 87, 0.45);
}

.feedback-scene.suspense .reality-wait {
    opacity: 1;
    transform: none;
}

.feedback-scene.revealed .reality-dots i {
    animation: none;
    opacity: 0.5;
}

.feedback-scene.revealed .reality-result {
    opacity: 1;
    filter: none;
    transform: none;
}

.feedback-scene.is-visible .bubble {
    opacity: 1;
    transform: none;
}

/* The moment the result lands, the friends' opinions blur out */
.feedback-scene.revealed .bubble {
    opacity: 0.4;
    filter: blur(1px);
    transition-duration: 0.9s;
    transition-delay: 0s;
}

/* Three traps, driven by app.js after the chat scene.
   .staging  one full-width stage with no box: a large illustration and a short line; each trap
             plays alone (.active), then steps out (.leaving) before the next comes in
   .grid     the finale: all three side by side in boxes, illustrations at rest */
.traps {
    position: relative;
    max-width: 900px;
    margin: 0 auto 4rem;
    overflow-x: clip; /* the next trap waits 40px to the right; keep it from widening the page */
}

.trap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.trap-num {
    font-size: var(--fs-xs);
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-faint);
    transition: color 0.4s ease, text-shadow 0.4s ease;
}

.trap-title {
    font-size: var(--fs-lead);
    font-weight: 600;
}

.trap-text {
    color: var(--text-dim);
    font-size: var(--fs-body);
    line-height: 1.6;
}

.trap-punch {
    display: none;
}

.trap-visual {
    width: 100%;
    height: auto;
    overflow: visible;
}

/* ---- Stage: no box; illustration left, number / title / short line right ---- */
.traps.staging {
    height: 420px;
}

.traps.staging .trap {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    grid-template-rows: 1fr auto auto auto 1fr;
    grid-template-areas:
        "visual ."
        "visual num"
        "visual title"
        "visual punch"
        "visual .";
    column-gap: 3.5rem;
    row-gap: 0.6rem;
    align-items: center;
    opacity: 0;
    transform: translateX(40px);
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.6s var(--ease-out);
}

.traps.staging .trap-visual { grid-area: visual; max-width: 470px; justify-self: center; }
.traps.staging .trap-num { grid-area: num; font-size: var(--fs-sm); }
.traps.staging .trap-title { grid-area: title; font-size: var(--fs-h3); line-height: 1.2; }
.traps.staging .trap-punch { grid-area: punch; display: block; font-size: var(--fs-lead); color: var(--text-dim); }
.traps.staging .trap-text { display: none; }

.traps.staging .trap.active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.traps.staging .trap.leaving {
    opacity: 0;
    transform: translateX(-40px);
}

.traps.staging .trap.active .trap-num {
    color: var(--green);
    text-shadow: 0 0 12px rgba(0, 255, 136, 0.6);
}

/* ---- Finale: three boxes side by side, appearing one after another ---- */
.traps.grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.traps.grid .trap {
    background: rgba(12, 12, 14, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.4rem 1.5rem 1.6rem;
    animation: rise-in 0.6s var(--ease-out) backwards;
    animation-delay: calc(var(--n, 0) * 160ms);
}

.traps.grid .trap:hover {
    border-color: rgba(0, 255, 136, 0.35);
}

.traps.grid .trap-visual {
    margin: 0.3rem 0 0.5rem;
}

.traps.grid .trap:hover .trap-num {
    color: var(--green);
}

/* ---- Illustration labels ---- */
.tv-label {
    fill: var(--text-faint);
    font-family: var(--font-primary);
    font-size: 12px;
    font-weight: 700;
}

/* ---- 01: darts thrown in the dark ---- */
.tv-darts .ring {
    fill: none;
    stroke: rgba(255, 255, 255, 0.28);
    stroke-width: 1.5;
}

.tv-darts .bull {
    fill: var(--green);
    filter: drop-shadow(0 0 6px var(--green));
}

.dart {
    opacity: 0;
    transform: translateX(-280px);
}

.dart line {
    stroke: rgba(255, 255, 255, 0.92);
    stroke-width: 2.5;
    stroke-linecap: round;
}

.dart path {
    fill: var(--white);
}

.dart .fletch {
    fill: none;
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 2;
    stroke-linecap: round;
}

.tv-darts.throw-1 .d1,
.tv-darts.throw-2 .d2,
.tv-darts.throw-3 .d3 {
    animation: dart-fly 0.5s var(--ease-out) forwards;
}

@keyframes dart-fly {
    0% { opacity: 0; transform: translateX(-280px); }
    20% { opacity: 1; }
    80% { transform: translateX(4px); }
    100% { opacity: 1; transform: none; }
}

.tv-year {
    fill: var(--white);
    font-family: var(--font-primary);
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.tv-bar-track {
    fill: rgba(255, 255, 255, 0.1);
}

.tv-money {
    fill: rgba(255, 255, 255, 0.8);
    transform-box: fill-box;
    transform-origin: left center;
    transition: transform 0.6s var(--ease-out), fill 0.6s ease;
}

.tv-darts.throw-1 .tv-money { transform: scaleX(0.66); }
.tv-darts.throw-2 .tv-money { transform: scaleX(0.33); }
.tv-darts.throw-3 .tv-money { transform: scaleX(0.05); fill: var(--red); }

/* ---- 02, large version: an AI chat interface ---- */
.tv-ai-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tv-ai-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    width: 100%;
}

.traps.grid .tv-ai-stage,
.traps.staging .tv-ai {
    display: none;
}

.ai-app {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 430px;
    height: 300px;
    background: rgba(16, 16, 20, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

.ai-app-head {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: var(--fs-sm);
    font-weight: 600;
}

.ai-app-logo {
    flex: none;
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    font-size: 11px;
    color: var(--white);
}

.ai-app-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 0.75rem;
    padding: 1rem;
}

.ai-app-user {
    align-self: flex-end;
    max-width: 80%;
    padding: 0.55rem 0.85rem;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 16px 16px 4px 16px;
    font-size: var(--fs-sm);
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
}

.ai-app-bot {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
}

.ai-app-answer {
    padding-top: 0.15rem;
    color: var(--text-dim);
    font-size: var(--fs-sm);
    line-height: 1.55;
}

.ai-app-dots {
    display: none;
    gap: 4px;
    padding: 0.45rem 0;
}

.ai-app-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--text-dim);
    animation: suspense 1s var(--ease-in-out) infinite;
}

.ai-app-dots i:nth-child(2) { animation-delay: 0.15s; }
.ai-app-dots i:nth-child(3) { animation-delay: 0.3s; }

.ai-app-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0.85rem 0.85rem;
    padding: 0.4rem 0.4rem 0.4rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
}

.ai-app-field {
    flex: 1;
    min-width: 0;
    font-size: var(--fs-sm);
    white-space: nowrap;
    overflow: hidden;
}

.ai-app-placeholder {
    color: var(--text-faint);
}

.ai-app-caret {
    display: none;
    width: 1px;
    height: 1.05em;
    margin-left: 1px;
    vertical-align: -2px;
    background: var(--white);
    animation: caret 0.9s steps(1) infinite;
}

.ai-app-send {
    flex: none;
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.5);
    transition: background 0.25s ease, color 0.25s ease, transform 0.15s ease;
}

.ai-app-send svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Mouse pointer that travels to the send button and clicks */
.ai-app-cursor {
    position: absolute;
    left: 58%;
    bottom: 26px;
    width: 16px;
    height: 22px;
    fill: var(--white);
    stroke: #000;
    stroke-width: 1;
    opacity: 0;
    transition: left 0.6s var(--ease-in-out), bottom 0.6s var(--ease-in-out), opacity 0.25s ease, transform 0.12s ease;
}

.ai-app-evidence {
    padding: 0.25rem 0.6rem;
    border: 1px solid rgba(0, 255, 136, 0.55);
    border-radius: 4px;
    color: var(--green);
    font-size: var(--fs-xs);
    font-weight: 700;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}

/* Steps (classes added by app.js): is-typing → ready → aim → click → sent → loading → replying → judged */
.ai-app.is-typing .ai-app-placeholder { display: none; }
.ai-app.is-typing:not(.sent) .ai-app-caret { display: inline-block; }
.ai-app.ready .ai-app-send { background: var(--white); color: #0a0a0a; }
.ai-app.aim .ai-app-cursor { opacity: 1; left: calc(100% - 36px); bottom: 14px; }
.ai-app.click .ai-app-send { transform: scale(0.86); }
.ai-app.click .ai-app-cursor { transform: scale(0.85); }
.ai-app.sent .ai-app-cursor { opacity: 0; }
.ai-app.sent .ai-app-placeholder { display: inline; }
.ai-app.sent .ai-app-user { opacity: 1; transform: none; }
.ai-app.loading .ai-app-bot,
.ai-app.replying .ai-app-bot { opacity: 1; transform: none; }
.ai-app.loading .ai-app-dots { display: inline-flex; }
.tv-ai-stage.judged .ai-app-evidence { opacity: 1; transform: none; }

/* 02, small version (final boxes): the finished conversation */
.tv-ai {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    aspect-ratio: 2 / 1;
    margin: 0.4rem 0 0.6rem;
}

.ai-row {
    display: flex;
    align-items: flex-end;
    gap: 0.4rem;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.35s ease, transform 0.35s var(--ease-out);
}

.ai-user {
    justify-content: flex-end;
}

.ai-bubble {
    max-width: 88%;
    min-height: 1.9em;
    padding: 0.4rem 0.65rem;
    font-size: var(--fs-xs);
    line-height: 1.45;
}

.ai-user .ai-bubble {
    background: rgba(255, 255, 255, 0.12);
    color: var(--white);
    border-radius: 10px 10px 3px 10px;
}

.ai-bot .ai-bubble {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-dim);
    border-radius: 10px 10px 10px 3px;
}

.ai-icon {
    flex: none;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: 10px;
}

.ai-caret {
    display: none;
    width: 1px;
    height: 1em;
    margin-left: 2px;
    vertical-align: -2px;
    background: var(--white);
    animation: caret 0.9s steps(1) infinite;
}

@keyframes caret {
    50% { opacity: 0; }
}

.ai-thinking {
    display: none;
    gap: 3px;
    padding: 0.35em 0;
}

.ai-thinking i {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-dim);
    animation: suspense 1s var(--ease-in-out) infinite;
}

.ai-thinking i:nth-child(2) { animation-delay: 0.15s; }
.ai-thinking i:nth-child(3) { animation-delay: 0.3s; }

/* The verdict on all that applause */
.ai-evidence {
    align-self: flex-end;
    padding: 0.2rem 0.5rem;
    border: 1px solid rgba(0, 255, 136, 0.55);
    border-radius: 4px;
    color: var(--green);
    font-size: var(--fs-xs);
    font-weight: 700;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.4s ease, transform 0.4s var(--ease-out);
}

.tv-ai.asking .ai-user,
.tv-ai.thinking .ai-bot,
.tv-ai.answered .ai-bot {
    opacity: 1;
    transform: none;
}

.tv-ai.asking:not(.thinking):not(.answered) .ai-caret {
    display: inline-block;
}

.tv-ai.thinking .ai-thinking {
    display: inline-flex;
}

.tv-ai.judged .ai-evidence {
    opacity: 1;
    transform: none;
}



/* ---- 03: a well-built key that doesn't open the lock ---- */
.tv-key .lock-body,
.tv-key .shackle {
    fill: none;
    stroke: rgba(255, 255, 255, 0.5);
    stroke-width: 3;
}

.tv-key .keyhole {
    fill: rgba(255, 255, 255, 0.5);
}

.tv-key .lock {
    transform-box: fill-box;
    transform-origin: center;
}

.key-bow {
    fill: none;
    stroke: var(--white);
    stroke-width: 6;
}

.key-shaft,
.tooth {
    fill: var(--white);
}

.tooth {
    transform-box: fill-box;
    transform-origin: center top;
    transform: scaleY(0);
}

.tv-impact line {
    stroke: var(--green);
    stroke-width: 2.5;
    stroke-linecap: round;
    opacity: 0;
}

/* Build the teeth one by one, then insert, try to turn, fail and pull back a little */
.trap.played .tooth { animation: tooth-grow 0.25s var(--ease-out) forwards; }
.trap.played .t2 { animation-delay: 0.1s; }
.trap.played .t3 { animation-delay: 0.2s; }
.trap.played .t4 { animation-delay: 0.3s; }

.trap.played .key {
    transform-origin: 200px 124px;
    animation: key-try 1.6s var(--ease-in-out) 0.5s forwards;
}

.trap.played .lock {
    animation: lock-shake 0.6s ease-in-out 1.25s;
}

.trap.played .tv-impact line {
    animation: tv-impact 0.6s ease-out 1.25s forwards;
}

@keyframes tooth-grow {
    to { transform: scaleY(1); }
}

@keyframes key-try {
    0% { transform: translateX(0); }
    40% { transform: translateX(120px); }
    50% { transform: translateX(120px) rotate(-7deg); }
    60% { transform: translateX(120px) rotate(6deg); }
    70% { transform: translateX(120px) rotate(-3deg); }
    78% { transform: translateX(120px) rotate(0); }
    100% { transform: translateX(96px); }
}

@keyframes lock-shake {
    0%, 100% { transform: rotate(0); }
    25% { transform: rotate(-3deg); }
    55% { transform: rotate(3deg); }
    80% { transform: rotate(-1.5deg); }
}

@keyframes tv-impact {
    0% { opacity: 0; }
    30% { opacity: 1; }
    100% { opacity: 0.6; }
}

/* The closing line's highlighter waits until the traps have played */
.problem-close.is-visible .hl {
    background-size: 0% 100%;
}

.problem-close.is-visible.lit .hl {
    background-size: 100% 100%;
    transition-delay: 0.15s;
}

.problem-close {
    text-align: center;
    font-size: var(--fs-h3);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

/* ---------- Journey ---------- */

.trajectory {
    max-width: var(--content);
    margin: -1rem auto 1.5rem;
}

.trajectory svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.traj-base {
    fill: none;
    stroke: rgba(255, 255, 255, 0.16);
    stroke-width: 1.5;
    stroke-dasharray: 3 7;
}

.traj-progress {
    fill: none;
    stroke: url(#trajGrad);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    filter: drop-shadow(0 0 4px rgba(0, 255, 136, 0.5));
}

.trajectory text {
    fill: var(--text-faint);
    font-family: var(--font-primary);
    font-size: 13px;
}

.traj-node {
    cursor: pointer;
}

.traj-node .hit {
    fill: transparent;
}

.traj-node .dot {
    fill: var(--bg);
    stroke: rgba(255, 255, 255, 0.45);
    stroke-width: 2;
    transform-box: fill-box;
    transform-origin: center;
    transition: fill 0.4s ease, stroke 0.4s ease, transform 0.3s var(--ease-out);
}

.traj-node text {
    fill: var(--text-faint);
    font-size: 12px;
    font-weight: 600;
    transition: fill 0.3s ease;
}

.traj-node:hover .dot {
    stroke: var(--white);
}

.traj-node:hover text {
    fill: var(--white);
}

.traj-node.reached .dot {
    fill: var(--green);
    stroke: var(--green);
}

.traj-node.current .dot {
    transform: scale(1.35);
    filter: drop-shadow(0 0 8px var(--green));
}

.traj-node.current text {
    fill: var(--green);
}

.traj-node:focus-visible {
    outline: none;
}

.traj-node:focus-visible .dot {
    stroke: var(--white);
    stroke-width: 3;
}

.traj-star {
    cursor: pointer;
}

.traj-star-glow {
    transition: opacity 0.4s ease;
    opacity: 0.8;
}

.traj-star:hover .traj-star-glow,
.traj-star.current .traj-star-glow {
    opacity: 1;
}

.traj-star.current text {
    fill: var(--white);
}

.traj-ship {
    fill: var(--white);
    filter: drop-shadow(0 0 6px var(--white)) drop-shadow(0 0 10px var(--green));
}

/* Phase tabs */
.phase-tabs {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    max-width: var(--content);
    margin: 0 auto 1.5rem;
    flex-wrap: wrap;
}

.phase-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(12, 12, 14, 0.6);
    color: var(--text-dim);
    font-family: var(--font-primary);
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.phase-tab .n {
    font-weight: 700;
    font-size: var(--fs-xs);
    color: var(--text-faint);
    transition: color 0.25s ease;
}

.phase-tab:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.25);
}

.phase-tab[aria-selected="true"] {
    color: var(--white);
    border-color: var(--green);
    background: rgba(0, 255, 136, 0.08);
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.15);
}

.phase-tab[aria-selected="true"] .n {
    color: var(--green);
}

/* The destination: the Orbit logo instead of a numbered phase */
.phase-tab.hub-tab {
    padding: 0.3rem 0.95rem 0.3rem 0.45rem;
    border-color: rgba(255, 255, 255, 0.22);
}

.hub-tab svg {
    width: 34px;
    height: 34px;
    filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.45));
}

.hub-tab .hub-tab-label {
    font-weight: 600;
    color: var(--white);
}

/* The next step to click glows, inviting the visitor forward */
.phase-tab.next {
    color: var(--white);
    animation: next-glow 1.8s var(--ease-in-out) infinite;
}

@keyframes next-glow {
    0%, 100% { border-color: rgba(255, 255, 255, 0.1); box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); }
    50% { border-color: rgba(255, 255, 255, 0.5); box-shadow: 0 0 16px 1px rgba(255, 255, 255, 0.22); }
}

.phase-tab:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* Phase panel: copy on the left, a small animated illustration on the right */
.phase-panel {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    gap: 2rem;
    max-width: 900px;
    min-height: 330px;
    margin: 0 auto;
    padding: 2.5rem 3rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 12, 14, 0.65);
    backdrop-filter: blur(6px);
    overflow: hidden;
}

.phase-panel::before {
    content: attr(data-num);
    position: absolute;
    right: -0.5rem;
    bottom: -3.5rem;
    font-size: 13rem;
    font-weight: 800;
    line-height: 1;
    color: rgba(255, 255, 255, 0.03);
    pointer-events: none;
}

.phase-copy > * {
    animation: rise-in 0.55s var(--ease-out) backwards;
}

.phase-copy > *:nth-child(2) { animation-delay: 60ms; }
.phase-copy > *:nth-child(3) { animation-delay: 120ms; }
.phase-copy > *:nth-child(4) { animation-delay: 180ms; }
.phase-copy > *:nth-child(5) { animation-delay: 240ms; }

.pp-status {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-faint);
    margin-bottom: 0.9rem;
}

.pp-status.live {
    color: var(--white);
}

.pp-name {
    font-size: var(--fs-h3);
    letter-spacing: -0.02em;
    line-height: 1.1;
    margin-bottom: 0.6rem;
}

.pp-tagline {
    font-size: var(--fs-lead);
    color: var(--text-dim);
    margin-bottom: 1.3rem;
}

.pp-tagline mark {
    background: none;
    color: var(--green);
    font-weight: 600;
}

.pp-points {
    list-style: none;
    margin-bottom: 1.5rem;
}

.pp-points li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.45rem;
    color: var(--text-dim);
    font-size: var(--fs-body);
}

.pp-points li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

.phase-copy .btn-primary {
    padding: 0.8rem 1.6rem;
    font-size: var(--fs-sm);
}

.phase-visual {
    display: grid;
    place-items: center;
}

.phase-visual svg {
    width: min(100%, 240px);
    height: auto;
    overflow: visible;
    animation: fade-in 0.6s ease backwards;
}

/* Swipe between phases on touch screens; vertical scrolling stays with the page */
.phase-panel {
    touch-action: pan-y;
}

/* Hub teaser inside the journey panel: the Orbit logo as the illustration */
.phase-visual .hub-teaser-logo {
    width: min(100%, 200px);
    filter: drop-shadow(0 0 14px rgba(255, 255, 255, 0.35));
}

/* Previous / next arrows with one dot per step (the last dot is the Hub) */
.phase-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-top: 1.25rem;
}

.phase-arrow {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(12, 12, 14, 0.6);
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease;
}

.phase-arrow:hover {
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.06);
}

.phase-arrow svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--white);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.phase-dots {
    display: flex;
    gap: 0.5rem;
}

.phase-dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: background 0.3s ease, width 0.3s ease;
}

.phase-dots i.on {
    width: 18px;
    border-radius: 3px;
    background: var(--white);
}

.phase-swipe-hint {
    display: none;
    text-align: center;
    margin-top: 0.6rem;
    font-size: var(--fs-xs);
    color: var(--text-faint);
}

@media (hover: none) and (pointer: coarse) {
    .phase-swipe-hint {
        display: block;
    }
}

/* Orbit Hub, first thing in Features (full width, as it was in the journey: the map needs the room) */
.hub-preview {
    margin: 0 auto 5rem;
}

.hub-preview > .hub-title {
    font-size: var(--fs-h2);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-align: center;
    margin-bottom: 1.25rem;
}

/* Autoplay progress along the bottom edge of the panel */
.phase-timer {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.04);
}

/* Discreet: a thin white line, no glow */
.phase-timer span {
    display: block;
    height: 100%;
    background: rgba(255, 255, 255, 0.35);
    transform: scaleX(0);
    transform-origin: left;
}

.pulse-dot {
    position: relative;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 6px var(--red);
}

.pulse-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px solid var(--red);
    animation: ping 1.8s var(--ease-out) infinite;
}

@keyframes ping {
    from { transform: scale(1); opacity: 0.9; }
    to { transform: scale(3.2); opacity: 0; }
}

/* --- Phase illustrations (200×200 viewBox). Thin white lines, one green actor. --- */
.v-line {
    fill: none;
    stroke: rgba(255, 255, 255, 0.22);
    stroke-width: 1.2;
}

.v-strong {
    fill: none;
    stroke: rgba(255, 255, 255, 0.6);
    stroke-width: 1.5;
    stroke-linecap: round;
}

.v-green {
    fill: var(--green);
    filter: drop-shadow(0 0 5px var(--green));
}

.v-green-line {
    fill: none;
    stroke: var(--green);
    stroke-width: 2;
    stroke-linecap: round;
    filter: drop-shadow(0 0 4px rgba(0, 255, 136, 0.6));
}

.v-dim {
    fill: rgba(255, 255, 255, 0.3);
}

.v-text {
    fill: var(--text-faint);
    font-family: var(--font-primary);
    font-size: 11px;
    font-weight: 600;
}

.v-text-go {
    fill: var(--green);
}

/* 01 radar sweep */
.v-sweep {
    transform-origin: 100px 100px;
    animation: spin 3.2s linear infinite;
}

.v-blip {
    animation: blip 3.2s ease-out infinite;
    animation-delay: var(--at);
    opacity: 0;
}

@keyframes blip {
    0% { opacity: 1; }
    60%, 100% { opacity: 0.1; }
}

/* 02 broadcast waves reaching an audience */
.v-wave {
    transform-origin: 60px 100px;
    animation: wave 2.4s var(--ease-out) infinite;
    animation-delay: var(--at);
    opacity: 0;
}

@keyframes wave {
    0% { opacity: 0.8; transform: scale(0.4); }
    100% { opacity: 0; transform: scale(1.5); }
}

.v-listener {
    fill: rgba(255, 255, 255, 0.25);
    animation: listener 2.4s ease infinite;
    animation-delay: var(--at);
}

@keyframes listener {
    0%, 30% { fill: rgba(255, 255, 255, 0.25); }
    45%, 70% { fill: var(--green); }
    100% { fill: rgba(255, 255, 255, 0.25); }
}

/* 03 spotlight sweeping a stage */
.v-spot {
    transform-origin: 100px 30px;
    animation: spot 5s var(--ease-in-out) infinite alternate;
}

@keyframes spot {
    from { transform: rotate(-16deg); }
    to { transform: rotate(16deg); }
}

/* 04 pilots: the days of the week light up in turn, then the "with" line draws up and away */
.v-day {
    fill: rgba(255, 255, 255, 0.18);
    animation: v-day 3.6s ease infinite;
    animation-delay: var(--at);
}

@keyframes v-day {
    0% { fill: rgba(255, 255, 255, 0.18); }
    8%, 70% { fill: rgba(255, 255, 255, 0.75); }
    100% { fill: rgba(255, 255, 255, 0.18); }
}

.v-with { --at: 0.4s; }

.v-with-label {
    animation: v-with-label 3.6s ease infinite;
}

@keyframes v-with-label {
    0%, 40% { opacity: 0; }
    55%, 85% { opacity: 1; }
    100% { opacity: 0; }
}

/* shared: a line that draws itself in
.v-draw {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 3.6s var(--ease-in-out) infinite;
    animation-delay: var(--at, 0s);
}

@keyframes draw {
    0% { stroke-dashoffset: 1; opacity: 1; }
    45%, 80% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}

/* 05 entering orbit */
.v-orbit {
    transform-origin: 100px 100px;
    animation: spin 7s linear infinite;
}

/* 05 launch: a rocket hovers calmly above its pad, a soft thrust beneath it */
.v-ascent {
    fill: none;
    stroke: rgba(255, 255, 255, 0.18);
    stroke-width: 1.5;
    stroke-dasharray: 2 7;
    animation: v-ascent 2.4s linear infinite;
}

.v-hover {
    animation: v-hover 4s var(--ease-in-out) infinite;
}

.v-rocket-body {
    fill: rgba(255, 255, 255, 0.92);
}

.v-rocket-fins {
    fill: none;
    stroke: rgba(255, 255, 255, 0.92);
    stroke-width: 2.5;
    stroke-linejoin: round;
}

.v-rocket-window {
    fill: #0a0a0a;
    stroke: var(--green);
    stroke-width: 2;
}

.v-thrust {
    fill: var(--green);
    filter: drop-shadow(0 0 8px var(--green));
    transform-box: fill-box;
    transform-origin: center top;
    animation: v-thrust 1.6s var(--ease-in-out) infinite;
}

.v-pad {
    fill: rgba(255, 255, 255, 0.08);
    animation: v-pad 4s var(--ease-in-out) infinite;
}

@keyframes v-ascent {
    to { stroke-dashoffset: 18; }
}

@keyframes v-hover {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

@keyframes v-thrust {
    0%, 100% { transform: scaleY(0.85); opacity: 0.85; }
    50% { transform: scaleY(1.1); opacity: 1; }
}

@keyframes v-pad {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}

/* 06 live chart with a pulsing latest point */
.v-ping {
    transform-origin: 162px 58px;
    animation: v-ping 1.8s var(--ease-out) infinite;
}

@keyframes v-ping {
    from { transform: scale(1); opacity: 0.8; }
    to { transform: scale(3.5); opacity: 0; }
}

/* ---------- Features ---------- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.75rem;
    max-width: var(--content);
    margin: 0 auto;
}

.feature-card {
    display: flex;
    flex-direction: column;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 12, 14, 0.6);
    backdrop-filter: blur(4px);
    scroll-margin-top: 100px;
    transition: border-color 0.4s ease, box-shadow 0.4s ease;
}


.radar-card {
    border-color: rgba(255, 255, 255, 0.14);
}

.trial-card {
    border-color: rgba(0, 255, 136, 0.3);
}

.trial-card .feature-label {
    color: var(--white);
}


.trial-card:hover { box-shadow: 0 0 36px rgba(0, 255, 136, 0.08); }

.feature-label {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-size: var(--fs-sm);
    color: var(--green);
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.feature-card h3 {
    font-size: var(--fs-h3);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

/* S-Radar title: comes into focus (blur clears, letter-spacing tightens), then a radar ping */
[data-reveal="focus"] { --reveal-anim: focus-in; }

@keyframes focus-in {
    from { opacity: 0; letter-spacing: 0.3em; filter: blur(8px); }
}

.radar-title {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.radar-title::after {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.6);
    opacity: 0;
}

.radar-title.is-visible::after {
    opacity: 1;
    transition: opacity 0.3s ease 0.8s;
    animation: radar-ping 2.4s var(--ease-out) 0.9s infinite;
}

@keyframes radar-ping {
    0% { box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.6); }
    70%, 100% { box-shadow: 0 0 0 14px rgba(0, 255, 136, 0); }
}

.feature-hook {
    font-size: var(--fs-lead);
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.feature-card > p:not(.feature-hook) {
    color: var(--text-dim);
    margin-bottom: 1.25rem;
}

.feature-list {
    list-style: none;
    margin-bottom: 2rem;
    flex: 1;
}

.feature-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    color: var(--text-dim);
    font-size: var(--fs-body);
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.55);
}

.feature-card .btn-primary {
    align-self: flex-start;
}

.radar-card .feature-label {
    color: var(--text-faint);
}

/* Example S-Radar report: tap an insight to read its why */
.radar-report {
    margin-top: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 8, 10, 0.7);
}

.report-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8rem 1.1rem;
    border-bottom: 1px solid rgba(64, 64, 64, 0.7);
    font-size: var(--fs-sm);
    color: var(--text-faint);
    font-weight: 600;
}

.report-tag {
    padding: 0.15rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: var(--fs-xs);
}

.report-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    border-bottom: 1px solid rgba(64, 64, 64, 0.7);
}

.report-metrics > div {
    display: flex;
    flex-direction: column;
    padding: 0.9rem 1.1rem;
}

.report-metrics > div + div {
    border-left: 1px solid rgba(64, 64, 64, 0.7);
}

.metric-value {
    font-size: var(--fs-h4);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.01em;
}

.metric-value.up {
    color: var(--green);
}

.metric-label {
    font-size: var(--fs-xs);
    color: var(--text-faint);
}

.insights {
    list-style: none;
}

.insights li + li {
    border-top: 1px solid rgba(64, 64, 64, 0.5);
}

.insight {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: 0.75rem;
    width: 100%;
    padding: 0.85rem 1.1rem;
    background: none;
    border: none;
    color: var(--white);
    font-family: var(--font-primary);
    font-size: var(--fs-body);
    text-align: left;
    cursor: pointer;
    transition: background 0.25s ease;
}

.insight:hover {
    background: rgba(255, 255, 255, 0.03);
}

.insight:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: -2px;
}

.insight-type {
    font-size: var(--fs-xs);
    font-weight: 700;
    padding: 0.2rem 0.45rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-dim);
}

.insight-type.opportunity,
.insight-type.progress {
    border-color: rgba(0, 255, 136, 0.45);
    color: var(--green);
}

.insight-title {
    font-weight: 600;
}

.insight-why {
    grid-column: 1 / -1;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.45s var(--ease-out);
}

.insight-why > span {
    overflow: hidden;
    color: var(--text-dim);
    font-size: var(--fs-sm);
    line-height: 1.55;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.insight-why strong {
    color: var(--green);
}

.insight[aria-expanded="true"] .insight-why {
    grid-template-rows: 1fr;
}

.insight[aria-expanded="true"] .insight-why > span {
    opacity: 1;
    padding-top: 0.55rem;
}

.diff {
    max-width: var(--content);
    margin: 6rem auto 0;
}

.diff-title {
    font-size: var(--fs-h3);
    text-align: center;
    margin-bottom: 0.75rem;
}

.diff-lead {
    text-align: center;
    color: var(--text-dim);
    font-size: var(--fs-lead);
    max-width: 640px;
    margin: 0 auto 2.5rem;
}

.diff-table {
    border: 1px solid rgba(64, 64, 64, 0.8);
    background: rgba(10, 10, 10, 0.5);
}

.diff-row {
    display: grid;
    grid-template-columns: 1fr 1.4fr 1.4fr;
    border-top: 1px solid rgba(64, 64, 64, 0.6);
}

.diff-row:first-child {
    border-top: none;
}

.diff-row > span {
    padding: 1.1rem 1.5rem;
}

.diff-row > span:first-child {
    font-weight: 600;
}

.diff-row > span:nth-child(2) {
    color: var(--text-faint);
}

.diff-row > span:nth-child(2)::before {
    content: "✕";
    color: var(--text-faint);
    margin-right: 0.6rem;
    font-size: 0.85em;
}

.diff-row > span:nth-child(3) {
    color: var(--white);
    background: rgba(255, 255, 255, 0.03);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.diff-row > span:nth-child(3)::before {
    content: "✓";
    color: var(--green);
    margin-right: 0.6rem;
    font-weight: 700;
}

.diff-head > span {
    font-size: var(--fs-sm);
    padding-top: 0.9rem;
    padding-bottom: 0.9rem;
}

.diff-head > span::before {
    content: none !important;
}

.diff-head > span:nth-child(2) { color: var(--text-faint); }
.diff-head > span:nth-child(3) { color: var(--white); }

/* ---------- Orbit Hub ---------- */

/* --glow: 0..1, how close the pointer is to the star. Set by app.js. */
.hub-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    gap: 1.5rem;
    align-items: start;
    max-width: 1320px;
    margin: 0 auto 2.5rem;
}

.hub-stage {
    --glow: 0;
    position: relative;
    height: min(540px, 44vw);
    min-height: 440px;
    overflow: hidden;
    border-radius: 12px;
    background: radial-gradient(ellipse 60% 55% at 50% 88%, rgba(255, 255, 255, calc(0.03 + var(--glow) * 0.06)), transparent 70%);
    touch-action: pan-y;
    user-select: none;
    -webkit-user-select: none;
}

/* Orbits sink into the horizon: fade them out at the bottom so the starfield shows through */
.hub-rings,
.hub-startups {
    -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 82%, transparent 100%);
}

.hub-live {
    position: absolute;
    top: 1rem;
    left: 1rem;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: var(--fs-sm);
    font-weight: 600;
    color: var(--text-dim);
    pointer-events: none;
}

.hub-live::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 8px var(--red);
    animation: live-blink 1.8s var(--ease-in-out) infinite;
}

@keyframes live-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.35; }
}

.hub-rings {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hub-ring-base {
    fill: none;
    stroke: rgba(255, 255, 255, calc(0.08 + var(--glow) * 0.1));
    stroke-width: 1;
}

/* Dotted track that flows around the orbit */
.hub-ring-dots {
    fill: none;
    stroke: rgba(255, 255, 255, 0.35);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 0.5 14;
    animation: ring-flow var(--dur) linear infinite;
    animation-direction: var(--dir);
}

/* Bright arc sweeping along the orbit */
.hub-ring-arc {
    fill: none;
    stroke: var(--arc);
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-dasharray: 90 910;
    filter: drop-shadow(0 0 4px var(--arc));
    animation: ring-sweep var(--sweep) linear infinite;
    animation-direction: var(--dir);
}

@keyframes ring-flow {
    to { stroke-dashoffset: -145; }
}

@keyframes ring-sweep {
    to { stroke-dashoffset: -1000; }
}

/* Staggered entrance: star glows first, then rings, then startups */
.hub-rings g {
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hub-stage.in-view .hub-rings g {
    opacity: 1;
    transition-delay: calc(300ms + var(--i) * 150ms);
}

.hub-star {
    position: absolute;
    width: 190px;
    height: 190px;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s ease;
}

.hub-stage.in-view .hub-star {
    opacity: 1;
}

.hub-star svg {
    position: relative;
    width: 100%;
    height: 100%;
    filter:
        drop-shadow(0 0 calc(4px + var(--glow) * 14px) rgba(255, 255, 255, calc(0.5 + var(--glow) * 0.5)))
        brightness(calc(0.85 + var(--glow) * 0.3));
}

.hub-star-glow {
    position: absolute;
    inset: calc(-60% - var(--glow) * 40%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, calc(0.18 + var(--glow) * 0.35)) 0%, rgba(255, 255, 255, calc(0.06 + var(--glow) * 0.08)) 32%, transparent 65%);
    animation: star-pulse 3.5s var(--ease-in-out) infinite;
}

@keyframes star-pulse {
    0%, 100% { transform: scale(0.94); opacity: 0.8; }
    50% { transform: scale(1.06); opacity: 1; }
}

.hub-startups {
    position: absolute;
    inset: 0;
    z-index: 4;
}

.hub-startup {
    position: absolute;
    left: 0;
    top: 0;
    padding: 0;
    background: none;
    border: none;
    color: var(--white);
    font-family: var(--font-primary);
    cursor: pointer;
    will-change: transform, opacity;
}

/* Inner pill: scales in during the entrance; outer element is positioned by JS */
.hub-startup .pill .logo-tile {
    width: 24px;
    height: 24px;
    border-radius: 7px;
}

.hub-startup .pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem 0.35rem 0.35rem;
    background: rgba(12, 14, 20, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: var(--fs-sm);
    font-weight: 600;
    white-space: nowrap;
    backdrop-filter: blur(4px);
    opacity: 0;
    transform: scale(0.6);
    transition: opacity 0.5s ease, transform 0.5s var(--ease-out), border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.hub-stage.in-view .hub-startup .pill {
    opacity: 1;
    transform: scale(1);
    transition-delay: calc(700ms + var(--i) * 45ms), calc(700ms + var(--i) * 45ms), 0s, 0s, 0s;
}

.hub-startup:hover .pill,
.hub-startup:focus-visible .pill,
.hub-startup.selected .pill {
    border-color: var(--accent);
    background: rgba(20, 24, 36, 0.92);
    box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 22%, transparent);
}

.hub-startup:focus-visible {
    outline: none;
}

.logo-tile {
    flex: none;
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--accent) 16%, rgba(10, 10, 12, 0.9));
    border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}

.logo-tile svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: var(--accent);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hub-card-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.75rem;
}

.hub-card-title h3 {
    margin-bottom: 0;
}

.hub-card-title .logo-tile {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.hub-card-title .logo-tile svg {
    width: 20px;
    height: 20px;
}

.hub-startup .mark {
    display: grid;
    place-items: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--accent);
    color: #05060a;
    font-size: var(--fs-xs);
    font-weight: 800;
    box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 25%, transparent);
}

/* Sector filter: everything outside the chosen sector fades back */
.hub-startup.dimmed {
    pointer-events: none;
}

.hub-stage.filtering .hub-startup.dimmed .pill {
    opacity: 0;
    transform: scale(0.85);
    transition-delay: 0s;
}

.hub-legend {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    max-width: 820px;
    margin: -0.5rem auto 2rem;
}

/* Hot Startups: live ranking by heat; rows slide to their new rank when it changes */
.hot-table {
    padding: 1.4rem 1.3rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(12, 12, 14, 0.7);
    backdrop-filter: blur(6px);
}

.hot-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}

.hot-head h3 {
    color: var(--red);
    font-size: var(--fs-lead);
    letter-spacing: -0.01em;
}

.hot-live {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text-dim);
}

.hot-live::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--red);
    box-shadow: 0 0 8px var(--red);
    animation: live-blink 1.8s var(--ease-in-out) infinite;
}

.hot-sub {
    font-size: var(--fs-sm);
    color: var(--text-faint);
    margin-bottom: 1rem;
}

.hot-list {
    --row: 52px;
    position: relative;
    list-style: none;
    height: calc(var(--row) * var(--rows, 6));
}

.hot-row {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: var(--row);
    display: grid;
    grid-template-columns: 1.6rem 24px 1fr auto;
    align-items: center;
    column-gap: 0.6rem;
    padding: 0 0.4rem;
    border-top: 1px solid rgba(64, 64, 64, 0.5);
    cursor: pointer;
    transition: transform 0.7s var(--ease-out), background 0.25s ease;
}

.hot-row:hover {
    background: rgba(255, 255, 255, 0.03);
}

.hot-row:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: -2px;
}

.hot-rank {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text-faint);
    font-variant-numeric: tabular-nums;
}

.hot-row:first-child .hot-rank,
.hot-row.rank-1 .hot-rank {
    color: var(--green);
}

.hot-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.hot-name {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
}

.hot-name strong {
    font-size: var(--fs-sm);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-name small {
    font-size: var(--fs-xs);
    color: var(--text-faint);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hot-heat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.hot-score {
    font-size: var(--fs-body);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    transition: color 0.6s ease;
}

.hot-score.rising {
    color: var(--green);
}

.hot-move {
    font-size: var(--fs-xs);
    font-weight: 700;
    color: var(--text-faint);
    font-variant-numeric: tabular-nums;
    min-height: 1em;
}

.hot-move.up {
    color: var(--green);
}

.hot-foot {
    margin-top: 0.9rem;
    font-size: var(--fs-xs);
    color: var(--text-faint);
}

.hub-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    background: rgba(12, 12, 14, 0.6);
    color: var(--text-dim);
    font-family: var(--font-primary);
    font-size: var(--fs-xs);
    cursor: pointer;
    transition: color 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.hub-legend-item .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.hub-legend-item:hover {
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.25);
}

.hub-legend-item[aria-pressed="true"] {
    color: var(--white);
    border-color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.hub-legend-item:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

.hub-card-tags .sector-tag {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 12%, transparent);
}

.hub-card {
    position: absolute;
    z-index: 5;
    width: 300px;
    padding: 1.5rem;
    background: rgba(10, 12, 18, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 30px rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    animation: card-in 0.35s var(--ease-out);
}

@keyframes card-in {
    from { opacity: 0; transform: translateY(8px) scale(0.97); }
}

.hub-card[hidden] {
    display: none;
}

.hub-card-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-faint);
    font-size: var(--fs-body);
    cursor: pointer;
    transition: color 0.2s ease;
}

.hub-card-close:hover {
    color: var(--white);
}

.hub-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.hub-card-tags span {
    font-size: var(--fs-xs);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-dim);
}

.hub-card h3 {
    font-size: var(--fs-h4);
    margin-bottom: 0.75rem;
}

.hub-card dl {
    margin-bottom: 1rem;
}

.hub-card dt {
    font-size: var(--fs-xs);
    color: var(--white);
    font-weight: 600;
}

.hub-card dd {
    color: var(--text-dim);
    font-size: var(--fs-sm);
    line-height: 1.5;
    margin-bottom: 0.6rem;
}

.hub-card-founder {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(64, 64, 64, 0.8);
    margin-bottom: 1.1rem;
    font-size: var(--fs-sm);
}

.hub-card-founder small {
    display: block;
    color: var(--text-faint);
    font-size: var(--fs-xs);
}

.founder-avatar {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    color: var(--white);
    font-size: var(--fs-xs);
    font-weight: 700;
}

.hub-card-cta {
    width: 100%;
    padding: 0.8rem 1rem;
    font-size: var(--fs-sm);
}

/* Caption under the map: how to use it, and that it's a projection */
.hub-note {
    text-align: center;
    padding: 0 1rem;
    color: var(--text-faint);
    font-size: var(--fs-sm);
    max-width: 640px;
    margin: 0 auto;
}

.hub-note-tag {
    white-space: nowrap;
    font-style: italic;
}

.hub-preview .investor-strip {
    max-width: 820px;
    margin-top: 2.5rem;
}

/* ---------- Pricing ---------- */

/* One path in three steps, read left to right (top to bottom on phones). Every step looks
   the same: no highlighted "plan", no hover lift, no per-step buttons */
.price-path {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    max-width: var(--content);
    margin: 0 auto;
    counter-reset: step;
}

.price-step {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 2rem 1.75rem;
    border: 1px solid rgba(64, 64, 64, 0.9);
    background: rgba(12, 12, 14, 0.6);
    backdrop-filter: blur(4px);
}

/* Arrow to the next step, centred in the gap */
.price-step:not(:last-child)::after {
    content: "→";
    position: absolute;
    top: 50%;
    right: -1.25rem;
    transform: translate(50%, -50%);
    color: var(--text-dim);
    font-size: var(--fs-h4);
}

.step-label {
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--text-faint);
    margin-bottom: 1rem;
}

.price-step h3 {
    font-size: var(--fs-h4);
    margin-bottom: 0.3rem;
}

.price-for {
    color: var(--text-faint);
    font-size: var(--fs-body);
    margin-bottom: 1.5rem;
}

.price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 1.5rem;
}

.price .amount {
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--green);
}

/* A word instead of a number ("By stage", "Monthly"): card-title size, kept on one line */
.price .amount-word {
    font-size: var(--fs-h3);
    white-space: nowrap;
}

.price .per {
    color: var(--text-faint);
}

.price-alt {
    margin: -1rem 0 1.4rem;
    font-size: var(--fs-sm);
    color: var(--text-faint);
}

.price-step ul {
    list-style: none;
}

.price-step li {
    padding: 0.45rem 0 0.45rem 1.6rem;
    position: relative;
    color: var(--text-dim);
    font-size: var(--fs-body);
    border-top: 1px solid rgba(64, 64, 64, 0.5);
}

.price-step li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
}

/* "Selected by Orbit": the investment Orbit offers to startups it picks. Set apart from the
   three steps so it never reads as a step or an option */
.selected-strip {
    max-width: var(--content);
    margin: 2.5rem auto 0;
    padding: 2rem 2.25rem;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2.5rem;
    align-items: center;
    border: 1px solid rgba(0, 255, 136, 0.35);
    background: linear-gradient(120deg, rgba(0, 255, 136, 0.07), rgba(12, 12, 14, 0.6) 60%);
}

.selected-label {
    display: block;
    margin-bottom: 0.6rem;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--green);
}

.selected-copy h3 {
    font-size: var(--fs-h4);
    margin-bottom: 0.6rem;
}

.selected-copy p {
    color: var(--text-dim);
    font-size: var(--fs-body);
}

.selected-deal {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
}

.selected-big {
    display: block;
    font-size: 2.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--green);
    line-height: 1.1;
}

/* A word instead of a number: smaller, so the copy beside it keeps its width */
.selected-word {
    font-size: var(--fs-h3);
    line-height: 1.6;
}

.selected-small {
    display: block;
    font-size: var(--fs-sm);
    color: var(--text-faint);
}

.selected-arrow {
    font-size: var(--fs-h3);
    color: var(--text-dim);
}

@media (max-width: 900px) {
    .selected-strip {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 1.5rem;
    }

    .selected-deal {
        justify-content: center;
    }
}

/* Founding seats: the first 5 founders take the Journey free */
.seats {
    max-width: var(--content);
    margin: 2.5rem auto 0;
    padding: 1.75rem 2.25rem;
    display: flex;
    align-items: center;
    gap: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: rgba(12, 12, 14, 0.6);
}

.seat-icons {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

/* A seat: back and seat, outlined in green */
.seat-icons i {
    width: 26px;
    height: 30px;
    border: 2px solid var(--green);
    border-radius: 6px 6px 3px 3px;
    box-shadow: inset 0 -9px 0 -6px var(--green);
}

.seats-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: var(--fs-sm);
    font-weight: 700;
    color: var(--green);
}

.seats-copy h3 {
    font-size: var(--fs-h3);
    letter-spacing: -0.02em;
    margin-bottom: 0.35rem;
}

.seats-copy p {
    color: var(--text-dim);
}

@media (max-width: 700px) {
    .seats {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
        padding: 1.5rem;
    }
}

.price-cta {
    display: flex;
    justify-content: center;
    margin-top: 2.5rem;
}

@media (max-width: 900px) {
    .price-path {
        grid-template-columns: 1fr;
        max-width: 560px;
    }

    .price-step:not(:last-child)::after {
        content: "↓";
        top: auto;
        right: 50%;
        bottom: -1.25rem;
        transform: translate(50%, 50%);
    }
}

.investor-strip {
    max-width: var(--content);
    margin: 1.5rem auto 0;
    padding: 1.25rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    border: 1px dashed rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-dim);
}

.investor-strip strong {
    color: var(--white);
}

.investor-strip .text-link {
    white-space: nowrap;
}


/* ---------- FAQ ---------- */

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq details {
    border-bottom: 1px solid rgba(64, 64, 64, 0.8);
}

.faq summary {
    list-style: none;
    cursor: pointer;
    padding: 1.4rem 2.5rem 1.4rem 0;
    font-size: var(--fs-lead);
    font-weight: 600;
    position: relative;
    transition: color 0.25s ease;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 0.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--green);
    font-size: var(--fs-h4);
    font-weight: 400;
    transition: transform 0.3s var(--ease-out), color 0.3s ease;
}

.faq details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
    color: var(--white);
}

.faq summary:hover,
.faq details[open] summary {
    color: var(--white);
}

.faq details p {
    color: var(--text-dim);
    padding: 0 2.5rem 1.5rem 0;
    line-height: 1.8;
}

.faq details[open] p {
    animation: rise-in 0.4s var(--ease-out);
}

/* FAQ "Something else?" question box */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.faq-other summary {
    color: var(--green);
}

.ask-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0 0 1.5rem;
}

.ask-form textarea,
.ask-form input {
    width: 100%;
    padding: 0.9rem 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--subtle);
    border-radius: 10px;
    color: var(--white);
    font-family: var(--font-primary);
    font-size: var(--fs-body);
    line-height: 1.5;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.ask-form textarea:focus,
.ask-form input:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.12);
}

.ask-form ::placeholder {
    color: var(--text-faint);
}

.ask-row {
    display: flex;
    gap: 0.75rem;
}

.ask-row input {
    flex: 1;
}

.ask-row .btn-primary {
    flex: none;
    padding: 0.85rem 1.5rem;
    font-size: var(--fs-sm);
}

.ask-row .btn-primary:disabled {
    opacity: 0.5;
    cursor: wait;
}

.ask-status {
    min-height: 1.4em;
    font-size: var(--fs-sm);
    color: var(--text-dim);
    padding: 0 !important;
}

.ask-status.sent {
    color: var(--green);
}

.ask-status.error {
    color: var(--red);
}

.ask-status a {
    color: var(--green);
}

/* ---------- Early access ---------- */

.early-access .section-sub {
    margin-bottom: 2rem;
}

.signup-form {
    max-width: 520px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.signup-form input {
    flex: 1;
    min-width: 220px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--subtle);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: var(--fs-body);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.signup-form input:hover {
    border-color: rgba(255, 255, 255, 0.5);
}

.signup-form input:focus {
    outline: none;
    border-color: var(--green);
    background: rgba(0, 255, 136, 0.04);
    box-shadow: 0 0 0 3px rgba(0, 255, 136, 0.15), 0 0 18px rgba(0, 255, 136, 0.25);
}

.signup-form input::placeholder {
    color: var(--text-faint);
}

.signup-form button {
    min-width: 190px;
}

/* Success: button fills green with a drawn checkmark */
.signup-form button.success {
    background: var(--green);
    color: var(--bg);
    box-shadow: 0 0 30px rgba(0, 255, 136, 0.5);
    animation: success-pop 0.5s var(--ease-out);
}

.signup-form button.success svg {
    width: 16px;
    height: 16px;
    margin-right: 0.5rem;
    vertical-align: -2px;
}

.signup-form button.success path {
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    animation: draw-check 0.45s var(--ease-out) 0.1s forwards;
}

@keyframes success-pop {
    40% { transform: scale(1.05); }
}

@keyframes draw-check {
    to { stroke-dashoffset: 0; }
}

.signup-success {
    text-align: center;
    color: var(--white);
    font-weight: 600;
    margin-top: 1.25rem;
    
    animation: rise-in 0.5s var(--ease-out);
}

.signup-note {
    text-align: center;
    color: var(--text-faint);
    font-size: var(--fs-sm);
    margin-top: 1rem;
}

/* ---------- Contact ---------- */

.contact {
    text-align: center;
}

.contact-links {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.contact-links a {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 280px;
    padding: 1.4rem 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(12, 12, 14, 0.5);
    color: var(--white);
    text-decoration: none;
    transition: all 0.35s var(--ease-out);
}

.contact-links a:hover {
    border-color: var(--white);
    background: rgba(255, 255, 255, 0.07);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.06);
    transform: translateY(-3px);
}

.contact-label {
    font-size: var(--fs-sm);
    color: var(--white);
    font-weight: 600;
}

.contact-value {
    font-size: var(--fs-lead);
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* ---------- Footer ---------- */

.footer {
    padding: 4rem 2rem 3rem;
    text-align: center;
    color: var(--text-faint);
}

.footer-logo {
    display: inline-block;
    width: 48px;
    height: 48px;
    margin-bottom: 0.75rem;
    opacity: 0.85;
}

.footer-logo svg {
    width: 100%;
    height: 100%;
}

.footer-wordmark {
    display: block;
    height: 18px;
    width: auto;
    margin: 0 auto 1rem;
    opacity: 0.9;
}

.footer-slogan {
    color: var(--text-dim);
    font-weight: 500;
    margin-bottom: 0.4rem;
}

.footer-copy {
    font-size: var(--fs-sm);
}

/* ---------- S-Radar chat ---------- */

.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: rgba(4, 4, 6, 0.72);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    animation: fade-in 0.3s ease;
}

.modal.hidden {
    display: none;
}

.radar-chat {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 720px;
    height: min(780px, 88vh);
    background: linear-gradient(180deg, rgba(22, 22, 27, 0.97), rgba(11, 11, 13, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 22px;
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.02) inset;
    overflow: hidden;
    animation: rise-in 0.45s var(--ease-out);
}

/* Header */
.rc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.4rem 1rem;
}

.rc-id {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.rc-id h3 {
    font-size: var(--fs-lead);
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.rc-id p {
    font-size: var(--fs-xs);
    color: var(--text-faint);
    letter-spacing: 0.06em;
}

/* Radar mark: a ring with a slow green sweep */
.rc-radar {
    position: relative;
    flex: none;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(0, 255, 136, 0.35);
    background:
        radial-gradient(circle, rgba(0, 255, 136, 0.9) 0 2px, transparent 3px),
        radial-gradient(circle, transparent 0 55%, rgba(0, 255, 136, 0.18) 56% 57%, transparent 58%);
    overflow: hidden;
}

.rc-radar i {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(0, 255, 136, 0.45), transparent 28%);
    animation: spin 3s linear infinite;
}

.rc-radar-sm {
    width: 26px;
    height: 26px;
    margin-top: 0.1rem;
}

.rc-close {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-dim);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.rc-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.rc-close svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

/* Positioning note: not a validator */
.rc-note {
    display: flex;
    gap: 0.7rem;
    margin: 0 1.4rem;
    padding: 0.8rem 1rem;
    border: 1px solid rgba(0, 255, 136, 0.22);
    border-radius: 12px;
    background: rgba(0, 255, 136, 0.04);
}

.rc-note svg {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 0.1rem;
    fill: none;
    stroke: var(--green);
    stroke-width: 1.6;
    stroke-linecap: round;
}

.rc-note p {
    font-size: var(--fs-sm);
    line-height: 1.55;
    color: var(--text-dim);
}

.rc-note strong {
    color: var(--white);
    font-weight: 600;
}

/* The 7 dimensions as a progress rail */
.rc-dims {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 1rem 1.4rem 0;
    padding-bottom: 1rem;
    list-style: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.rc-dims::-webkit-scrollbar {
    display: none;
}

.rc-dims li {
    flex: none;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 999px;
    font-size: var(--fs-xs);
    color: var(--text-faint);
    transition: all 0.4s ease;
}

.rc-dims li span {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    opacity: 0.6;
}

.rc-dims li.done {
    color: var(--text-dim);
    border-color: rgba(0, 255, 136, 0.25);
}

.rc-dims li.done span {
    color: var(--green);
    opacity: 1;
}

.rc-dims li.current {
    color: var(--white);
    border-color: rgba(0, 255, 136, 0.6);
    background: rgba(0, 255, 136, 0.08);
    box-shadow: 0 0 14px rgba(0, 255, 136, 0.15);
}

.rc-dims li.current span {
    color: var(--green);
    opacity: 1;
}

/* Conversation */
.rc-chat {
    flex: 1;
    overflow-y: auto;
    padding: 1.4rem 1.4rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.15) transparent;
}

.rc-msg {
    display: flex;
    gap: 0.75rem;
    max-width: 100%;
}

.rc-msg.enter {
    animation: rise-in 0.4s var(--ease-out);
}

.rc-msg.assistant .rc-text {
    color: rgba(255, 255, 255, 0.86);
    font-size: var(--fs-body);
    line-height: 1.7;
    white-space: pre-line;
}

.rc-msg.user {
    justify-content: flex-end;
}

.rc-msg.user .rc-text {
    max-width: 78%;
    padding: 0.7rem 1rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px 18px 6px 18px;
    color: var(--white);
    font-size: var(--fs-body);
    line-height: 1.6;
    white-space: pre-line;
}

.typing {
    display: inline-flex;
    gap: 5px;
    padding: 0.55rem 0;
}

.typing span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-dim);
    animation: typing 1.2s var(--ease-in-out) infinite;
}

.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing {
    0%, 60%, 100% { opacity: 0.25; transform: translateY(0); }
    30% { opacity: 1; transform: translateY(-3px); }
}

/* Conversation starters */
.rc-starters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0 1.4rem 0.8rem 3.55rem;
}

.rc-starter {
    padding: 0.45rem 0.85rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-dim);
    font-family: var(--font-primary);
    font-size: var(--fs-sm);
    cursor: pointer;
    transition: all 0.2s ease;
}

.rc-starter:hover {
    color: var(--white);
    border-color: rgba(0, 255, 136, 0.45);
    background: rgba(0, 255, 136, 0.06);
}

/* Composer */
.rc-composer {
    display: flex;
    align-items: flex-end;
    gap: 0.6rem;
    margin: 0 1.4rem;
    padding: 0.55rem 0.55rem 0.55rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.rc-composer:focus-within {
    border-color: rgba(0, 255, 136, 0.5);
    box-shadow: 0 0 0 4px rgba(0, 255, 136, 0.08);
}

.rc-composer textarea {
    flex: 1;
    min-height: 1.6em;
    max-height: 140px;
    padding: 0.45rem 0;
    resize: none;
    border: none;
    outline: none;
    background: transparent;
    color: var(--white);
    font-family: var(--font-primary);
    font-size: var(--fs-body);
    line-height: 1.5;
}

.rc-composer textarea::placeholder {
    color: var(--text-faint);
}

.rc-send {
    flex: none;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 12px;
    background: var(--green);
    color: #05140c;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.25s ease;
}

.rc-send:hover {
    box-shadow: 0 0 18px rgba(0, 255, 136, 0.45);
}

.rc-send:active {
    transform: scale(0.94);
}

.rc-send svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.rc-hint {
    padding: 0.55rem 1.4rem 1rem;
    text-align: center;
    font-size: var(--fs-xs);
    color: var(--text-faint);
}


/* Questionnaire end: email gate and initial report */
.rc-composer[hidden], .rc-hint[hidden] { display: none; }

.rc-gate, .rc-report {
    margin-left: 2.8rem;
    padding: 1.1rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.rc-gate.enter, .rc-report.enter { animation: rise-in 0.45s var(--ease-out); }

.rc-gate-title { color: var(--white); font-weight: 600; }
.rc-gate-body { margin-top: 0.25rem; color: var(--text-dim); font-size: var(--fs-sm); }

.rc-gate-row { display: flex; gap: 0.5rem; margin-top: 0.5rem; }

.rc-gate-name { width: 100%; margin-top: 0.85rem; }

.rc-gate-name,
.rc-gate-row input {
    flex: 1;
    min-width: 0;
    padding: 0.65rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--white);
    font-family: var(--font-primary);
    font-size: var(--fs-sm);
    outline: none;
}

.rc-gate-name:focus,
.rc-gate-row input:focus { border-color: rgba(0, 255, 136, 0.5); }

.rc-gate-row button {
    padding: 0.65rem 1rem;
    border: none;
    border-radius: 12px;
    background: var(--green);
    color: #05140c;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: var(--fs-sm);
    cursor: pointer;
}

.rc-gate-row button:disabled { opacity: 0.5; cursor: default; }

.rc-gate-status { margin-top: 0.5rem; min-height: 1.2em; color: var(--text-dim); font-size: var(--fs-xs); display: flex; align-items: center; gap: 0.4rem; }
.rc-gate-status .typing { padding: 0; }

.rc-report { display: flex; flex-direction: column; gap: 0.8rem; scroll-margin-top: 1rem; }
.rc-report-kicker { color: var(--green); font-size: var(--fs-xs);}
.rc-report h4 { color: var(--white); font-size: var(--fs-h4); line-height: 1.35; }
.rc-report h5 { color: var(--white); font-size: var(--fs-sm); font-weight: 600; margin-bottom: 0.35rem; }
.rc-report-summary, .rc-report li, .rc-report-next { color: rgba(255, 255, 255, 0.78); font-size: var(--fs-sm); line-height: 1.6; }

.rc-report-dims { list-style: none; display: flex; flex-direction: column; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.rc-report-dims li { display: grid; grid-template-columns: 9.5rem 1fr; gap: 0.8rem; padding: 0.6rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.rc-report-dim { display: flex; flex-direction: column; color: var(--white); font-weight: 600; }
.rc-report-dim em { font-style: normal; font-weight: 400; font-size: var(--fs-xs); color: var(--text-faint); }
.rc-report-dims li.clear em { color: var(--green); }
.rc-report-dims li.partial em { color: var(--text-dim); }

.rc-report-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.rc-report ul { padding-left: 1.1rem; display: flex; flex-direction: column; gap: 0.3rem; }

.rc-report-tests { padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.6rem; }
.rc-report-tests li { display: flex; flex-direction: column; }
.rc-report-tests strong { color: var(--white); font-weight: 600; }
.rc-report-tests span { color: var(--text-dim); font-size: var(--fs-xs); }

.rc-report-next { padding-top: 0.8rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.rc-report-next strong { color: var(--green); }

@media (max-width: 600px) {
    .rc-gate, .rc-report { margin-left: 0; }
    .rc-gate-row { flex-direction: column; }
    .rc-report-dims li, .rc-report-cols { grid-template-columns: 1fr; gap: 0.3rem; }
}

/* ---------- Responsive ---------- */

@media (max-width: 960px) {
    .hub-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        margin-left: 0.5rem;
    }

    /* Phones: the links collapse into the menu, so the picker takes the free space */
    .lang-switch {
        margin-left: auto;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        padding: 0.5rem 1rem 1rem;
        background: var(--bg);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 0.9rem 0.5rem;
        font-size: var(--fs-body);
        border-bottom: 1px solid rgba(64, 64, 64, 0.5);
    }

    .nav-links a::after {
        display: none;
    }

    .hero {
        padding: 80px 1rem 60px;
    }

    .hero-logo {
        --logo: 160px;
        --size: 200px;
    }

    .report-metrics > div {
        padding: 0.8rem;
    }

    .tagline {
        font-size: var(--fs-body);
    }

    main > section:not(.hero) {
        padding: 5rem 1rem;
    }

    .trajectory text {
        font-size: 22px;
    }

    .traj-node text {
        display: none;
    }

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

    .ask-row {
        flex-direction: column;
    }

    .traps.staging {
        height: 600px;
    }

    .traps.staging .trap {
        grid-template-columns: 1fr;
        grid-template-rows: auto auto auto auto;
        grid-template-areas: "visual" "num" "title" "punch";
        align-content: center;
        row-gap: 0.5rem;
    }

    .phase-tabs {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
        margin-left: -1rem;
        margin-right: -1rem;
        padding: 0 1rem;
    }

    .phase-tabs::-webkit-scrollbar {
        display: none;
    }

    .phase-tab {
        flex: none;
    }

    .phase-panel {
        grid-template-columns: 1fr;
        padding: 1.75rem 1.5rem 2rem;
        gap: 1rem;
    }

    .phase-visual {
        order: -1;
    }

    .phase-visual svg {
        width: 150px;
    }

    .feature-card {
        padding: 1.75rem;
    }


    .diff-row {
        grid-template-columns: 1fr 1fr;
    }

    .diff-row > span:first-child {
        grid-column: 1 / -1;
        padding-bottom: 0.25rem;
        color: var(--text-faint);
        font-size: var(--fs-xs);
    }

    .diff-row > span {
        padding: 0.8rem 1rem;
        font-size: var(--fs-sm);
    }

    .diff-head > span:first-child {
        display: none;
    }

    .hub-stage {
        height: 520px;
        min-height: 0;
        margin-left: -1rem;
        margin-right: -1rem;
        border-radius: 0;
    }

    .hub-star {
        width: 110px;
        height: 110px;
    }

    .hub-startup .pill {
        font-size: var(--fs-xs);
        padding: 0.25rem 0.6rem 0.25rem 0.25rem;
    }

    .hub-startup .mark {
        width: 22px;
        height: 22px;
        font-size: var(--fs-xs);
    }

    .hub-card {
        left: 0.75rem !important;
        right: 0.75rem;
        top: 0.75rem !important;
        width: auto;
    }

    .contact-links a {
        min-width: 0;
        width: 100%;
    }

    .modal {
        padding: 0;
    }

    .radar-chat {
        height: 100%;
        max-height: none;
        border-radius: 0;
    }

    /* Phones: keep the conversation roomy */
    .rc-head {
        padding: 1rem 1rem 0.8rem;
    }

    .rc-note {
        margin: 0 1rem;
        padding: 0.6rem 0.8rem;
    }

    .rc-note span {
        display: none;
    }

    .rc-dims {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        margin: 0.8rem 1rem 0;
        padding-bottom: 0.8rem;
    }

    .rc-chat {
        padding: 1rem 1rem 0.6rem;
    }

    .rc-starters {
        flex-wrap: nowrap;
        overflow-x: auto;
        scrollbar-width: none;
        padding: 0 1rem 0.6rem;
    }

    .rc-starter {
        flex: none;
    }

    .rc-composer {
        margin: 0 1rem calc(0.8rem + env(safe-area-inset-bottom, 0px));
    }

    .rc-hint {
        display: none;
    }
}

/* Small phones: startups show as initials only; tapping still opens the full card */
@media (max-width: 480px) {
    .hub-startup .pill {
        padding: 0.2rem;
    }

    .hub-startup .name {
        display: none;
    }
}

/* Respect reduced-motion preferences: keep the design, drop the movement */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }

    [data-reveal],
    .letters .char,
    .trap {
        opacity: 1;
    }


}

/* Logos in the Hot Startups ranking */
.hot-row .logo-tile {
    width: 22px;
    height: 22px;
    border-radius: 6px;
}

.hot-row .logo-tile svg {
    width: 14px;
    height: 14px;
}
