/* ============================================================
   Swift Outcome — brand system
   Theme: Precision at speed
   ============================================================ */

/* ---- Self-hosted type (no external origins) ----------------
   Geist Sans carries everything; Geist Mono is reserved for eyebrows,
   indices and micro-labels. One family plus one mono reads more
   considered than a two-sans pairing, and ships fewer files. */

@font-face {
  font-family: "Geist";
  font-style: normal; font-weight: 400; font-display: swap;
  src: url("/assets/fonts/geist-sans-latin-400-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/geist-sans-latin-500-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal; font-weight: 600; font-display: swap;
  src: url("/assets/fonts/geist-sans-latin-600-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist";
  font-style: normal; font-weight: 700; font-display: swap;
  src: url("/assets/fonts/geist-sans-latin-700-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal; font-weight: 500; font-display: swap;
  src: url("/assets/fonts/geist-mono-latin-500-normal.woff2") format("woff2");
}

:root {
  --bg:            #07111F;
  --surface:       #0D1A2B;
  --surface-2:     #102338;
  --text:          #F6F8FB;
  --muted:         #97A6BA;
  --muted-dim:     #7A8CA1;
  --accent:        #3B82F6;
  --accent-fill:   #2563EB;   /* solid buttons: 5.17:1 with white, passes AA */
  --accent-fill-h: #1D4ED8;
  --accent-soft:   rgba(59, 130, 246, 0.14);
  --accent-line:   rgba(59, 130, 246, 0.34);
  --green:         #41E6A1;
  --green-soft:    rgba(65, 230, 161, 0.12);
  --border:        rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);

  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;

  --container: 1200px;
  --gutter: 24px;

  --font-head: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur:  340ms;

  --shadow-1: 0 1px 0 rgba(255,255,255,0.04) inset, 0 18px 40px -24px rgba(0,0,0,0.9);
  --shadow-2: 0 30px 70px -34px rgba(0,0,0,0.95), 0 1px 0 rgba(255,255,255,0.05) inset;
}

*, *::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: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.12; letter-spacing: -0.025em; margin: 0; }
p { margin: 0; }
ul, ol, dl, dd { margin: 0; padding: 0; }
li { list-style: none; }
a { color: inherit; text-decoration: none; }

::selection { background: rgba(59,130,246,0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--accent-fill); color: #fff; padding: 12px 18px; border-radius: 0 0 10px 0;
  font-weight: 600;
}
.skip-link:focus { left: 0; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ============================================================
   Typography helpers
   ============================================================ */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
  flex: none;
}
.sec-head--center .eyebrow::before { display: none; }

.grad {
  background: linear-gradient(94deg, #FFFFFF 0%, #C9DEFF 52%, #7BEBC2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sec-head { max-width: 720px; margin-bottom: 56px; }
.sec-head--center { margin-inline: auto; text-align: center; }
.sec-title { font-size: clamp(28px, 3.6vw, 44px); font-weight: 700; }
.sec-lede { color: var(--muted); font-size: 17px; margin-top: 18px; max-width: 62ch; }
.sec-head--center .sec-lede { margin-inline: auto; }

/* ============================================================
   Buttons
   ============================================================ */

.btn {
  --btn-h: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: var(--btn-h);
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.006em;
  cursor: pointer;
  white-space: nowrap;
  transition: transform var(--dur) var(--ease),
              background-color var(--dur) var(--ease),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.btn--sm { --btn-h: 44px; padding: 0 20px; font-size: 14px; border-radius: 12px; }
.btn--block { width: 100%; }
.btn--wide { width: 100%; justify-content: space-between; }

.btn--primary {
  background: var(--accent-fill);
  color: #fff;
  box-shadow: 0 10px 30px -14px rgba(59,130,246,0.8), 0 1px 0 rgba(255,255,255,0.22) inset;
}
.btn--primary:hover { background: var(--accent-fill-h); transform: translateY(-2px); }
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: rgba(255,255,255,0.03);
  border-color: var(--border);
  color: var(--text);
}
.btn--ghost:hover { background: rgba(255,255,255,0.07); border-color: var(--border-strong); transform: translateY(-2px); }

.btn__arrow { transition: transform var(--dur) var(--ease); flex: none; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.link {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--accent); font-weight: 600; font-size: 14.5px;
  transition: gap var(--dur) var(--ease), color var(--dur) var(--ease);
}
.link:hover { gap: 11px; color: #7FB0FF; }

/* ============================================================
   Navigation
   ============================================================ */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 300ms var(--ease), border-color 300ms var(--ease), backdrop-filter 300ms var(--ease);
}
.nav.is-stuck {
  background: rgba(7, 17, 31, 0.78);
  backdrop-filter: saturate(150%) blur(14px);
  -webkit-backdrop-filter: saturate(150%) blur(14px);
  border-bottom-color: var(--border);
}

.nav__inner {
  max-width: var(--container);
  margin-inline: auto;
  padding: 16px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}

.logo { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.logo__mark { flex: none; width: 46px; height: auto; }
.logo__word {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1;
}
.logo__word--alt { color: var(--muted-dim); font-weight: 500; }

.nav__links {
  display: flex;
  gap: 30px;
  margin-inline: auto;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
}
.nav__links a { position: relative; padding: 6px 0; transition: color var(--dur) var(--ease); }
.nav__links a::after {
  content: "";
  position: absolute; left: 0; right: 100%; bottom: 0; height: 1px;
  background: var(--accent);
  transition: right var(--dur) var(--ease);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:hover::after { right: 0; }
.nav__links-cta { display: none; color: var(--accent); font-weight: 600; }

.nav__actions { display: flex; align-items: center; gap: 12px; flex: none; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
  cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav__toggle-bar { width: 16px; height: 1.5px; background: var(--text); border-radius: 2px; transition: transform 240ms var(--ease), opacity 240ms var(--ease); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:first-child { transform: translateY(3.25px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  padding: 168px 0 96px;
  overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__grid {
  position: absolute; inset: -1px;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(120% 78% at 62% 26%, #000 8%, transparent 72%);
  -webkit-mask-image: radial-gradient(120% 78% at 62% 26%, #000 8%, transparent 72%);
}
.hero__glow {
  position: absolute;
  top: -280px; right: -160px;
  width: 900px; height: 900px;
  background: radial-gradient(circle at center, rgba(59,130,246,0.20) 0%, rgba(59,130,246,0.07) 34%, transparent 66%);
  filter: blur(12px);
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

.hero__title {
  font-size: clamp(34px, 4.3vw, 54px);
  font-weight: 800;
  letter-spacing: -0.032em;
  line-height: 1.08;
  text-wrap: balance;
}
.hero__lede {
  margin-top: 26px;
  color: var(--muted);
  font-size: clamp(16px, 1.2vw, 18px);
  max-width: 50ch;
}
.hero__brandline {
  margin-top: 22px;
  font-family: var(--font-head);
  font-size: clamp(16px, 1.4vw, 19px);
  font-weight: 600;
  letter-spacing: -0.018em;
  color: #A8C6F5;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.assurances {
  display: flex; flex-wrap: wrap; gap: 10px 26px;
  margin-top: 28px;
}
.assurances li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px;
  color: var(--muted);
}
.assurances svg { flex: none; }
.hero__reassure {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 26px;
  color: var(--muted-dim);
  font-size: 14px;
  max-width: 52ch;
}
.tick { flex: none; margin-top: 4px; }

/* ---- Hero visual: the brand mark ---------------------------------
   No product screenshots, real or invented. The mark itself carries
   the hero, lit from behind and sitting on a slow orbit. */

.hero__visual { position: relative; width: 100%; display: grid; place-items: center; }

.markstage {
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.markstage__halo {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 52% 44%, rgba(59,130,246,0.34) 0%, rgba(59,130,246,0.12) 34%, transparent 66%);
  filter: blur(18px);
}
.markstage__halo--green {
  inset: 26%;
  background: radial-gradient(circle at 62% 62%, rgba(65,230,161,0.16), transparent 62%);
  filter: blur(26px);
}

.markstage__ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.07);
}
.markstage__ring--1 { inset: 4%; }
.markstage__ring--2 { inset: 17%; border-color: rgba(59,130,246,0.16); }
.markstage__ring--3 { inset: 30%; border-color: rgba(255,255,255,0.045); }

/* A single tracer bead easing around the outer ring: controlled velocity,
   which is the whole brand idea, without a particle field. */
.markstage__orbit {
  position: absolute; inset: 4%;
  animation: orbit 14s linear infinite;
}
.markstage__bead {
  position: absolute; top: -3px; left: 50%;
  width: 6px; height: 6px; margin-left: -3px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(65,230,161,0.16), 0 0 14px rgba(65,230,161,0.7);
}
@keyframes orbit { to { transform: rotate(360deg); } }

.markstage__img {
  position: relative;
  width: 82%;
  height: auto;
  filter: drop-shadow(0 24px 48px rgba(3, 20, 44, 0.85));
  animation: markrise 1100ms var(--ease) both;
}
@keyframes markrise {
  from { opacity: 0; transform: translateY(16px) scale(0.97); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   Outcome strip
   ============================================================ */

.strip { padding: 26px 0 10px; }
.strip__track {
  position: relative;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 42px 0 40px;
}
.strip__line {
  position: absolute; left: 0; right: 0; top: -1px; height: 1px;
  background: transparent; overflow: hidden;
}
.strip__line-fill {
  display: block; height: 100%; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--green));
  transition: width 1.4s var(--ease);
}
.strip__kicker {
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted-dim);
  margin-bottom: 26px;
}
.strip__items { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.strip__item { position: relative; padding-left: 22px; }
.strip__node {
  position: absolute; left: 0; top: 8px;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--surface-2);
  box-shadow: 0 0 0 1px var(--accent-line), 0 0 0 5px rgba(59,130,246,0.07);
}
.strip__node--end { box-shadow: 0 0 0 1px rgba(65,230,161,0.5), 0 0 0 5px rgba(65,230,161,0.09); }
.strip__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
}
.strip__desc { display: block; margin-top: 7px; color: var(--muted); font-size: 14.5px; }

/* ============================================================
   Sections
   ============================================================ */

.section { padding: 104px 0; position: relative; }
.section--alt { background: linear-gradient(180deg, rgba(255,255,255,0.014), transparent 62%); }
.section--alt::before,
.section--alt::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1px;
  background: var(--border);
}
.section--alt::before { top: 0; }
.section--alt::after { bottom: 0; }

.grid { display: grid; gap: 22px; }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---- Tick lists --------------------------------------------------- */

.ticks { margin-top: 18px; display: grid; gap: 10px; }
.ticks li {
  position: relative;
  padding-left: 26px;
  font-size: 15px;
  color: var(--muted);
}
.ticks li::before {
  content: "";
  position: absolute; left: 3px; top: 9px;
  width: 9px; height: 5px;
  border-left: 1.9px solid var(--green);
  border-bottom: 1.9px solid var(--green);
  transform: rotate(-45deg);
  border-radius: 1px;
}
.ticks--lg li { font-size: 15px; color: var(--text); }

/* ---- Service blocks ---------------------------------------------- */

.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px; }

.svc {
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255,255,255,0.028), rgba(255,255,255,0.008));
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-1);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.svc:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
  box-shadow: 0 26px 56px -30px rgba(0,0,0,0.95);
}
.svc__art {
  padding: 26px 26px 0;
  background:
    radial-gradient(88% 120% at 76% 0%, rgba(59,130,246,0.13), transparent 62%),
    rgba(255,255,255,0.012);
  border-bottom: 1px solid var(--border);
}
.svc__body { padding: 26px 28px 28px; display: flex; flex-direction: column; flex: 1; }
.svc__title { font-size: 23px; font-weight: 700; margin-bottom: 10px; }
.svc__text { color: var(--muted); font-size: 15.5px; }
.svc__body .ticks { margin-bottom: 26px; }
.svc__body .btn { margin-top: auto; }

/* Abstract interface illustrations. Deliberately generic: no client work,
   no real data, no numbers presented as results. */

.art {
  border: 1px solid var(--border);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  border-bottom: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.008));
  overflow: hidden;
  transform: translateY(2px);
}
.art__bar { display: none; }

