/* ==========================================================================
   GBP Mailer landing page
   Blue and yellow. Light, airy, card driven.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --blue: #1a5cff;
  --blue-2: #4d84ff;
  --blue-d: #0b3fd4;
  --blue-ink: #0a2472;
  --navy: #061436;
  --navy-2: #0d2560;

  --yellow: #ffc53d;
  --yellow-d: #f0a500;
  --yellow-tint: #fff8e6;
  /* yellow is unreadable as text on white, so accents and body copy use
     this darker tone while gradients keep the bright --yellow-d */
  --yellow-text: #8f6300;
  --green: #0d7a41;
  --red: #b53a2d;

  --ink: #0b1220;
  --body: #5c667c;
  --faint: #64718c;

  --line: #e7ecf7;
  --line-2: #dbe3f5;
  --bg: #ffffff;
  --bg-soft: #f5f8ff;
  --bg-tint: #eef4ff;
  --panel: #ffffff;
  --nav-bg: rgba(255,255,255,.82);
  --glass: rgba(255,255,255,.94);
  --blue-tint: #e8f0ff;
  --green-tint: #e6f7ec;
  --amber-tint: #fff3d6;
  --img-dim: none;

  --card-shadow: 0 1px 2px rgba(9, 28, 74, .04), 0 8px 24px rgba(9, 28, 74, .05);
  --card-shadow-h: 0 2px 4px rgba(9, 28, 74, .06), 0 18px 40px rgba(9, 28, 74, .10);
  --glow: 0 8px 24px rgba(26, 92, 255, .32);

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; filter: var(--img-dim); }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- shared type ---------- */
.eyebrow {
  display: block;
  text-align: center;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .04em;
  color: var(--blue);
  margin-bottom: 16px;
}
.eyebrow::before { content: '[ '; color: var(--blue-2); }
.eyebrow::after  { content: ' ]'; color: var(--blue-2); }

