/* ============================================================
   FLOWO — Custom AI systems for UK businesses
   Dark · teal #13AD92 · fluid · cinematic
   Self-contained, no framework dependencies.
   ============================================================ */

/* ---------- Self-hosted body face: General Sans ---------- */
@font-face { font-family: 'General Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/general-sans-400.woff2') format('woff2'); }
@font-face { font-family: 'General Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/general-sans-500.woff2') format('woff2'); }
@font-face { font-family: 'General Sans'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/general-sans-600.woff2') format('woff2'); }
@font-face { font-family: 'General Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/general-sans-700.woff2') format('woff2'); }

/* ---------- Self-hosted display face: Space Grotesk ---------- */
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 400; font-display: swap; src: url('assets/fonts/space-grotesk-400.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 500; font-display: swap; src: url('assets/fonts/space-grotesk-500.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 600; font-display: swap; src: url('assets/fonts/space-grotesk-600.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 700; font-display: swap; src: url('assets/fonts/space-grotesk-700.woff2') format('woff2'); }

/* ---------- Self-hosted brand wordmark: Nunito ---------- */
@font-face { font-family: 'Nunito'; font-style: normal; font-weight: 800; font-display: swap; src: url('assets/fonts/nunito-800.woff2') format('woff2'); }

/* ---------- Tokens ---------- */
:root {
  --bg:          #07171c;
  --bg-2:        #0a1f25;
  --bg-3:        #0d262d;
  --surface:     rgba(255, 255, 255, 0.035);
  --surface-2:   rgba(255, 255, 255, 0.06);
  --border:      rgba(255, 255, 255, 0.09);
  --border-2:    rgba(255, 255, 255, 0.16);

  --teal:        #13ad92;
  --teal-bright: #3fe6c8;
  --teal-glow:   #1fd0ae;
  --teal-deep:   #0c7d6b;
  --navy:        #0f2a38;

  --text:        #eaf6f3;
  --muted:       #a9c4be;
  --muted-2:     #8aa6a0;

  --max:         1180px;
  --radius:      20px;
  --radius-sm:   13px;
  --ease:        cubic-bezier(0.22, 1, 0.36, 1);
  --font-display:'Space Grotesk', system-ui, sans-serif;
  --font-body:   'General Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-brand:  'Nunito', system-ui, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 17px;
  font-weight: 400;
  letter-spacing: -0.011em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Display typeface for all headings + eyebrows; brand stays Nunito */
h1, h2, h3, h4, .section-title, .eyebrow, .stat .num, .step .n, .num {
  font-family: var(--font-display);
}
.brand span { font-family: var(--font-brand); }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

::selection { background: var(--teal); color: var(--bg); }

/* Visible keyboard focus (mouse clicks stay clean via :focus-visible) */
a:focus-visible, button:focus-visible, .btn:focus-visible, input:focus-visible,
textarea:focus-visible, .system-node:focus-visible, .hub:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout helpers ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { position: relative; padding: clamp(80px, 11vw, 160px) 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 13px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--teal-bright);
  padding: 8px 15px; border-radius: 100px;
  background: rgba(19, 173, 146, 0.08);
  border: 1px solid rgba(19, 173, 146, 0.22);
}
.eyebrow::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background: var(--teal-bright); box-shadow: 0 0 10px var(--teal-bright);
}

h1, h2, h3 { font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }

.section-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 700; line-height: 1.04;
  letter-spacing: -0.035em;
  max-width: 16ch;
}
.section-lead {
  margin-top: 22px; max-width: 56ch;
  font-size: clamp(1.02rem, 1.6vw, 1.2rem);
  color: var(--muted); font-weight: 500;
}
.tealword { color: var(--teal-bright); }
@media (max-width: 640px) { .hide-mob { display: none; } }

/* ---------- Flowing paths background (fixed, runs behind whole page) ---------- */
.flow-bg {
  position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none;
  color: var(--teal);
  /* soft ambient depth behind the lines */
  background:
    radial-gradient(70% 55% at 50% 18%, rgba(19,173,146,0.10), transparent 70%),
    radial-gradient(60% 50% at 85% 80%, rgba(26,169,255,0.06), transparent 70%);
}
.flow-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* GPU-only motion: transform + opacity on the two groups (no per-frame repaint) */
.flow-bg .flow-g { will-change: transform, opacity; transform: translateZ(0); backface-visibility: hidden; }
.flow-bg .flow-g.a { animation: flowDriftA 26s ease-in-out infinite alternate; }
.flow-bg .flow-g.b { animation: flowDriftB 32s ease-in-out infinite alternate; }

