/* ==========================================================================
   SELECTAGENT — unified on the SelectAgent live palette.
   Warm cream canvas, warm near-black inverse surfaces, one clay accent.
   No cool slate, no cyan. Shares the SIE warm system. Self-contained.
   ========================================================================== */

:root {
    --cream:    #FAF7EF;   /* page canvas */
    --cream-2:  #F4F0E5;   /* sunken cream panel */
    --ink:      #0F0D08;   /* deepest warm black */
    --ink-soft: #1A1812;   /* warm near-black panel (inverse surfaces) */
    --panel:    #211C13;   /* dark card surface on inverse */
    --panel-2:  #2A2419;
    --hair:     rgba(26,24,18,0.14);    /* hairline on cream */
    --hair-dark:rgba(244,241,233,0.15); /* hairline on dark */

    --clay:        #C16A45;   /* display clay */
    --clay-bright: #D89066;   /* brighter clay for accents on dark surfaces */
    --clay-deep:   #B05A38;   /* working clay: buttons, links, focus */
    --clay-soft:   #E6AE83;   /* light clay, secondary edges on dark */

    --type:        #1A1812;   /* body on cream */
    --type-2:      #514B3D;   /* muted body on cream */
    --type-3:      #877E6A;   /* faint metadata on cream */
    --type-dark:   #F4F1E9;   /* type on dark */
    --mute-dark:   #B7AE9C;   /* muted type on dark */
    --mute-dark-2: #837A68;   /* faint on dark */

    --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --display: 'Inter Tight', 'Inter', sans-serif;
    --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
    --maxw: 1240px;
    --pad: clamp(1.25rem, 5vw, 3rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--cream); color: var(--type); line-height: 1.6; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
::selection { background: var(--clay); color: var(--cream); }

.eyebrow { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--clay-deep); }
h1, h2, h3, .display { font-family: var(--display); font-weight: 700; letter-spacing: -0.022em; line-height: 1.05; text-wrap: balance; color: var(--type); }
.lede { font-size: clamp(1.08rem, 1.9vw, 1.32rem); line-height: 1.58; color: var(--type-2); font-weight: 400; text-wrap: pretty; }
.shell { width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.shell-narrow { max-width: 900px; }
.section { padding: clamp(5rem, 12vh, 9rem) 0; }

/* hairline kicker */
.kicker-row { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem; }
.kicker-row .eyebrow { white-space: nowrap; }
.rule { height: 1px; flex: 1; background: var(--hair); transform: scaleX(0); transform-origin: left; transition: transform 1.1s var(--ease); }
.rule.cyan { background: linear-gradient(90deg, var(--clay), transparent); }
.rule.on-dark { background: var(--hair-dark); }
.rule.is-in { transform: scaleX(1); }

[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); will-change: opacity, transform; }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ===================== NAV ===================== */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 1000; padding: 1.35rem 0; transition: background .4s var(--ease), padding .4s var(--ease), border-color .4s var(--ease); border-bottom: 1px solid transparent; }
.nav.scrolled { background: rgba(250,247,239,0.82); backdrop-filter: blur(16px) saturate(150%); -webkit-backdrop-filter: blur(16px) saturate(150%); border-bottom: 1px solid var(--hair); padding: 0.85rem 0; }
.nav-row { display: flex; align-items: center; justify-content: space-between; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.brand { display: flex; align-items: center; gap: 0; font-family: var(--display); font-weight: 800; font-size: 0.98rem; letter-spacing: 0.14em; color: var(--type-dark); transition: color .4s var(--ease); white-space: nowrap; min-width: 0; }
.brand b { font-weight: 800; }
.brand b + b { font-weight: 500; color: var(--mute-dark); }
.brand i { width: 5px; height: 5px; border-radius: 50%; background: var(--clay); display: inline-block; margin: 0 7px; }
.nav.scrolled .brand { color: var(--type); }
.nav.scrolled .brand b + b { color: var(--type-3); }
.nav-menu { display: flex; align-items: center; gap: clamp(1.2rem, 2.4vw, 2.2rem); }
.nav-link { font-size: 0.86rem; font-weight: 500; color: rgba(244,241,233,0.80); position: relative; padding: 4px 0; transition: color .25s var(--ease); }
.nav.scrolled .nav-link { color: var(--type-2); }
.nav-link::after { content: ''; position: absolute; left: 0; bottom: -2px; height: 1px; width: 0; background: var(--clay); transition: width .35s var(--ease); }
.nav-link:hover, .nav-link.active { color: var(--type-dark); }
.nav.scrolled .nav-link:hover, .nav.scrolled .nav-link.active { color: var(--type); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta { border: 1px solid rgba(244,241,233,0.4); border-radius: 100px; padding: 0.55rem 1.15rem !important; color: var(--type-dark) !important; transition: all .3s var(--ease); }
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--clay-deep); border-color: var(--clay-deep); color: var(--cream) !important; }
.nav.scrolled .nav-cta { border-color: var(--type); color: var(--type) !important; }
.nav.scrolled .nav-cta:hover { background: var(--ink); border-color: var(--ink); color: var(--cream) !important; }
.nav-toggle { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 1.5px; background: var(--type-dark); transition: all .3s var(--ease); }
.nav.scrolled .nav-toggle span { background: var(--type); }
.nav-toggle.active span { background: var(--type-dark); }
.nav-toggle.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===================== BUTTONS ===================== */
.btn { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; font-weight: 600; padding: 0.95rem 1.7rem; border-radius: 100px; transition: transform .35s var(--ease), background .3s var(--ease), box-shadow .35s var(--ease), border-color .3s var(--ease), color .3s var(--ease); }
.btn svg { width: 17px; height: 17px; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
/* primary clay (formerly "cyan") */
.btn-cyan, .btn-clay { background: var(--clay-deep); color: var(--cream); }
.btn-cyan:hover, .btn-clay:hover { background: var(--clay); transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(176,90,56,0.55); }
.btn-ghost { border: 1px solid var(--hair); color: var(--type); }
.btn-ghost:hover { border-color: var(--type); color: var(--type); transform: translateY(-2px); }
/* ghost variant on dark surfaces */
.btn-ghost-light { border: 1px solid rgba(244,241,233,0.34); color: var(--type-dark); }
.btn-ghost-light:hover { border-color: var(--type-dark); transform: translateY(-2px); }
.text-link { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.86rem; font-weight: 600; color: var(--clay-deep); transition: gap .3s var(--ease); }
.text-link svg { width: 15px; height: 15px; }
.text-link:hover { gap: 0.7rem; color: var(--type); }

/* ===================== HERO (dark inverse, like SIE) ===================== */
.sa-hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; background: var(--ink); padding-bottom: clamp(3.5rem, 10vh, 7rem); }
.sa-hero-media { position: absolute; inset: -8% 0; z-index: 0; will-change: transform; }
.sa-hero-media img { width: 100%; height: 116%; object-fit: cover; opacity: 0.5; filter: saturate(0.9) brightness(0.85); object-position: center 38%; }
.sa-hero-glow { position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
      radial-gradient(60% 60% at 72% 36%, rgba(193,106,69,0.18), transparent 60%),
      linear-gradient(180deg, rgba(15,13,8,0.58) 0%, rgba(15,13,8,0.30) 38%, rgba(15,13,8,0.86) 88%, var(--ink) 100%); }