h2.sec {
  text-align: center;
  font-size: clamp(28px, 3.6vw, 42px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.025em;
  margin: 0 auto 16px;
  max-width: 780px;
}
.b { color: var(--blue); }
.y { color: var(--yellow-text); }

.sec-sub {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 44px;
  color: var(--body);
  font-size: 15px;
  line-height: 1.65;
}

section { padding: 96px 0; position: relative; }
.soft { background: var(--bg-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 11px 14px 11px 22px;
  border-radius: 999px;
  font-size: 14px; font-weight: 600;
  transition: transform .2s cubic-bezier(.2,.8,.3,1), box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn .chev {
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; flex-shrink: 0;
  transition: transform .25s cubic-bezier(.2,.8,.3,1);
}
.btn:hover .chev { transform: translateX(3px); }

.btn-primary {
  background: linear-gradient(135deg, var(--blue-2), var(--blue) 45%, var(--blue-d));
  color: #fff;
  box-shadow: var(--glow);
}
.btn-primary:hover { box-shadow: 0 12px 30px rgba(26, 92, 255, .42); }
.btn-primary .chev { background: rgba(255,255,255,.22); }

.btn-yellow {
  background: linear-gradient(135deg, var(--yellow), var(--yellow-d));
  color: #3d2b00;
  box-shadow: 0 8px 22px rgba(240, 165, 0, .34);
}
.btn-yellow .chev { background: rgba(61,43,0,.14); }

.btn-ghost {
  background: var(--panel); color: var(--ink);
  border: 1px solid var(--line-2);
  padding: 11px 22px;
  box-shadow: 0 1px 2px rgba(9,28,74,.04);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }

.sec-cta { display: flex; justify-content: center; margin-top: 44px; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: var(--nav-bg);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-in {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 16px; letter-spacing: -.02em; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0;
  background: linear-gradient(140deg, var(--blue-2), var(--blue-d));
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(26,92,255,.34);
}
.logo-mark svg { width: 16px; height: 16px; }
.logo b { color: var(--blue); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 13.5px; font-weight: 500; color: var(--body);
  padding: 8px 13px; border-radius: 8px;
  display: inline-flex; align-items: center; gap: 5px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: var(--bg-tint); }
.nav-links svg { width: 10px; height: 10px; opacity: .5; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav-login { font-size: 13.5px; font-weight: 600; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); background: var(--panel); }
.nav-login:hover { border-color: var(--blue); color: var(--blue); }
.nav-right .btn { padding: 8px 10px 8px 18px; font-size: 13.5px; }
.nav-right .btn .chev { width: 20px; height: 20px; }
.burger { display: none; width: 38px; height: 38px; border-radius: 9px; border: 1px solid var(--line-2); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding: 68px 0 40px; text-align: center; position: relative; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; top: -280px; left: 50%; transform: translateX(-50%);
  width: 1000px; height: 700px; pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(26,92,255,.11), transparent 66%);
}
.hero::after {
  content: ''; position: absolute; top: 120px; right: -120px;
  width: 460px; height: 460px; pointer-events: none;
  background: radial-gradient(circle, rgba(255,197,61,.20), transparent 68%);
}
.hero .wrap { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel); border: 1px solid var(--line-2);
  padding: 6px 14px 6px 7px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; color: var(--body);
  box-shadow: 0 2px 10px rgba(9,28,74,.05);
  margin-bottom: 24px;
}
.hero-badge i {
  font-style: normal; background: var(--yellow); color: #3d2b00;
  padding: 3px 9px; border-radius: 999px; font-size: 11px; font-weight: 700;
}

h1 {
  font-size: clamp(34px, 5.4vw, 62px);
  font-weight: 700; line-height: 1.1; letter-spacing: -.035em;
  margin: 0 0 22px;
}
h1 .word { display: inline-block; }

/* headline toggle switch */
.tgl {
  display: inline-flex; align-items: center; vertical-align: middle;
  width: 1.32em; height: .72em; border-radius: 999px; padding: .07em;
  margin: 0 .18em; position: relative; top: -.04em;
  background: var(--line-2); cursor: pointer;
  transition: background .35s cubic-bezier(.4,0,.2,1);
  box-shadow: inset 0 1px 3px rgba(9,28,74,.14);
}
.tgl i {
  display: block; width: .58em; height: .58em; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 4px rgba(9,28,74,.3);
  transition: transform .35s cubic-bezier(.4,0,.2,1);
}
.tgl.on { background: linear-gradient(135deg, var(--blue-2), var(--blue-d)); }
.tgl.on i { transform: translateX(.6em); }
h1 .sw { transition: color .35s ease; color: var(--ink); }
h1 .sw.lit { color: var(--blue); }

.hero-sub {
  max-width: 610px; margin: 0 auto 30px;
  color: var(--body); font-size: 16px; line-height: 1.68;
}
.hero-sub b { color: var(--ink); font-weight: 600; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* works with strip */
.works { margin-top: 46px; }
.works p { font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin: 0 0 18px; }
.works-row { display: flex; align-items: center; justify-content: center; gap: 38px; flex-wrap: wrap; }
.works-row span {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--faint);
  filter: grayscale(1); opacity: .95;
  transition: filter .25s, opacity .25s, color .25s;
}
.works-row span:hover { filter: grayscale(0); opacity: 1; color: var(--body); }
.works-row svg { width: 19px; height: 19px; }

/* ---------- hero stage ---------- */
.stage {
  position: relative; margin: 54px auto 0;
  width: 100%; max-width: 1120px; height: 470px;
}
.stage-wire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.stage-wire path { fill: none; stroke: url(#wireGrad); stroke-width: 1.4; stroke-dasharray: 5 5; }
.stage-wire .flow { fill: var(--blue); }
.stage-wire .flow.y { fill: var(--yellow-d); }

/* left source icons */
.src {
  position: absolute; display: flex; align-items: center; gap: 9px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: 13px; padding: 9px 13px 9px 9px;
  box-shadow: var(--card-shadow);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  animation: bob 6s ease-in-out infinite;
}
.src .ic.b, .node-h .ic.b { background: var(--blue-tint); color: var(--blue); }
.src .ic.g, .node-h .ic.g { background: var(--green-tint); color: #12924f; }
.src .ic.a, .node-h .ic.a { background: var(--amber-tint); color: var(--yellow-text); }
.src .ic { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0; }
.src .ic svg { width: 15px; height: 15px; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* center hub */
.hub {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 320px; height: 320px;
}
.hub-glow {
  position: absolute; inset: -50px; border-radius: 50%;
  background: radial-gradient(circle, rgba(26,92,255,.16), transparent 62%);
}
.hub-disc {
  position: absolute; inset: 46px; border-radius: 50%;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 10px 40px rgba(9,28,74,.09);
  display: grid; place-items: center; text-align: center;
}
.hub-disc .n { font-size: 40px; font-weight: 800; letter-spacing: -.04em; line-height: 1; color: var(--blue); }
.hub-disc .l { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); margin-top: 6px; }
.hub-disc .pulse {
  position: absolute; inset: -1px; border-radius: 50%;
  border: 1.5px solid var(--blue); opacity: 0;
  animation: ping 3s cubic-bezier(0,0,.2,1) infinite;
}
@keyframes ping { 0% { transform: scale(.94); opacity: .55; } 70%,100% { transform: scale(1.22); opacity: 0; } }

.hub-ring { position: absolute; inset: 0; animation: spin 46s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinrev { to { transform: rotate(-360deg); } }
.av {
  position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px;
  transform: rotate(var(--a)) translate(150px) rotate(calc(-1 * var(--a)));
}
.av img {
  width: 46px; height: 46px; border-radius: 50%; object-fit: cover;
  border: 2.5px solid var(--panel); box-shadow: 0 4px 14px rgba(9,28,74,.18);
  animation: spinrev 46s linear infinite;
}
.av::after {
  content: ''; position: absolute; right: 1px; bottom: 1px;
  width: 11px; height: 11px; border-radius: 50%;
  background: var(--yellow); border: 2px solid var(--panel);
}
.av.sending::after { background: #22c55e; animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 0%,100% { opacity: 1; } 50% { opacity: .3; } }

/* right notification cards */
.note {
  position: absolute; background: var(--panel);
  border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; width: 232px;
  box-shadow: var(--card-shadow);
  text-align: left;
  opacity: 0; transform: translateY(14px) scale(.96);
  animation: notein .7s cubic-bezier(.2,.8,.3,1) forwards;
}
@keyframes notein { to { opacity: 1; transform: translateY(0) scale(1); } }
.note-h { display: flex; align-items: center; gap: 7px; margin-bottom: 7px; }
.note-h .dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.note-h .t { font-size: 11.5px; font-weight: 700; letter-spacing: .02em; }
.note p { margin: 0; font-size: 11.5px; color: var(--body); line-height: 1.5; }
.note .mono { font-size: 11px; color: var(--blue-ink); }

.mini-rail { margin-top: 9px; height: 4px; border-radius: 99px; background: var(--bg-tint); overflow: hidden; }
.mini-rail i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue-2), var(--blue-d)); width: 28%; animation: fill 5.5s cubic-bezier(.4,0,.2,1) infinite; }
@keyframes fill { 0% { width: 8%; } 70%,100% { width: 92%; } }

/* ==========================================================================
   GENERIC CARDS
   ========================================================================== */
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--card-shadow);
  transition: transform .3s cubic-bezier(.2,.8,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow-h); border-color: var(--line-2); }
.card-pad { padding: 26px 28px; }
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 700; letter-spacing: -.015em; }
.card p { margin: 0; font-size: 13.5px; color: var(--body); line-height: 1.65; }

.ic-box {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--bg-tint); color: var(--blue);
}
.ic-box.yl { background: var(--yellow-tint); color: var(--yellow-text); }
.ic-box svg { width: 21px; height: 21px; }