@keyframes flowDriftA {
  0%   { transform: translate3d(-1.5%, 1%, 0);  opacity: 0.8; }
  100% { transform: translate3d(2.5%, -1.5%, 0); opacity: 1; }
}
@keyframes flowDriftB {
  0%   { transform: translate3d(1.5%, -1%, 0);  opacity: 1; }
  100% { transform: translate3d(-2.5%, 1.5%, 0); opacity: 0.78; }
}

/* grain + vignette overlay */
.grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 50% -10%, transparent 40%, rgba(0,0,0,0.55) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%);
  width: calc(100% - 32px); max-width: var(--max);
  z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px 12px 20px;
  border-radius: 100px;
  background: rgba(8, 24, 28, 0.55);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s var(--ease);
}
.nav.scrolled { background: rgba(8, 24, 28, 0.82); box-shadow: 0 14px 40px rgba(0,0,0,0.4); }

.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; }
.brand span { font-size: 23px; font-weight: 800; letter-spacing: -0.02em; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  font-size: 15px; font-weight: 700; color: var(--muted);
  padding: 9px 15px; border-radius: 100px; transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }

.nav-cta { display: flex; align-items: center; gap: 10px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  padding: 13px 24px; border-radius: 100px;
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .25s, color .25s, border-color .25s;
  white-space: nowrap; cursor: pointer;
}
.btn svg { width: 17px; height: 17px; }
.btn-primary {
  background: var(--teal); color: #03110d;
  box-shadow: 0 8px 24px rgba(19, 173, 146, 0.32);
}
.btn-primary:hover { background: var(--teal-bright); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(19, 173, 146, 0.45); }
.btn-ghost { background: var(--surface); color: var(--text); border: 1px solid var(--border-2); }
.btn-ghost:hover { background: var(--surface-2); transform: translateY(-2px); border-color: var(--teal); }
.btn-lg { padding: 16px 30px; font-size: 16px; }

.menu-toggle { display: none; width: 44px; height: 44px; border-radius: 50%; align-items: center; justify-content: center; background: var(--surface); border: 1px solid var(--border); }
.menu-toggle svg { width: 22px; height: 22px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-top: 120px; padding-bottom: 80px; }

/* animated logo mark */
.logo-stage {
  position: relative; width: clamp(104px, 13.5vw, 158px); aspect-ratio: 193 / 184;
  margin: 0 auto 34px;
  animation: floaty 6.5s ease-in-out infinite;
}
.logo-stage .mark { position: relative; z-index: 2; width: 100%; height: auto; }
.js .logo-stage .mark { opacity: 0; }   /* revealed by the intro animation */

/* logo intro: traced outline + colour-flood layers */
.logo-trace { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%;
  overflow: visible; opacity: 0; pointer-events: none; }
.logo-trace .trace-line { filter: drop-shadow(0 0 4px rgba(0, 232, 237, 0.55)); }
.logo-trace .trace-fill { opacity: 0; }
.js .logo-stage .sweep { animation-delay: 2.9s; }
.logo-stage .glow {
  position: absolute; inset: -45% -45%; z-index: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 208, 174, 0.55), transparent 60%);
  filter: blur(26px); animation: glowpulse 4.5s ease-in-out infinite;
}
/* light sweep masked to the exact logo shape */
.logo-stage .sweep {
  position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(115deg, transparent 35%, rgba(255,255,255,0.85) 50%, transparent 65%);
  background-size: 250% 100%;
  -webkit-mask: url("assets/flowo-mark.png") center / contain no-repeat;
          mask: url("assets/flowo-mark.png") center / contain no-repeat;
  mix-blend-mode: screen;
  animation: sweep 5.5s ease-in-out 1.2s infinite;
}

