/* ==========================================================================
   STYLES — edit colours and fonts in :root, everything else follows.
   Sections: 1 Tokens · 2 Base · 3 Layout · 4 Components · 5 Diagrams · 6 Responsive
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  --bg: #06070C;
  --surface: #0C0E1C;
  --line: rgba(255, 255, 255, .1);
  --line-strong: rgba(255, 255, 255, .28);
  --text: #EDEFF7;
  --muted: #9AA3B8;
  --cyan: #22D3EE;
  --violet: #7C5CFF;
  --violet-soft: #A99BFF;
  --pink: #F472B6;

  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;

  --radius: 24px;
  --max-width: 1200px;
  --gutter: 32px;
}

/* 2. BASE ------------------------------------------------------------------ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.6 var(--font-body); }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .75; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -.02em; line-height: 1.1; }
h1 { font-size: clamp(44px, 7.4vw, 92px); font-weight: 800; line-height: .98; letter-spacing: -.035em; }
h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; letter-spacing: -.03em; }
h3 { font-size: 24px; font-weight: 700; margin-bottom: 10px; }
p { margin: 0; }

.skip-link { position: absolute; left: -999px; top: 8px; background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip-link:focus { left: 8px; }

/* 3. LAYOUT ---------------------------------------------------------------- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: 96px 0; }
.section-head { margin-bottom: 48px; }
.section-head .lede { margin-top: 16px; }
.lede { color: var(--muted); font-size: 19px; max-width: 620px; }
.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.grid--wide { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }

/* 4. COMPONENTS ------------------------------------------------------------ */
/* Header */
.site-header .container { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }
.brand { font-family: var(--font-display); font-weight: 800; font-size: 26px; }
.brand span { color: var(--cyan); }
.nav { display: flex; flex-wrap: wrap; gap: 26px; font-size: 15px; font-weight: 500; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); padding: 10px 28px; border-radius: 999px; }

/* Hero */
.hero { padding: 56px 0 96px; background: radial-gradient(60% 60% at 85% 0%, rgba(124, 92, 255, .35), transparent 70%), radial-gradient(40% 40% at 0% 60%, rgba(34, 211, 238, .14), transparent 70%); }
.hero__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 24px; align-items: center; }
.hero h1 { margin: 0 0 24px; }
.hero .lede { font-size: 20px; max-width: 540px; }
.hero__art { display: flex; justify-content: center; }
.hero__art svg { width: 100%; max-width: 520px; height: auto; }
.gradient-text { background: linear-gradient(90deg, var(--cyan), var(--violet-soft), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 40px; }

/* Buttons */
.btn { display: inline-block; padding: 16px 30px; min-height: 44px; border-radius: 999px; font-weight: 700; }
.btn--primary { background: linear-gradient(90deg, var(--cyan), var(--violet)); color: var(--bg); font-weight: 800; }
.btn--ghost { border: 1px solid var(--line-strong); }

/* Cards */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.card p, .card dd { color: var(--muted); }

/* Journey stages: set the bar with style="--level:50%" */
.meter { height: 6px; border-radius: 6px; background: var(--line); margin-bottom: 26px; }
.meter span { display: block; height: 100%; width: var(--level); border-radius: 6px; background: linear-gradient(90deg, var(--cyan), var(--violet)); }

/* Service icons: pick a colour with .icon--cyan / --violet / --pink */
.icon { --c: var(--cyan); width: 52px; height: 52px; margin-bottom: 22px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .08); background: color-mix(in srgb, var(--c) 15%, transparent); }
.icon--violet { --c: var(--violet-soft); }
.icon--pink { --c: var(--pink); }
.icon svg { width: 26px; height: 26px; fill: none; stroke: var(--c); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Case studies */
.case dt { font-weight: 700; margin-top: 18px; }
.case dd { margin: 4px 0 0; }
.case__tag { color: var(--cyan); font-size: 15px; font-weight: 700; margin-bottom: 8px; }

/* Process steps (a real sequence, so numbered) */
.steps { display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.step { border-top: 1px solid var(--line-strong); padding-top: 20px; }
.step__n { font-family: var(--font-display); font-weight: 800; font-size: 72px; line-height: 1; color: var(--cyan); }
.step:nth-child(2) .step__n { color: var(--violet-soft); }
.step:nth-child(3) .step__n { color: var(--pink); }
.step h3 { margin-top: 12px; }
.step p { color: var(--muted); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .container { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

/* Hero animation (the one motion on the page) */
.spin { animation: spin 40s linear infinite; transform-origin: 260px 260px; }
.spin--reverse { animation: spin-reverse 60s linear infinite; }
.pulse { animation: pulse 3s ease-in-out infinite; }
.pulse--2 { animation-delay: 1.2s; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spin-reverse { to { transform: rotate(-360deg); } }
@keyframes pulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .spin, .pulse { animation: none; } html { scroll-behavior: auto; } }

/* 5. DIAGRAMS (shared by all three SVGs) ------------------------------------ */
.diagram-scroll { overflow-x: auto; }
.diagram { width: 100%; height: auto; font: 500 15px var(--font-body); }
.diagram--wide { min-width: 720px; }
.box { fill: var(--surface); stroke: var(--line-strong); }
.box--violet { fill: rgba(124, 92, 255, .15); stroke: var(--violet); }
.box--cyan { fill: rgba(34, 211, 238, .12); stroke: var(--cyan); }
.box--pink { fill: rgba(244, 114, 182, .12); stroke: var(--pink); }
.box--dashed { stroke-dasharray: 5 4; }
.group { fill: rgba(124, 92, 255, .1); stroke: var(--violet); }
.line { fill: none; stroke: var(--muted); stroke-width: 2; }
.line--arrow { marker-end: url(#arrow); }
.t { fill: var(--text); text-anchor: middle; dominant-baseline: central; }
.t--small { fill: var(--muted); font-size: 13px; }
.t--left { text-anchor: start; }
.t--violet { fill: var(--violet-soft); font-weight: 700; }
.t--cyan { fill: var(--cyan); font-weight: 700; }
.t--pink { fill: var(--pink); font-weight: 700; }

/* 6. RESPONSIVE ------------------------------------------------------------ */
@media (max-width: 600px) {
  :root { --gutter: 20px; }
  .section { padding: 64px 0; }
  .nav { gap: 18px; padding: 10px 20px; }
}
/* Custom styles */
.brand-block { display: flex; flex-direction: column; gap: 4px; }
.brand-mail { color: var(--muted); font-size: 15px; font-weight: 500; }
.hero .grid { margin-top: 40px; }
.hero .card h2 { font-size: clamp(24px, 2.4vw, 34px); margin-bottom: 12px; }