/* ===== Self-hosted fonts (Space Grotesk / IBM Plex Sans / IBM Plex Mono) ===== */
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:300;font-display:optional;src:url('/fonts/space-grotesk-300.woff2') format('woff2');}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:400;font-display:optional;src:url('/fonts/space-grotesk-400.woff2') format('woff2');}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500;font-display:optional;src:url('/fonts/space-grotesk-500.woff2') format('woff2');}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:600;font-display:optional;src:url('/fonts/space-grotesk-600.woff2') format('woff2');}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:700;font-display:optional;src:url('/fonts/space-grotesk-700.woff2') format('woff2');}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:optional;src:url('/fonts/ibm-plex-sans-400.woff2') format('woff2');}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:500;font-display:optional;src:url('/fonts/ibm-plex-sans-500.woff2') format('woff2');}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:optional;src:url('/fonts/ibm-plex-sans-600.woff2') format('woff2');}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:400;font-display:optional;src:url('/fonts/ibm-plex-mono-400.woff2') format('woff2');}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:optional;src:url('/fonts/ibm-plex-mono-500.woff2') format('woff2');}

/* ============================================================
   ComniCube — Marketing site shared system
   ============================================================ */

:root {
  /* Brand */
  --signal: #16E0B0;
  --signal-deep: #0FB892;
  --ion: #5B6CFF;
  --ion-lite: #8A95FF;

  /* Dark surfaces */
  --void: #0A0C10;
  --carbon: #11151B;
  --slate: #1B212B;
  --line: #232A35;
  --line-2: #2E3744;

  /* Light surfaces */
  --paper: #FFFFFF;
  --mist: #F5F7FA;
  --fog: #E7EBF0;

  /* Text on dark */
  --d1: #F3F5F7;
  --d2: #9BA3AF;
  --d3: #5A6472;

  /* Text on light */
  --l1: #0B0E13;
  --l2: #4B5563;
  --l3: #8A93A0;

  /* Semantic */
  --success: #2BD46E;
  --warning: #FFB020;
  --danger: #FF5C5C;
  --info: #54A9FF;

  --display: 'Space Grotesk', sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', monospace;

  --maxw: 1280px;
  --pad: 48px;
  --nav-h: 68px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--body);
  background: var(--void);
  color: var(--d1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img, svg { display: block; }
button { font-family: inherit; cursor: pointer; }
::selection { background: rgba(22,224,176,0.28); color: #fff; }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }

.section { padding: 120px 0; position: relative; overflow: hidden; }
.section.tight { padding: 88px 0; }
@media (max-width: 860px){ .section { padding: 80px 0; } }

.section--void   { background: var(--void); color: var(--d1); }
.section--carbon { background: var(--carbon); color: var(--d1); }
.section--slate  { background: var(--slate); color: var(--d1); }
.section--paper  { background: var(--paper); color: var(--l1); }
.section--mist   { background: var(--mist); color: var(--l1); }

/* hairline separators between same-mode sections */
.section--paper + .section--paper,
.section--mist + .section--mist { border-top: 1px solid var(--fog); }

/* ---------- Type ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--signal);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow.muted { color: var(--d3); }
.on-light .eyebrow.muted, .section--paper .eyebrow.muted, .section--mist .eyebrow.muted { color: var(--l3); }
.eyebrow::before {
  content: "";
  width: 22px; height: 1px; background: currentColor; opacity: 0.6;
}
.eyebrow.no-tick::before { display: none; }

.display {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px, 5.6vw, 72px);
  line-height: 1.0;
  letter-spacing: -0.03em;
}
h1, .h1 { font-family: var(--display); font-weight: 700; font-size: clamp(34px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.025em; }
h2, .h2 { font-family: var(--display); font-weight: 600; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.1; letter-spacing: -0.02em; }
h3, .h3 { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; }
h4, .h4 { font-family: var(--display); font-weight: 500; font-size: 18px; line-height: 1.25; }

.lead { font-size: 19px; line-height: 1.6; color: var(--d2); }
.section--paper .lead, .section--mist .lead { color: var(--l2); }
.muted { color: var(--d2); }
.section--paper .muted, .section--mist .muted { color: var(--l2); }

.grad-text {
  background: linear-gradient(100deg, var(--signal), var(--ion));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--body); font-weight: 600; font-size: 14.5px;
  padding: 12px 20px; border-radius: 9px; border: 1px solid transparent;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease), color 0.18s var(--ease);
  white-space: nowrap;
}
.btn i { font-size: 17px; transition: transform 0.18s var(--ease); }
.btn:hover i.ti-arrow-right, .btn:hover i.ti-arrow-narrow-right { transform: translateX(3px); }

.btn-primary { background: var(--signal); color: #06120D; border-color: var(--signal); }
.btn-primary:hover { background: #2CEEC0; transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--d1); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--signal); color: var(--signal); }
.section--paper .btn-ghost, .section--mist .btn-ghost { color: var(--l1); border-color: var(--fog); }
.section--paper .btn-ghost:hover, .section--mist .btn-ghost:hover { border-color: var(--signal-deep); color: var(--signal-deep); }

.btn-link { color: var(--signal); font-weight: 600; font-size: 14.5px; display: inline-flex; align-items: center; gap: 7px; }
.section--paper .btn-link, .section--mist .btn-link { color: var(--signal-deep); }
.btn-link i { transition: transform 0.18s var(--ease); }
.btn-link:hover i { transform: translateX(3px); }

.btn-lg { padding: 15px 26px; font-size: 15.5px; border-radius: 10px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s var(--ease);
  /* Frosted by default so the (light) nav text stays legible over light hero sections too */
  background: rgba(10,12,16,0.86);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10,12,16,0.92);
  border-bottom-color: var(--line);
}
.nav-inner { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand .wm { font-family: var(--display); font-size: 19px; letter-spacing: -0.02em; line-height: 1; color: var(--d1); }
.brand .wm .c1 { font-weight: 400; }
.brand .wm .c2 { font-weight: 700; }

.nav-links { display: flex; align-items: center; gap: 28px; flex: 1; }
.nav-links a { font-size: 14px; color: var(--d2); font-weight: 500; transition: color 0.16s var(--ease); position: relative; }
.nav-links a:hover, .nav-links a.active { color: var(--d1); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -22px; height: 2px;
  background: var(--signal); border-radius: 2px;
}
.nav-cta { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.nav-cta .signin { font-size: 14px; color: var(--d2); font-weight: 500; }
.nav-cta .signin:hover { color: var(--d1); }

.nav-burger { display: none; background: none; border: none; color: var(--d1); font-size: 24px; }

/* mobile nav */
.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; z-index: 99;
  background: rgba(10,12,16,0.97); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; padding: 30px var(--pad);
  gap: 6px; transform: translateY(-12px); opacity: 0; pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
  /* BUG 1 — allow the overlay itself to scroll when it has more items
     than fit on screen (the page behind stays put). */
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}
.mobile-menu.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
.mobile-menu a { font-family: var(--display); font-size: 22px; font-weight: 500; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--d1); }
.mobile-menu .btn { margin-top: 24px; justify-content: center; }