@keyframes markIn {
  from { opacity: 0; transform: scale(0.82); clip-path: inset(0 0 100% 0); }
  to   { opacity: 1; transform: scale(1);    clip-path: inset(0 0 0 0); }
}
@keyframes floaty { 0%,100% { transform: translateY(-7px); } 50% { transform: translateY(7px); } }
@keyframes glowpulse { 0%,100% { opacity: 0.5; transform: scale(0.95); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes sweep { 0% { background-position: 220% 0; } 45%,100% { background-position: -120% 0; } }

.hero h1 {
  font-size: clamp(2.6rem, 7.2vw, 5.6rem);
  font-weight: 700; letter-spacing: -0.04em; line-height: 0.98;
  max-width: 16ch;
}
.hero h1 .grad {
  background: linear-gradient(100deg, var(--teal-bright), var(--teal) 55%, #2bd0ff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.sub {
  margin: 28px auto 0; max-width: 60ch;
  font-size: clamp(1.05rem, 2vw, 1.32rem); color: var(--muted); font-weight: 500;
}
.hero-cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

.hero-meta {
  margin-top: 46px; display: flex; gap: 26px; flex-wrap: wrap; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--muted-2);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--teal); }

.scroll-hint { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border-2); color: var(--muted);
  background: rgba(255,255,255,0.02); backdrop-filter: blur(6px);
  animation: chevBob 2.2s ease-in-out infinite; opacity: .8; }
.scroll-hint svg { width: 17px; height: 17px; }
@keyframes chevBob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 7px); } }
/* never let the indicator crowd the headline on short screens */
@media (max-height: 780px) { .scroll-hint { display: none; } }

/* ============================================================
   POSITIONING / CONTRAST
   ============================================================ */
.contrast .big {
  font-size: clamp(2.2rem, 6vw, 4.2rem); font-weight: 700; line-height: 1.05; letter-spacing: -0.04em;
  max-width: 18ch;
}
.contrast .strike { color: var(--muted-2); position: relative; }
.contrast .strike::after { content: ""; position: absolute; left: 0; top: 56%; width: 100%; height: 4px; background: var(--teal); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease); }
.contrast.in .strike::after { transform: scaleX(1); }
.contrast .lead { margin-top: 28px; max-width: 54ch; color: var(--muted); font-size: 1.15rem; }

/* ============================================================
   APPROACH PILLARS
   ============================================================ */
.section-head { margin-bottom: 56px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar {
  position: relative; padding: 34px 30px 38px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: transform .4s var(--ease), border-color .4s, background .4s;
}
.pillar::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 0%, rgba(19,173,146,0.12), transparent 60%); opacity: 0; transition: opacity .4s; }
.pillar:hover { transform: translateY(-6px); border-color: rgba(19,173,146,0.4); background: var(--surface-2); }
.pillar:hover::before { opacity: 1; }
.pillar .ic { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  background: rgba(19,173,146,0.12); border: 1px solid rgba(19,173,146,0.28); margin-bottom: 22px; }
.pillar .ic svg { width: 26px; height: 26px; color: var(--teal-bright); }
.pillar h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 12px; }
.pillar p { color: var(--muted); font-size: 1rem; }

/* ============================================================
   FCB PROOF — slick feature
   ============================================================ */
.proof-card {
  position: relative; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--border);
  background: linear-gradient(150deg, rgba(15,42,56,0.9), rgba(8,24,28,0.6));
  padding: clamp(34px, 5vw, 64px);
}
.proof-card::after { content: ""; position: absolute; top: -40%; right: -10%; width: 50%; height: 160%;
  background: radial-gradient(circle, rgba(19,173,146,0.25), transparent 65%); filter: blur(30px); pointer-events: none; }
