/* Inspire Works — design tokens
   ink: deep navy night, azure: Microsoft-adjacent blue, signal: teal "live" state.
   Display: Unbounded (headlines only). Body: Hanken Grotesk. Mono: only for flows/logs. */
:root {
  --ink: #070B14;
  --panel: #0D1522;
  --panel-2: #121C2C;
  --line: rgba(160, 190, 255, 0.10);
  --line-strong: rgba(160, 190, 255, 0.20);
  --text: #E9EEF6;
  --soft: #97A4B8;
  --faint: #5E6B80;
  --azure: #3B8BFF;
  --azure-ink: #03122A;
  --signal: #2EE6C5;
  --azure-rgb: 59,139,255;
  --signal-rgb: 46,230,197;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 8px;
  --wrap: 1120px;
  --display: "Unbounded", "Hanken Grotesk", system-ui, sans-serif;
  --body: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--azure); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--azure); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(59, 139, 255, 0.35); }

/* Faint engineering grid behind everything, fading out downwards */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 0%, transparent 75%);
  opacity: 0.55;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 800px 520px at 12% -8%, rgba(59, 139, 255, 0.17), transparent 62%),
    radial-gradient(ellipse 640px 460px at 100% 12%, rgba(46, 230, 197, 0.07), transparent 62%);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding-left: max(22px, env(safe-area-inset-left));
  padding-right: max(22px, env(safe-area-inset-right));
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); line-height: 1.04; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.35rem); line-height: 1.12; }
h3 { font-size: 1.12rem; line-height: 1.3; font-family: var(--body); font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
.lede { font-size: 1.14rem; color: var(--soft); max-width: 58ch; }
.muted { color: var(--soft); }
.small { font-size: 0.88rem; color: var(--faint); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 11, 20, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.01em;
}
.brand-mark { width: 30px; height: 30px; flex: none; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  color: var(--soft);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
  transition: color .15s ease, background-color .15s ease;
}
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); background: rgba(160, 190, 255, 0.08); }
.nav .btn { margin-left: 8px; }
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}
@media (max-width: 860px) {
  .nav-toggle { display: inline-flex; }
  .nav {
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 18px 20px;
    background: rgba(7, 11, 20, 0.97);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px 14px; font-size: 1rem; }
  .nav .btn { margin: 8px 0 0; justify-content: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 999px;
  font: inherit;
  font-weight: 650;
  font-size: 0.96rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: box-shadow .2s ease, border-color .2s ease, background-color .2s ease, transform .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--azure); color: var(--azure-ink); }
.btn-primary:hover { box-shadow: 0 10px 30px -10px rgba(59, 139, 255, 0.8); }
.btn-ghost { color: var(--text); border-color: var(--line-strong); background: transparent; }
.btn-ghost:hover { border-color: var(--soft); }
.nav .btn { padding: 9px 18px; font-size: 0.9rem; }

/* ---------- Sections ---------- */
main { display: block; }
.section { padding: 96px 0; position: relative; }
.section + .section { border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head p { margin-top: 16px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--signal);
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 12px var(--signal);
}
@media (max-width: 640px) { .section { padding: 68px 0; } }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: 84px 0 56px; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3.2rem); max-width: 18ch; }
.page-hero .lede { margin-top: 22px; }