/* ---------- workbench ---------- */
.wb-grid { display: grid; gap: 18px; }
.wb-hero { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 10px; overflow: hidden; }
.wb-hero .txt { padding: 34px 36px; }
.wb-hero h3 { font-size: 21px; }
.wb-hero p { font-size: 14px; }
.wb-shot { position: relative; padding: 26px 26px 26px 0; }
.wb-shot img {
  border-radius: 14px; border: 1px solid var(--line);
  box-shadow: 0 14px 34px rgba(9,28,74,.10);
  height: 360px; width: 100%; object-fit: cover;
}
.wb-float {
  position: absolute; z-index: 3; background: var(--panel); border: 1px solid var(--line);
  border-radius: 11px; padding: 9px 12px; box-shadow: var(--card-shadow);
  font-size: 11.5px; font-weight: 600; display: flex; align-items: center; gap: 8px;
}
.wb-float .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; }
.wb-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.chip {
  font-family: 'JetBrains Mono', monospace; font-size: 11.5px;
  background: var(--bg-tint); border: 1px solid var(--line-2); color: var(--blue-ink);
  padding: 5px 10px; border-radius: 7px;
}
.chip.y { background: var(--yellow-tint); border-color: var(--yellow-brd); color: var(--yellow-text); }

/* mock validation panel */
.mock {
  margin-top: 18px; border: 1px solid var(--line); border-radius: 13px;
  background: var(--bg-soft); padding: 14px 16px;
}
.mock-row { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; padding: 7px 0; border-bottom: 1px dashed var(--line-2); }
.mock-row:last-child { border-bottom: none; }
.mock-row span:first-child { color: var(--body); }
.mock-row b { font-family: 'JetBrains Mono', monospace; font-weight: 500; }
.ok { color: var(--green); } .warn { color: var(--yellow-text); } .bad { color: var(--red); }