.proof-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 50px; align-items: center; position: relative; z-index: 1; }
.proof-card h2 { font-size: clamp(1.7rem, 3.4vw, 2.7rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.08; }
.proof-card p { margin-top: 22px; color: var(--muted); font-size: 1.08rem; max-width: 50ch; }
.proof-tools { margin-top: 26px; display: flex; gap: 10px; flex-wrap: wrap; }
.tool-chip { font-size: 13px; font-weight: 700; padding: 8px 14px; border-radius: 100px; background: var(--surface); border: 1px solid var(--border-2); color: var(--muted); }

.proof-stats { display: grid; gap: 16px; }
.stat {
  padding: 26px 28px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
}
.stat .num { font-size: clamp(2rem, 4vw, 2.9rem); font-weight: 700; letter-spacing: -0.04em;
  background: linear-gradient(100deg, var(--teal-bright), var(--teal)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat .lbl { margin-top: 4px; font-size: 0.95rem; color: var(--muted); font-weight: 600; }

/* FCB proof visual — stylised "inside Outlook + Excel" */
.proof-visual { position: relative; align-self: center; min-height: 300px;
  display: flex; align-items: center; justify-content: center; perspective: 1100px; }
.device { border-radius: 14px; border: 1px solid var(--border-2);
  background: linear-gradient(160deg, rgba(18,40,46,0.97), rgba(9,24,28,0.98));
  box-shadow: 0 26px 60px rgba(0,0,0,0.55); }
.device-mail { width: 100%; max-width: 358px;
  transform: rotateY(-7deg) rotateX(2deg); animation: deviceFloat 7.5s ease-in-out infinite; }
.device-bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; border-bottom: 1px solid var(--border); }
.device-bar .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.16); }
.device-bar .dot:first-child { background: rgba(255,120,110,0.5); }
.device-bar .dot:nth-child(2) { background: rgba(255,200,90,0.45); }
.device-title { margin-left: 8px; font-size: 11.5px; color: var(--muted-2); font-weight: 600; }
.device-body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.mail-head { display: flex; align-items: center; gap: 11px; }
.avatar { width: 34px; height: 34px; flex: none; border-radius: 9px; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 12px; font-weight: 700; color: #04140f;
  background: linear-gradient(140deg, var(--teal-bright), var(--teal)); box-shadow: 0 0 16px rgba(31,208,174,0.45); }
.mail-meta { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.ln { display: block; height: 7px; border-radius: 4px; background: rgba(255,255,255,0.15); }
.ln.dim { background: rgba(255,255,255,0.08); }
.w90{width:90%}.w80{width:80%}.w75{width:75%}.w60{width:60%}.w55{width:55%}.w40{width:40%}
.mail-subject { font-family: var(--font-display); font-size: 13.5px; font-weight: 600; color: var(--text); }
.mail-lines { display: flex; flex-direction: column; gap: 8px; }
.mail-chip { display: inline-flex; align-items: center; gap: 7px; align-self: flex-start; margin-top: 2px;
  padding: 7px 12px; border-radius: 100px; font-size: 12px; font-weight: 600;
  color: var(--teal-bright); background: rgba(19,173,146,0.12); border: 1px solid rgba(19,173,146,0.32); }
.mail-chip svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.device-sheet { position: absolute; right: -8px; bottom: 12px; width: 130px; padding: 9px;
  display: flex; flex-direction: column; gap: 5px; transform: rotateY(-7deg); animation: deviceFloat2 7.5s ease-in-out infinite; }
.sheet-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.sheet-row i { height: 12px; border-radius: 3px; background: rgba(255,255,255,0.1); }
.sheet-head i { background: rgba(19,173,146,0.32); }
.sheet-row i.hot { background: var(--teal-bright); box-shadow: 0 0 10px rgba(31,208,174,0.6); }
@keyframes deviceFloat  { 0%,100% { transform: rotateY(-7deg) rotateX(2deg) translateY(-5px); } 50% { transform: rotateY(-7deg) rotateX(2deg) translateY(5px); } }
@keyframes deviceFloat2 { 0%,100% { transform: rotateY(-7deg) translateY(5px); } 50% { transform: rotateY(-7deg) translateY(-6px); } }

.proof-stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 34px; position: relative; z-index: 1; }
@media (max-width: 560px) { .proof-stats-row { grid-template-columns: 1fr; } }