@media (max-width: 940px){
  /* FIX 1 — hide the CTA cluster on mobile (Sign in was already hidden;
     hiding .nav-cta entirely removes the now-empty "Start building" button). */
  .nav-links, .nav-cta { display: none; }
  /* FIX 2 — push the burger to the far right of .nav-inner. */
  .nav-burger { display: block; margin-left: auto; }
  :root { --pad: 28px; }
}

/* ---------- Footer ---------- */
.footer { background: var(--void); border-top: 1px solid var(--line); padding: 80px 0 40px; color: var(--d2); }
.footer-grid { display: grid; grid-template-columns: 1.3fr repeat(7, minmax(0,1fr)); gap: 24px 18px; }
.footer-brand .wm { font-family: var(--display); font-size: 18px; letter-spacing: -0.02em; color: var(--d1); margin-top: 14px; }
.footer-brand .wm .c1 { font-weight: 400; } .footer-brand .wm .c2 { font-weight: 700; }
.footer-brand p { font-size: 13.5px; max-width: 30ch; margin-top: 14px; color: var(--d3); line-height: 1.6; }
.footer-col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--d3); margin-bottom: 16px; }
.footer-col a { display: block; font-size: 14px; color: var(--d2); padding: 6px 0; transition: color 0.16s var(--ease); }
.footer-col a:hover { color: var(--signal); }
.footer-bottom { margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-bottom .lo { font-family: var(--mono); font-size: 12px; color: var(--d3); }
.footer-social { display: flex; gap: 12px; }
.footer-social a { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; display: grid; place-items: center; color: var(--d2); transition: all 0.16s var(--ease); }
.footer-social a:hover { border-color: var(--signal); color: var(--signal); }
@media (max-width: 1100px){ .footer-grid { grid-template-columns: repeat(4, 1fr); gap: 26px 18px; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 640px){ .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ---------- Cards & misc ---------- */
.card {
  background: var(--slate); border: 1px solid var(--line); border-radius: 14px; padding: 28px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.section--paper .card, .section--mist .card { background: var(--paper); border-color: var(--fog); }
.section--mist .card { box-shadow: 0 1px 2px rgba(11,14,19,0.04); }

.icon-badge { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; }
.icon-badge i { font-size: 23px; }

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 100px; border: 1px solid var(--line);
  background: rgba(255,255,255,0.02); color: var(--d2);
}
.section--paper .pill, .section--mist .pill { border-color: var(--fog); background: var(--mist); color: var(--l2); }
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 8px var(--signal); }

.kicker-row { display: flex; flex-direction: column; gap: 18px; max-width: 660px; }
.section-head { margin-bottom: 60px; }
.section-head.center { text-align: center; margin-left: auto; margin-right: auto; }
.section-head.center .kicker-row { margin: 0 auto; align-items: center; }

/* hairline grid background util */
.grid-bg { position: absolute; inset: 0; pointer-events: none; opacity: 0.5;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000, transparent 75%);
}
.glow-blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.5; pointer-events: none; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.06s; }
.reveal.d2 { transition-delay: 0.12s; }
.reveal.d3 { transition-delay: 0.18s; }
.reveal.d4 { transition-delay: 0.24s; }
.reveal.d5 { transition-delay: 0.30s; }
@media (prefers-reduced-motion: reduce){
  .reveal { opacity: 1 !important; transform: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- 3D wireframe cube (channel motif) ---------- */
.cube-stage { perspective: 900px; display: grid; place-items: center; }
.cube {
  position: relative; transform-style: preserve-3d;
  animation: cube-spin 26s linear infinite;
}
@keyframes cube-spin {
  from { transform: rotateX(-18deg) rotateY(0deg); }
  to   { transform: rotateX(-18deg) rotateY(360deg); }
}
.cube .face {
  position: absolute; top: 0; left: 0;
  border: 1px solid var(--accent, var(--signal));
  background: color-mix(in srgb, var(--accent, var(--signal)) 6%, transparent);
  display: grid; place-items: center;
}
.cube .face i { font-size: 30px; color: var(--accent, var(--signal)); opacity: 0.32; }
@media (prefers-reduced-motion: reduce){ .cube { animation: none; transform: rotateX(-18deg) rotateY(-32deg); } }

/* number tabular */
.tnum { font-variant-numeric: tabular-nums; }

/* ====== MEGA MENU ====== */
.nav-item--mega { display: flex; align-items: center; }
.nav-trigger {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--body); font-size: 14px; font-weight: 500;
  color: var(--d2); background: none; border: none; padding: 0; cursor: pointer;
  transition: color 0.16s var(--ease);
}
.nav-trigger:hover,
.nav-item--mega.open .nav-trigger,
.nav-item--mega.active .nav-trigger { color: var(--d1); }
.nav-chev { font-size: 15px; transition: transform 0.25s var(--ease); }
.nav-item--mega.open .nav-chev { transform: rotate(180deg); }

.mega {
  position: fixed; left: 0; right: 0; top: var(--nav-h);
  background: var(--void);
  border-top: 1px solid var(--line-2);
  border-bottom: 1px solid var(--line-2);
  box-shadow: 0 24px 48px rgba(0,0,0,0.4);
  max-height: 520px; padding: 36px var(--pad);
  z-index: 90; overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s linear 0.2s;
}
.nav-item--mega.open .mega {
  opacity: 1; visibility: visible; transform: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0s;
}

/* 30 / 30 / 40 three-column layout */
.mega-inner {
  position: relative;
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 26% 26% 18% 30%; gap: 0; align-items: start;
}
.mega-col { padding: 0 28px; }
.mega-col--1 { padding-left: 0; }
.mega-col--1, .mega-col--2, .mega-col--3 { border-right: 1px solid var(--line-2); }
.mega-col--3 { padding: 0 16px; }
.mega-right { padding-left: 28px; }

.mega-group { margin-bottom: 18px; }
.mega-group:last-child { margin-bottom: 0; }
.mega-glabel {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.18em; color: var(--d3);
  margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2);
}

