/* Obelix website v3 — editorial, index-driven. Obelix tokens: Space Grotesk, midnight #0b1b33,
   cobalt #3b82f6 as the one accent, white content sections, hairline rules, 44px targets. */
:root {
  --midnight: #0b1b33;
  --ink: #0f1b2d;
  --text: #1f2937;
  --muted: #596579;
  --muted-2: #8da0b9;
  --white: #ffffff;
  --paper: #f5f7fa;
  --tint: #edf4ff;
  --radius: 12px;
  --shadow: 0 4px 20px rgba(11, 27, 51, .05);
  --line: #dce4ef;
  --line-dark: #24364f;
  --cobalt: #3b82f6;
  --accent: #1d4ed8;
  --text-light: #f5f7fa;
  --muted-light: #b6c4d8;
  --font: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { margin: 0; font-weight: 500; line-height: 1.12; letter-spacing: -.015em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }
.skip { position: absolute; left: 16px; top: -60px; background: var(--midnight); color: #fff; padding: 12px 16px; z-index: 100; }
.skip:focus { top: 16px; }

.label { font-size: 13px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin: 0 0 18px; }
.label.dim, .dim { color: var(--muted-2); }
.idx { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--accent); }
.mono { font-family: var(--mono); font-size: 12px; color: var(--muted-2); font-variant-numeric: tabular-nums; }
.small { font-size: 14px; }
.body-lg { font-size: 19px; line-height: 1.55; color: var(--muted); font-weight: 400; }
.narrow { max-width: 720px; }
.h-section { font-size: clamp(30px, 3.4vw, 44px); max-width: 18ch; color: var(--ink); }

/* ── Buttons ── */
.btn-box { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 24px; border: 1px solid currentColor; border-radius: var(--radius); font: inherit; font-size: 16px; font-weight: 500; text-decoration: none; color: inherit; background: transparent; transition: background-color .2s, color .2s, transform .3s var(--ease); }
.btn-box:hover { transform: translateY(-1px); }
.btn-box .arr { transition: transform .3s var(--ease); }
.btn-box:hover .arr, .split a:hover .arr { transform: translateX(6px); }
.hero .btn-box { color: #fff; }
.hero .btn-box:hover { background: #fff; color: var(--midnight); }
.hero .btn-fill { background: var(--cobalt); color: #fff; border-color: var(--cobalt); }
.hero .btn-fill:hover { background: #2563eb; color: #fff; border-color: #2563eb; }
.hero .btn-box:not(.btn-fill):hover { background: rgba(255,255,255,.1); color: #fff; }

/* ── Nav ── */
.nav { position: sticky; top: 0; z-index: 50; background: var(--midnight); color: #fff; border-bottom: 1px solid var(--line-dark); }
.nav-inner { max-width: 1280px; margin: 0 auto; padding: 0 32px; min-height: 68px; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; min-height: 44px; margin-right: auto; }
.brand img { height: 20px; width: auto; object-fit: contain; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { color: var(--muted-light); text-decoration: none; font-size: 15px; padding: 10px 14px; min-height: 44px; display: inline-flex; align-items: center; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-right { display: flex; align-items: center; gap: 10px; }
.nav .btn-box { color: #fff; min-height: 44px; font-size: 15px; }
.nav .btn-box { border-color: var(--cobalt); background: var(--cobalt); }
.nav .btn-box:hover { background: #2563eb; color: #fff; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 10px; border: 1px solid currentColor; background: transparent; color: #fff; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .ic-close, .nav-toggle[aria-expanded="true"] .ic-menu { display: none; }
.nav-toggle[aria-expanded="true"] .ic-close { display: block; }
/* Mobile: logo and toggle stay on the first row; the opened links drop to a full-width
   row below them (order: 3, since they sit between the two in the DOM). The fixed
   12px padding keeps the first row where it was whether the menu is open or not. */
@media (max-width: 900px) {
  .nav-inner { padding: 12px 20px; flex-wrap: wrap; row-gap: 0; }
  .nav-toggle { display: inline-flex; }
  .nav .btn-box { display: none; }
  .nav-links { order: 3; display: none; width: 100%; flex-direction: column; margin-top: 12px; padding: 8px 0 4px; border-top: 1px solid var(--line-dark); }
  .nav-links.open { display: flex; }
  .nav-links a { min-height: 48px; padding: 10px 0; }
}

/* ── Hero ── */
.hero { position: relative; background: var(--midnight); color: var(--text-light); padding: 96px 0 64px; overflow: hidden; }
/* The glass O sits behind the text block, anchored right. The box keeps the image's own
   aspect so the ring is never cropped by cover; its dark left side and the bottom edge
   fade into the midnight background, which is a shade lighter than the render. Below
   1100px the text runs under the ring whatever its size, so the ring is pushed partly
   off the right edge and dimmed until the copy reads cleanly over it. */
.hero-art { position: absolute; top: 0; right: 0; height: 640px; aspect-ratio: 1672 / 941; background: url("assets/hero-o.jpg") center / cover no-repeat; background-image: image-set(url("assets/hero-o.webp") type("image/webp"), url("assets/hero-o.jpg") type("image/jpeg")); -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 50%), linear-gradient(180deg, #000 62%, transparent 98%); -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 10%, #000 50%), linear-gradient(180deg, #000 62%, transparent 98%); mask-composite: intersect; pointer-events: none; }
@media (max-width: 1100px) { .hero-art { height: 600px; transform: translateX(24%); opacity: .7; } }
@media (max-width: 640px) { .hero-art { height: 440px; transform: translateX(20%); opacity: .5; } }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(125,211,252,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(125,211,252,.06) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.hero-inner { position: relative; display: flex; flex-direction: column; gap: 26px; max-width: 1280px; padding-bottom: 72px; }
.hero .label { color: #93c5fd; margin: 0; }
.hero h1 { font-size: clamp(40px, 5.8vw, 76px); font-weight: 500; line-height: 1.04; letter-spacing: -.025em; max-width: 16ch; color: #fff; }
.hero-sub { font-size: clamp(17px, 1.5vw, 20px); font-weight: 400; line-height: 1.55; color: var(--muted-light); max-width: 760px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.intro { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease) forwards; animation-delay: calc(.1s + var(--i, 0) * .12s); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Schematic */
.schematic { position: relative; border: 1px solid var(--line-dark); border-radius: var(--radius); background: rgba(16,31,53,.6); overflow: hidden; }
.sch-head { display: flex; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line-dark); }
.sch-head .label { margin: 0; color: var(--muted-light); }
.sch-nodes { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.sch-wires { position: absolute; left: 0; right: 0; top: 50%; height: 40px; margin-top: -20px; width: 100%; pointer-events: none; }
.wire { stroke: rgba(125,211,252,.28); stroke-width: 1; stroke-dasharray: 4 6; fill: none; animation: dash 1.6s linear infinite; }
.packet { fill: #7dd3fc; filter: drop-shadow(0 0 6px rgba(125,211,252,.9)); }
@keyframes dash { to { stroke-dashoffset: -20; } }
.node { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 24px 20px 26px; border-right: 1px solid var(--line-dark); background: var(--midnight); opacity: 0; animation: rise .8s var(--ease) forwards; animation-delay: calc(.8s + var(--n, 0) * .16s); transition: background-color .4s; }
.node:last-child { border-right: 0; }
.node.lit { background: #14305e; box-shadow: inset 0 3px 0 var(--cobalt); }
.node .idx { color: #93c5fd; }
.node-t { font-size: 18px; color: #fff; font-weight: 400; line-height: 1.3; }
.node-s { font-size: 14px; color: var(--muted-light); }
.sch-feed { border-top: 1px solid var(--line-dark); padding: 10px 20px 14px; display: flex; flex-direction: column; }
.feed-row { display: grid; grid-template-columns: 56px 1fr; gap: 14px; padding: 6px 0; font-size: 14px; color: var(--muted-light); opacity: 0; animation: rise .6s var(--ease) forwards; animation-delay: calc(1.7s + var(--r, 0) * .45s); }
.feed-row:last-child { color: #fff; }
@media (max-width: 960px) { .sch-nodes { grid-template-columns: repeat(2, minmax(0, 1fr)); } .sch-wires { display: none; } .node { border-bottom: 1px solid var(--line-dark); } .node:nth-child(2n+1) { border-right: 0; } }
@media (max-width: 480px) { .sch-nodes { grid-template-columns: 1fr; } .node { border-right: 0 !important; } .feed-row { grid-template-columns: 48px 1fr; } }

/* ── Statement ── */
.statement { padding: 104px 0 72px; }
.big { position: relative; font-size: clamp(26px, 3.2vw, 44px); font-weight: 500; line-height: 1.3; letter-spacing: -.02em; max-width: 980px; padding-left: 28px; color: var(--ink); }
.big .bar { position: absolute; left: 0; top: .2em; bottom: .2em; width: 4px; border-radius: 2px; background: linear-gradient(180deg, var(--cobalt), #7dd3fc); }
.big .dim { color: var(--accent); }

/* ── Sections ── */
.section { padding: 88px 0; }
.rule-top { border-top: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: start; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.pillar { background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--cobalt); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 26px 30px; display: flex; flex-direction: column; gap: 10px; transition: transform .4s var(--ease), box-shadow .4s var(--ease); }
.pillar:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(11,27,51,.1); }
.pill-name { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.pillar h2 { font-size: 24px; font-weight: 500; color: var(--ink); }
.pillar p { color: var(--muted); font-size: 15px; }
.pillars .pillar:nth-child(4), .pillars .pillar:nth-child(5) { grid-column: span 1; }
@media (min-width: 901px) { .pillars .pillar:nth-child(4) { grid-column: 1 / span 1; } .pillars .pillar:nth-child(5) { grid-column: 2 / span 2; } }
@media (max-width: 900px) { .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pillars { grid-template-columns: 1fr; } }

/* Software index (unused) */
.index { list-style: none; margin: 0; padding: 0; }
.index-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; align-items: start; padding: 34px 0; border-top: 1px solid var(--line); }
.index-row:last-child { border-bottom: 1px solid var(--line); }
.index-name { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.index-name h2 { font-size: clamp(44px, 6vw, 84px); font-weight: 300; letter-spacing: -.03em; line-height: 1; color: var(--ink); }
.index-row p { font-size: 17px; color: var(--muted); max-width: 640px; padding-top: 10px; }
@media (max-width: 900px) { .index-row { grid-template-columns: 1fr; gap: 10px; } }

/* Tags */
.tags { list-style: none; margin: 22px 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 10px 16px; font-size: 15px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; box-shadow: var(--shadow); }

/* Dark band (channels) */
.band { background: var(--midnight); color: var(--text-light); padding: 96px 0; }
.band .label { color: #93c5fd; }
.band .h-section, .band .body-lg { color: #fff; }
.band .body-lg { color: var(--muted-light); margin-top: 18px; }
.plain-list { margin: 22px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.plain-list li { padding: 12px 0; border-top: 1px solid var(--line-dark); color: var(--text-light); }
.plain-list li:last-child { border-bottom: 1px solid var(--line-dark); }
.phone { max-width: 420px; margin-left: auto; border: 1px solid var(--line-dark); border-radius: 20px; background: #0f1f3a; overflow: hidden; }
.phone-bar { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-dark); font-weight: 500; }
.phone-bar .label { margin: 0; }
.chat { display: flex; flex-direction: column; gap: 10px; padding: 16px; }
.bubble { max-width: 92%; padding: 10px 12px; font-size: 15px; line-height: 1.45; border-radius: 12px; }
.bubble.me { align-self: flex-end; background: var(--cobalt); color: #fff; }
.bubble.bot { align-self: flex-start; background: #162b4d; color: var(--muted-light); display: flex; flex-direction: column; gap: 8px; }
.bubble.bot b { color: #fff; font-weight: 500; }
.approve-row { display: flex; gap: 8px; }
.approve, .reject { font: inherit; font-size: 14px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid currentColor; background: transparent; cursor: pointer; }
.approve { color: #86efac; } .reject { color: #ffb4ab; }
.approve:hover { background: #86efac; color: var(--midnight); } .reject:hover { background: #ffb4ab; color: var(--midnight); }
.decision { display: none; font-size: 13px; color: #fff; border-top: 1px dashed var(--line-dark); padding-top: 8px; }
.decision.show { display: block; } .proposal-done .approve-row { display: none; }
@media (max-width: 900px) { .phone { margin-left: 0; } }

/* Industry cards (quiet grey cards) */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 40px; }
.qcard { background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 8px; border: 1px solid var(--line); transition: border-color .3s, transform .4s var(--ease); }
.qcard:hover { border-color: #c8d5e6; transform: translateY(-3px); }
.qcard .label { margin-bottom: 8px; color: var(--ink); }
.qcard p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.step { border-top: 3px solid var(--cobalt); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.step h3 { font-size: 26px; font-weight: 500; color: var(--ink); }
.step p { color: var(--muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; gap: 24px; } }

/* Feature grid */
.feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.feat { padding: 26px 26px 30px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; }
.feat h3 { font-size: 21px; font-weight: 500; color: var(--ink); }
.feat p { color: var(--muted); font-size: 15px; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .feat-grid { grid-template-columns: 1fr; } }

/* Rules list */
.rules { list-style: none; margin: 0; padding: 0; }
.rules li { display: block; padding: 22px 0; border-top: 1px solid var(--line); }
.rules li:last-child { border-bottom: 1px solid var(--line); }
.rules h3 { font-size: 21px; font-weight: 500; margin-bottom: 6px; color: var(--ink); }
.rules p { color: var(--muted); }

/* CTA band */
.cta-band { background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 55%, #3b82f6 100%); color: #fff; padding: 88px 0; margin-top: 24px; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 40px; align-items: center; }
.on-blue { color: #fff !important; }
.cta-band .label { color: #dbeafe !important; }
.cta-band .body-lg { color: #dbeafe !important; margin-top: 14px; }
.cta-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.btn-white { background: #fff; color: var(--accent); border-color: #fff; }
.btn-white:hover { background: #eff6ff; }
.btn-outline-white { color: #fff; border-color: rgba(255,255,255,.6); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); }
.cta-mail { margin-top: 10px; font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cta-mail a { color: #fff; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.copy { font: inherit; font-size: 13px; min-height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.6); background: transparent; color: #fff; cursor: pointer; }
.copy:hover { background: rgba(255,255,255,.14); }
.copied { font-size: 13px; color: #dbeafe; }
@media (max-width: 900px) { .cta-inner { grid-template-columns: 1fr; gap: 24px; } }

/* Footer */
.footer { background: var(--midnight); color: var(--muted-light); }
.footer-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 40px; padding-top: 48px; padding-bottom: 56px; }
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.footer-brand img { height: 18px; width: auto; align-self: flex-start; object-fit: contain; }
.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-cols div { display: flex; flex-direction: column; }
.footer-cols .label { margin-bottom: 10px; color: #93c5fd; }
.footer-cols a { color: var(--muted-light); text-decoration: none; font-size: 15px; min-height: 36px; display: inline-flex; align-items: center; overflow-wrap: anywhere; }
.footer-cols a:hover { color: #fff; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } .footer-cols { grid-template-columns: 1fr 1fr; } }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * .07s); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .intro, .node, .feed-row, .reveal { opacity: 1 !important; transform: none !important; }
}

/* ── Stealth pillar list ── */
.pillar-list { list-style: none; margin: 40px 0 0; padding: 0; }
.pillar-list li { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; align-items: baseline; padding: 26px 0; border-top: 1px solid var(--line); }
.pillar-list li:last-child { border-bottom: 1px solid var(--line); }
.pillar-list .pill-name { font-size: clamp(30px, 4vw, 48px); font-weight: 500; letter-spacing: -.02em; text-transform: none; color: var(--ink); }
.pill-line { font-size: 19px; color: var(--muted); }
@media (max-width: 700px) { .pillar-list li { grid-template-columns: 1fr; gap: 4px; } }
.hero-actions .btn-fill { min-height: 54px; padding: 0 28px; font-size: 17px; }
.node-t { font-size: 17px; }