/* ============================================================
   CAPABILITIES — bento
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 16px; }
.cap {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  transition: transform .35s var(--ease), border-color .35s, background .35s;
  overflow: hidden; min-height: 168px; display: flex; flex-direction: column; justify-content: space-between;
}
.cap:hover { transform: translateY(-5px); border-color: rgba(19,173,146,0.42); background: var(--surface-2); }
.cap .ic { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(19,173,146,0.1); border: 1px solid rgba(19,173,146,0.25); }
.cap .ic svg { width: 22px; height: 22px; color: var(--teal-bright); }
.cap h4 { font-size: 1.18rem; font-weight: 800; margin-top: 18px; }
.cap p { font-size: 0.93rem; color: var(--muted); margin-top: 6px; }
.cap.wide { grid-column: span 2; }
.cap.feature { grid-column: span 2; grid-row: span 2; background: linear-gradient(155deg, rgba(19,173,146,0.16), rgba(8,24,28,0.4)); border-color: rgba(19,173,146,0.3); justify-content: flex-end; }
.cap.feature h4 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); letter-spacing: -0.03em; }
.cap.feature p { font-size: 1.02rem; max-width: 34ch; }

/* ===== SYSTEMS — hub & spoke (Custom Systems) ===== */
.systems-hint { text-align: center; margin: 42px auto 48px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; color: var(--muted-2); }
.systems { margin-bottom: 14px; }
.systems { position: relative; display: grid;
  grid-template-columns: 1fr minmax(196px, 236px) 1fr; align-items: center;
  gap: clamp(18px, 3.6vw, 48px); }
.systems-wires { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0;
  pointer-events: none; overflow: visible; }
.systems-col { display: flex; flex-direction: column; gap: 16px; z-index: 1; }
.systems-mid { display: flex; flex-direction: column; align-items: center; gap: 20px;
  z-index: 1; position: relative; }

/* node cards */
.system-node { position: relative; height: 104px; border-radius: 15px;
  background: rgba(255,255,255,0.035); border: 1px solid var(--border);
  cursor: pointer; overflow: hidden; outline: none;
  transition: border-color .3s var(--ease), background .3s var(--ease), transform .3s var(--ease), box-shadow .3s var(--ease); }
.system-node:hover, .system-node:focus-visible, .system-node.open {
  border-color: rgba(19,173,146,0.55); background: rgba(255,255,255,0.06);
  transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,0.32); }
.node-face { position: absolute; inset: 0; padding: 15px 17px; display: flex; flex-direction: column;
  justify-content: center; gap: 9px; transition: opacity .35s var(--ease), transform .35s var(--ease); }
.node-face.info { opacity: 0; transform: translateY(7px); }
.system-node:hover .rest, .system-node:focus-visible .rest, .system-node.open .rest { opacity: 0; transform: translateY(-7px); }
.system-node:hover .info, .system-node:focus-visible .info, .system-node.open .info { opacity: 1; transform: translateY(0); }
.node-ic { width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center;
  justify-content: center; background: rgba(19,173,146,0.1); border: 1px solid rgba(19,173,146,0.26); }
.node-ic svg { width: 20px; height: 20px; color: var(--teal-bright); }
.node-name { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }
.node-desc { font-size: 0.86rem; color: var(--muted); line-height: 1.4; }

/* hub */
.hub { position: relative; z-index: 2; justify-self: center; width: 100%; aspect-ratio: 1 / 1;
  max-width: 220px; border-radius: 22px; cursor: pointer; overflow: visible; outline: none;
  background: radial-gradient(120% 120% at 50% 0%, #0f2a30, #081a1f 72%);
  border: 1px solid rgba(19,173,146,0.42);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 24px 60px rgba(0,0,0,0.5), 0 0 64px rgba(19,173,146,0.18);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20px;
  transition: border-color .3s, box-shadow .3s, transform .3s; }
.hub::before { content: ""; position: absolute; inset: 0; border-radius: 22px;
  background: radial-gradient(60% 60% at 50% 50%, rgba(19,173,146,0.16), transparent 70%); }
.hub:hover, .hub:focus-visible, .hub.open { transform: translateY(-2px); border-color: rgba(31,208,174,0.75);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.4), 0 28px 72px rgba(0,0,0,0.55), 0 0 90px rgba(19,173,146,0.32); }
.hub-pins span { position: absolute; width: 6px; height: 14px; border-radius: 2px;
  background: linear-gradient(var(--teal-bright), transparent); opacity: 0.55; }
