/* Brikod — direction custom "3D tech", inspired by genomines.com's WebGL hero
   (own original shader + content, not their code/text/images).
   Palette: electric cyan/blue flow on near-black; paper chapters carry real
   Bujumbura photographs. Big dark sections, no icon cards, no gradients on
   text/buttons — the only "gradient-like" colour comes from the rendered
   WebGL canvas, not CSS. */

:root {
  --bg: #05080f;
  --surface: #0b1424;
  --ink: #f2f6fb;
  --muted: #90a4bd;
  --accent: #22d3ee;
  --accent-2: #3b82f6;
  --accent-ink: #04080f;
  --paper: #f3f1ea;
  --paper-ink: #0b1424;
  --paper-muted: #5a6474;

  --font-display: "Space Grotesk", sans-serif;
  --font-text: "Inter", sans-serif;

  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);

  --margin: clamp(16px, 4vw, 32px);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; }

button {
  font-family: var(--font-text);
  font-size: var(--step-small);
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
  padding: 0;
}
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.container { max-width: 1760px; margin-inline: auto; padding-inline: var(--margin); }

/* ---------- motion ---------- */
.rv { opacity: 0.4; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ---------- header ---------- */
header.site {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 2.6vw, 26px) var(--margin);
  background: transparent;
  transition: background-color .35s ease, box-shadow .35s ease;
}
header.site.solid {
  background: rgba(5, 8, 15, 0.92);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2.2vw, 26px);
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}
.topnav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); }
.topnav a.navlink {
  font-size: var(--step-small);
  text-decoration: none;
  color: var(--ink);
  opacity: .85;
}
.topnav a.navlink:hover { opacity: 1; color: var(--accent); }
.btn {
  display: inline-block;
  font-family: var(--font-text);
  font-weight: 600;
  font-size: var(--step-small);
  padding: 0.72em 1.3em;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  border-radius: var(--radius);
}
.btn:hover { background: var(--ink); }
.btn-ghost {
  background: transparent;
  border: 1.5px solid rgba(242,246,251,0.4);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); background: transparent; }
@media (max-width: 760px) {
  .topnav a.navlink { display: none; }
}

/* ---------- hero (WebGL) ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--bg);
  padding-top: clamp(84px, 11vh, 120px);
}
.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.hero-inner {
  position: relative;
  z-index: 2;
  padding-inline: var(--margin);
  max-width: 1760px;
  margin-inline: auto;
  width: 100%;
}
.hero h1 {
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  text-transform: uppercase;
  color: var(--ink);
  max-width: 14ch;
}
.hero h1 span { display: block; }
.hero h1 .accent-word { color: var(--accent); }
.hero-sub {
  margin-top: clamp(20px, 3vw, 32px);
  font-size: var(--step-lead);
  color: var(--muted);
  max-width: 42ch;
}
.hero-cta {
  margin-top: clamp(28px, 4vw, 44px);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-flag {
  position: absolute;
  bottom: clamp(20px, 4vw, 40px);
  left: var(--margin);
  z-index: 2;
  font-size: var(--step-small);
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-flag .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ---------- section scaffolding ---------- */
section { position: relative; }
.chapter { padding-block: clamp(90px, 14vh, 150px); }
.on-bg { background: var(--bg); color: var(--ink); }
.on-surface { background: var(--surface); color: var(--ink); }
.on-paper { background: var(--paper); color: var(--paper-ink); }

.kicker {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 2vw, 2rem);
  margin-bottom: clamp(32px, 5vw, 56px);
}

/* ---------- about: two columns, highlighted words (on paper) ---------- */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}
.about-text {
  font-size: clamp(1.2rem, 1.8vw, 1.6rem);
  line-height: 1.3;
}
.about-text .lede { font-weight: 700; }
.hl {
  box-decoration-break: clone; -webkit-box-decoration-break: clone;
  padding: 0 0.14em;
}
.hl-1 { background: var(--accent); color: var(--accent-ink); }
.hl-2 { background: var(--paper-ink); color: var(--paper); }
.hl-cta { background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 700; }
.hl-cta:hover { background: var(--paper-ink); color: var(--paper); }
.about-fig { margin: 0; min-width: 0; }
.about-fig img { width: 100%; height: clamp(320px, 50vw, 560px); object-fit: cover; }
.about-fig figcaption { font-size: var(--step-small); color: var(--paper-muted); margin-top: 10px; }
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-fig { order: -1; }
}

/* ---------- features: capability menu (on surface/dark) ---------- */
.menu-wrap { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 1px; background: rgba(242,246,251,0.08); }
.menu-group { background: var(--surface); padding: clamp(28px, 3.5vw, 44px) clamp(22px, 3vw, 32px); }
.menu-group-head {
  display: flex; align-items: center; gap: 8px;
  width: 100%; text-align: left;
  font-family: var(--font-display);
  font-weight: 700; font-size: clamp(1.15rem, 1.6vw, 1.4rem);
  margin-bottom: 20px; color: var(--ink);
}
.menu-group-head[aria-pressed="true"] { color: var(--accent); }
.menu-group-head[aria-pressed="true"]::after { content: " ↗"; }
.menu-item { margin-bottom: 18px; }
.menu-item:last-child { margin-bottom: 0; }
.menu-item-row { display: flex; align-items: baseline; gap: 8px; }
.menu-item-name { font-size: 1rem; color: var(--ink); white-space: nowrap; }
.menu-item-leader { flex: 1; border-bottom: 2px dotted rgba(242,246,251,0.25); transform: translateY(-5px); }
.menu-item-value { font-size: .88rem; font-weight: 600; color: var(--accent); white-space: nowrap; }
.menu-item-desc { font-size: .88rem; color: var(--muted); max-width: 32ch; margin-top: 5px; }
@media (max-width: 860px) {
  .menu-wrap { grid-template-columns: 1fr; }
}
.menu-hint { text-align: center; font-size: var(--step-small); color: var(--muted); margin-top: clamp(28px, 4vw, 40px); }