/* ---------- flows ---------- */
.flow-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 54px; align-items: center; }
.step {
  display: flex; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line);
  cursor: default; transition: opacity .25s;
}
.step:last-child { border-bottom: none; }
.step-n {
  width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0;
  display: grid; place-items: center;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600;
  background: var(--bg-tint); color: var(--blue);
  transition: background .3s, color .3s, transform .3s;
}
.step:hover .step-n { background: linear-gradient(135deg, var(--blue-2), var(--blue-d)); color: #fff; transform: scale(1.08); }
.step h4 { margin: 6px 0 5px; font-size: 15.5px; font-weight: 700; letter-spacing: -.015em; }
.step p { margin: 0; font-size: 13.5px; color: var(--body); line-height: 1.6; }

.shot-frame { position: relative; }
.shot-frame > img {
  border-radius: var(--r-lg); border: 1px solid var(--line);
  box-shadow: 0 20px 50px rgba(9,28,74,.13);
  height: 430px; width: 100%; object-fit: cover;
}
.shot-frame::before {
  /* the horizontal spread must stay under the wrap's 24px padding, otherwise
     this glow sticks out past the viewport and the page scrolls sideways */
  content: ''; position: absolute; inset: -26px -20px 20px;
  background: radial-gradient(ellipse at center, rgba(26,92,255,.13), transparent 68%);
  z-index: -1;
}
.pop {
  position: absolute; z-index: 3; background: var(--panel); border: 1px solid var(--line);
  border-radius: 13px; padding: 12px 14px; box-shadow: var(--card-shadow-h);
  width: 210px; text-align: left;
}
.pop .t { font-size: 11.5px; font-weight: 700; margin-bottom: 4px; }
.pop p { margin: 0; font-size: 11.5px; color: var(--body); line-height: 1.5; }

/* ---------- mailers node diagram ---------- */
.nodes { position: relative; height: 400px; max-width: 900px; margin: 0 auto; }
.nodes svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.node {
  position: absolute; width: 246px;
  background: var(--panel); border: 1px solid var(--line); border-radius: 15px;
  padding: 13px 15px; box-shadow: var(--card-shadow); text-align: left;
}
.node-h { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.node-h .ic { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; flex-shrink: 0; }
.node-h .ic svg { width: 13px; height: 13px; }
.node-h b { font-size: 12.5px; font-weight: 700; }
.node p { margin: 0; font-size: 11.5px; color: var(--body); line-height: 1.5; }

.core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%);
  width: 124px; height: 124px; border-radius: 50%;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 12px 36px rgba(9,28,74,.12);
  display: grid; place-items: center; text-align: center;
}
.core .ring {
  position: absolute; inset: -12px; border-radius: 50%;
  border: 1.5px dashed var(--line-2); animation: spin 24s linear infinite;
}
.core .ic {
  width: 46px; height: 46px; border-radius: 14px; margin: 0 auto 6px;
  background: linear-gradient(140deg, var(--blue-2), var(--blue-d));
  display: grid; place-items: center; box-shadow: 0 8px 20px rgba(26,92,255,.34);
}
.core .ic svg { width: 23px; height: 23px; }
.core b { font-size: 12px; font-weight: 700; }