.hub-tag { position: relative; font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 700; margin-bottom: 7px; }
.hub-label { position: relative; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.04; letter-spacing: -0.02em;
  background: linear-gradient(100deg, #13ad92, #00e8ed 38%, #ffffff 50%, #0088ff 62%, #13ad92);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: hubShimmer 6s linear infinite; }
.hub-desc { position: relative; margin-top: 0; max-height: 0; opacity: 0; overflow: hidden;
  font-size: 0.84rem; color: var(--muted); line-height: 1.45;
  transition: max-height .4s var(--ease), opacity .4s var(--ease), margin-top .4s var(--ease); }
.hub:hover .hub-desc, .hub:focus-visible .hub-desc, .hub.open .hub-desc { max-height: 90px; opacity: 1; margin-top: 12px; }

@keyframes hubShimmer { to { background-position: 220% center; } }
@keyframes wirePulse { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 100; } }

/* tone the flowing background down a touch inside this section only */
#capabilities::before { content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(82% 74% at 50% 46%, rgba(6,17,21,0.62), rgba(6,17,21,0.26) 72%, transparent); }
#capabilities .wrap { position: relative; z-index: 1; }

/* asymmetric, abstract box sizes + stagger (desktop only) */
@media (min-width: 860px) {
  .systems-col.left  { gap: 20px; }
  .systems-col.right { gap: 22px; margin-top: 34px; }
  .systems-mid       { gap: 50px; }   /* match the hub→side-box distance */

  /* left (3) */
  .systems-col.left  .system-node:nth-child(1) { height: 110px; width: 100%; align-self: stretch; }
  .systems-col.left  .system-node:nth-child(2) { height: 150px; width: 74%;  align-self: flex-end; }
  .systems-col.left  .system-node:nth-child(3) { height: 96px;  width: 90%;  align-self: flex-start; }

  /* right (3) */
  .systems-col.right .system-node:nth-child(1) { height: 100px; width: 82%;  align-self: flex-start; }
  .systems-col.right .system-node:nth-child(2) { height: 142px; width: 100%; align-self: stretch; }
  .systems-col.right .system-node:nth-child(3) { height: 110px; width: 76%;  align-self: flex-end; }

  /* above + below the hub */
  .top-node    { height: 90px; width: 80%; align-self: flex-start; }
  .bottom-node { height: 98px; width: 92%; align-self: flex-end; }
}

@media (max-width: 859px) {
  .systems { grid-template-columns: 1fr 1fr; gap: 14px; }
  .systems-wires { display: none; }
  .systems-col, .systems-mid { display: contents; }
  .hub { grid-column: 1 / -1; order: -1; aspect-ratio: auto; max-width: none; min-height: 148px; }
}
@media (max-width: 480px) {
  .systems { grid-template-columns: 1fr; }
  .system-node { height: 98px; }
}

/* ============================================================
   PROCESS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 30px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.step .n { font-size: 14px; font-weight: 700; color: var(--teal-bright); letter-spacing: 0.1em; }
.step h3 { font-size: 1.3rem; font-weight: 800; margin: 14px 0 10px; }
.step p { color: var(--muted); font-size: 0.97rem; }
.step::before { content: ""; position: absolute; top: 0; left: 0; height: 3px; width: 0; background: var(--teal); border-radius: 3px; transition: width .6s var(--ease); }
.step.in::before { width: 38px; }

/* ============================================================
   CTA + CONTACT
   ============================================================ */
.cta-section { text-align: center; }
.cta-card {
  position: relative; overflow: hidden;
  border-radius: 32px; padding: clamp(40px, 6vw, 80px) clamp(24px, 5vw, 70px);
  background: linear-gradient(160deg, rgba(19,173,146,0.16), rgba(8,24,28,0.5));
  border: 1px solid rgba(19,173,146,0.3);
}
.cta-card::before { content: ""; position: absolute; top: -50%; left: 50%; transform: translateX(-50%); width: 80%; height: 200%;
  background: radial-gradient(circle, rgba(31,208,174,0.22), transparent 60%); filter: blur(40px); }
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { font-size: clamp(2rem, 5vw, 3.6rem); font-weight: 700; letter-spacing: -0.04em; max-width: 18ch; margin: 0 auto; }
.cta-card p { margin: 22px auto 0; max-width: 50ch; color: var(--muted); font-size: 1.12rem; }
.cta-card .hero-cta { justify-content: center; margin-top: 36px; }

/* contact form */
.contact { margin-top: 64px; max-width: 640px; margin-left: auto; margin-right: auto; text-align: left; }
.contact .or { display: flex; align-items: center; gap: 16px; color: var(--muted-2); font-size: 13px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 32px; }
.contact .or::before, .contact .or::after { content: ""; height: 1px; flex: 1; background: var(--border); }
form { display: grid; gap: 16px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 13px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  color: var(--text); font-family: inherit; font-size: 16px; font-weight: 500;
  transition: border-color .25s, background .25s;
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-2); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: rgba(19,173,146,0.06); }
.field textarea { resize: vertical; min-height: 120px; }
form .btn-primary { width: 100%; padding: 16px; font-size: 16px; }
form .btn-primary:disabled { opacity: 0.7; cursor: default; transform: none; }

