/* =========================================================================
   Seattle Biosoftware — site.css
   Dark graphite theme. Brand teal (#116466) family carries the UI.
   Brand green (#5FCF80, --accent) is reserved for small highlights only:
   headline accent words, eyebrow rule, badges, success messages.
   No framework. Sections: tokens, base, layout, nav, buttons, hero,
   components, page blocks, light sections, footer, responsive.
   ========================================================================= */

/* ---------- Fonts (self-hosted, no Google Fonts call) ---------- */
@font-face { font-family: "Inter"; src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Space Grotesk"; src: url("../fonts/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --bg: #0e0f11;
  --bg-rgb: 14, 15, 17;
  --bg-2: #131416;
  --surface: #1a1c1f;
  --surface-2: #212428;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.15);
  --text: #ececec;
  --muted: #a3a7ad;
  --faint: #73777d;

  --teal: #116466;      /* brand primary */
  --teal-2: #1a8a8c;
  --accent: #5fcf80;    /* brand green: highlights only, never large areas */
  --sea: #6cc1bf;       /* light teal: links, labels, icons */
  --sea-rgb: 108, 193, 191;
  --btn: #14777a;       /* primary button */
  --btn-hover: #1a8a8c;
  --cyan: #7fd8e6;

  --paper: #f3f6f5;     /* light reading panels */
  --paper-2: #e7eeec;
  --ink: #0e1b1d;
  --ink-muted: #4d6264;

  --font-head: "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;

  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1200px;
  --pad: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 9vw, 128px);
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--sea); text-decoration: none; }
a:hover { color: #9ad8d6; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.12; margin: 0 0 0.5em; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: clamp(40px, 6vw, 72px); }
h2 { font-size: clamp(30px, 4vw, 46px); }
h3 { font-size: 22px; letter-spacing: -0.01em; }
h4 { font-size: 17px; letter-spacing: 0; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(18px, 1.6vw, 21px); color: var(--muted); max-width: 680px; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.accent { color: var(--accent); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.section { padding: var(--section) 0; position: relative; }
.section--tight { padding: calc(var(--section) * 0.6) 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .lead { margin-left: auto; margin-right: auto; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.split--rev > :first-child { order: 2; }
.split > *, .grid > *, .form-row > * { min-width: 0; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--sea);
  margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(var(--bg-rgb), 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav__logo img { width: 148px; height: auto; }
.nav__links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav__links a { color: var(--muted); font-size: 15px; font-weight: 500; padding: 8px 12px; border-radius: 8px; }
.nav__links a:hover, .nav__links a.is-active { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav__item { position: relative; }
.nav__menu {
  position: absolute; top: 100%; left: -12px; min-width: 300px; padding: 10px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius);
  box-shadow: var(--shadow); list-style: none; margin: 8px 0 0;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: 0.15s ease;
}
.nav__item:hover .nav__menu, .nav__item:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a { display: block; padding: 10px 12px; border-radius: 8px; }
.nav__menu a strong { display: block; color: var(--text); font-weight: 600; font-size: 15px; }
.nav__menu a span { display: block; color: var(--faint); font-size: 13px; font-weight: 400; }
.nav__cta { margin-left: 8px; }
.nav__toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line-strong); color: var(--text); border-radius: 8px; padding: 8px 10px; cursor: pointer; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 13px 22px; border-radius: 10px; border: 1px solid transparent;
  cursor: pointer; transition: 0.15s ease; white-space: nowrap;
}
.btn--primary { background: var(--btn); color: #fff; }
.btn--primary:hover { background: var(--btn-hover); color: #fff; transform: translateY(-1px); }
.btn--ghost { border-color: var(--line-strong); color: var(--text); }
.btn--ghost:hover { border-color: var(--sea); color: var(--text); }
.btn--sm { padding: 9px 16px; font-size: 14px; }
.btn .arrow { transition: transform 0.15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }
.link-arrow { font-weight: 600; font-size: 15px; display: inline-flex; gap: 8px; align-items: center; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(80px, 10vw, 140px) 0 clamp(72px, 8vw, 110px); }
.hero__art { position: absolute; inset: 0; z-index: 0; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; opacity: 0.95; }
.hero__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 0%, rgba(var(--bg-rgb),.92) 35%, rgba(var(--bg-rgb),.25) 70%, rgba(var(--bg-rgb),.5) 100%); }
.hero .container { position: relative; z-index: 1; }
.hero__content { max-width: 720px; }
.hero h1 .accent { color: var(--accent); }
.hero .lead { margin: 24px 0 36px; }
.hero--page { padding: clamp(72px, 8vw, 112px) 0 clamp(56px, 6vw, 80px); border-bottom: 1px solid var(--line); }
.hero--page h1 { font-size: clamp(38px, 5vw, 60px); }
.hero__meta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 0.85fr); margin-top: 52px; max-width: 820px; border-top: 1px solid var(--line); }
.hero__meta > div { padding: 22px 24px 0; border-left: 1px solid var(--line); font-size: 14px; line-height: 1.45; color: var(--muted); }
.hero__meta > div:first-child { padding-left: 0; border-left: 0; }
.hero__meta strong { display: block; margin-bottom: 6px; font-family: var(--font-body); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; color: var(--text); font-variant-numeric: tabular-nums; }
.hero__meta strong em { font-style: normal; font-size: 15px; font-weight: 500; color: var(--sea); margin-left: 4px; letter-spacing: 0; }
@media (max-width: 640px) {
  .hero__meta { grid-template-columns: 1fr; }
  .hero__meta > div { display: grid; grid-template-columns: 116px 1fr; align-items: baseline; gap: 12px; padding: 14px 0; border-left: 0; border-top: 1px solid var(--line); }
  .hero__meta > div:first-child { border-top: 0; }
  .hero__meta strong { margin: 0; font-size: 22px; }
}

/* ---------- Cards ---------- */
.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
a.card { color: inherit; display: block; }
a.card:hover { border-color: rgba(var(--sea-rgb), 0.45); transform: translateY(-3px); }
.card p { color: var(--muted); font-size: 16px; }
.card h3 { margin-top: 18px; }
.card .link-arrow { margin-top: 6px; }
.icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: rgba(var(--sea-rgb), 0.1); border: 1px solid rgba(var(--sea-rgb), 0.25); color: var(--sea);
}
.icon svg { width: 22px; height: 22px; }
.card--feature { position: relative; overflow: hidden; }
.card--feature::after { content: ""; position: absolute; right: -60px; top: -60px; width: 180px; height: 180px; background: radial-gradient(circle, rgba(var(--sea-rgb),.16), transparent 70%); }
.tag { display: inline-block; font-family: var(--font-mono); font-size: 12px; color: var(--cyan); background: rgba(127, 216, 230, 0.08); border: 1px solid rgba(127, 216, 230, 0.18); padding: 3px 9px; border-radius: 999px; margin: 0 6px 6px 0; }
.tags { margin-top: 14px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--font-mono); font-size: 13px; color: var(--text); background: var(--surface); border: 1px solid var(--line-strong); padding: 8px 14px; border-radius: 999px; }