.sa-hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.sa-hero .eyebrow { display: block; color: var(--clay-soft); margin-bottom: 0.2rem; }
.sa-hero h1 { color: var(--type-dark); font-size: clamp(2.7rem, 7.4vw, 6rem); line-height: 1.04; margin: 1.5rem 0 0; max-width: 17ch; }
.sa-hero h1 em { font-style: normal; color: var(--clay-soft); }
.sa-hero .lede { margin-top: 1.7rem; max-width: 48ch; color: var(--mute-dark); }
.sa-hero-actions { margin-top: 2.4rem; display: flex; flex-wrap: wrap; gap: 0.9rem; }
.sa-hero-meta { position: absolute; z-index: 2; left: var(--pad); right: var(--pad); bottom: 1.5rem; font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute-dark-2); }

/* ===================== STACK / ONTOLOGY CENTERPIECE (built on load) ===================== */
.stack-wrap { position: relative; background: var(--ink-soft); color: var(--type-dark); }
.stack-sticky { display: flex; flex-direction: column; padding: clamp(3.5rem, 8vh, 6rem) 0 clamp(2.5rem, 5vh, 4rem); }
.stack-head { padding: 0 var(--pad); text-align: center; max-width: 760px; margin: 0 auto; }
.stack-head .eyebrow { color: var(--clay-soft); }
.stack-head h2 { color: var(--type-dark); font-size: clamp(1.6rem, 3.6vw, 2.7rem); margin-top: 0.7rem; }
.stack-head p { color: var(--mute-dark); font-size: 0.98rem; margin-top: 0.7rem; }
.stack-stage { position: relative; display: flex; align-items: center; justify-content: center; padding: clamp(1rem, 3vh, 2rem) var(--pad) 0; }
#ontologySvg { width: 100%; height: auto; max-width: 1120px; overflow: visible; }