/* Featured "Platform overview" link */
.mega-featured {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 12px; margin-bottom: 16px; border-radius: 8px;
  background: rgba(22,224,176,0.06); border: 1px solid rgba(22,224,176,0.15);
  transition: background 0.15s ease;
}
.mega-featured:hover { background: rgba(22,224,176,0.1); }
.mega-featured i { font-size: 22px; color: var(--signal); flex-shrink: 0; }
.mega-featured .ml-name { color: var(--signal); }

.mega-link {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 12px; border-radius: 8px;
  transition: background 0.15s ease;
}
.mega-link:hover { background: rgba(255,255,255,0.06); }
.mega-link i, .mega-link svg.mega-vsvg {
  width: 20px; height: 20px; font-size: 20px;
  color: var(--igc, var(--signal)); flex-shrink: 0; transition: filter 0.15s ease;
}
.mega-link:hover i, .mega-link:hover svg.mega-vsvg { filter: drop-shadow(0 0 6px var(--igc, var(--signal))); }
.mega-link .ml-text, .mega-featured .ml-text { display: flex; flex-direction: column; min-width: 0; }
.mega-link .ml-name { font-family: var(--display); font-weight: 500; font-size: 14px; color: var(--d1); line-height: 1.2; }
.mega-link .ml-sub, .mega-featured .ml-sub { font-family: var(--body); font-weight: 400; font-size: 12px; color: var(--d2); line-height: 1.2; margin-top: 2px; }
.mega-link:hover .ml-sub { color: var(--d1); }