/* ---------- Home hero ---------- */
.hero { padding: 76px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 40px;
  align-items: center;
}
.hero h1 { max-width: 15ch; }
.hero .lede { margin-top: 24px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero-visual { position: relative; aspect-ratio: 1 / 0.92; }
.hero-visual canvas { width: 100%; height: 100%; }
.badge {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(13, 21, 34, 0.86);
  border: 1px solid var(--line-strong);
  font-family: var(--mono);
  font-size: 0.74rem;
  color: var(--soft);
  white-space: nowrap;
  backdrop-filter: blur(6px);
}
.badge i { width: 6px; height: 6px; border-radius: 50%; background: var(--azure); }
.badge.is-live i { background: var(--signal); box-shadow: 0 0 8px var(--signal); }
.badge.b1 { top: 4%; left: 2%; }
.badge.b2 { top: 44%; right: 0; }
.badge.b3 { bottom: 6%; left: 12%; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { max-height: 320px; aspect-ratio: auto; height: 300px; }
}

/* one orchestrated load sequence, hero only */
@media (prefers-reduced-motion: no-preference) {
  .hero .load { opacity: 0; transform: translateY(14px); animation: rise .8s cubic-bezier(.2,.7,.2,1) forwards; }
  .hero .load:nth-child(2) { animation-delay: .08s; }
  .hero .load:nth-child(3) { animation-delay: .16s; }
  .hero .load:nth-child(4) { animation-delay: .24s; }
  .hero-visual { opacity: 0; animation: fade 1.2s .2s ease forwards; }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes fade { to { opacity: 1; } }

/* ---------- Pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--panel);
}
.pillar { padding: 34px 30px 30px; position: relative; }
.pillar + .pillar { border-left: 1px solid var(--line); }
.pillar-icon { width: 40px; height: 40px; margin-bottom: 22px; color: var(--azure); }
.pillar h3 { font-family: var(--display); font-weight: 600; font-size: 1.08rem; margin-bottom: 12px; }
.pillar p { color: var(--soft); font-size: 0.97rem; }
.pillar ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.pillar li { font-size: 0.93rem; color: var(--text); padding-left: 18px; position: relative; }
.pillar li::before {
  content: ""; position: absolute; left: 0; top: 0.62em;
  width: 8px; height: 1px; background: var(--signal);
}
.pillars-note { margin-top: 22px; color: var(--soft); font-size: 0.97rem; }
@media (max-width: 860px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid var(--line); }
}

/* spotlight that follows the pointer — used only on pillars and lab cards */
.spot { --mx: -500px; --my: -500px; }
.spot::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(59, 139, 255, 0.10), transparent 60%);
}

/* ---------- Flow explorer (signature) ---------- */
.explorer {
  display: grid;
  grid-template-columns: 300px 1fr;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  overflow: hidden;
}
.problem-list { border-right: 1px solid var(--line); padding: 10px; display: grid; align-content: start; gap: 4px; }
.problem-btn {
  text-align: left;
  font: inherit;
  font-size: 0.97rem;
  line-height: 1.4;
  color: var(--soft);
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 15px 16px;
  cursor: pointer;
  transition: color .15s ease, background-color .15s ease, border-color .15s ease;
}
.problem-btn:hover { color: var(--text); background: rgba(160, 190, 255, 0.04); }
.problem-btn[aria-selected="true"] {
  color: var(--text);
  background: rgba(59, 139, 255, 0.10);
  border-color: rgba(59, 139, 255, 0.35);
}
.problem-btn small { display: block; font-size: 0.8rem; color: var(--faint); margin-top: 4px; }
.flow-panel { padding: 34px 36px 32px; min-width: 0; }
.flow-panel h3 { font-family: var(--display); font-weight: 600; font-size: 1.2rem; }
.flow-panel .flow-intro { color: var(--soft); margin-top: 10px; max-width: 60ch; }
.flow {
  list-style: none;
  margin: 30px 0 26px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: step;
  position: relative;
}
.flow-step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 16px 14px 14px;
  background: rgba(7, 11, 20, 0.55);
  transition: border-color .35s ease, background-color .35s ease, box-shadow .35s ease;
}
.flow-step + .flow-step::before {
  content: "";
  position: absolute;
  left: -15px; top: 50%;
  width: 16px; height: 1px;
  background: var(--line-strong);
  transition: background-color .35s ease;
}
.flow-step .tech {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--faint);
  margin-bottom: 8px;
  transition: color .35s ease;
}
.flow-step .what { font-size: 0.93rem; line-height: 1.4; color: var(--soft); transition: color .35s ease; }
.flow-step.is-on {
  border-color: rgba(46, 230, 197, 0.45);
  background: rgba(46, 230, 197, 0.06);
  box-shadow: 0 0 0 4px rgba(46, 230, 197, 0.05);
}
.flow-step.is-on .tech { color: var(--signal); }
.flow-step.is-on .what { color: var(--text); }
.flow-step.is-on + .flow-step::before,
.flow-step.is-on::before { background: var(--signal); }
.flow-result {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  background: rgba(46, 230, 197, 0.07);
  border: 1px solid rgba(46, 230, 197, 0.22);
  opacity: 0.35;
  transition: opacity .4s ease;
}
.flow-result.is-on { opacity: 1; }
.flow-result svg { flex: none; width: 22px; height: 22px; color: var(--signal); margin-top: 2px; }
.flow-result p { margin: 0; font-size: 0.97rem; }
.flow-footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 22px; flex-wrap: wrap; }
.replay {
  font: inherit; font-size: 0.88rem; color: var(--soft);
  background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}