/* phase legend — now a static key */
.stack-phases { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem 1.6rem; margin: 1.6rem auto 0; padding: 0 var(--pad); }
.stack-phase { display: flex; align-items: center; gap: 0.55rem; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mute-dark); }
.stack-phase i { width: 7px; height: 7px; border-radius: 50%; background: var(--hair-dark); border: 1px solid var(--hair-dark); }
.stack-phase.on i { background: var(--clay); border-color: var(--clay); box-shadow: 0 0 10px rgba(193,106,69,0.7); }
.stack-phase.layer { color: var(--type-dark); }
.stack-phase.layer i { background: var(--clay); border-color: var(--clay); box-shadow: 0 0 10px rgba(193,106,69,0.7); }
.scrub-hint { display: none; }

/* SVG element base styles (driven by JS classes) */
.sem-glow { fill: var(--clay); opacity: 0.13; }
.src-box { fill: var(--panel); stroke: var(--hair-dark); stroke-width: 1; }
.src-box.lit { stroke: rgba(244,241,233,0.4); }
.src-label { fill: var(--mute-dark); font: 600 13px var(--font); }
.src-sub { fill: var(--mute-dark-2); font: 500 11px var(--font); }
.ingest-band { fill: rgba(42,36,25,0.7); stroke: var(--hair-dark); stroke-width: 1; }
.ingest-label { fill: var(--mute-dark); font: 600 12px var(--font); letter-spacing: 0.06em; }
.connector { stroke: var(--clay-deep); stroke-width: 1.4; fill: none; opacity: 0.0; }
.layer-label { fill: var(--clay-soft); font: 600 11px var(--font); letter-spacing: 0.16em; text-transform: uppercase; }

.edge { stroke: var(--clay); stroke-width: 1.5; fill: none; opacity: 0.6; }
.edge.mint { stroke: var(--clay-soft); }
.edge-label { fill: var(--mute-dark); font: 500 11px var(--font); opacity: 0; transition: opacity .3s var(--ease); }
.edge-label rect { fill: var(--ink-soft); }