.mega-underline {
  position: absolute; height: 2px; left: 0; top: 0; width: 0;
  background: var(--signal); border-radius: 2px; opacity: 0; pointer-events: none;
  transition: left 0.25s var(--ease), top 0.25s var(--ease), width 0.25s var(--ease),
              background 0.25s var(--ease), opacity 0.2s var(--ease);
}
.nav-item--mega.open .mega-underline { opacity: 0.9; }

/* Infographic stage (reduced height 280) */
.mega-stage {
  position: relative; height: 280px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line-2); border-radius: 16px;
  padding: 24px; overflow: hidden;
}
.mega-ig {
  position: absolute; inset: 0; padding: 18px;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.mega-ig.active { opacity: 1; transform: none; }
.mega-ig.out { opacity: 0; transform: translateY(-8px); }
.mega-ig svg { width: 100%; height: 100%; display: block; }
.mega-ig:not(.playing) * { animation-play-state: paused !important; }

/* Mobile: hide the desktop mega; Products becomes an accordion */
@media (max-width: 940px){
  .mega { display: none; }
  .m-acc {
    display: flex; align-items: center; justify-content: space-between; width: 100%;
    background: none; border: none; color: var(--d1);
    font-family: var(--display); font-size: 22px; font-weight: 500;
    padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer;
  }
  .m-acc i { font-size: 20px; transition: transform 0.25s var(--ease); }
  .m-acc.open i { transform: rotate(180deg); }
  .m-sub { display: none; flex-direction: column; padding: 4px 0 12px 6px; }
  .m-sub.open { display: flex; }
  .m-sub a {
    display: flex; align-items: center; gap: 10px;
    font-family: var(--body); font-size: 16px; font-weight: 500;
    color: var(--d2); padding: 10px 0; border-bottom: none;
  }
  .m-sub a i, .m-sub a svg.mega-vsvg { font-size: 18px; width: 18px; height: 18px; }
}

/* Code tabs (used on the Verify page's send/check panel) */
.code-tabs { display: inline-flex; gap: 4px; margin-left: 4px; }
.code-tab {
  font-family: var(--mono); font-size: 12px; padding: 4px 12px; border-radius: 6px;
  color: var(--d3); background: none; border: none; cursor: pointer;
}
.code-tab.active { color: var(--d1); background: var(--slate); }
.code-body { display: none; }
.code-body.active { display: block; }
.code-panel:not([data-codetabs]) .code-body { display: block; }


/* ====== INTEGRATIONS COLUMN + BADGES ====== */
.mega-sublabel {
  font-family: var(--mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: 0.12em; color: var(--d3); margin: 2px 0 8px;
}
.mega-sep { border-top: 1px solid var(--line-2); margin: 10px 0; }
.mega-viewall {
  display: block; font-family: var(--body); font-weight: 500; font-size: 13px;
  color: var(--signal); margin-top: 8px; padding: 6px 12px; border-radius: 8px;
  transition: background 0.15s ease;
}
.mega-viewall:hover { background: rgba(255,255,255,0.06); }

.badge-soon {
  display: inline-block; font-family: var(--mono); font-size: 9px; font-weight: 500;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--signal);
  background: rgba(22,224,176,0.1); border: 1px solid rgba(22,224,176,0.2);
  border-radius: 4px; padding: 2px 6px; margin-left: 8px; vertical-align: middle;
  transition: border-color 0.15s ease;
}
.mega-link.is-soon i { opacity: 0.5; }
.mega-link.is-soon .ml-name { color: var(--d2); }
.mega-link.is-soon:hover .ml-name { color: var(--d1); }
.mega-link.is-soon:hover .badge-soon { border-color: rgba(22,224,176,0.4); }

/* ====== COMING SOON BANNER ====== */
.cs-banner {
  display: flex; align-items: center; gap: 12px;
  padding: 12px var(--pad); margin-top: var(--nav-h);
  background: rgba(22,224,176,0.06); border-bottom: 1px solid rgba(22,224,176,0.15);
}
.cs-banner i { color: var(--signal); font-size: 18px; flex-shrink: 0; }
.cs-banner span { font-family: var(--mono); font-size: 12px; color: var(--d2); line-height: 1.4; }
/* When a banner is present, the hero shouldn't re-add the nav offset */
.cs-banner + .svc-hero { padding-top: 56px; }

/* compact overview hero */
.svc-hero.svc-hero--compact { padding: calc(var(--nav-h) + 56px) 0 56px; min-height: 0; }

/* ====== INTEGRATION TILES (overview coming-soon grid) ====== */
.integ-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px){ .integ-tiles { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .integ-tiles { grid-template-columns: 1fr; } }
.integ-tile {
  background: var(--slate); border: 1px solid var(--line); border-radius: 14px; padding: 22px;
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.integ-tile:hover { border-color: var(--line-2); transform: translateY(-2px); }
.integ-tile .it-icon { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; }
.integ-tile .it-icon i { font-size: 22px; }
.integ-tile .it-name { font-family: var(--display); font-weight: 600; font-size: 16px; color: var(--d1); margin-top: 4px; }
.integ-tile .it-desc { font-size: 13.5px; color: var(--d2); line-height: 1.5; flex: 1; }
.integ-tile .btn-link { margin-top: 6px; }

/* ====== INTEREST FORM ====== */
.interest-form { max-width: 640px; display: flex; flex-direction: column; gap: 18px; }
.interest-form .if-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px){ .interest-form .if-row { grid-template-columns: 1fr; } }
.if-field { display: flex; flex-direction: column; gap: 7px; }
.if-field > span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--l3); }
.section--mist .if-field > span { color: var(--l3); }
.if-field input, .if-field select {
  font-family: var(--body); font-size: 15px; color: var(--l1);
  padding: 12px 14px; border-radius: 9px; border: 1px solid var(--fog); background: var(--paper);
  transition: border-color 0.16s var(--ease);
}
.if-field input:focus, .if-field select:focus { outline: none; border-color: var(--signal-deep); }
.interest-form .btn { align-self: flex-start; }
.interest-success {
  display: flex; align-items: center; gap: 10px; max-width: 640px;
  font-family: var(--body); font-size: 16px; color: var(--l1);
  background: rgba(22,224,176,0.08); border: 1px solid rgba(22,224,176,0.25);
  border-radius: 12px; padding: 20px 24px;
}
.interest-success i { color: var(--signal-deep); font-size: 22px; }