/* ---------- Checklist ---------- */
.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { position: relative; padding-left: 34px; margin-bottom: 14px; color: var(--muted); }
.checklist li strong { color: var(--text); font-weight: 600; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 6px;
  background: rgba(var(--sea-rgb),.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236CC1BF' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.checklist--warn li::before { background: rgba(127,216,230,.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237FD8E6' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M12 7v6M12 17h.01'/%3E%3C/svg%3E") center/14px no-repeat; }

/* ---------- Screenshot frame ---------- */
.frame { border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.frame__bar { height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.frame__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.frame__bar span { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--faint); }
.frame img { width: 100%; background: #fff; }

/* ---------- Stack diagram (Callisto layers) ---------- */
.stack { display: grid; gap: 12px; }
.stack__top { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stack__box { border-radius: 12px; padding: 20px 22px; border: 1px solid var(--line-strong); background: var(--surface); }
.stack__box small { display: block; font-family: var(--font-mono); font-size: 12px; color: var(--faint); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 4px; }
.stack__box strong { font-family: var(--font-head); font-size: 20px; font-weight: 600; }
.stack__box--product { border-color: rgba(197, 89, 39, 0.5); background: linear-gradient(180deg, rgba(197,89,39,.12), rgba(197,89,39,.03)); }
.stack__box--custom { border-style: dashed; border-color: rgba(var(--sea-rgb),.55); background: rgba(var(--sea-rgb),.05); }
.stack__base { border-radius: 14px; padding: 22px; border: 1px solid rgba(26,138,140,.7); background: linear-gradient(180deg, rgba(17,100,102,.45), rgba(17,100,102,.2)); }
.stack__base > strong { font-family: var(--font-head); font-size: 22px; display: block; margin-bottom: 14px; }
.modules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.modules span { font-size: 13px; padding: 8px 10px; border-radius: 8px; background: rgba(var(--bg-rgb),.45); border: 1px solid var(--line); color: var(--text); text-align: center; }
.stack__cloud { text-align: center; font-family: var(--font-mono); font-size: 12px; color: var(--faint); padding: 10px; border: 1px solid var(--line); border-radius: 10px; letter-spacing: .06em; }

/* ---------- Flow diagram (AI architecture) ---------- */
.flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; align-items: stretch; position: relative; }
.flow__step { background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px; padding: 18px 16px; position: relative; }
.flow__step:not(:last-child)::after { content: "→"; position: absolute; right: -14px; top: 50%; transform: translate(50%, -50%); color: var(--sea); font-size: 18px; z-index: 2; }
.flow__step small { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--sea); }
.flow__step strong { display: block; font-family: var(--font-head); font-size: 17px; margin: 6px 0 8px; }
.flow__step p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.5; }
.flow__step--core { border-color: rgba(var(--sea-rgb),.55); background: linear-gradient(180deg, rgba(var(--sea-rgb),.1), var(--surface)); }
.flow__rail { margin-top: 14px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.flow__rail div { border: 1px dashed var(--line-strong); border-radius: 10px; padding: 12px 16px; font-size: 14px; color: var(--muted); }
.flow__rail strong { color: var(--text); font-weight: 600; }
.boundary { border: 1px solid rgba(127,216,230,.3); border-radius: 18px; padding: 34px 26px 26px; position: relative; background: rgba(127,216,230,.02); }
.boundary__label { position: absolute; top: -12px; left: 24px; background: var(--bg-2); padding: 0 10px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--cyan); }

/* ---------- Steps / ladder ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.steps--4 { grid-template-columns: repeat(4, 1fr); }
.step { position: relative; padding: 30px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.step::before { counter-increment: step; content: "0" counter(step); font-family: var(--font-mono); font-size: 13px; color: var(--sea); display: block; margin-bottom: 14px; }
.step p { color: var(--muted); font-size: 15.5px; }
.step--highlight { border-color: rgba(var(--sea-rgb),.55); background: linear-gradient(180deg, rgba(var(--sea-rgb),.09), var(--surface)); }
.step__badge { position: absolute; top: 24px; right: 24px; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #062012; background: var(--accent); padding: 4px 9px; border-radius: 999px; }
.step ul { padding-left: 18px; margin: 12px 0 0; color: var(--muted); font-size: 15px; }
.step li { margin-bottom: 6px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.stat { padding: 28px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: clamp(30px, 3.4vw, 42px); font-weight: 600; color: var(--text); line-height: 1.1; }
.stat span { color: var(--muted); font-size: 14.5px; }

/* ---------- Work cards ---------- */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.work-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); display: flex; flex-direction: column; transition: 0.2s ease; color: inherit; }
a.work-card:hover { border-color: rgba(var(--sea-rgb),.45); transform: translateY(-3px); color: inherit; }
.work-card__img { aspect-ratio: 16 / 9; background: #fff; overflow: hidden; border-bottom: 1px solid var(--line); }
.work-card__img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.work-card__body { padding: 26px 28px 28px; }
.work-card__kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--sea); }
.work-card h3 { margin: 10px 0 10px; }
.work-card p { color: var(--muted); font-size: 15.5px; }
.work-card dl { display: grid; grid-template-columns: 90px 1fr; gap: 6px 14px; margin: 16px 0 0; font-size: 14.5px; }
.work-card dt { color: var(--faint); font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; padding-top: 2px; }
.work-card dd { margin: 0; color: var(--muted); }
.work--3 { grid-template-columns: repeat(3, 1fr); }
.work--3 .work-card__body { padding: 22px 24px 24px; }

