/* ==========================================================================
   LIGHT EDITORIAL LAYER + NEW HOMEPAGE (loaded last)
   ========================================================================== */

body { background: var(--bg-stone); }

/* Editorial serif headings */
html { font-size: 16px; }
body { font-family: var(--font-body); font-size: 16px; font-weight: 400; }
p { font-size: 1rem; }
h1, h2, h3, h4, .serif { font-family: var(--font-display); }
h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.25px; line-height: 1.15; }   /* hero 48px */
h2 { font-size: clamp(1.6rem, 2.8vw, 2.05rem); font-weight: 600; letter-spacing: -0.25px; line-height: 1.25; }      /* section ~33px */
h3 { font-weight: 600; letter-spacing: -0.01em; }
h1 em, h2 em { font-style: normal; color: var(--color-electric-blue); }

/* ---------- Header ---------- */
.site-header {
  background: rgba(246,245,240,0.85);
  border-bottom: 1px solid var(--border-stone);
  backdrop-filter: blur(14px);
}
.brand-mark { width: 34px; height: 34px; border-radius: 9px; }
.brand-word { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--text-dark); letter-spacing: -0.02em; }
.brand-word em { font-style: normal; font-weight: 500; color: var(--color-electric-blue); margin-left: 2px; }
.nav-link { border-radius: var(--radius-full); color: var(--text-dark-muted); font-size: 14px; font-weight: 500; }
.nav-link:hover, .nav-link.active { background: rgba(20,22,31,0.05); border-color: transparent; color: var(--text-dark); font-weight: 500; }
.mega-dropdown { border-radius: var(--radius-lg); }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--border-stone-strong); background: #fff; color: var(--text-dark);
  cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* ---------- Buttons ---------- */