/* ---------- how it works: staircase (on bg/dark) ---------- */
.stairs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 24px clamp(16px, 2vw, 32px); }
.stage { grid-column: span 8; }
.stage:nth-child(1) { grid-column: 1 / span 6; }
.stage:nth-child(2) { grid-column: 2 / span 6; }
.stage:nth-child(3) { grid-column: 3 / span 6; }
.stage:nth-child(4) { grid-column: 4 / span 5; }
.stage-line {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.8rem, 4.4vw, 3.6rem);
  text-transform: uppercase;
  line-height: 1.04;
  color: var(--ink);
}
.stage:last-child .stage-line { color: var(--accent); }
.stage-note { font-size: var(--step-body); color: var(--muted); max-width: 34ch; margin-top: 10px; }
@media (max-width: 760px) {
  .stairs { display: block; }
  .stage { margin-bottom: 40px; }
  .stage:nth-child(1) { padding-left: 0; }
  .stage:nth-child(2) { padding-left: 6vw; }
  .stage:nth-child(3) { padding-left: 12vw; }
  .stage:nth-child(4) { padding-left: 18vw; }
  .stage-line { font-size: 8.2vw; }
}

/* ---------- picture band (on paper) ---------- */
.band { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); min-height: 56svh; }
.band figure { margin: 0; position: relative; min-width: 0; }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band figcaption {
  position: absolute; left: 16px; bottom: 12px;
  font-size: var(--step-small); color: #fff;
  background: rgba(5,8,15,0.6); padding: 4px 10px;
}
.band .copy { padding: clamp(32px, 5vw, 56px); display: flex; flex-direction: column; justify-content: center; background: var(--paper); color: var(--paper-ink); }
.band .copy h3 { font-size: clamp(1.6rem, 2.6vw, 2.4rem); margin-bottom: 14px; }
.band .copy p { font-size: var(--step-body); color: var(--paper-muted); max-width: 38ch; }
@media (max-width: 860px) { .band { grid-template-columns: 1fr; } }

/* ---------- pricing table (on paper) ---------- */
.pricing-mobile { display: none; }
.pricing-table { display: grid; grid-template-columns: minmax(150px, 1fr) repeat(2, minmax(0, 2fr)); width: 100%; font-size: clamp(.95rem, 1.3vw, 1.25rem); }
.pricing-table > div { padding: 18px clamp(10px, 1.5vw, 20px); display: flex; align-items: center; }
.pricing-table .row-head { font-weight: 700; color: var(--paper-ink); }
.pricing-table .plan-name { font-family: var(--font-display); text-transform: uppercase; font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 700; align-items: flex-end; }
.pricing-table .plan-price { font-size: clamp(.95rem, 1.5vw, 1.25rem); color: var(--paper-muted); }
.pricing-table .tone { background: rgba(11,20,36,0.05); }
.pricing-table .cell-value { font-weight: 600; }
.pricing-table .foot { padding-top: 26px; align-items: flex-start; }
@media (max-width: 760px) {
  .pricing-desktop { display: none; }
  .pricing-mobile { display: block; }
  .plan-block { border-top: 3px solid var(--accent); padding-top: 26px; margin-top: 26px; }
  .plan-block:first-child { margin-top: 36px; }
  .plan-block .plan-name {
    font-family: var(--font-display); text-transform: uppercase;
    font-weight: 700; font-size: 8.5vw; margin-bottom: 8px; color: var(--paper-ink);
  }
  .plan-row { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(11,20,36,0.08); }
  .plan-row .label { color: var(--paper-muted); font-size: .92rem; }
  .plan-row .value { font-weight: 700; text-align: right; }
}
.pricing-cta { margin-top: clamp(32px, 4vw, 44px); text-align: center; }

/* ---------- contact: email as display type (on bg/dark) ---------- */
.contact { min-height: 86svh; display: flex; flex-direction: column; justify-content: space-between; padding-block: clamp(32px, 5vw, 56px); }
.contact-top p { font-size: var(--step-lead); color: var(--muted); max-width: 34ch; }
.contact-mid { flex: 1; display: flex; align-items: center; }
.email-link {
  display: block; width: 100%; text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 6.6vw, 4.8rem);
  letter-spacing: -0.01em; line-height: 1.04; word-break: break-word;
}
.email-link:hover, .email-link:focus-visible { color: var(--accent); }
.contact-bottom { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 12px; font-size: var(--step-small); color: var(--muted); }

/* ---------- footer ---------- */
footer.chapter { padding-block: 44px; }
.foot-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.foot-wordmark { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.8rem, 6vw, 4rem); letter-spacing: -0.01em; }
.credits { font-size: .8rem; color: var(--muted); max-width: 70ch; margin-top: 18px; }
.credits a { color: var(--muted); }