/* ---------- solutions grid ---------- */
.sol-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

/* ---------- teams / photo band ---------- */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.person { overflow: hidden; position: relative; }
.person img { height: 240px; width: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.3,1); }
.person:hover img { transform: scale(1.06); }
.person .meta { padding: 20px 22px 24px; }
.person .tag {
  /* The image carries a filter in dark mode, which makes it paint in the same
     layer as z-index:0 positioned elements. This tag precedes it in the DOM, so
     without an explicit z-index the photo covers it. */
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--glass); backdrop-filter: blur(8px);
  padding: 5px 12px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; color: var(--blue-ink);
}
.person h3 { font-size: 16px; }

.quote {
  margin-top: 18px; display: grid; grid-template-columns: auto 1fr; gap: 20px;
  align-items: center; padding: 28px 32px;
  background: linear-gradient(120deg, var(--bg-tint), var(--panel) 60%);
  border: 1px solid var(--line); border-radius: var(--r-lg);
}
.quote img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; border: 3px solid var(--panel); box-shadow: 0 4px 14px rgba(9,28,74,.16); }
.quote blockquote { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.55; letter-spacing: -.015em; }
.quote cite { display: block; margin-top: 8px; font-style: normal; font-size: 12.5px; color: var(--faint); font-weight: 500; }

/* ---------- integrations rail ---------- */
.rail {
  position: relative; max-width: 900px; margin: 0 auto;
  background: var(--panel); border: 1px solid var(--line); border-radius: 999px;
  padding: 20px 30px; box-shadow: var(--card-shadow);
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  overflow: hidden;
}
.rail::before, .rail::after {
  content: ''; position: absolute; top: 0; bottom: 0; width: 70px; z-index: 2; pointer-events: none;
}
.rail::before { left: 0; background: linear-gradient(90deg, var(--panel), transparent); }
.rail::after { right: 0; background: linear-gradient(-90deg, var(--panel), transparent); }
.rail-ic {
  width: 46px; height: 46px; border-radius: 13px; flex-shrink: 0;
  display: grid; place-items: center;
  background: var(--bg-soft); border: 1px solid var(--line);
  transition: transform .3s cubic-bezier(.2,.8,.3,1), box-shadow .3s;
}
.rail-ic svg { width: 24px; height: 24px; }
.rail-ic:hover { transform: translateY(-4px) scale(1.06); box-shadow: var(--card-shadow-h); }
.rail-ic.hero-ic {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--panel); border: 2px solid var(--blue);
  box-shadow: 0 0 0 8px rgba(26,92,255,.09), var(--glow);
}
.rail-ic.hero-ic svg { width: 34px; height: 34px; }