/* Application interface */
.art--app .art__body { display: grid; grid-template-columns: 52px minmax(0,1fr); min-height: 178px; }
.art__rail {
  display: grid; gap: 9px; align-content: start;
  padding: 14px 0; justify-items: center;
  border-right: 1px solid var(--border);
}
.art__nav { width: 20px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.07); }
.art__nav--on { background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent-line) inset; }
.art__main { padding: 14px 16px; display: grid; gap: 12px; align-content: start; }
.art__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.art__tile {
  height: 40px; border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
}
.art__tile--accent { border-color: var(--accent-line); background: rgba(59,130,246,0.10); }
.art__table { display: grid; gap: 7px; }
.art__trow { height: 15px; border-radius: 5px; background: rgba(255,255,255,0.05); }
.art__trow--alt { background: rgba(255,255,255,0.03); width: 82%; }
.art__trow--ok { background: rgba(65,230,161,0.09); box-shadow: 0 0 0 1px rgba(65,230,161,0.26) inset; width: 66%; }

/* Website layout */
.art--web .art__page { padding: 14px 16px 0; display: grid; gap: 12px; min-height: 178px; align-content: start; }
.art__topnav { display: flex; align-items: center; justify-content: space-between; }
.art__logo { width: 34px; height: 9px; border-radius: 4px; background: rgba(255,255,255,0.24); }
.art__links { display: flex; gap: 7px; }
.art__links i { display: block; width: 20px; height: 6px; border-radius: 3px; background: rgba(255,255,255,0.10); }
.art__hero {
  display: grid; gap: 8px; justify-items: start;
  padding: 16px 14px 18px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: radial-gradient(90% 130% at 12% 0%, rgba(59,130,246,0.14), transparent 66%);
}
.art__h1 { width: 74%; height: 11px; border-radius: 5px; background: rgba(255,255,255,0.26); }
.art__h2 { width: 52%; height: 7px; border-radius: 4px; background: rgba(255,255,255,0.12); }
.art__cta { width: 74px; height: 20px; border-radius: 7px; background: var(--accent); margin-top: 4px; }
.art__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.art__col {
  height: 42px; border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.025);
}
.art__col--ok { border-color: rgba(65,230,161,0.28); background: rgba(65,230,161,0.06); }