/* ---------- Callout band ---------- */
.band { position: relative; overflow: hidden; border-radius: 22px; border: 1px solid rgba(var(--sea-rgb),.35); padding: clamp(36px, 5vw, 64px); background: radial-gradient(120% 140% at 100% 0%, rgba(17,100,102,.55), transparent 55%), linear-gradient(180deg, var(--surface), var(--bg-2)); }
.band h2 { max-width: 720px; }
.band .lead { margin-bottom: 30px; }
.band .split { align-items: start; }

/* ---------- Raised sections (logos, team) ----------
   Slightly lighter dark band instead of a white panel: avoids a harsh
   dark-to-bright jump. Logos are converted to light gray with CSS filters. */
.light { background: #17191c; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.light .eyebrow { color: var(--sea); }
.logos { display: grid; grid-template-columns: repeat(8, 1fr); gap: 18px; align-items: center; }
.logos img { width: 100%; max-width: 128px; max-height: 52px; margin: 0 auto; object-fit: contain; filter: grayscale(1) invert(1) brightness(1.15); opacity: .55; transition: opacity .2s; }
.logos img:hover { opacity: .9; }
.logos-label { text-align: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 26px; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; }
.person { text-align: center; }
.person img { width: 100%; max-width: 160px; margin: 0 auto; aspect-ratio: 1; object-fit: cover; border-radius: 50%; background: var(--surface); box-shadow: 0 0 0 4px #17191c, 0 0 0 5px var(--line-strong); }
.person h4 { margin: 14px 0 2px; }
.person span { font-size: 14px; color: var(--muted); }
.person a { font-size: 13px; color: var(--sea); font-weight: 600; }
.partners { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.partner { display: flex; gap: 20px; align-items: center; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.partner img { width: 120px; height: 56px; object-fit: contain; filter: grayscale(1) invert(1) brightness(1.15); opacity: .75; }
.partner strong { display: block; color: var(--text); }
.partner span { color: var(--muted); font-size: 14px; }

/* ---------- Timeline / lineage ---------- */
.lineage { display: flex; flex-wrap: wrap; gap: 10px; }
.lineage span { font-size: 14.5px; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { cursor: pointer; font-family: var(--font-head); font-size: 20px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--sea); font-family: var(--font-mono); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); margin: 12px 0 0; max-width: 760px; }

/* ---------- Product cards (EuropaXp) ---------- */
.product { border-top: 3px solid #c55927; }
.product .kicker { font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #e08a5e; }
.tech-list { columns: 2; column-gap: 32px; list-style: none; padding: 0; margin: 0; }
.tech-list li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--line); }
.tech-list strong { display: block; font-weight: 600; }
.tech-list span { font-size: 14px; color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; color: var(--text); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 16px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: 10px; padding: 13px 14px;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--sea); box-shadow: 0 0 0 3px rgba(var(--sea-rgb),.18); }
.topics { display: flex; flex-wrap: wrap; gap: 10px; }
.topics label { cursor: pointer; position: relative; display: inline-block; margin: 0; }
.topics input { position: absolute; width: 1px; height: 1px; padding: 0; opacity: 0; pointer-events: none; }
.topics span { display: inline-block; padding: 9px 15px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14px; color: var(--muted); }
.topics input:checked + span { border-color: var(--sea); color: var(--text); background: rgba(var(--sea-rgb),.1); }
.field.consent { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.field.consent input { width: auto; margin-top: 4px; padding: 0; accent-color: var(--sea); }
.field.consent label { flex: 1; margin: 0; font-size: 14px; font-weight: 400; color: var(--muted); cursor: pointer; }
.field.consent .invalid-feedback { flex-basis: 100%; margin: 0 0 0 28px; }

/* Validation states set by form-handler.js */
.field .is-invalid { border-color: #ff8a7a; }
.field .is-invalid:focus { box-shadow: 0 0 0 3px rgba(255, 138, 122, .2); }
.invalid-feedback { display: none; margin-top: 6px; font-size: 13.5px; color: #ff8a7a; }
.btn.loading { opacity: .7; cursor: progress; }

/* Success / error panels shown in place of the form */
.form-status-message { display: none; padding: 8px 0; }
.form-status-message .message-title { font-family: var(--font-head); font-size: 26px; font-weight: 600; margin: 0 0 10px; }
.form-status-message .content p { color: var(--muted); }
.form-status-message--ok .message-title { color: var(--text); }
.form-status-message--ok .message-title::before { content: ""; display: block; width: 28px; height: 2px; margin-bottom: 18px; background: var(--accent); }
.form-status-message--error .message-title { color: #ff8a7a; }

/* ---------- CTA + footer ---------- */
.cta { text-align: center; }
.cta .btn-row { justify-content: center; }
.cta .lead { margin: 0 auto 32px; }
.footer { border-top: 1px solid var(--line); padding: 64px 0 36px; background: var(--bg-2); font-size: 15px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 500; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 10px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }
.footer__brand p { color: var(--muted); max-width: 320px; margin-top: 16px; }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--faint); font-size: 14px; }

/* ---------- Utilities ---------- */
.mt-0 { margin-top: 0; } .mt-2 { margin-top: 16px; } .mt-4 { margin-top: 32px; } .mt-6 { margin-top: 56px; }
.mb-0 { margin-bottom: 0; }
.center { text-align: center; }
.divider { height: 1px; background: var(--line); margin: 0; border: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .grid-4, .steps--4 { grid-template-columns: repeat(2, 1fr); }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); }
  .flow { grid-template-columns: 1fr; }
  .flow__step:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -14px; transform: translate(50%, 50%); }
  .work--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: block; }
  .nav.is-open .nav__links { display: flex; flex-direction: column; position: absolute; top: 72px; left: 0; right: 0; background: var(--bg); padding: 16px var(--pad) 24px; border-bottom: 1px solid var(--line); }
  .nav.is-open .nav__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 12px; margin: 0; min-width: 0; }
  .split, .grid-2, .grid-3, .steps, .work, .work--3, .stats, .footer__grid, .form-row, .partners, .flow__rail { grid-template-columns: 1fr; }
  .split--rev > :first-child { order: 0; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero__art::after { background: linear-gradient(180deg, rgba(var(--bg-rgb),.6), var(--bg) 85%); }
  .tech-list { columns: 1; }
  .modules { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grid-4, .steps--4 { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); }
  .stack__top { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 8px; }
}