/* ---------- security ---------- */
.sec-panel {
  position: relative; overflow: hidden;
  background: linear-gradient(150deg, var(--navy), var(--navy-2) 55%, #123a8f);
  border-radius: 28px; padding: 60px 48px 48px; text-align: center;
  box-shadow: 0 30px 70px rgba(6,20,54,.34);
}
.sec-panel::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 10%, rgba(255,197,61,.16), transparent 42%),
    radial-gradient(circle at 82% 80%, rgba(77,132,255,.30), transparent 46%);
}
.sec-panel > * { position: relative; z-index: 2; }
.shield { width: 76px; height: 76px; margin: 0 auto 22px; display: grid; place-items: center; }
.shield svg { width: 76px; height: 76px; filter: drop-shadow(0 8px 20px rgba(26,92,255,.5)); }
.sec-panel h3 { margin: 0 0 12px; font-size: clamp(22px, 3vw, 32px); font-weight: 700; letter-spacing: -.025em; color: #fff; }
.sec-panel > p { max-width: 560px; margin: 0 auto 38px; color: #a9bcea; font-size: 15px; line-height: 1.68; }
.sec-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.sec-card {
  background: rgba(255,255,255,.055); border: 1px solid rgba(255,255,255,.13);
  border-radius: 16px; padding: 22px 24px; backdrop-filter: blur(10px);
  transition: background .3s, border-color .3s, transform .3s;
}
.sec-card:hover { background: rgba(255,255,255,.1); border-color: rgba(255,197,61,.4); transform: translateY(-3px); }
.sec-card .ic { width: 34px; height: 34px; border-radius: 10px; background: rgba(255,197,61,.16); color: var(--yellow); display: grid; place-items: center; margin-bottom: 14px; }
.sec-card .ic svg { width: 17px; height: 17px; }
.sec-card b { display: block; color: #fff; font-size: 14.5px; margin-bottom: 6px; }
.sec-card p { margin: 0; color: #a9bcea; font-size: 12.5px; line-height: 1.6; }

/* ---------- stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat { background: var(--panel); padding: 30px 26px; text-align: center; }
.stat .n { font-size: 34px; font-weight: 800; letter-spacing: -.035em; color: var(--blue); line-height: 1; }
.stat .n.yl { color: var(--yellow-text); }
.stat .l { margin-top: 8px; font-size: 12.5px; color: var(--body); font-weight: 500; }

/* ---------- final CTA ---------- */
.cta-band { text-align: center; position: relative; overflow: hidden; }
.cta-band::before {
  content: ''; position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  width: 900px; height: 480px;
  background: radial-gradient(ellipse at center, rgba(255,197,61,.20), transparent 62%);
}
.cta-band .wrap { position: relative; z-index: 2; }
.cta-band h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 700; letter-spacing: -.03em; line-height: 1.16; margin: 0 0 16px; }
.cta-band p { max-width: 520px; margin: 0 auto 30px; color: var(--body); font-size: 15.5px; line-height: 1.65; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-note { margin-top: 20px; font-size: 12.5px; color: var(--faint); }

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 54px 0 34px; background: var(--bg-soft); }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; }
.foot-brand p { margin: 14px 0 0; font-size: 13px; color: var(--body); line-height: 1.65; max-width: 280px; }
.foot-col h5 { margin: 0 0 14px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink); }
.foot-col a { display: block; font-size: 13.5px; color: var(--body); padding: 5px 0; transition: color .15s; }
.foot-col a:hover { color: var(--blue); }
.foot-bot {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: var(--faint);
}

/* ==========================================================================
   SCROLL REVEAL
   ========================================================================== */
.rv { opacity: 0; transform: translateY(26px); }
.rv.in {
  opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.2,.8,.3,1), transform .7s cubic-bezier(.2,.8,.3,1);
  transition-delay: var(--d, 0ms);
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1080px) {
  .stage { height: 420px; }
  .src { font-size: 11.5px; }
  .note { width: 200px; }
}
@media (max-width: 900px) {
  section { padding: 72px 0; }
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--panel); border-bottom: 1px solid var(--line);
    padding: 10px 16px 16px;
    box-shadow: 0 18px 34px rgba(9,28,74,.10);
  }
  .nav-links.open a { padding: 12px 10px; font-size: 15px; }
  .burger { display: grid; place-items: center; }
  .nav-login { display: none; }
  .wb-hero { grid-template-columns: 1fr; }
  .wb-shot { padding: 0 26px 26px; }
  .flow-grid { grid-template-columns: 1fr; gap: 34px; }
  /* once this image goes full width, the glow's horizontal spread is what
     pushes the page wider than the viewport, so keep it inside the edges */
  .shot-frame::before { inset: -22px 0 18px; }
  .sol-grid, .people, .sec-cards { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .nodes { height: auto; display: grid; gap: 12px; }
  .nodes svg, .nodes .core { display: none; }
  .node { position: static !important; width: 100%; }
}
@media (max-width: 680px) {
  .hero { padding-top: 44px; }
  h1 { font-size: 29px; letter-spacing: -.03em; }
  .stage { height: 340px; }
  .stage .src, .stage .note, .stage-wire { display: none; }
  .hub { width: 270px; height: 270px; }
  .av { transform: rotate(var(--a)) translate(125px) rotate(calc(-1 * var(--a))); }
  .wb-2, .sol-grid, .people, .sec-cards { grid-template-columns: 1fr; }
  .quote { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .sec-panel { padding: 44px 24px 34px; }
  .works-row { gap: 22px; }
  .pop { display: none; }
  /* the rail cannot fit seven icons on a phone, so let it wrap instead of clip */
  .rail { flex-wrap: wrap; justify-content: center; gap: 14px; border-radius: 24px; padding: 24px 18px; }
  .rail::before, .rail::after { display: none; }
}

/* On the narrowest phones the logo, CTA, toggle, and burger do not fit on one
   line. Drop the nav CTA, the hero has the same button a few pixels below. */
@media (max-width: 400px) {
  .nav-in { gap: 10px; }
  .nav-right .btn { display: none; }
}

/* ==========================================================================
   REDUCED MOTION
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .rv { opacity: 1 !important; transform: none !important; }
  .note { opacity: 1 !important; transform: none !important; }
}


/* ==========================================================================
   DARK THEME
   The theme attribute is set on <html> by an inline script in the head, before
   first paint, so there is no flash of the wrong theme on load.
   ========================================================================== */
:root[data-theme="dark"] {
  --faint: #8a97b4;
  --blue: #5b8cff;
  --blue-2: #7aa5ff;
  --blue-d: #2f6bff;
  --blue-ink: #a9c4ff;

  --ink: #eaf0fc;
  --body: #9aa8c4;

  --line: #1e2942;
  --line-2: #2b3a5c;
  --bg: #070c18;
  --bg-soft: #0b1220;
  --bg-tint: #16223c;
  --panel: #0f1829;
  --nav-bg: rgba(7,12,24,.86);
  --glass: rgba(15,24,41,.92);
  --blue-tint: #16233f;
  --green-tint: #102a1d;
  --amber-tint: #2c2210;
  --yellow-tint: #241c0c;
  --yellow-brd: #4a3a12;

  --card-shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.34);
  --card-shadow-h: 0 2px 6px rgba(0,0,0,.46), 0 18px 44px rgba(0,0,0,.44);
  --glow: 0 8px 24px rgba(26, 92, 255, .42);
  --img-dim: brightness(.86) saturate(.94);
  --yellow-text: #ffc53d;
  --green: #2fd18a;
  --red: #ff8a78;
}