/* ====== MOCKUP FRAME (plugin/zap/scenario previews) ====== */
.mockup-frame {
  background: #0C1014; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; box-shadow: 0 30px 80px -40px rgba(0,0,0,0.8);
}


/* ============================================================
   MARKETING PAGES — contact / security / compliance / customers
   careers / blog / legal  (added sprint: remaining pages)
   ============================================================ */

/* ---- Generic page hero (light or dark) ---- */
.page-hero { position: relative; padding: calc(var(--nav-h) + 72px) 0 64px; overflow: hidden; }
.page-hero.is-tall { min-height: 48vh; display: flex; align-items: center; }
.page-hero .container { width: 100%; }
.page-hero-grid { display: grid; grid-template-columns: 1fr auto; gap: 48px; align-items: center; }
@media (max-width: 860px){ .page-hero-grid { grid-template-columns: 1fr; gap: 30px; } }
.page-hero h1 { margin: 18px 0 18px; max-width: 18ch; }
.page-hero .lead { max-width: 52ch; }
.page-hero-ico { font-size: 120px; color: var(--signal); line-height: 1; text-shadow: 0 0 40px rgba(22,224,176,0.35); flex-shrink: 0; }
@media (max-width: 860px){ .page-hero-ico { font-size: 84px; } }


/* ---- Legal page layout ---- */
.legal-wrap { max-width: 780px; margin: 0 auto; padding: calc(var(--nav-h) + 56px) var(--pad) 120px; }
.legal-wrap h1 { font-family: var(--display); font-size: 38px; font-weight: 700; color: var(--d1); letter-spacing: -0.02em; margin-bottom: 8px; }
.legal-meta { font-family: var(--mono); font-size: 12px; color: var(--d3); margin-bottom: 48px; padding-bottom: 32px; border-bottom: 1px solid var(--line-2); }
.legal-wrap h2 { font-family: var(--display); font-size: 20px; font-weight: 600; color: var(--d1); margin: 48px 0 16px; scroll-margin-top: 90px; }
.legal-wrap h3 { font-family: var(--display); font-size: 16px; font-weight: 600; color: var(--d1); margin: 28px 0 10px; }
.legal-wrap p, .legal-wrap li { font-family: var(--body); font-size: 15px; color: var(--d2); line-height: 1.75; margin-bottom: 12px; }
.legal-wrap ul { padding-left: 20px; margin-bottom: 16px; }
.legal-wrap li { margin-bottom: 6px; }
.legal-wrap a { color: var(--signal); text-decoration: underline; }
.legal-note { background: rgba(255,255,255,0.03); border: 1px solid var(--line-2); border-radius: 10px; padding: 18px 22px; margin: 24px 0; }
.legal-note p { margin: 0; font-size: 14px; }
.legal-toc { background: rgba(255,255,255,0.03); border: 1px solid var(--line-2); border-radius: 12px; padding: 24px 28px; margin-bottom: 40px; }
.legal-toc p { font-family: var(--mono); font-size: 11px; color: var(--d3); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 12px; }
.legal-toc a { display: block; font-size: 14px; color: var(--d2); text-decoration: none; padding: 4px 0; }
.legal-toc a:hover { color: var(--d1); }