.replay:hover { color: var(--text); }
@media (max-width: 960px) {
  .explorer { grid-template-columns: 1fr; }
  .problem-list { border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow-step:nth-child(3)::before { display: none; }
}
@media (max-width: 560px) {
  .problem-list { grid-template-columns: 1fr; }
  .flow-panel { padding: 26px 20px; }
  .flow { grid-template-columns: 1fr; gap: 12px; }
  .flow-step + .flow-step::before { left: 22px; top: -13px; width: 1px; height: 12px; }
  .flow-step:nth-child(3)::before { display: block; }
}

/* ---------- Ways of working ---------- */
.ways { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; position: relative; }
.way { padding: 0 30px 0 0; position: relative; }
.way + .way { padding-left: 30px; border-left: 1px solid var(--line); }
.way-num {
  font-family: var(--display);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1px rgba(160, 190, 255, 0.35);
  margin-bottom: 22px;
  display: block;
}
.way h3 { font-family: var(--display); font-weight: 600; font-size: 1.15rem; margin-bottom: 12px; }
.way p { color: var(--soft); font-size: 0.98rem; }
.way dl { margin: 18px 0 0; display: grid; gap: 12px; }
.way dt { font-size: 0.82rem; color: var(--faint); }
.way dd { margin: 2px 0 0; font-size: 0.95rem; }
@media (max-width: 860px) {
  .ways { grid-template-columns: 1fr; gap: 34px; }
  .way, .way + .way { padding: 0; border-left: 0; }
  .way + .way { padding-top: 34px; border-top: 1px solid var(--line); }
}

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.principle h3 { margin-bottom: 10px; font-size: 1.05rem; }
.principle p { color: var(--soft); font-size: 0.97rem; margin: 0; }
.principle .rule { width: 34px; height: 2px; background: var(--azure); margin-bottom: 20px; }
@media (max-width: 860px) { .principles { grid-template-columns: 1fr; gap: 30px; } }

/* ---------- Lab ---------- */
.lab-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.lab-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.lab-card h3 { font-family: var(--display); font-weight: 600; font-size: 1.08rem; margin: 14px 0 10px; }
.lab-card p { color: var(--soft); font-size: 0.96rem; }
.status {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 600;
  color: #F5C76B;
  background: rgba(245, 199, 107, 0.10);
  border: 1px solid rgba(245, 199, 107, 0.25);
  padding: 4px 11px;
  border-radius: 999px;
}
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.stack { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 14px; }
.stack span {
  font-family: var(--mono); font-size: 0.72rem; color: var(--soft);
  border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px;
}
@media (max-width: 760px) { .lab-grid { grid-template-columns: 1fr; } }

/* Lab detail entries */
.case { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 44px; align-items: start; }
.case + .case { margin-top: 96px; padding-top: 96px; border-top: 1px solid var(--line); }
.case h2 { font-size: clamp(1.4rem, 2.8vw, 1.9rem); margin: 16px 0 16px; }
.case dl { margin: 26px 0 0; display: grid; gap: 18px; }
.case dt { font-weight: 700; font-size: 0.95rem; margin-bottom: 4px; }
.case dd { margin: 0; color: var(--soft); font-size: 0.97rem; }
.diagram {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  padding: 22px;
  position: sticky;
  top: 96px;
}
.diagram svg { width: 100%; height: auto; }
.diagram figcaption { font-size: 0.84rem; color: var(--faint); margin-top: 12px; }
.diagram .node rect { fill: #0A111D; stroke: rgba(160, 190, 255, 0.28); }
.diagram .node.ai rect { stroke: rgba(46, 230, 197, 0.6); }
.diagram .node text { fill: #E9EEF6; font-family: "Hanken Grotesk", sans-serif; font-size: 13px; font-weight: 600; }
.diagram .node .sub { fill: #97A4B8; font-family: "JetBrains Mono", monospace; font-size: 10.5px; font-weight: 400; }
.diagram .wire { stroke: rgba(160, 190, 255, 0.28); stroke-width: 1.4; fill: none; }
.diagram .pulse { fill: #2EE6C5; }
@media (prefers-reduced-motion: reduce) { .diagram .pulse { display: none; } }
@media (max-width: 860px) {
  .case { grid-template-columns: 1fr; gap: 28px; }
  .diagram { position: static; }
}

/* ---------- Services detail ---------- */
.service { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 48px; }
.service + .service { margin-top: 84px; padding-top: 84px; border-top: 1px solid var(--line); }
.service h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin-top: 18px; }
.service .intro { color: var(--soft); margin-top: 16px; }
.usecases { display: grid; gap: 14px; }
.usecase {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  background: var(--panel);
}
.usecase h3 { margin-bottom: 6px; font-size: 1.02rem; }
.usecase p { color: var(--soft); margin: 0; font-size: 0.96rem; }
.usecase .tags { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.usecase .tags span { font-family: var(--mono); font-size: 0.72rem; color: var(--faint); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; }
@media (max-width: 860px) { .service { grid-template-columns: 1fr; gap: 26px; } }

/* ---------- Process (sequence) ---------- */
.process { list-style: none; margin: 0; padding: 0; position: relative; }
.process::before {
  content: ""; position: absolute; left: 19px; top: 8px; bottom: 8px; width: 1px; background: var(--line-strong);
}
.process li { position: relative; padding: 0 0 34px 64px; }
.process li:last-child { padding-bottom: 0; }
.process .dot {
  position: absolute; left: 0; top: 0;
  width: 39px; height: 39px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ink); border: 1px solid var(--line-strong);
  font-family: var(--display); font-size: 0.9rem; font-weight: 600; color: var(--soft);
  transition: border-color .3s ease, color .3s ease, box-shadow .3s ease;
}
.process li.is-active .dot { border-color: var(--signal); color: var(--signal); box-shadow: 0 0 0 5px rgba(46, 230, 197, 0.08); }
.process h3 { margin: 6px 0 6px; }
.process p { color: var(--soft); margin: 0; max-width: 62ch; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 40px 22px 0;
  font-weight: 650;
  font-size: 1.04rem;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%;
  width: 11px; height: 11px; margin-top: -8px;
  border-right: 1.5px solid var(--soft); border-bottom: 1.5px solid var(--soft);
  transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { color: var(--soft); margin: 0 0 22px; max-width: 70ch; }

/* ---------- CTA band ---------- */
.cta-band {
  border: 1px solid var(--line-strong);
  border-radius: 24px;
  padding: 56px clamp(24px, 5vw, 64px);
  background:
    radial-gradient(ellipse 600px 300px at 0% 0%, rgba(59, 139, 255, 0.20), transparent 70%),
    radial-gradient(ellipse 500px 300px at 100% 100%, rgba(46, 230, 197, 0.10), transparent 70%),
    var(--panel);
  display: grid;
  grid-template-columns: 1.3fr auto;
  gap: 30px;
  align-items: center;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { color: var(--soft); margin: 14px 0 0; max-width: 52ch; }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } }

/* ---------- Prose blocks (over, privacy) ---------- */
.prose { max-width: 68ch; }
.prose h2 { font-size: 1.3rem; margin: 46px 0 14px; }
.prose p, .prose li { color: var(--soft); }
.prose strong { color: var(--text); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.35fr 0.65fr; gap: 28px; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.form {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--panel);
  padding: 30px;
  display: grid;
  gap: 18px;
}
.field { display: grid; gap: 7px; }
.field label { font-size: 0.9rem; font-weight: 600; }
.field label span { color: var(--faint); font-weight: 400; }
.field input, .field textarea, .field select {
  width: 100%;
  background: var(--ink);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 13px 14px;
  font: inherit;
  font-size: 1rem;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--azure); box-shadow: 0 0 0 3px rgba(59, 139, 255, 0.18);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } .form { padding: 22px; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { justify-self: start; }
.aside-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  background: var(--panel);
}
.aside-card + .aside-card { margin-top: 14px; }
.aside-card h3 { font-size: 0.95rem; margin-bottom: 6px; }
.aside-card p { color: var(--soft); font-size: 0.95rem; margin: 0; }
.aside-card a { font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 40px; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid p { color: var(--soft); font-size: 0.93rem; margin: 14px 0 0; max-width: 36ch; }
.footer-grid h3 { font-size: 0.9rem; color: var(--faint); font-weight: 600; margin-bottom: 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--soft); text-decoration: none; font-size: 0.95rem; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--faint); font-size: 0.85rem; }
.footer-bottom a { color: var(--faint); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div:first-child { grid-column: 1 / -1; } }

/* Thank-you / 404 */
.center-card { max-width: 560px; margin: 0 auto; text-align: center; padding: 120px 0 80px; }
.center-card h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-bottom: 16px; }
.center-card p { color: var(--soft); margin-bottom: 30px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* skip link */
a.hp:focus { left: 16px; top: 12px; width: auto; height: auto; z-index: 100; background: var(--azure); color: var(--azure-ink); padding: 8px 14px; border-radius: 8px; }
.nav a.btn-primary, .nav a.btn-primary:hover { color: var(--azure-ink); }

/* ---------- Logo ---------- */
.iw-a { stop-color: #3B8BFF; }
.iw-b { stop-color: #2EE6C5; }
.iw-node { fill: var(--ink); }
.iw-spark { fill: #2EE6C5; }
.brand { font-family: "Syne", var(--body); font-weight: 700; letter-spacing: 0; font-size: 1.12rem; }
.brand-mark { width: 34px; height: 34px; }

/* ---------- Live terminal ---------- */
.term {
  --t-bg: #0A101B; --t-bar: #0F1726; --t-line: rgba(160,190,255,.10);
  --t-text: #C9D3E3; --t-dim: #5E6B80; --t-key: #7FB0FF; --t-ai: #2EE6C5; --t-ok: #2EE6C5;
  position: relative;
  border-radius: var(--radius-lg);
  background: var(--t-bg);
  border: 1px solid var(--t-line);
  overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255,255,255,.02) inset;
  font-family: var(--mono);
}
.term::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 220px at 15% 0%, rgba(59,139,255,.12), transparent 70%);
}
.term::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.025) 0 1px, transparent 1px 3px);
}
.term-bar { position: relative; display: flex; align-items: center; gap: 16px; padding: 0 14px; background: var(--t-bar); border-bottom: 1px solid var(--t-line); }
.term-dots { display: flex; gap: 7px; padding: 14px 0; flex: none; }
.term-dots i { width: 11px; height: 11px; border-radius: 50%; background: #2A3447; }
.term-dots i:nth-child(1) { background: #FF5F57; } .term-dots i:nth-child(2) { background: #FEBC2E; } .term-dots i:nth-child(3) { background: #28C840; }
.term-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; align-self: stretch; }
.term-tabs::-webkit-scrollbar { display: none; }
.term-tab {
  font: inherit; font-size: .78rem; color: var(--t-dim);
  background: transparent; border: 0; padding: 0 14px; cursor: pointer; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color .2s ease, border-color .2s ease, background-color .2s ease;
}
.term-tab:hover { color: var(--t-text); }
.term-tab[aria-selected="true"] { color: #fff; border-bottom-color: var(--t-ai); background: rgba(255,255,255,.03); }
.term-body { position: relative; padding: 24px 24px 18px; min-height: 300px; font-size: .88rem; line-height: 1.75; }
.term-lines { list-style: none; margin: 0; padding: 0; }
.term-lines li { display: grid; grid-template-columns: 74px 1fr; gap: 10px; color: var(--t-text); }
.term-lines li time { color: var(--t-dim); }
.term-lines li.cmd > span { color: #fff; }
.term-lines li.cmd > span::before { content: "$ "; color: var(--t-ai); }
.term-lines li .k { color: var(--t-key); margin-right: 10px; }
.term-lines li.ai .k { color: var(--t-ai); }
.term-lines li.ai .k::after { content: " ✦"; font-size: .8em; }
.term-lines li .v { color: var(--t-text); opacity: .85; }
.term-lines li.done > span { color: var(--t-ok); font-weight: 500; }
.term-lines li.done > span::before { content: "✓ "; }
.caret { display: inline-block; width: .55em; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: var(--t-ai); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.term-foot { position: relative; display: flex; align-items: center; gap: 14px; padding: 12px 24px 16px; border-top: 1px solid var(--t-line); font-size: .76rem; color: var(--t-dim); }
.term-progress { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.06); overflow: hidden; }
.term-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #3B8BFF, #2EE6C5); transition: width .35s ease; }
.term-status { white-space: nowrap; }
@media (max-width: 640px) {
  .term-body { padding: 18px 16px 14px; font-size: .78rem; min-height: 340px; }
  .term-lines li { grid-template-columns: 1fr; gap: 0; margin-bottom: 6px; }
  .term-lines li time { font-size: .7rem; }
  .term-foot { padding: 10px 16px 14px; }
}