.form-success { text-align: center; padding: 32px 24px; border-radius: 16px;
  background: rgba(19,173,146,0.08); border: 1px solid rgba(19,173,146,0.3); }
.form-success-ic { width: 54px; height: 54px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; color: var(--teal-bright);
  background: rgba(19,173,146,0.16); border: 1px solid rgba(19,173,146,0.42); }
.form-success-ic svg { width: 26px; height: 26px; }
.form-success h3 { font-family: var(--font-display); font-size: 1.32rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.form-success p { color: var(--muted); }
.form-error { margin-top: 14px; text-align: center; font-size: 0.92rem; color: #ff9a9a; }
.form-error a { color: var(--teal-bright); font-weight: 600; }
[hidden] { display: none !important; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 64px 0 40px; border-top: 1px solid var(--border); }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-start; }
.footer .brand img { height: 32px; }
.footer .brand span { font-size: 24px; }
.footer-tag { margin-top: 16px; color: var(--muted); max-width: 36ch; font-size: 0.98rem; }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h3 { font-size: 13px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); font-weight: 800; margin-bottom: 16px; }
.footer-col a, .footer-col p { display: block; color: var(--muted); font-size: 0.97rem; font-weight: 600; margin-bottom: 10px; transition: color .2s; }
.footer-col a:hover { color: var(--teal-bright); }
.footer-bottom { margin-top: 50px; padding-top: 26px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--muted-2); font-size: 0.88rem; font-weight: 600; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(10px); filter: blur(5px);
  transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; } .reveal.d4 { transition-delay: .28s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  .nav-cta .btn-ghost { display: none; }
  .pillars, .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .cap.feature { grid-column: span 2; grid-row: span 1; }
  .proof-grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .bento { grid-template-columns: 1fr; }
  .cap.wide, .cap.feature { grid-column: span 1; }
  .row2 { grid-template-columns: 1fr; }
  .nav { padding: 10px 10px 10px 16px; }
  .brand span { font-size: 20px; }
  .footer-bottom { flex-direction: column; }
  .scroll-hint { display: none; }
  .hero { padding-top: 130px; }
}

/* ============================================================
   MOBILE MENU
   ============================================================ */
.mobile-menu { position: fixed; inset: 0; z-index: 60; background: rgba(7,23,28,0.97); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease); }
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-size: 1.7rem; font-weight: 800; color: var(--text); padding: 12px; }
.mobile-menu a:hover { color: var(--teal-bright); }
.mobile-menu .close { position: absolute; top: 28px; right: 24px; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; }
.mobile-menu .close svg { width: 24px; height: 24px; }
.mobile-menu .btn-primary { margin-top: 24px; }

/* ============================================================
   DEDICATED MOBILE PASS — designed for phones, not shrunk
   ============================================================ */