.node-box { fill: var(--panel-2); stroke: var(--clay); stroke-width: 1.4; }
.node-box.hub { fill: #3a2415; stroke: var(--clay-bright); stroke-width: 1.8; }
.node-label { fill: var(--type-dark); font: 600 15px var(--display); letter-spacing: -0.01em; }
.node-dot { fill: var(--clay-bright); }

.cmd-screen { fill: rgba(20,17,11,0.92); stroke: var(--clay); stroke-width: 1.4; }
.cmd-line { stroke: var(--hair-dark); stroke-width: 1; }
.cmd-cell { rx: 2; }
.cmd-label { fill: var(--clay-soft); font: 600 11px var(--font); letter-spacing: 0.14em; text-transform: uppercase; }

/* dim/trace states for hover */
#ontologySvg.has-hover .node:not(.trace) .node-box { stroke: var(--hair-dark); opacity: 0.35; }
#ontologySvg.has-hover .node:not(.trace) .node-label { opacity: 0.35; }
#ontologySvg.has-hover .edge:not(.trace) { opacity: 0.07; }
#ontologySvg.has-hover .edge.trace { opacity: 1; stroke-width: 2.2; }
#ontologySvg.has-hover .edge.trace + .edge-label,
#ontologySvg.has-hover .edge-label.trace { opacity: 1; }
.node { cursor: pointer; }
#ontologySvg.has-hover .sem-glow { opacity: 0.08; }

/* edge-label shown (faint when built, full on trace) */
.edge-label.shown { opacity: 1; }
.edge-label.shown text { fill: var(--mute-dark); }
#ontologySvg:not(.has-hover) .edge-label.shown { opacity: 0.42; }
#ontologySvg.has-hover .edge-label:not(.trace) { opacity: 0 !important; }
#ontologySvg.has-hover .edge-label.trace { opacity: 1 !important; }
.node-pulse { display: none; }

/* ---- alive state (motion only) ---- */
@media (prefers-reduced-motion: no-preference) {
    /* breathing halo on OUR layer — slow soft pulse in the accent */
    #ontologySvg.built .sem-glow { animation: sem-breathe 4.6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
    @keyframes sem-breathe {
        0%, 100% { opacity: 0.10; transform: scale(0.97); }
        50%      { opacity: 0.20; transform: scale(1.03); }
    }
    /* faint signal traveling the edges */
    #ontologySvg.built .edge { stroke-dasharray: 5 11; animation: sa-flow 1.8s linear infinite; }
    #ontologySvg.built .edge.mint { animation-duration: 2.3s; }
    #ontologySvg.built.has-hover .edge:not(.trace) { animation: none; }
    @keyframes sa-flow { to { stroke-dashoffset: -32; } }

    #ontologySvg.built .node-dot { animation: sa-dot 2.6s ease-in-out infinite; }
    @keyframes sa-dot { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
}

/* ===================== STEPS learn/build/run (light cards) ===================== */
.steps { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.4rem; }
.step { border: 1px solid var(--hair); border-radius: 12px; padding: clamp(1.6rem,3vw,2.4rem); background: #fff; position: relative; overflow: hidden; box-shadow: 0 1px 3px 0 rgb(26 24 18 / 0.05); transition: box-shadow .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease); }
.step::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 2px; background: linear-gradient(90deg, var(--clay), transparent); }
.step:hover { box-shadow: 0 12px 32px -10px rgb(26 24 18 / 0.12); transform: translateY(-3px); }
.step .sn { font-family: var(--display); font-size: 0.78rem; letter-spacing: 0.2em; color: var(--clay-deep); }
.step h3 { font-size: 1.4rem; margin: 1.2rem 0 0.7rem; }
.step p { color: var(--type-2); font-size: 0.95rem; }

/* ===================== CAPABILITY STRIP (light) ===================== */
.caps { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; }
.cap { background: #fff; padding: clamp(1.5rem,3vw,2.2rem); transition: background .35s var(--ease); }
.cap:hover { background: var(--cream-2); }
.cap .ci { width: 40px; height: 40px; border-radius: 8px; background: rgba(193,106,69,0.12); display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; }
.cap .ci svg { width: 20px; height: 20px; stroke: var(--clay-deep); }
.cap h3 { font-size: 1.12rem; margin-bottom: 0.5rem; }
.cap p { color: var(--type-2); font-size: 0.9rem; line-height: 1.55; }

/* ===================== FIRST BUILD / split ===================== */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem,5vw,4.5rem); align-items: center; }
.split h2 { font-size: clamp(1.9rem,4vw,3rem); margin-bottom: 1.2rem; }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--hair); border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; }
.spec-item { background: #fff; padding: 1.5rem; }
.spec-item .k { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--clay-deep); margin-bottom: 0.5rem; }
.spec-item .v { font-family: var(--display); font-weight: 600; font-size: 1.05rem; color: var(--type); line-height: 1.3; }

/* ===================== GATEWAY to the live product ===================== */
.gateway { position: relative; overflow: hidden; background: var(--ink-soft); color: var(--type-dark); border-radius: 20px; }
.gateway::before { content: ''; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(70% 120% at 78% 20%, rgba(193,106,69,0.22), transparent 62%); }
.gateway-glow { position: absolute; z-index: 0; width: 360px; height: 360px; right: 4%; top: 50%; transform: translateY(-50%);
    background: radial-gradient(circle, rgba(216,144,102,0.32), transparent 68%); pointer-events: none; }