/* ---- Blog ---- */
.blog-filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.blog-pill { font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; color: var(--d2); border: 1px solid var(--line-2); background: transparent; border-radius: 100px; padding: 8px 16px; cursor: default; }
.blog-pill.active { background: var(--signal); border-color: var(--signal); color: #06120D; }
.blog-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 48px; }
@media (max-width: 900px){ .blog-grid { grid-template-columns: 1fr; } }
.blog-card { background: var(--slate); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden; transition: border-color 0.2s var(--ease), transform 0.2s var(--ease); text-decoration: none; display: block; }
.blog-card:hover { border-color: var(--signal); transform: translateY(-3px); }
.blog-card-thumb { height: 180px; background: var(--carbon); display: flex; align-items: center; justify-content: center; font-size: 48px; }
.blog-card-body { padding: 24px; }
.blog-card-tag { font-family: var(--mono); font-size: 11px; color: var(--signal); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px; display: block; }
.blog-card-title { font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--d1); line-height: 1.3; margin-bottom: 10px; }
.blog-card-excerpt { font-size: 14px; color: var(--d2); line-height: 1.6; margin-bottom: 16px; }
.blog-card-meta { font-family: var(--mono); font-size: 11px; color: var(--d3); }
.blog-post-wrap { max-width: 720px; margin: 0 auto; padding: 80px var(--pad) 120px; }
.blog-post-wrap h1 { font-family: var(--display); font-size: 42px; font-weight: 700; color: var(--d1); letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 20px; }
.blog-post-meta { font-family: var(--mono); font-size: 12px; color: var(--d3); margin-bottom: 40px; padding-bottom: 32px; border-bottom: 1px solid var(--line-2); }
.blog-post-wrap h2 { font-family: var(--display); font-size: 24px; font-weight: 600; color: var(--d1); margin: 48px 0 16px; }
.blog-post-wrap h3 { font-family: var(--display); font-size: 18px; font-weight: 600; color: var(--d1); margin: 30px 0 10px; }
.blog-post-wrap p { font-size: 16px; color: var(--d2); line-height: 1.8; margin-bottom: 20px; }
.blog-post-wrap ul, .blog-post-wrap ol { padding-left: 22px; margin-bottom: 20px; }
.blog-post-wrap li { font-size: 16px; color: var(--d2); line-height: 1.7; margin-bottom: 8px; }
.blog-callout { background: rgba(22,224,176,0.06); border-left: 3px solid var(--signal); border-radius: 0 8px 8px 0; padding: 20px 24px; margin: 32px 0; }
.blog-callout p { margin: 0; color: var(--d1); font-size: 15px; }
.blog-post-cta { background: var(--slate); border: 1px solid var(--line-2); border-radius: 16px; padding: 32px; margin-top: 56px; text-align: center; }
.blog-post-cta h3 { font-family: var(--display); font-size: 22px; color: var(--d1); margin-bottom: 12px; }
.blog-post-cta p { color: var(--d2); margin-bottom: 22px; }
.blog-back { font-family: var(--mono); font-size: 12px; color: var(--d3); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; margin-bottom: 32px; }
.blog-back:hover { color: var(--d1); }