/* ---- Principles ---------------------------------------------------
   Deliberately not cards. Three boxes of equal weight flatten the
   hierarchy and read as filler; a hairline-separated list with a mono
   index gives the same content more air and more authority. */

.principles { display: grid; }

.principle {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 0 20px;
  padding: 28px 0 28px 20px;
  border-top: 1px solid var(--border);
  transition: background-color var(--dur) var(--ease);
}
.principle:last-child { border-bottom: 1px solid var(--border); }

/* The rule that lights up on hover, drawn from the top down. */
.principle::before {
  content: "";
  position: absolute; left: 0; top: -1px; bottom: -1px;
  width: 2px;
  background: linear-gradient(180deg, var(--accent), rgba(59,130,246,0.15));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 420ms var(--ease);
}
.principle:hover { background: rgba(255,255,255,0.018); }
.principle:hover::before { transform: scaleY(1); }

.principle__num {
  grid-row: 1 / span 2;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--accent);
  padding-top: 3px;
  font-variant-numeric: tabular-nums;
}
.principle__title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 7px;
}
.principle__text {
  color: var(--muted);
  font-size: 15px;
  max-width: 46ch;
}

/* ---- About ------------------------------------------------------- */

.about {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.about__points { display: grid; gap: 16px; margin: 26px 0 32px; }
.about__points p { color: var(--muted); font-size: 16px; max-width: 52ch; }
.about__principles { display: grid; align-content: start; }

/* ---- Final CTA panel --------------------------------------------- */

.cta-section { padding-bottom: 120px; }
.panel {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: 52px;
  padding: 54px;
  border: 1px solid var(--border-strong);
  border-radius: 26px;
  background:
    radial-gradient(90% 130% at 8% 0%, rgba(59,130,246,0.16), transparent 58%),
    linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow-2);
  overflow: hidden;
}
.panel__glow {
  position: absolute; right: -140px; bottom: -220px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(65,230,161,0.12), transparent 66%);
  pointer-events: none;
}
.panel__title { position: relative; font-size: clamp(26px, 3.1vw, 38px); font-weight: 700; }
.panel__text { position: relative; color: var(--muted); margin-top: 18px; font-size: 16px; max-width: 46ch; }
.panel__copy .ticks { position: relative; margin-top: 26px; }
.panel__email {
  position: relative;
  display: inline-flex; align-items: center; gap: 9px;
  margin-top: 22px;
  color: var(--accent);
  font-weight: 600; font-size: 15px;
}
.panel__email a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.panel__email a:hover { color: #7FB0FF; }

/* ---- Form -------------------------------------------------------- */

.form { position: relative; display: grid; gap: 16px; align-content: start; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label {
  font-size: 13px; font-weight: 600; color: var(--text);
  letter-spacing: -0.004em;
}
.req { color: var(--accent); }
.opt { color: var(--muted-dim); font-weight: 500; font-size: 12px; }

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  color: var(--text);
  background: rgba(7, 17, 31, 0.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease), box-shadow 200ms var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.field textarea { min-height: 108px; resize: vertical; line-height: 1.6; }
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
                    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 22px, calc(100% - 14px) 22px;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent-line);
  background: rgba(7, 17, 31, 0.85);
  box-shadow: 0 0 0 3px rgba(59,130,246,0.14);
}
.field input::placeholder, .field textarea::placeholder { color: var(--muted-dim); }
.field.is-invalid input,
.field.is-invalid textarea { border-color: rgba(255, 120, 120, 0.6); }