@media (prefers-reduced-motion: no-preference) { .gateway-glow { animation: gw-breathe 4.6s ease-in-out infinite; } }
@keyframes gw-breathe { 0%,100% { opacity: 0.55; transform: translateY(-50%) scale(0.94); } 50% { opacity: 1; transform: translateY(-50%) scale(1.06); } }
.gateway-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: center; gap: clamp(2rem,5vw,4rem); padding: clamp(2.6rem,5vw,4.2rem); }
.gateway .eyebrow { color: var(--clay-soft); }
.gateway h2 { color: var(--type-dark); font-size: clamp(1.9rem,4.2vw,3.1rem); margin: 1rem 0 1.1rem; max-width: 18ch; }
.gateway p { color: var(--mute-dark); max-width: 46ch; font-size: 1.02rem; }
.gateway-actions { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; }
.gateway-chip { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--clay-soft); }
.gateway-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--clay-bright); box-shadow: 0 0 0 0 rgba(216,144,102,0.6); }
@media (prefers-reduced-motion: no-preference) { .gateway-chip i { animation: chip-pulse 2.4s ease-out infinite; } }
@keyframes chip-pulse { 0% { box-shadow: 0 0 0 0 rgba(216,144,102,0.55); } 70%,100% { box-shadow: 0 0 0 9px rgba(216,144,102,0); } }
.gateway-card { position: relative; border: 1px solid var(--hair-dark); border-radius: 14px; overflow: hidden; aspect-ratio: 4/3; background: var(--panel); }
.gateway-card img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }

/* ===================== CTA ===================== */
.sa-cta { position: relative; overflow: hidden; text-align: center; background: var(--ink); color: var(--type-dark); }
.sa-cta::before { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 90% at 50% 0%, rgba(193,106,69,0.16), transparent 70%); pointer-events: none; }
.sa-cta-inner { position: relative; max-width: 720px; margin: 0 auto; }
.sa-cta h2 { color: var(--type-dark); font-size: clamp(2rem,5vw,3.4rem); margin-bottom: 1.1rem; }
.sa-cta p { color: var(--mute-dark); font-size: clamp(1.05rem,1.6vw,1.25rem); margin-bottom: 2rem; }

/* ===================== FOOTER ===================== */
.footer { background: var(--ink); color: var(--type-dark); border-top: 1px solid var(--hair-dark); padding: clamp(4rem,9vh,6rem) 0 2.5rem; }
.footer-grid { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr; gap: clamp(2rem,4vw,3rem); }
.footer-brand p { color: var(--mute-dark); font-size: 0.9rem; line-height: 1.65; max-width: 34ch; margin: 1.1rem 0; }
.footer-brand .brand { color: var(--type-dark); }
.footer-loc { color: var(--mute-dark-2); font-size: 0.84rem; }
.footer h4 { font-size: 0.74rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--clay-soft); margin-bottom: 1.2rem; }
.footer-links li { margin-bottom: 0.65rem; }
.footer-links a { font-size: 0.9rem; color: var(--mute-dark); transition: color .25s var(--ease); }
.footer-links a:hover { color: var(--type-dark); }
.footer-bottom { margin-top: clamp(2.5rem,5vw,3.5rem); padding-top: 1.8rem; border-top: 1px solid var(--hair-dark); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.footer-bottom p { font-size: 0.8rem; color: var(--mute-dark-2); }

/* ===================== SIGN-UP PAGE ===================== */
.sa-page-hero { position: relative; background: var(--ink); color: var(--type-dark); padding: clamp(8.5rem,18vh,12rem) 0 clamp(3.5rem,7vh,5.5rem); overflow: hidden; }
.sa-page-hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 95% at 76% 8%, rgba(193,106,69,0.20), transparent 62%); pointer-events: none; }
.sa-page-hero-inner { position: relative; z-index: 1; max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.sa-page-hero .eyebrow { display: block; color: var(--clay-soft); margin-bottom: 0.2rem; }
.sa-page-hero h1 { color: var(--type-dark); font-size: clamp(2.4rem,6vw,4.4rem); line-height: 1.05; margin: 1.3rem 0 0; max-width: 16ch; }
.sa-page-hero h1 em { font-style: normal; color: var(--clay-soft); }
.sa-page-hero .lede { margin-top: 1.4rem; max-width: 50ch; color: var(--mute-dark); }

.signup-switch-wrap { background: var(--cream); padding-top: clamp(1.8rem,4vh,2.8rem); }
.signup-switch { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--hair); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 3px 0 rgb(26 24 18 / 0.05); }
.ss-tab { padding: 1.05rem 1.4rem; border-right: 1px solid var(--hair); transition: background .25s var(--ease); display: flex; flex-direction: column; gap: 0.18rem; }
.ss-tab:last-child { border-right: none; }
.ss-tab b { font-family: var(--display); font-weight: 700; font-size: 0.95rem; color: var(--type); }
.ss-tab span { font-size: 0.8rem; color: var(--type-3); }
.ss-tab:hover { background: var(--cream-2); }
.ss-tab.active { background: var(--ink); }
.ss-tab.active b { color: var(--type-dark); }
.ss-tab.active span { color: var(--clay-soft); }
@media (max-width:680px){ .signup-switch{ grid-template-columns:1fr; } .ss-tab{ border-right:none; border-bottom:1px solid var(--hair);} .ss-tab:last-child{ border-bottom:none;} }