@media (max-width: 600px) {
  /* rhythm: tighter vertical space, calmer background so text stays crisp */
  section { padding: 60px 0; }
  .flow-bg { opacity: 0.6; }
  .wrap { padding: 0 18px; }

  /* nav: tighter pill */
  .nav { top: 12px; padding: 8px 8px 8px 14px; }
  .brand img { height: 26px; }
  .brand span { font-size: 19px; }

  /* hero: trimmed copy, smaller headline floor, full-width CTAs, lighter meta */
  .hero { padding-top: 116px; padding-bottom: 60px; }
  .hero h1 { font-size: clamp(2.25rem, 8.6vw, 3.4rem); line-height: 1.02; }
  .hero p.sub { font-size: 1.02rem; margin-top: 22px; }
  .sub-extra { display: none; }
  .hero-cta { margin-top: 30px; width: 100%; flex-direction: column; gap: 11px; }
  .hero-cta .btn { width: 100%; }
  .hero-meta { margin-top: 32px; gap: 9px 18px; font-size: 12.5px; }
  .hero-meta .meta-hide { display: none; }

  /* section heads + big type a touch tighter */
  .section-head { margin-bottom: 38px; }
  .section-title { font-size: clamp(1.8rem, 7.4vw, 2.6rem); }
  .contrast .big { font-size: clamp(2rem, 8.4vw, 3rem); letter-spacing: -0.03em; }
  .contrast .lead { font-size: 1.04rem; margin-top: 20px; }
  .eyebrow { font-size: 12px; }

  /* approach pillars: tighter cards */
  .pillar { padding: 26px 22px 28px; }
  .pillar .ic { width: 46px; height: 46px; margin-bottom: 18px; }
  .pillar h3 { font-size: 1.26rem; }

  /* FCB proof: scale + flatten the visual, compact stats */
  .proof-card { padding: 28px 20px; border-radius: 22px; }
  .proof-grid { gap: 26px; }
  .proof-card h2 { font-size: clamp(1.5rem, 6.4vw, 2rem); }
  .proof-visual { min-height: 220px; }
  .device-mail { max-width: 284px; transform: rotateY(-5deg) rotateX(1deg); }
  .device-sheet { width: 116px; right: -4px; }
  .proof-stats-row { gap: 12px; margin-top: 26px; }
  .stat { padding: 20px 22px; }
  .stat .num { font-size: clamp(1.9rem, 9vw, 2.5rem); }

  /* systems: tap a chip to drop down its description (mobile accordion) */
  .systems-hint { display: block; margin: 30px auto 32px; }
  .systems { grid-template-columns: 1fr 1fr; gap: 11px; margin-top: 6px; align-items: start; }
  .hub { min-height: 124px; padding: 18px; }
  .system-node { height: auto; min-height: 58px; }
  .system-node:hover, .system-node:focus-visible { transform: none; box-shadow: none; }
  .node-face { position: static; opacity: 1 !important; transform: none !important; padding: 12px 13px; }
  .node-face.rest { flex-direction: row; align-items: center; gap: 11px; }
  .node-face.rest .node-ic { width: 30px; height: 30px; border-radius: 8px; flex: none; }
  .node-face.rest .node-ic svg { width: 16px; height: 16px; }
  .node-face.rest .node-name { font-size: 0.9rem; }
  .node-face.info { display: none; padding-top: 4px; }
  .node-face.info .node-name { display: none; }
  .node-face.info .node-desc { font-size: 0.84rem; line-height: 1.45; }
  .system-node.open { background: rgba(255,255,255,0.06); border-color: rgba(19,173,146,0.5); }
  .system-node.open .node-face.info { display: block; }

  /* process: tighter steps */
  .step { padding: 24px 22px; }
  .step h3 { font-size: 1.2rem; }

  /* CTA + contact: full-width primary, tighter */
  .cta-card { border-radius: 24px; }
  .cta-card p { font-size: 1.04rem; }
  .cta-card .hero-cta { width: 100%; }
  .contact { margin-top: 42px; }

  /* footer: clean stack */
  .footer { padding: 52px 0 36px; }
  .footer-cols { gap: 28px 40px; }
}

/* smallest phones only: single-column chips + compact nav CTA */
@media (max-width: 360px) {
  .systems { grid-template-columns: 1fr; }
  .nav .nav-cta .btn-primary { padding: 10px 15px; font-size: 14px; }
  .nav .nav-cta .btn-primary svg { display: none; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .flow-bg path, .flow-bg .flow-g { animation: none !important; }
}