.btn { border-radius: var(--radius-full); padding: 0.7rem 1.4rem; font-size: 14px; font-weight: 600; }
.btn-primary { background: var(--bg-navy); color: #fff; border-color: var(--bg-navy); }
.btn-primary:hover { background: var(--color-electric-blue); border-color: var(--color-electric-blue); box-shadow: 0 8px 24px var(--color-electric-glow); }
.btn-outline { background: transparent; color: var(--text-dark); border-color: var(--border-stone-strong); }
.btn-outline:hover { background: #fff; border-color: var(--text-dark); }
.btn-lg { padding: 0.95rem 1.9rem; font-size: 14px; }
.btn-light { background: #fff; color: var(--bg-navy); border-color: #fff; }
.btn-light:hover { background: var(--color-sky-blue); border-color: var(--color-sky-blue); }
:focus-visible { outline: 2px solid var(--color-electric-blue); outline-offset: 3px; }

.badge-pill { border-radius: var(--radius-full); background: #fff; }
.text-gradient { color: var(--color-electric-blue); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 5rem 0 3rem; text-align: center; overflow: hidden; }
.hero h1 { max-width: 900px; margin: 1.5rem auto 1.4rem; color: var(--text-dark); }
.hero-sub { max-width: 580px; margin: 0 auto 2rem; font-size: 1.125rem; color: var(--text-dark-muted); }
.hero-cta { display: flex; justify-content: center; gap: .8rem; flex-wrap: wrap; margin-bottom: 3.5rem; }
.circuit { position: absolute; top: 60px; width: 300px; height: 380px; color: var(--color-electric-blue); opacity: .55; pointer-events: none; }
.circuit.l { left: 0; } .circuit.r { right: 0; transform: scaleX(-1); }

/* Browser frame around real screenshots */
.frame {
  background: #fff; border: 1px solid var(--border-stone-strong);
  border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-elevated);
  text-align: left;
}
.frame-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #F0EFEA; border-bottom: 1px solid var(--border-stone); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4d3cc; display: block; }
.frame-bar span { margin-left: 10px; flex: 1; max-width: 340px; font-size: .72rem; color: var(--text-dark-subtle); background: #fff; border-radius: 6px; padding: 3px 10px; border: 1px solid var(--border-stone); }
.frame img { display: block; width: 100%; height: auto; }
.hero .frame { max-width: 1080px; margin: 0 auto; }

/* ---------- Navy statement banner ---------- */
.banner { background: var(--bg-navy); color: #fff; border-radius: var(--radius-xl); padding: 3.5rem 3.5rem; display: grid; grid-template-columns: 1.1fr 1fr; gap: 2rem; align-items: center; position: relative; overflow: hidden; }
.banner::after { content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(closest-side, rgba(56,189,248,.35), transparent); }
.banner p { color: var(--text-light-muted); font-size: 1.05rem; max-width: 460px; }
.banner-big { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.25px; font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.08; position: relative; z-index: 1; }
.banner-big em { font-style: normal; color: var(--color-sky-blue); }
.banner-row { display: flex; gap: 2.5rem; margin-top: 1.75rem; flex-wrap: wrap; }
.banner-row b { display: block; font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.banner-row span { font-size: .8rem; color: var(--text-light-muted); }

/* ---------- Sections ---------- */
.section { padding: 6rem 0; }
.eyebrow { display: inline-block; font-size: .75rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dark-subtle); margin-bottom: 1rem; }
.eyebrow::before { content: "[ "; } .eyebrow::after { content: " ]"; }
.sec-head { max-width: 760px; margin: 0 auto 3.5rem; text-align: center; }
.sec-head.left { text-align: left; margin-left: 0; }

/* Ceilings */
.ceil-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--border-stone-strong); }
.ceil { padding: 2rem 1.5rem 1rem 0; }
.ceil + .ceil { padding-left: 1.5rem; border-left: 1px solid var(--border-stone); }
.ceil svg { width: 34px; height: 34px; color: var(--text-dark); margin-bottom: 3rem; display: block; stroke-width: 1.3; }
.ceil h4 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.ceil p { font-size: .9rem; }

/* Showcase (tab/accordion + real screenshot) */
.showcase { display: grid; grid-template-columns: 320px 1fr; gap: 2.5rem; align-items: start; }
.showcase.rev { grid-template-columns: 1fr 320px; }
.showcase.rev .sc-list { order: 2; }
.sc-list { display: flex; flex-direction: column; border-top: 1px solid var(--border-stone-strong); }
.sc-item { border-bottom: 1px solid var(--border-stone-strong); }
.sc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: none; border: 0; padding: 1.35rem 0; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em; font-size: 1.25rem; color: var(--text-dark-subtle); transition: color .2s;
}
.sc-btn:hover { color: var(--text-dark); }
.sc-btn .plus { width: 22px; height: 22px; flex: none; position: relative; }
.sc-btn .plus::before, .sc-btn .plus::after { content: ""; position: absolute; left: 50%; top: 50%; background: currentColor; transform: translate(-50%,-50%); transition: transform .25s; }
.sc-btn .plus::before { width: 14px; height: 1.5px; } .sc-btn .plus::after { width: 1.5px; height: 14px; }
.sc-item.active .sc-btn { color: var(--text-dark); }
.sc-item.active .plus::after { transform: translate(-50%,-50%) rotate(90deg); }
.sc-desc { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.sc-desc p { padding: 0 2rem 1.5rem 0; font-size: .98rem; }
.sc-item.active .sc-desc { max-height: 160px; }
.sc-stage { position: relative; }
.sc-stage .frame { position: absolute; inset: 0 auto auto 0; width: 100%; opacity: 0; transform: translateY(12px) scale(.985); transition: opacity .45s ease, transform .45s ease; pointer-events: none; }
.sc-stage .frame.active { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.sc-bg { background: var(--bg-stone-muted); border-radius: var(--radius-xl); padding: 1.5rem; }

/* Trust cards */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.trust-card { background: #fff; border: 1px solid var(--border-stone); border-radius: var(--radius-lg); padding: 2rem; }
.trust-card .ico { height: 120px; margin-bottom: 1.5rem; border-radius: 12px; background: var(--bg-stone-muted); display: flex; align-items: center; justify-content: center; color: var(--color-electric-blue); }
.trust-card .ico svg { width: 54px; height: 54px; stroke-width: 1.2; }
.trust-card h3 { font-weight: 700; font-size: 1.3rem; margin-bottom: .5rem; }

/* For whom */
.who { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; }
.who span { padding: .8rem 1.4rem; border: 1px solid var(--border-stone-strong); border-radius: var(--radius-full); background: #fff; font-weight: 500; }

/* CTA */
.cta-panel { background: var(--bg-navy); color: #fff; border-radius: var(--radius-xl); text-align: center; padding: 5.5rem 2rem; position: relative; overflow: hidden; }
.cta-panel::before { content:""; position:absolute; left:50%; bottom:-260px; width:900px; height:420px; transform:translateX(-50%); background: radial-gradient(closest-side, rgba(31,91,255,.55), transparent); }
.cta-panel > * { position: relative; }
.cta-panel h2 { color: #fff; max-width: 780px; margin: 0 auto 1.25rem; }
.cta-panel h2 em { color: var(--color-sky-blue); }
.cta-panel p { color: var(--text-light-muted); max-width: 520px; margin: 0 auto 2rem; }

/* Footer stays navy */
.site-footer { background: var(--bg-navy); }
.site-footer .brand-word { color: #fff; }
.site-footer .brand-word em { color: var(--color-sky-blue); }

.form-control { border-radius: 10px; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.16,1,.3,1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) { .circuit { display: none; } }
@media (max-width: 1024px) {
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { padding: .5rem 1rem; font-size: .85rem; }
  .header-inner nav { position: fixed; inset: var(--header-height) 0 auto 0; background: var(--bg-stone); border-bottom: 1px solid var(--border-stone); padding: 1rem 1.5rem 1.5rem; display: none; }
  body.menu-open .header-inner nav { display: block; }
  body.menu-open .nav-menu { display: flex; flex-direction: column; align-items: stretch; }
  .mega-dropdown { display: none; }
  .nav-link { padding: .85rem 1rem; font-size: 1rem; }
  .banner { grid-template-columns: 1fr; padding: 2.5rem 1.75rem; }
  .ceil-grid { grid-template-columns: 1fr 1fr; }
  .ceil:nth-child(3) { border-left: 0; padding-left: 0; }
  .showcase, .showcase.rev { grid-template-columns: 1fr; gap: 1.5rem; }
  .showcase.rev .sc-list { order: 0; }
  .trust-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  .hero { padding-top: 3rem; }
  .ceil-grid { grid-template-columns: 1fr; }
  .ceil, .ceil + .ceil { border-left: 0; padding-left: 0; border-bottom: 1px solid var(--border-stone); }
  .ceil svg { margin-bottom: 1.25rem; }
  .sc-btn { font-size: 1.15rem; }
  .sc-bg { padding: 1rem; }
  .brand-word { font-size: 1.1rem; }
}

/* ---------- Motion support ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
html { scroll-behavior: auto; }
.w { display: inline-block; white-space: nowrap; }
.ch { display: inline-block; will-change: transform, opacity; }
[data-rise] > *, [data-scale] { will-change: transform; }
.sc-item .sc-btn { position: relative; }
.sc-item::after { content: ""; display: block; height: 2px; width: 0; background: var(--color-electric-blue); margin-top: -2px; transition: width .5s ease; }
.sc-item.active::after { width: 100%; }

/* ---------- Built for the trade (dark bento) ---------- */
.trade { background: var(--bg-navy); color: #fff; border-radius: var(--radius-xl); padding: 4.5rem 3rem 3rem; position: relative; overflow: hidden; }
.trade::before { content: ""; position: absolute; left: 50%; top: -220px; width: 760px; height: 380px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(31,91,255,.5), transparent); }
.trade > * { position: relative; }
.trade-head { text-align: center; max-width: 640px; margin: 0 auto 3rem; }
.trade-head .eyebrow { color: var(--text-light-subtle); }
.trade-head h2 { color: #fff; margin-bottom: .9rem; }
.trade-head h2 em { color: var(--color-sky-blue); }
.trade-head p { color: var(--text-light-muted); }
.trade-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 1rem; }
.t-card { background: rgba(255,255,255,.05); border: 1px solid var(--border-navy); border-radius: var(--radius-lg); padding: 1.5rem; display: flex; flex-direction: column; }
.t-card h3 { color: #fff; font-size: 1.15rem; margin: 1.5rem 0 .35rem; }
.t-card p { color: var(--text-light-muted); font-size: .92rem; }
.t-audit { grid-column: span 7; } .t-branch { grid-column: span 5; }
.t-ai { grid-column: span 5; } .t-who { grid-column: span 7; justify-content: center; }
.t-vis { background: rgba(0,0,0,.28); border: 1px solid var(--border-navy); border-radius: 12px; padding: 1rem; min-height: 190px; display: flex; flex-direction: column; justify-content: center; gap: .6rem; }
.log-row { display: grid; grid-template-columns: auto 1fr auto; gap: .8rem; align-items: center; background: rgba(255,255,255,.05); border-radius: 10px; padding: .65rem .8rem; }
.log-row b { display: block; font-size: .82rem; font-weight: 600; }
.log-row small { font-size: .78rem; color: var(--text-light-muted); }
.log-row small i { font-style: normal; color: var(--color-sky-blue); padding: 0 .2rem; }
.log-row time { font-family: var(--font-mono); font-size: .72rem; color: var(--text-light-subtle); }
.tag { font-size: .7rem; font-weight: 600; padding: .25rem .55rem; border-radius: 6px; min-width: 52px; text-align: center; }
.t-blue { background: rgba(56,189,248,.16); color: #7dd3fc; } .t-amber { background: rgba(245,158,11,.16); color: #fbbf24; } .t-green { background: rgba(16,185,129,.16); color: #34d399; }
.node { text-align: center; font-size: .82rem; font-weight: 600; padding: .55rem .9rem; border-radius: 10px; background: rgba(255,255,255,.07); border: 1px solid var(--border-navy); }
.node.root { align-self: center; background: var(--color-electric-blue); border-color: transparent; }
.node-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; position: relative; }
.node-row::before { content: ""; position: absolute; left: 25%; right: 25%; top: -.6rem; height: .6rem; border: 1px solid var(--border-navy); border-bottom: 0; border-radius: 8px 8px 0 0; }
.role-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .3rem; }
.role-row span { font-size: .72rem; padding: .25rem .6rem; border-radius: 999px; border: 1px solid var(--border-navy); color: var(--text-light-muted); }
.role-row span.on { background: rgba(56,189,248,.16); border-color: rgba(56,189,248,.5); color: #7dd3fc; }
.bub { max-width: 88%; font-size: .85rem; padding: .7rem .95rem; border-radius: 14px; line-height: 1.45; }
.bub.u { align-self: flex-end; background: var(--color-electric-blue); border-bottom-right-radius: 4px; }
.bub.a { align-self: flex-start; background: rgba(255,255,255,.08); border: 1px solid var(--border-navy); border-bottom-left-radius: 4px; }
.bub.a b { display: block; font-weight: 600; } .bub.a small { color: var(--text-light-muted); font-size: .78rem; }
.t-who h3 { margin-top: 0; font-size: 1.35rem; }
.who-list { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; margin-top: 1.25rem; }
.who-list span { display: flex; align-items: center; gap: .65rem; padding: .85rem 1rem; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--border-navy); font-size: .9rem; font-weight: 500; }
.who-list svg { width: 20px; height: 20px; color: var(--color-sky-blue); flex: none; }
@media (max-width: 1024px) {
  .trade { padding: 3rem 1.25rem 1.25rem; }
  .t-audit, .t-branch, .t-ai, .t-who { grid-column: span 12; }
}
@media (max-width: 640px) { .who-list { grid-template-columns: 1fr; } }

/* ---------- Fan carousel ---------- */
.fan-section { background: #05070F; color: #fff; padding: 6rem 0 5rem; overflow: hidden; position: relative; }
.fan-section::before { content: ""; position: absolute; left: 50%; top: -200px; width: 900px; height: 420px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(31,91,255,.35), transparent); pointer-events: none; }
.fan-section .container { position: relative; }
.fan-section h2 { color: #fff; }
.fan-section .eyebrow { color: var(--text-light-subtle); }
.fan-nav { display: flex; align-items: center; justify-content: center; gap: .6rem; margin-bottom: 3rem; }
.fan-chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; max-width: calc(100vw - 150px); }
.fan-chips::-webkit-scrollbar { display: none; }
.fan-chip { flex: none; background: rgba(255,255,255,.09); color: #fff; border: 0; border-radius: 10px; padding: .7rem 1.1rem; font: 600 14px var(--font-body); cursor: pointer; transition: background .3s, color .3s; white-space: nowrap; }
.fan-chip:hover { background: rgba(255,255,255,.16); }
.fan-chip.on { background: #fff; color: #05070F; border-radius: 999px; }
.fan-arrow { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font-size: 1rem; cursor: pointer; transition: background .2s; }
.fan-arrow:hover { background: rgba(255,255,255,.14); }
.fan-stage { position: relative; height: 640px; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.fan-stage.drag { cursor: grabbing; }
.fan-card {
  position: absolute; left: 50%; top: 20px; width: var(--cw, 400px); height: 520px; margin-left: calc(var(--cw, 400px) / -2);
  background: var(--bg); color: var(--fg); border-radius: 22px; padding: 1.6rem 1.6rem 0; overflow: hidden;
  display: flex; flex-direction: column; transform-origin: 50% 50%;
  transition: transform .9s cubic-bezier(.16,1,.3,1), opacity .6s ease, filter .6s ease;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.8); will-change: transform;
}
.fan-stage.drag .fan-card { transition: none; }
.fc-top { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.fc-top h3 { color: inherit; font-size: 1.35rem; font-weight: 600; }
.fc-ico { width: 46px; height: 46px; border-radius: 12px; background: #fff; color: var(--bg); display: flex; align-items: center; justify-content: center; }
.fan-card[data-i="2"] .fc-ico { color: #16171d; }
.fc-ico svg { width: 24px; height: 24px; }
.fan-card p { color: inherit; opacity: .85; font-size: .92rem; line-height: 1.55; margin-bottom: 1.2rem; }
.fc-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.2rem; }
.fc-stats b { display: block; font-size: 1.6rem; font-weight: 600; letter-spacing: -.02em; }
.fc-stats span { font-size: .78rem; opacity: .8; line-height: 1.35; display: block; }
.fc-shot { margin-top: auto; border-radius: 12px 12px 0 0; overflow: hidden; box-shadow: 0 -10px 40px -10px rgba(0,0,0,.4); background: #fff; height: 190px; }
.fc-shot img { width: 100%; height: auto; display: block; pointer-events: none; }
.fan-cursor { position: absolute; left: 0; top: 0; z-index: 50; width: 66px; height: 66px; border-radius: 50%; background: rgba(60,60,70,.9); color: #fff; font-size: .72rem; font-weight: 600; letter-spacing: .04em; display: flex; align-items: center; justify-content: center; pointer-events: none; opacity: 0; transition: opacity .25s; will-change: transform; }
.fan-stage:hover .fan-cursor { opacity: 1; }
@media (hover: none) { .fan-cursor { display: none; } }
@media (max-width: 640px) { .fan-stage { height: 600px; } .fan-card { height: 500px; } }

/* ---- Fan carousel: closer match to reference ---- */
.fan-section { background: #050506; padding: 5.5rem 0 4rem; }
.fan-section::before { display: none; }
.fan-section h2 { font-size: 2.5rem; font-weight: 500; letter-spacing: -0.25px; }
.fan-section .sec-head { margin-bottom: 2.25rem; }
.fan-nav { margin-bottom: 2.75rem; }
.fan-chip { background: #141416; border-radius: 6px; font-weight: 500; }
.fan-chip:hover { background: #1f1f23; }
.fan-chip.on { background: #fff; color: #050506; border-radius: 999px; }
.fan-stage { height: 700px; }
.fan-card { top: 10px; height: 480px; padding: 1.5rem 1.5rem 0; border-radius: 20px; box-shadow: none; }
.fc-top { gap: .9rem; margin-bottom: .9rem; }
.fc-top h3 { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }
.fc-ico { border-radius: 10px; background: #fff; color: #16171d; box-shadow: 0 0 0 1px rgba(0,0,0,.08); }
.fan-card[data-i="1"] .fc-ico, .fan-card[data-i="5"] .fc-ico { color: #16171d; }
.fan-card p { font-size: .9rem; opacity: .9; margin-bottom: 1.25rem; }
.fc-stats b { font-size: 1.4rem; font-weight: 500; }
.fc-stats span { font-size: .82rem; opacity: .85; }
.fc-shot { position: relative; height: 170px; background: #0c0c10; border-radius: 90px 90px 0 0; overflow: hidden; box-shadow: none; margin: auto -0.4rem 0; }
.fc-shot img { position: absolute; left: 50%; top: 26px; width: 78%; transform: translateX(-50%); border-radius: 10px; }
@media (max-width: 640px) { .fan-section h2 { font-size: 1.8rem; } .fan-stage { height: 640px; } .fan-card { height: 470px; } }
.fan-section .sec-head { max-width: 980px; }

/* ---- Full-width layout (matches reference) ---- */
.container { max-width: var(--container-max); padding-left: clamp(1.25rem, 2.6vw, 2.75rem); padding-right: clamp(1.25rem, 2.6vw, 2.75rem); }
.hero .frame { max-width: 1500px; }
.sc-stage .frame img { max-height: calc(100vh - 300px); object-fit: cover; object-position: top left; }
.showcase { grid-template-columns: minmax(280px, 26%) 1fr; }
.showcase.rev { grid-template-columns: 1fr minmax(280px, 26%); }
@media (max-width: 1024px) { .showcase, .showcase.rev { grid-template-columns: 1fr; } .sc-stage .frame img { max-height: none; } }

/* ---- Black surfaces (no blue), like the reference ---- */
.trade { background: #050506; margin-top: 3rem; }
.trade::before, .banner::after, .cta-panel::before { display: none; }
.t-card { background: #111114; border-color: rgba(255,255,255,.08); }
.t-vis { background: #0a0a0c; border-color: rgba(255,255,255,.08); }
.log-row { background: #16161a; }
.node { background: #16161a; border-color: rgba(255,255,255,.1); }
.node.root { background: #fff; color: #050506; }
.bub.u { background: #fff; color: #050506; }
.bub.a { background: #16161a; }
.who-list span { background: #16161a; border-color: rgba(255,255,255,.08); }
.cta-panel { border: 1px solid rgba(255,255,255,.08); }

/* ---- Header: dark bar like the reference ---- */
:root { --header-height: 58px; }
.site-header { background: rgba(11,11,13,.94); border-bottom: 1px solid rgba(255,255,255,.06); backdrop-filter: blur(14px); }
.header-inner { gap: 1rem; }
.header-inner nav { margin-left: auto; margin-right: 1.5rem; }
.site-header .brand-word { color: #fff; font-size: 1.2rem; }
.site-header .brand-word em { color: #4C8DFF; }
.site-header .brand-mark { width: 32px; height: 32px; }
.nav-menu { gap: .35rem; }
.nav-link { padding: .5rem .7rem; font-size: 13px; font-weight: 500; color: rgba(255,255,255,.92); border-radius: 6px; }
.nav-link:hover, .nav-link.active { background: transparent; color: #fff; font-weight: 500; text-decoration: none; opacity: 1; }
.nav-link:hover { color: #7FB0FF; }
.nav-link svg.chevron { width: 9px; height: 9px; }
.btn-blue { background: #1a5cff; color: #fff; border-color: #1a5cff; font-size: 13px; font-weight: 600; padding: .55rem 1.15rem; gap: .5rem; }
.btn-blue:hover { background: #3b72ff; border-color: #3b72ff; box-shadow: 0 6px 20px rgba(26,92,255,.45); }
.mega-dropdown { background: #111114; border: 1px solid rgba(255,255,255,.1); box-shadow: 0 30px 60px -20px rgba(0,0,0,.8); top: calc(100% + 6px); }
.dropdown-col-title { color: #7FB0FF; border-bottom-color: rgba(255,255,255,.1); }
.dropdown-item:hover { background: rgba(255,255,255,.06); }
.dropdown-item-title { color: #fff; }
.dropdown-item-desc { color: rgba(255,255,255,.6); }
.nav-toggle { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.2); color: #fff; }
@media (max-width: 1024px) {
  .header-inner nav { background: #0b0b0d; border-bottom: 1px solid rgba(255,255,255,.08); margin: 0; }
  .nav-link { font-size: 15px; padding: .85rem .5rem; }
}

/* ---------- Controls section (blue gradient accordion) ---------- */
.comp-section { background: linear-gradient(180deg, #6ea1fd 0%, #1565fc 100%); color: #fff; padding: 5.5rem 0; margin: 3rem 0 0; overflow: hidden; }
.comp-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: stretch; }
.comp-left { display: flex; flex-direction: column; justify-content: space-between; gap: 5rem; min-height: 560px; }
.comp-ball { width: 140px; height: 140px; filter: drop-shadow(0 14px 24px rgba(5,20,80,.35)); animation: ballfloat 6s ease-in-out infinite; }
@keyframes ballfloat { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(6deg); } }
.comp-left h2 { color: #fff; font-size: 2.5rem; font-weight: 500; margin-bottom: 1.25rem; max-width: 640px; }
.comp-left p { color: rgba(255,255,255,.92); font-size: .95rem; max-width: 620px; }
.comp-left u { text-underline-offset: 3px; }
.comp-right { border-top: 1px solid rgba(255,255,255,.35); }
.comp-item { border-bottom: 1px solid rgba(255,255,255,.35); position: relative; }
.comp-item::after { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: #fff; }
.comp-item.open.play::after { width: 100%; transition: width 6s linear; }
.comp-head { width: 100%; display: flex; align-items: center; gap: 2rem; background: none; border: 0; color: #fff; text-align: left; padding: 1.6rem .25rem; cursor: pointer; font-family: var(--font-body); }
.comp-head .num { font-family: var(--font-mono); font-size: .8rem; letter-spacing: .08em; opacity: .9; width: 2rem; flex: none; }
.comp-head .ttl { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.25px; flex: 1; }
.comp-head .chev { flex: none; transition: transform .3s ease; opacity: .85; }
.comp-item.open .chev { transform: rotate(180deg); }
.comp-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.16,1,.3,1); }
.comp-body > div { overflow: hidden; }
.comp-item.open .comp-body { grid-template-rows: 1fr; }
.comp-chips { display: grid; grid-template-columns: repeat(4, 1fr); gap: .75rem; padding: .2rem 0 1.6rem; }
.comp-chips span { display: flex; align-items: center; gap: .6rem; background: #fff; color: #10203f; border-radius: 10px; padding: .9rem 1rem; font-size: 13px; font-weight: 500; line-height: 1.25; }
.comp-chips svg { flex: none; }
@media (max-width: 1100px) { .comp-chips { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 1024px) {
  .comp-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .comp-left { min-height: 0; gap: 2rem; }
  .comp-left h2 { font-size: 1.9rem; }
}
@media (max-width: 640px) { .comp-head { gap: 1rem; } .comp-head .ttl { font-size: 1.05rem; } }
@media (prefers-reduced-motion: reduce) { .comp-ball { animation: none; } .comp-item.open.play::after { transition: none; } }

/* ---- Consistent vertical rhythm: 6rem between any two sections ---- */
:root { --sec-y: 6rem; }
.section { padding: calc(var(--sec-y) / 2) 0; }
.hero { padding: 5rem 0 calc(var(--sec-y) / 2); }
.fan-section { padding: var(--sec-y) 0; margin: calc(var(--sec-y) / 2) 0; }
.sec-head { margin-bottom: 3.5rem; }
.fan-section .sec-head { margin-bottom: 3rem; }
.fan-nav { margin-bottom: 3rem; }
.trade { margin-top: 0; }
.trade-head { margin-bottom: 3.5rem; }
.comp-band { background: #050506; padding: 2.25rem 0; margin: calc(var(--sec-y) / 2) 0; }
.comp-section { margin: 0; padding: var(--sec-y) 0; }
.site-footer { margin-top: calc(var(--sec-y) / 2); }
@media (max-width: 640px) {
  :root { --sec-y: 4rem; }
  .section { padding: calc(var(--sec-y) / 2) 0; }
  .comp-band { padding: 1.25rem 0; }
}

/* ---------- AI section (black, animated thread + needle visual) ---------- */
.ai-section { display: grid; grid-template-columns: 1fr 1fr; background: #050506; color: #fff; min-height: 820px; margin: calc(var(--sec-y) / 2) 0; overflow: hidden; }
.ai-visual { position: relative; overflow: hidden; background: radial-gradient(60% 50% at 55% 60%, rgba(76,125,255,.18), transparent 70%), #050506; min-height: 520px; }
.ai-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ai-logo { position: absolute; left: 1.75rem; top: 1.6rem; font-size: 2.6rem; font-weight: 600; letter-spacing: -0.5px; color: #fff; z-index: 2; }
.ai-logo span { font-weight: 300; font-style: italic; position: relative; margin-left: 2px; }
.ai-logo i { position: absolute; right: -14px; top: -4px; width: 12px; height: 12px; background: #38d6f8; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
.ai-thread { fill: none; stroke-width: 20; stroke-linecap: round; opacity: .92; stroke-dasharray: 1; stroke-dashoffset: 0; animation: threadflow 7s ease-in-out infinite; animation-delay: var(--d); }
@keyframes threadflow { 0%, 100% { stroke-dasharray: 1; stroke-dashoffset: 0; opacity: .92; } 50% { stroke-dasharray: .92 .08; stroke-dashoffset: -.04; opacity: .7; } }
.ai-needle { animation: needlego 7s ease-in-out infinite; transform-box: fill-box; }
@keyframes needlego { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-34px, -22px); } }
.ai-spark { transform-box: fill-box; transform-origin: center; animation: sparkpulse 3.5s ease-in-out infinite; }
@keyframes sparkpulse { 0%, 100% { transform: scale(.8); opacity: .7; } 50% { transform: scale(1.25); opacity: 1; } }
.ai-prism { animation: prismglow 9s ease-in-out infinite; }
@keyframes prismglow { 0%, 100% { opacity: .92; } 50% { opacity: 1; } }

.ai-copy { padding: 4rem clamp(1.5rem, 3vw, 3.5rem) 3.5rem; display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; }
.ai-copy h2 { color: #fff; font-size: 2.6rem; line-height: 1.2; margin-bottom: 1.5rem; }
.ai-copy h2 .lite { font-weight: 300; }
.ai-copy h2 strong { font-weight: 700; }
.ai-copy p { color: rgba(255,255,255,.88); font-size: 1.1rem; line-height: 1.6; max-width: 900px; }
.ai-copy p b { color: #fff; font-weight: 700; }
.ai-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ai-card { background: #0b0b0e; border: 1px solid rgba(255,255,255,.12); border-radius: 16px; padding: 1.5rem 1.4rem 1.6rem; transition: border-color .3s, transform .3s; }
.ai-card:hover { border-color: rgba(76,141,255,.6); transform: translateY(-4px); }
.ai-ico { width: 38px; height: 38px; border-radius: 50%; background: #1c1c22; display: flex; align-items: center; justify-content: center; color: #cfd6e6; margin-bottom: 2.4rem; }
.ai-ico svg { width: 18px; height: 18px; }
.ai-card h4 { color: #fff; font-size: .95rem; font-weight: 600; margin-bottom: 1.3rem; }
.ai-card ul { list-style: none; display: flex; flex-direction: column; gap: .85rem; }
.ai-card li { display: flex; align-items: center; gap: .8rem; font-size: 13px; color: rgba(255,255,255,.9); }
.ai-card li svg { flex: none; }
.ai-btns { display: flex; gap: .9rem; flex-wrap: wrap; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.85); }
.btn-ghost:hover { background: #fff; color: #050506; }
@media (max-width: 1100px) { .ai-cards { grid-template-columns: 1fr; } .ai-ico { margin-bottom: 1.2rem; } }
@media (max-width: 900px) {
  .ai-section { grid-template-columns: 1fr; min-height: 0; }
  .ai-visual { min-height: 420px; }
  .ai-copy h2 { font-size: 1.9rem; }
}
@media (prefers-reduced-motion: reduce) { .ai-thread, .ai-needle, .ai-spark, .ai-prism { animation: none; } }

/* remove the black bands around the blue section */
.comp-band { background: none; padding: 0; margin: calc(var(--sec-y) / 2) 0; }

/* ---------- Inner pages ---------- */
.page-hero { padding-bottom: calc(var(--sec-y) / 2); }
.page-hero .hero-cta { margin-bottom: 3.25rem; }
.page-hero .interactive-stage, .page-hero .dark-panel { max-width: 1500px; margin-left: auto; margin-right: auto; }
.page-top { padding-top: 5rem; }

.split { display: grid; grid-template-columns: minmax(300px, 34%) 1fr; gap: 4rem; align-items: center; }
.split.rev { grid-template-columns: 1fr minmax(300px, 34%); }
.split.rev .split-text { order: 2; }
.split-text h2 { margin: .25rem 0 1.1rem; }
.split-text p { margin-bottom: 1.5rem; max-width: 520px; }
.tick-list { list-style: none; display: flex; flex-direction: column; gap: .85rem; }
.tick-list li { display: flex; gap: .75rem; align-items: flex-start; font-size: .95rem; color: var(--text-dark); }
.tick-list svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--color-electric-blue); stroke-width: 2.2; }

.dark-panel { background: #050506; color: #fff; border-radius: var(--radius-xl); padding: 3rem; text-align: left; }
.dark-panel h3 { color: #fff; font-size: 1.5rem; margin-bottom: .6rem; }
.dark-panel p { color: var(--text-light-muted); max-width: 640px; }
.dark-panel .formula-display { background: #111114; border: 1px solid rgba(255,255,255,.08); margin-top: 1.75rem; padding: 1.75rem; }
.formula-term.result { border: 1px solid var(--color-emerald); padding: 6px 16px; border-radius: 10px; background: var(--color-emerald-bg); }
.formula-term.result .term-label, .formula-term.result .term-val { color: var(--color-emerald); }
.formula-term.result .term-val { font-size: 1.2rem; }

.canvas-head { padding: 1.25rem 2rem; background: #0b0b0e; border-bottom: 1px solid var(--border-navy); display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; color: #fff; font-weight: 600; }
.page-hero .interactive-stage { background: #050506; }
.page-hero .stage-screen { min-height: 0; padding: 2.5rem; background: none; }
.page-hero .canvas-node { background: #111114; }

.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.kpi { background: #fff; border: 1px solid var(--border-stone); border-radius: var(--radius-lg); padding: 1.75rem 1.5rem; border-top: 3px solid var(--text-dark); }
.kpi small { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-dark-subtle); margin-bottom: .5rem; }
.kpi b { font-size: 2rem; font-weight: 600; letter-spacing: -.02em; }
.kpi.k-free { border-top-color: var(--color-sky-blue); } .kpi.k-free b { color: #0b8fc4; }
.kpi.k-res { border-top-color: var(--color-electric-blue); } .kpi.k-res b { color: var(--color-electric-blue); }
.kpi.k-iss { border-top-color: var(--color-amber); } .kpi.k-iss b { color: #b7791f; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.contact-copy h1 { margin: 1.25rem 0; font-size: clamp(2rem, 3.6vw, 3rem); }
.contact-points { display: flex; flex-direction: column; gap: 1.5rem; margin-top: 2.25rem; }
.contact-points > div { display: flex; gap: 1rem; align-items: flex-start; }
.contact-points .icon-tile { margin: 0; flex: none; }
.contact-points b { display: block; margin-bottom: .2rem; }
.contact-points p { font-size: .92rem; }
.form-card { background: #fff; border: 1px solid var(--border-stone); border-radius: var(--radius-xl); padding: 2.5rem; box-shadow: var(--shadow-card); }
.form-card h3 { font-size: 1.4rem; margin-bottom: 1.5rem; }

.about-card { grid-column: span 6; min-height: 220px; }
.about-card .ai-ico { margin-bottom: 1.25rem; }

@media (max-width: 1024px) {
  .split, .split.rev { grid-template-columns: 1fr; gap: 2rem; }
  .split.rev .split-text { order: 0; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-card { grid-column: span 12; }
  .dark-panel { padding: 1.75rem; }
}
@media (max-width: 640px) { .kpi-row { grid-template-columns: 1fr; } .form-card { padding: 1.5rem; } }

/* ---------- Feature cards (light) ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.feature-card { background: #fff; border: 1px solid var(--border-stone); border-radius: var(--radius-lg); padding: 2rem; transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease; }
.feature-card:hover { transform: translateY(-4px); border-color: rgba(31,91,255,.35); box-shadow: 0 24px 50px -28px rgba(10,17,40,.35); }
.icon-tile { width: 48px; height: 48px; border-radius: 12px; margin-bottom: 2.5rem; display: flex; align-items: center; justify-content: center; background: rgba(31,91,255,.08); border: 1px solid rgba(31,91,255,.18); color: var(--color-electric-blue); }
.icon-tile svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.feature-card p { font-size: .95rem; }
@media (max-width: 1024px) { .feature-grid { grid-template-columns: 1fr; } .icon-tile { margin-bottom: 1.5rem; } }

/* ---------- Mobile polish ---------- */
@media (max-width: 1024px) {
  .btn-blue { white-space: nowrap; }
}
@media (max-width: 640px) {
  .header-inner { gap: .5rem; }
  .header-actions { gap: .5rem; }
  .btn-blue { padding: .5rem .9rem; font-size: 12px; }
  .btn-blue svg { display: none; }
  .site-header .brand-word { font-size: 1.05rem; }
  .site-header .brand-mark { width: 28px; height: 28px; }

  /* app screenshots: keep them readable, swipe sideways to see the rest */
  .frame { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .frame::-webkit-scrollbar { display: none; }
  .frame img { min-width: 720px; max-width: none; }
  .frame-bar { min-width: 720px; }
  .sc-stage .frame img { max-height: none; }

  /* audit-log rows */
  .log-row { grid-template-columns: auto 1fr; }
  .log-row time { grid-column: 2; }

  .hero h1 { font-size: 2rem; }
  .hero-cta .btn, .ai-btns .btn { width: 100%; }
  .trade { padding: 2.5rem 1rem 1rem; }
  .cta-panel { padding: 3.5rem 1.25rem; }
  .cta-panel h2 { font-size: 1.6rem; }
  .banner-row { gap: 1.5rem; }
  .dark-panel h3 { font-size: 1.25rem; }
  .formula-display { flex-direction: column; align-items: stretch; text-align: center; }
  .formula-op { display: none; }
  .canvas-head { padding: 1rem 1.25rem; }
  .page-hero .stage-screen { padding: 1.25rem; }
  .comp-left h2 { font-size: 1.7rem; }
  .comp-chips { grid-template-columns: 1fr 1fr; }
  .ai-copy { padding: 2.5rem 1.25rem; }
  .form-card { padding: 1.25rem; }
}

/* grid children must be allowed to shrink (wide screenshots scroll inside their frame) */
.split > *, .contact-grid > *, .comp-grid > *, .showcase > *, .trade-grid > *, .ai-section > *, .audience > * { min-width: 0; }
.split-vis, .sc-stage { max-width: 100%; }

/* ---- Full logo (header + footer) ---- */
.brand-full { height: 34px; width: auto; display: block; }
.site-footer .brand-full { height: 40px; }
@media (max-width: 640px) { .brand-full { height: 28px; } }

/* ---- Solutions menu: invisible bridge so the pointer can reach the sub menu ---- */
.nav-item { padding-bottom: 0; }
.mega-dropdown::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.nav-item:focus-within .mega-dropdown { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