.form .btn { margin-top: 6px; }
.form__note { font-size: 13px; color: var(--muted-dim); min-height: 20px; }
.form__note.is-error { color: #FF9C9C; }

/* ============================================================
   Footer
   ============================================================ */

.footer { border-top: 1px solid var(--border); padding: 46px 0 34px; }
.footer__inner {
  display: flex; flex-wrap: wrap; gap: 28px;
  align-items: center; justify-content: space-between;
}
.footer__logo { display: block; width: 132px; }
.footer__logo img { width: 100%; height: auto; }
.footer__links {
  display: flex; flex-wrap: wrap; align-items: center; gap: 26px;
  font-size: 14px; color: var(--muted);
}
.footer__links a { transition: color var(--dur) var(--ease); }
.footer__links a:hover { color: var(--text); }
.footer__btn {
  appearance: none; background: none; border: 0; padding: 0;
  font: inherit; color: inherit; cursor: pointer;
  transition: color var(--dur) var(--ease);
}
.footer__btn:hover { color: var(--text); }
.footer__base {
  margin-top: 32px; padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted-dim); font-size: 13px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
}
.footer__tag { color: var(--muted); }

/* ============================================================
   Legal pages
   ============================================================ */

.legal { padding: 150px 0 96px; }
.legal__inner { max-width: 760px; }
.legal h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 700; margin-bottom: 12px; }
.legal .updated { color: var(--muted-dim); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 20px; font-weight: 700; margin: 38px 0 12px; }
.legal p, .legal li { color: var(--muted); font-size: 15.5px; }
.legal ul { display: grid; gap: 8px; margin-top: 10px; }
.legal ul li { position: relative; padding-left: 20px; }
.legal ul li::before {
  content: ""; position: absolute; left: 2px; top: 11px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.legal a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal a:hover { color: #7FB0FF; }

/* ---- Thank-you page ---------------------------------------------- */

.thanks {
  min-height: 78vh;
  display: grid; place-items: center;
  padding: 150px 0 96px;
  text-align: center;
}
.thanks__mark {
  width: 74px; height: 74px; border-radius: 50%;
  display: grid; place-items: center;
  margin: 0 auto 28px;
  background: var(--green-soft);
  border: 1px solid rgba(65,230,161,0.34);
}
.thanks h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 700; margin-bottom: 16px; }
.thanks p { color: var(--muted); max-width: 48ch; margin: 0 auto 30px; }

/* ============================================================
   Legal dialogs
   ============================================================ */

.dlg {
  width: min(720px, calc(100vw - 32px));
  max-height: min(82vh, 760px);
  padding: 0;
  color: var(--text);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: 0 40px 90px -40px rgba(0,0,0,1);
  overflow: hidden;
}
.dlg::backdrop { background: rgba(3, 8, 16, 0.72); backdrop-filter: blur(3px); }
.dlg[open] { display: flex; flex-direction: column; }

.dlg__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
  flex: none;
}
.dlg__title { font-size: 21px; font-weight: 700; }
.dlg__close {
  appearance: none; cursor: pointer; flex: none;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.dlg__close:hover { color: var(--text); background: rgba(255,255,255,0.08); }

.dlg__body { padding: 24px; overflow-y: auto; flex: 1; }
.dlg__body h3 { font-size: 16px; font-weight: 700; margin: 26px 0 10px; }
.dlg__body h3:first-of-type { margin-top: 20px; }
.dlg__body p, .dlg__body li { color: var(--muted); font-size: 15px; }
.dlg__body ul { display: grid; gap: 8px; margin-top: 10px; }
.dlg__body ul li { position: relative; padding-left: 20px; }
.dlg__body ul li::before {
  content: ""; position: absolute; left: 2px; top: 10px;
  width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.dlg__body a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.dlg__body a:hover { color: #7FB0FF; }
.dlg__body .updated { color: var(--muted-dim); font-size: 13px; }

.dlg__foot {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: flex-end;
  background: rgba(255,255,255,0.02);
  flex: none;
}

body.dlg-open { overflow: hidden; }

/* ============================================================
   Reveal on scroll
   ============================================================ */

/* Elements are visible by default so the page still reads with JS off.
   The .js class is set by assets/js/head.js before first paint. */
.js .reveal { opacity: 0; transform: translateY(18px); }
.js .reveal.is-in {
  opacity: 1; transform: none;
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}
.js .reveal--d1.is-in { transition-delay: 90ms; }
.js .reveal--d2.is-in { transition-delay: 180ms; }
.js .reveal--d3.is-in { transition-delay: 270ms; }
.js .reveal--d4.is-in { transition-delay: 360ms; }

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1080px) {
  .hero__inner { grid-template-columns: 1fr; gap: 64px; }
  .hero { padding-top: 140px; }
  .stage { max-width: 640px; }
  .about { grid-template-columns: 1fr; gap: 40px; }
  .about__principles { grid-template-columns: repeat(3, 1fr); }
  .panel { grid-template-columns: 1fr; gap: 40px; padding: 42px; }
}

@media (max-width: 900px) {
  .nav__links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 8px var(--gutter) 20px;
    background: rgba(7, 17, 31, 0.96);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--border); font-size: 16px; }
  .nav__links a:last-child { border-bottom: 0; }
  .nav__toggle { display: flex; }
  .grid--2, .grid--3 { grid-template-columns: 1fr; }
  .svc-grid { grid-template-columns: 1fr; }
  .about__principles { grid-template-columns: 1fr; }
  .strip__items { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
  .section { padding: 80px 0; }
  .nav__links-cta { display: block; }
}

@media (max-width: 780px) {
  /* Stack the hero composition: the window flows in place, the phone and two
     status chips stay layered on top of it. */
  .stage {
    aspect-ratio: auto;
    padding: 24px 0 34px;
  }
  .stage__trails { display: none; }
  .win { position: static; width: 100%; }
  .phone { width: 27%; min-width: 96px; right: 2%; bottom: 0; }
  .chip { font-size: 11px; padding: 7px 11px; }
  .chip--1 { left: 0; top: 0; }
  .chip--2 { display: none; }
  .chip--3 { left: 4%; bottom: 6px; }
}

@media (max-width: 620px) {
  :root { --gutter: 18px; }
  .nav__actions .btn--primary { display: none; }
  .hero { padding-top: 122px; }
  .hero__cta .btn { flex: 1 1 100%; }
  .strip__items { grid-template-columns: 1fr; gap: 22px; }
  .field-row { grid-template-columns: 1fr; }
  .panel { padding: 30px 22px; border-radius: 20px; }
  .svc__art { padding: 20px 20px 0; }
  .svc__body { padding: 22px 20px 24px; }
  .assurances { flex-direction: column; gap: 10px; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__base { flex-direction: column; }
  .dlg { width: calc(100vw - 24px); max-height: 88vh; }
  .dlg__head, .dlg__body, .dlg__foot { padding-left: 18px; padding-right: 18px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .assemble { opacity: 1; transform: none; }
  .js .reveal, .reveal { opacity: 1; transform: none; }
  .trail { display: none; }
}

@media print {
  .nav, .hero__bg, .stage, .form, .dlg { display: none; }
  body { background: #fff; color: #000; }
}