.sa-form-grid { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: clamp(2rem,5vw,4rem); align-items: start; }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--type); margin-bottom: 0.5rem; }
.field input, .field select, .field textarea { width: 100%; padding: 0.85rem 1rem; border: 1px solid var(--hair); border-radius: 8px; background: #fff; color: var(--type); font-size: 0.95rem; font-family: var(--font); transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--clay-deep); box-shadow: 0 0 0 4px rgba(176,90,56,0.16); }
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.btn-full { width: 100%; justify-content: center; }
.form-note { text-align: center; color: var(--type-3); font-size: 0.85rem; margin-top: 1rem; }
.form-note a { color: var(--clay-deep); font-weight: 600; }

.sa-side-card { border: 1px solid var(--hair); border-radius: 14px; padding: clamp(1.5rem,3vw,2rem); background: #fff; margin-bottom: 1.4rem; }
.sa-side-card h3 { font-size: 1.15rem; margin-bottom: 1rem; }
.sa-side-list { display: grid; gap: 0.75rem; }
.sa-side-list li { display: flex; gap: 0.7rem; font-size: 0.92rem; color: var(--type-2); align-items: flex-start; }
.sa-side-list svg { width: 18px; height: 18px; stroke: var(--clay-deep); flex-shrink: 0; margin-top: 2px; }
.live-card { position: relative; overflow: hidden; border-radius: 16px; background: var(--ink-soft); color: var(--type-dark); padding: clamp(1.6rem,3vw,2rem); }
.live-card::before { content: ''; position: absolute; inset: 0; background: radial-gradient(80% 120% at 80% 8%, rgba(193,106,69,0.26), transparent 60%); pointer-events: none; }
.live-card h3 { color: var(--type-dark); font-size: 1.2rem; margin: 0.8rem 0 0.6rem; position: relative; }
.live-card p { color: var(--mute-dark); font-size: 0.92rem; margin-bottom: 1.3rem; position: relative; }
.live-card .btn { position: relative; }
@media (max-width:840px){ .sa-form-grid{ grid-template-columns:1fr; } .field-row{ grid-template-columns:1fr; } }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 960px) {
    .steps, .caps, .split, .spec, .footer-grid, .gateway-inner { grid-template-columns: 1fr; }
    .caps, .spec { gap: 1px; }
    .gateway-card { order: -1; }
}
@media (max-width: 960px) {
    .nav-toggle { display: flex; z-index: 1002; }
    .nav-menu { position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 2rem; background: var(--ink); transform: translateX(100%); transition: transform .45s var(--ease); z-index: 1001; }
    .nav-menu.active { transform: none; }
    .nav-menu .nav-link { font-size: 1.4rem; color: var(--type-dark); }
}
@media (max-width: 720px) {
    .stack-stage { padding-inline: 0.5rem; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
    .rule { transform: scaleX(1) !important; transition: none !important; }
    .sa-hero-media { transform: none !important; }
    .sem-glow { opacity: 0.13 !important; }
}