/* ---------- Callisto architecture diagram ---------- */
.modules { display: flex; flex-wrap: wrap; gap: 8px; }
.modules span { flex: 1 1 30%; }
.arch { display: grid; gap: 14px; }
.arch__apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.arch__app { border-radius: 14px; padding: 20px 22px; border: 1px solid var(--line-strong); background: var(--surface); }
.arch__app small { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.arch__app strong { display: block; font-family: var(--font-head); font-size: 20px; font-weight: 600; margin: 4px 0 2px; }
.arch__app span { font-size: 14px; color: var(--muted); }
.arch__app--product { border-color: rgba(197, 89, 39, .5); background: linear-gradient(180deg, rgba(197,89,39,.12), var(--surface)); }
.arch__app--custom { border-style: dashed; border-color: rgba(var(--sea-rgb), .6); }
.arch__app--ai { border-color: rgba(127, 216, 230, .4); background: linear-gradient(180deg, rgba(127,216,230,.08), var(--surface)); }
.arch__link { display: flex; justify-content: center; gap: 48px; position: relative; padding: 4px 0; }
.arch__link::before { content: ""; position: absolute; left: 8%; right: 8%; top: 50%; border-top: 1px dashed var(--line-strong); }
.arch__link span { position: relative; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--sea); background: var(--bg); padding: 4px 12px; border: 1px solid var(--line-strong); border-radius: 999px; }
.arch__core { border-radius: 18px; padding: 24px; border: 1px solid rgba(26,138,140,.6); background: linear-gradient(180deg, rgba(17,100,102,.32), rgba(17,100,102,.08)); }
.arch__title { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.arch__title strong { font-family: var(--font-head); font-size: 24px; font-weight: 600; }
.arch__title span { font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--sea); }
.arch__groups { display: grid; grid-template-columns: 1.15fr 1.15fr 1fr 1fr 1fr; gap: 12px; align-items: stretch; }
.arch__group { background: rgba(var(--bg-rgb), .55); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.arch__ghead { display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text); margin-bottom: 2px; }
.arch__gicon { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; background: rgba(var(--sea-rgb), .12); color: var(--sea); }
.arch__gicon svg { width: 15px; height: 15px; }
.arch__group--ai { border-color: rgba(127,216,230,.35); }
.arch__group--ai .arch__gicon { background: rgba(127,216,230,.12); color: var(--cyan); }
.arch__mod { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.arch__mod strong { display: block; font-size: 14px; font-weight: 600; }
.arch__mod span { display: block; font-size: 12.5px; line-height: 1.45; color: var(--muted); margin-top: 2px; }
.arch__infra { display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px; border: 1px solid var(--line); border-radius: 12px; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.arch__infra strong { color: var(--text); font-weight: 500; }
.arch__infra span::before { content: "·"; margin-right: 14px; color: var(--line-strong); }
@media (max-width: 1080px) { .arch__groups { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .arch__apps, .arch__groups { grid-template-columns: 1fr; } .arch__link { gap: 10px; } }
.form > .btn { justify-self: start; }