/* the ambient glows need to carry further on a dark background */
:root[data-theme="dark"] .hero::before {
  background: radial-gradient(ellipse at center, rgba(46,107,255,.20), transparent 66%);
}
:root[data-theme="dark"] .hero::after {
  background: radial-gradient(circle, rgba(255,197,61,.13), transparent 68%);
}
:root[data-theme="dark"] .cta-band::before {
  background: radial-gradient(ellipse at center, rgba(255,197,61,.13), transparent 62%);
}
:root[data-theme="dark"] .shot-frame::before {
  background: radial-gradient(ellipse at center, rgba(46,107,255,.22), transparent 68%);
}
:root[data-theme="dark"] .hub-glow {
  background: radial-gradient(circle, rgba(46,107,255,.26), transparent 62%);
}
:root[data-theme="dark"] .quote {
  background: linear-gradient(120deg, var(--bg-tint), var(--panel) 60%);
}
/* the wire gradient reads as grey on dark, so lift its mid stop */
:root[data-theme="dark"] .stage-wire path { stroke-width: 1.6; opacity: .85; }
:root[data-theme="dark"] .works-row span { opacity: .7; }
:root[data-theme="dark"] .works-row span:hover { opacity: 1; }

/* ---------------------------------------------------------------- theme toggle */
.theme-btn {
  width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--body);
  display: grid; place-items: center;
  transition: color .18s, border-color .18s, transform .18s;
}
.theme-btn:hover { color: var(--blue); border-color: var(--blue); transform: translateY(-1px); }
.theme-btn svg { width: 17px; height: 17px; }
.theme-btn .moon { display: none; }
:root[data-theme="dark"] .theme-btn .moon { display: block; }
:root[data-theme="dark"] .theme-btn .sun { display: none; }