/* ---- Form extras (contact / customers) ---- */
.if-field--full { grid-column: 1 / -1; }
.if-field textarea {
  font-family: var(--body); font-size: 15px; color: var(--l1); line-height: 1.6;
  padding: 12px 14px; border-radius: 9px; border: 1px solid var(--fog); background: var(--paper);
  transition: border-color 0.16s var(--ease); resize: vertical; min-height: 120px;
}
.if-field textarea:focus { outline: none; border-color: var(--signal-deep); }
.if-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--l2); line-height: 1.5; }
.if-check input { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--signal-deep); flex-shrink: 0; }
.if-check a { color: var(--signal-deep); }
.contact-card-form { background: var(--paper); border: 1px solid var(--fog); border-radius: 16px; padding: 36px; }
.form-success {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  background: var(--paper); border: 1px solid var(--fog); border-radius: 16px; padding: 48px 36px;
}
.form-success.on-dark { background: rgba(22,224,176,0.06); border-color: rgba(22,224,176,0.25); }
.form-success i { color: var(--signal-deep); font-size: 48px; }
.form-success.on-dark i { color: var(--signal); }
.form-success h3 { font-family: var(--display); font-size: 22px; color: var(--l1); margin: 6px 0 0; }
.form-success.on-dark h3 { color: var(--d1); }
.form-success p { font-size: 15px; color: var(--l2); margin: 0; }
.form-success.on-dark p { color: var(--d2); }

/* ---- Contact split layout ---- */
.contact-split { display: grid; grid-template-columns: 45% 55%; gap: 48px; align-items: start; }
@media (max-width: 900px){ .contact-split { grid-template-columns: 1fr; gap: 32px; } }
.contact-cards { display: flex; flex-direction: column; gap: 16px; }
.contact-card { display: flex; gap: 14px; align-items: flex-start; background: var(--mist); border: 1px solid var(--fog); border-radius: 12px; padding: 20px; }
.contact-card i { font-size: 22px; color: var(--signal-deep); margin-top: 2px; }
.contact-card b { display: block; font-size: 14.5px; color: var(--l1); font-weight: 600; margin-bottom: 4px; }
.contact-card span, .contact-card a { font-size: 14px; color: var(--l2); }
.contact-card a { color: var(--signal-deep); text-decoration: none; }
.contact-card a:hover { text-decoration: underline; }
.contact-reg { font-family: var(--mono); font-size: 12px; color: var(--l3); line-height: 1.7; margin-top: 26px; }

/* ---- Security / compliance pillars ---- */
.pillar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
@media (max-width: 760px){ .pillar-grid { grid-template-columns: 1fr; } }
.pillar-card { padding: 32px; }
.pillar-card .icon-badge { width: 52px; height: 52px; margin-bottom: 20px; background: rgba(22,224,176,0.1); color: var(--signal-deep); }
.pillar-card .icon-badge i { font-size: 26px; }
.pillar-card h3 { margin-bottom: 12px; }
.pillar-card p { font-size: 14.5px; color: var(--l2); line-height: 1.65; }
.num-steps { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; max-width: 720px; }
.num-step { display: flex; gap: 16px; align-items: flex-start; }
.num-step .nn { font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--signal); width: 38px; height: 38px; border-radius: 10px; background: rgba(22,224,176,0.1); display: grid; place-items: center; flex-shrink: 0; }
.num-step p { margin: 0; color: var(--d2); font-size: 15px; line-height: 1.6; padding-top: 7px; }
.cert-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
@media (max-width: 760px){ .cert-grid { grid-template-columns: 1fr 1fr; } }
.cert-badge { border: 1px solid var(--fog); border-radius: 12px; padding: 24px; text-align: center; background: var(--paper); }
.cert-badge i { font-size: 32px; color: var(--signal-deep); }
.cert-badge b { display: block; font-family: var(--display); font-size: 15px; color: var(--l1); margin: 12px 0 4px; }
.cert-badge span { font-size: 12.5px; color: var(--l3); }
.bullet-list { display: flex; flex-direction: column; gap: 14px; margin-top: 24px; max-width: 680px; list-style: none; }
.bullet-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; line-height: 1.6; }
.bullet-list li i { color: var(--signal); font-size: 19px; margin-top: 2px; flex-shrink: 0; }
.section--paper .bullet-list li i, .section--mist .bullet-list li i { color: var(--signal-deep); }

/* ---- Customers logo wall ---- */
.logo-wall { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-top: 44px; }
@media (max-width: 760px){ .logo-wall { grid-template-columns: 1fr 1fr; } }
.logo-cell { height: 90px; border-radius: 12px; background: var(--slate); border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--display); font-weight: 600; font-size: 15px; color: var(--d2); opacity: 0.2; }
.cust-note { text-align: center; margin-top: 40px; font-size: 15px; color: var(--d2); }

/* ---- Careers options ---- */
.career-opts { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }

/* ====== Markdown blog post: callouts (blockquote) + links ====== */
.blog-post-wrap blockquote {
  background: rgba(22,224,176,0.06); border-left: 3px solid var(--signal);
  border-radius: 0 8px 8px 0; padding: 20px 24px; margin: 32px 0;
}
.blog-post-wrap blockquote p { margin: 0; color: var(--d1); font-size: 15px; line-height: 1.7; }
.blog-post-wrap blockquote a { color: var(--signal); text-decoration: none; font-weight: 600; }
.blog-post-wrap blockquote a:hover { text-decoration: underline; }
.blog-post-wrap a { color: var(--signal); text-decoration: underline; }
.blog-post-wrap strong { color: var(--d1); }

/* ====== Hero cube responsive show/hide ======
   Moved here from hero-cube.css. hero-cube.css is now loaded with
   media="(min-width:1024px)" (perf: it no longer render-blocks mobile), so its
   own mobile rules never apply. These must live in the always-loaded site.css
   to hide the cube section and show the stacked fallback cards on mobile. */
.hero-cards { display: none; }
@media (max-width: 1023px) {
  .hero-cube-section { display: none; }
  .hero-cards {
    display: flex; flex-direction: column; gap: 16px;
    padding: 48px 20px; background: var(--void, #0A0C10);
  }
  .hero-card {
    position: relative; background: var(--carbon, #11151B);
    border: 1px solid var(--line, #232A35); border-left-width: 3px;
    border-radius: 12px; padding: 24px 22px;
  }
  .hero-card__icon { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; }
  .hero-card__icon svg { width: 40px; height: 40px; display: block; }
  .hero-card__counter { font-family: var(--mono, 'IBM Plex Mono', monospace); font-size: 11px; text-transform: uppercase; letter-spacing: 0.18em; }
  .hero-card__headline { font-family: var(--display, 'Space Grotesk', sans-serif); font-weight: 700; font-size: 34px; line-height: 1.0; letter-spacing: -0.03em; margin-top: 10px; }
  .hero-card__descriptor { font-family: var(--display, 'Space Grotesk', sans-serif); font-size: 16px; color: var(--d2, #9BA3AF); margin-top: 8px; }
  .hero-card__body { font-family: var(--body, 'IBM Plex Sans', sans-serif); font-size: 15px; line-height: 1.6; color: var(--d2, #9BA3AF); margin-top: 14px; }
  .hero-card__cta { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display, 'Space Grotesk', sans-serif); font-weight: 600; font-size: 14px; color: #0A0C10; padding: 12px 22px; border-radius: 8px; text-decoration: none; margin-top: 20px; }
}
