/* ============================================================
   KustAi — Arkitekter för digital infrastruktur
   Editorial redesign · v2
   Palette: Djuphav · Granit · Blueprint · Beacon Blue
   ============================================================ */

/* -- Tokens ------------------------------------------------ */
:root, [data-theme="dark"] {
  --ink: #f6f8fb;
  --ink-2: #c9d2dc;
  --ink-muted: #7c8b9d;
  --ink-dim: #4a5868;

  --bg: #0a1828;
  --bg-2: #0c1d31;
  --bg-3: #0e2239;
  --surface: #0f2030;
  --surface-raised: #14263a;

  --line: #1c2f46;
  --line-2: #29405e;
  --line-3: #3b5680;

  --beacon: #4a90d9;
  --beacon-2: #6bb0f5;
  --beacon-deep: #2c6aae;
  --beacon-dim: rgba(74, 144, 217, 0.12);
  --beacon-glow: rgba(74, 144, 217, 0.35);

  --grid: rgba(74, 144, 217, 0.07);
  --grid-2: rgba(74, 144, 217, 0.18);

  --shadow-card: 0 30px 80px -40px rgba(0, 8, 18, 0.75);
  --shadow-feat: 0 48px 120px -40px rgba(74, 144, 217, 0.35);
  color-scheme: dark;
}

[data-theme="light"] {
  --ink: #0f1c2a;
  --ink-2: #2b3a4a;
  --ink-muted: #596775;
  --ink-dim: #96a1ad;

  --bg: #f1f3f5;
  --bg-2: #e8ecef;
  --bg-3: #dde2e7;
  --surface: #ffffff;
  --surface-raised: #fafbfc;

  --line: #d3d9df;
  --line-2: #b8c1ca;
  --line-3: #8c98a5;

  --beacon: #2c6aae;
  --beacon-2: #4a90d9;
  --beacon-deep: #1c4a82;
  --beacon-dim: rgba(44, 106, 174, 0.10);
  --beacon-glow: rgba(44, 106, 174, 0.25);

  --grid: rgba(44, 106, 174, 0.07);
  --grid-2: rgba(44, 106, 174, 0.18);

  --shadow-card: 0 30px 80px -40px rgba(15, 28, 42, 0.22);
  --shadow-feat: 0 48px 120px -40px rgba(44, 106, 174, 0.28);
  color-scheme: light;
}

:root {
  --f-display: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --f-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  --maxw: 1280px;
  --gutter: clamp(20px, 4.5vw, 56px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* -- Reset ------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  transition: background 400ms var(--ease), color 400ms var(--ease);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4, h5 { margin: 0; font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--beacon); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--beacon); color: #fff; }

.skip-link {
  position: fixed; top: -100px; left: 50%; transform: translateX(-50%);
  padding: 10px 18px; background: var(--beacon); color: #fff; z-index: 200;
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.14em;
  text-transform: uppercase; border-radius: 0 0 4px 4px;
  transition: top 200ms var(--ease);
}
.skip-link:focus { top: 0; }

.mono { font-family: var(--f-mono); }
.serif-italic { font-family: var(--f-display); font-style: italic; }

/* -- Labels & rails --------------------------------------- */
.label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--beacon);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}
.label::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: currentColor;
}
.label--dim { color: var(--ink-muted); }
.label--accent { color: var(--beacon); }

.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--beacon);
  box-shadow: 0 0 0 0 var(--beacon-glow);
  animation: pulse 2.2s var(--ease) infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74,144,217,0.55); }
  80%  { box-shadow: 0 0 0 10px rgba(74,144,217,0); }
  100% { box-shadow: 0 0 0 0 rgba(74,144,217,0); }
}

.section {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  padding-top: clamp(80px, 11vw, 160px);
  padding-bottom: clamp(80px, 11vw, 160px);
  position: relative;
}
.section--alt {
  max-width: none;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section--alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }

.section__rail {
  margin-bottom: 28px;
}

/* -- Display type ----------------------------------------- */
.display {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 20ch;
}
.display em {
  font-style: italic;
  color: var(--beacon);
  font-weight: 400;
}
.display--xl {
  font-size: clamp(48px, 7.8vw, 108px);
  max-width: 16ch;
}
.display--sm {
  font-size: clamp(28px, 3.6vw, 44px);
  max-width: 22ch;
}

.lede {
  margin-top: 22px;
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}
.lede em { font-family: var(--f-display); font-style: italic; color: var(--beacon-2); }

/* -- Buttons ---------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  border: 1px solid transparent;
  border-radius: 2px;
  cursor: pointer;
  transition: all 220ms var(--ease);
  white-space: nowrap;
  position: relative;
}
.btn__arrow { transition: transform 220ms var(--ease); display: inline-block; }
.btn:hover .btn__arrow { transform: translateX(4px); }

.btn--primary {
  background: var(--beacon);
  color: #fff;
  border-color: var(--beacon);
  box-shadow: 0 0 0 0 var(--beacon-glow);
}
.btn--primary:hover {
  background: var(--beacon-deep);
  border-color: var(--beacon-deep);
  box-shadow: 0 0 0 6px var(--beacon-glow);
}
[data-theme="light"] .btn--primary:hover { background: var(--beacon); border-color: var(--beacon); }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-3);
}
.btn--ghost:hover {
  border-color: var(--beacon);
  color: var(--beacon);
}

.btn--sm { padding: 9px 14px; font-size: 12.5px; }
.btn--lg { padding: 17px 26px; font-size: 15px; }
.btn--full { width: 100%; justify-content: space-between; }

/* Tech / HUD-style external tools link */
.btn--tools {
  gap: 8px;
  padding-left: 11px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--beacon-2);
  background:
    linear-gradient(145deg, rgba(74, 144, 217, 0.14) 0%, transparent 42%, rgba(74, 144, 217, 0.06) 100%),
    var(--surface-raised);
  border-color: var(--line-3);
  box-shadow:
    inset 0 1px 0 rgba(107, 176, 245, 0.22),
    0 0 0 1px rgba(74, 144, 217, 0.12),
    0 4px 24px -10px rgba(74, 144, 217, 0.45);
  isolation: isolate;
}
.btn--tools .btn-tools__glyph {
  flex-shrink: 0;
  filter: drop-shadow(0 0 6px rgba(107, 176, 245, 0.35));
}
.btn--tools .btn-tools__label {
  padding-right: 2px;
}
.btn-tools__scan {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.45;
  background: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 5px,
    rgba(74, 144, 217, 0.06) 5px,
    rgba(74, 144, 217, 0.06) 6px
  );
  mix-blend-mode: soft-light;
  z-index: 0;
}
.btn--tools > :not(.btn-tools__scan) {
  position: relative;
  z-index: 1;
}
.btn--tools:hover {
  color: var(--ink);
  border-color: var(--beacon);
  box-shadow:
    inset 0 1px 0 rgba(107, 176, 245, 0.35),
    0 0 0 1px rgba(74, 144, 217, 0.35),
    0 0 28px -6px var(--beacon-glow);
}
.btn--tools:hover .btn-tools__glyph {
  filter: drop-shadow(0 0 10px rgba(107, 176, 245, 0.55));
}
[data-theme="light"] .btn--tools {
  background:
    linear-gradient(145deg, rgba(44, 106, 174, 0.12) 0%, transparent 45%, rgba(44, 106, 174, 0.05) 100%),
    var(--surface-raised);
  color: var(--beacon-deep);
}
[data-theme="light"] .btn--tools:hover {
  color: var(--ink);
}

/* -- Nav --------------------------------------------------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 80;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav__glyph {
  font-family: var(--f-mono);
  color: var(--beacon);
  font-size: 18px;
  font-weight: 400;
}
.nav__mark {
  font-family: var(--f-display);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.nav__mark em {
  font-style: italic;
  color: var(--beacon);
}
.nav__divider {
  width: 1px;
  height: 18px;
  background: var(--line-2);
}
.nav__meta {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.nav__links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}
.nav__links a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13.5px;
  color: var(--ink-2);
  transition: color 200ms var(--ease);
  position: relative;
}
.nav__links a:hover { color: var(--ink); }
.nav__num {
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--beacon);
  opacity: 0.85;
  letter-spacing: 0.1em;
}

.nav__actions { display: flex; align-items: center; gap: 10px; }
.theme-toggle {
  width: 34px; height: 34px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-2);
  border: 1px solid var(--line-2);
  border-radius: 2px;
  transition: all 180ms var(--ease);
}
.theme-toggle:hover { color: var(--beacon); border-color: var(--beacon); }

/* -- Hero -------------------------------------------------- */
.hero {
  position: relative;
  min-height: 92vh;
  overflow: hidden;
  padding-top: clamp(40px, 6vw, 88px);
  padding-bottom: clamp(60px, 8vw, 110px);
  border-bottom: 1px solid var(--line);
}
.hero__bg {
  position: absolute; inset: 0;
  pointer-events: none;
  color: var(--beacon);
  overflow: hidden;
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 60% 40%, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 60% 40%, black 0%, transparent 80%);
}
.hero__horizon {
  position: absolute;
  left: 0; right: 0;
  bottom: 22%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-3) 20%, var(--line-3) 80%, transparent);
  opacity: 0.6;
}
.hero__coast {
  position: absolute;
  inset: auto 0 0 0;
  width: 100%;
  height: 62%;
  color: var(--beacon);
}
.hero__beacon {
  position: absolute;
  top: 18%;
  right: 8%;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--beacon-glow) 0%, transparent 60%);
  filter: blur(30px);
  opacity: 0.6;
  animation: beacon 7s var(--ease) infinite;
}
@keyframes beacon {
  0%, 100% { opacity: 0.45; transform: scale(0.95); }
  50% { opacity: 0.75; transform: scale(1.05); }
}

.hero__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.hero__top {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 28px;
  align-items: center;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(40px, 6vw, 72px);
}

.hero__title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(56px, 11vw, 172px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin: 0;
}
.hero__title .hero__kicker {
  display: inline-block;
  font-family: var(--f-mono) !important;
  font-size: clamp(11px, 1vw, 13px) !important;
  letter-spacing: 0.32em;
  color: var(--beacon);
  text-transform: uppercase;
  padding: 10px 14px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  background: color-mix(in srgb, var(--bg) 60%, transparent);
  margin-bottom: clamp(18px, 2.4vw, 36px);
  font-weight: 500;
  line-height: 1;
  vertical-align: middle;
}
.hero__title .hero__stamp {
  display: inline-block;
  margin-left: clamp(8px, 1.2vw, 18px);
  font-family: var(--f-mono) !important;
  font-weight: 500;
  font-size: clamp(18px, 2.2vw, 30px) !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  padding: clamp(6px, 0.8vw, 12px) clamp(10px, 1.2vw, 18px);
  border: 1.5px solid var(--line-3);
  border-radius: 2px;
  vertical-align: 0.7em;
  position: relative;
  background:
    repeating-linear-gradient(
      45deg,
      transparent 0 6px,
      color-mix(in srgb, var(--ink-muted) 14%, transparent) 6px 7px
    );
  transform: rotate(-2deg);
  animation: stampIn 900ms var(--ease-out) 900ms both;
  transform-origin: center;
}
.hero__stamp::after {
  content: "";
  position: absolute; inset: 4px;
  border: 1px dashed var(--line-3);
  opacity: 0.5;
  border-radius: 1px;
}
@keyframes stampIn {
  0%   { transform: rotate(-14deg) scale(1.8); opacity: 0; }
  60%  { transform: rotate(2deg) scale(0.92); opacity: 1; }
  100% { transform: rotate(-2deg) scale(1); opacity: 1; }
}
.hero__line {
  display: block;
  overflow: visible;
}
.hero__line > .hero__word,
.hero__line > .hero__accent,
.hero__line > .hero__amp,
.hero__line > .hero__kicker {
  display: inline-block;
  animation: rise 1100ms var(--ease-out) both;
  opacity: 1;
}
.hero__line:nth-child(1) > * { animation-delay: 120ms; }
.hero__line:nth-child(2) > * { animation-delay: 260ms; }
.hero__line:nth-child(3) > * { animation-delay: 400ms; }

@keyframes rise {
  from { opacity: 0; transform: translateY(90%); }
  to { opacity: 1; transform: translateY(0); }
}

.hero__line--indent { padding-left: clamp(40px, 8vw, 140px); }
.hero__amp {
  color: var(--beacon);
  font-style: italic;
  font-size: 0.7em;
  padding-right: 0.08em;
  vertical-align: 0.05em;
}
.hero__accent {
  color: var(--beacon);
  font-style: italic;
}

/* Chaos → Order background */
.chaos {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: var(--beacon);
  pointer-events: none;
  opacity: 1;
  mix-blend-mode: screen;
}
[data-theme="light"] .chaos { mix-blend-mode: multiply; opacity: 0.6; }
.chaos__lines line {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: chaosLine 2800ms var(--ease-out) forwards;
  stroke-width: 1;
}
.chaos__nodes .cn {
  transform-box: fill-box;
  transform-origin: center;
  opacity: 0;
  animation: chaosNode 2600ms var(--ease-out) forwards;
  color: var(--beacon);
}
.chaos__nodes text {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  fill: var(--beacon);
  text-transform: uppercase;
  opacity: 0;
  animation: chaosLabel 900ms var(--ease-out) 1800ms forwards;
}
@keyframes chaosNode {
  0%   { opacity: 0; transform: translate(var(--dx,0), var(--dy,0)) rotate(var(--r,0deg)) scale(0.4); }
  25%  { opacity: 1; }
  70%  { opacity: 1; transform: translate(var(--dx,0), var(--dy,0)) rotate(var(--r,0deg)) scale(1); }
  100% { opacity: 0.55; transform: translate(0,0) rotate(0deg) scale(1); }
}
@keyframes chaosLine {
  0%   { opacity: 0; }
  40%  { opacity: 0.7; }
  100% { opacity: 0.28; }
}
@keyframes chaosLabel {
  to { opacity: 0.45; }
}

.hero__cols {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  margin-top: clamp(40px, 6vw, 72px);
  align-items: start;
}
@media (max-width: 960px) {
  .hero__cols { grid-template-columns: 1fr; }
}

.hero__lede {
  max-width: 54ch;
  animation: rise 1100ms var(--ease-out) 620ms both;
}
.hero__dropcap {
  float: left;
  font-family: var(--f-display);
  font-size: 84px;
  line-height: 0.85;
  color: var(--beacon);
  padding: 4px 12px 0 0;
  font-style: italic;
}
.hero__lede p {
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
}
.hero__lede p em {
  font-family: var(--f-display);
  font-style: italic;
  color: var(--ink);
}

.hero__cta {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero__trust {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.hero__trust strong { color: var(--ink); font-weight: 500; }
.hero__trust .sep {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--line-3);
}

/* Live panel */
.hero__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 2px;
  box-shadow: var(--shadow-card);
  animation: rise 1100ms var(--ease-out) 800ms both;
  position: relative;
}
.hero__panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 1px solid var(--beacon-dim);
  border-radius: 2px;
  pointer-events: none;
}
.panel__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-3);
}
.panel__dots { display: flex; gap: 5px; }
.panel__dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-3);
}
.panel__dots span:nth-child(1) { background: #e76363; opacity: 0.8; }
.panel__dots span:nth-child(2) { background: #e0b04a; opacity: 0.8; }
.panel__dots span:nth-child(3) { background: #6fcf97; opacity: 0.8; }
.panel__title {
  font-family: var(--f-mono);
  font-size: 11.5px;
  color: var(--ink-muted);
  letter-spacing: 0.1em;
  margin-right: auto;
}
.panel__tag {
  font-family: var(--f-mono);
  font-size: 9.5px;
  color: var(--beacon);
  background: var(--beacon-dim);
  padding: 3px 7px;
  border: 1px solid var(--beacon);
  letter-spacing: 0.18em;
}

.panel__body { padding: 18px 18px 14px; }
.panel__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-size: 13px;
}
.panel__k {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.panel__v { color: var(--ink); font-weight: 500; }
.panel__v.mono { font-family: var(--f-mono); font-size: 13px; color: var(--beacon); }

.panel__hr {
  border: 0; height: 1px; background: var(--line); margin: 10px 0;
}

.panel__log {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--ink-2);
  line-height: 1.7;
  min-height: 120px;
}
.log__line {
  display: flex;
  gap: 10px;
  opacity: 0;
  animation: fadeInLog 500ms var(--ease-out) forwards;
}
.panel__log .log__line:nth-child(1) { animation-delay: 1.2s; }
.panel__log .log__line:nth-child(2) { animation-delay: 1.7s; }
.panel__log .log__line:nth-child(3) { animation-delay: 2.2s; }
.panel__log .log__line:nth-child(4) { animation-delay: 2.7s; }
.panel__log .log__line:nth-child(5) { animation-delay: 3.2s; }

@keyframes fadeInLog {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.log__t { color: var(--ink-dim); }
.log__b { color: var(--ink-muted); }
.log__b.beacon { color: var(--beacon); }
.log__line em { color: var(--ink); font-style: normal; }
.log__v { color: var(--beacon-2); margin-left: auto; }

.panel__caret {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--beacon);
  margin-top: 8px;
  letter-spacing: 0.1em;
}
.blink {
  display: inline-block;
  animation: blink 900ms steps(2) infinite;
}
@keyframes blink { to { opacity: 0; } }

.panel__foot {
  border-top: 1px solid var(--line);
  padding: 10px 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

.hero__base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: clamp(48px, 7vw, 96px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.compass {
  width: 46px; height: 46px;
  color: var(--ink-muted);
  opacity: 0.8;
  animation: rotate 40s linear infinite;
}
@keyframes rotate {
  to { transform: rotate(360deg); }
}
.hero__scroll {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  justify-content: flex-end;
}
.hero__scroll-line {
  display: inline-block;
  width: clamp(80px, 20vw, 220px);
  height: 1px;
  background: linear-gradient(90deg, var(--line-3), transparent);
}

/* -- Trust / marquee -------------------------------------- */
.trust {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  padding: 24px 0 32px;
  overflow: hidden;
}
.trust__head {
  max-width: var(--maxw);
  margin: 0 auto 18px;
  padding: 0 var(--gutter);
}
.marquee {
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 48s linear infinite;
}
.marquee__set {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-right: 32px;
  font-family: var(--f-display);
  font-size: clamp(20px, 2.6vw, 32px);
  color: var(--ink-2);
  white-space: nowrap;
}
.marquee__set .dot { color: var(--beacon); font-size: 0.6em; }
@keyframes marquee {
  to { transform: translateX(-50%); }
}

/* -- Diagnos ---------------------------------------------- */
.diagnos__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(56px, 8vw, 96px);
}
@media (max-width: 760px) {
  .diagnos__head { grid-template-columns: 1fr; }
}

.pains {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 900px) {
  .pains { grid-template-columns: 1fr; }
}
.pain {
  background: var(--bg);
  padding: clamp(28px, 3.5vw, 44px);
  transition: background 260ms var(--ease);
  position: relative;
}
.pain:hover { background: var(--surface); }
.pain__no {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--beacon);
  margin-bottom: 24px;
}
.pain__title {
  font-family: var(--f-display);
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
  max-width: 18ch;
}
.pain__title em {
  font-style: italic;
  color: var(--beacon);
}
.pain p {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 22px;
}
.pain__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.pain__tags li {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 5px 9px;
  border: 1px solid var(--line-2);
  border-radius: 2px;
}

.diagnos__pull {
  margin: clamp(56px, 8vw, 96px) auto 0;
  max-width: 52ch;
  text-align: center;
  padding: clamp(40px, 6vw, 72px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.diagnos__pull blockquote {
  font-family: var(--f-display);
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  position: relative;
}
.diagnos__pull blockquote em {
  font-style: italic;
  color: var(--beacon);
}
.quote-mark {
  font-size: 2em;
  color: var(--beacon);
  line-height: 0;
  vertical-align: -0.3em;
  margin-right: 0.1em;
}
.diagnos__pull figcaption {
  margin-top: 24px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
}

/* -- Pillars ---------------------------------------------- */
.pillars__head {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(56px, 8vw, 96px);
}
@media (max-width: 900px) {
  .pillars__head { grid-template-columns: 1fr; }
}

.pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
@media (max-width: 1100px) {
  .pillars__grid { grid-template-columns: 1fr; }
}

.pillar {
  background: var(--bg);
  border: 1px solid var(--line);
  padding: clamp(24px, 2.6vw, 36px);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 300ms var(--ease), border-color 300ms var(--ease);
}
.pillar:hover {
  transform: translateY(-4px);
  border-color: var(--line-3);
}
.pillar--featured {
  background: var(--surface);
  border-color: var(--beacon);
  box-shadow: var(--shadow-feat);
}
.pillar__ribbon {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  color: var(--beacon);
  background: var(--beacon-dim);
  padding: 5px 9px;
  border: 1px solid var(--beacon);
}
.pillar__meta {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
}
.pillar__no {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 36px;
  color: var(--beacon);
  line-height: 0.8;
}
.pillar__tag {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.pillar__art {
  height: 180px;
  margin-bottom: 22px;
  color: var(--ink-muted);
  border: 1px solid var(--line);
  background: var(--bg-2);
  overflow: hidden;
  position: relative;
}
.pillar--featured .pillar__art {
  background: var(--bg-3);
  color: var(--ink-2);
}
.pillar__art svg { width: 100%; height: 100%; }

.ai-pkt {
  transform-origin: center;
}
.ai-pkt--a { animation: pktA 3.2s linear infinite; }
.ai-pkt--b { animation: pktB 3.6s linear infinite 0.8s; }
.ai-pkt--c { animation: pktC 3.4s linear infinite 1.6s; }
@keyframes pktA {
  0%   { transform: translate(68px, 56px); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translate(132px, 96px); opacity: 0; }
}
@keyframes pktB {
  0%   { transform: translate(188px, 124px); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translate(252px, 164px); opacity: 0; }
}
@keyframes pktC {
  0%   { transform: translate(252px, 56px); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translate(188px, 96px); opacity: 0; }
}

.pillar__title {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 14px;
}
.pillar__title em { font-style: italic; color: var(--beacon); }
.pillar__lede {
  font-size: 15px;
  color: var(--ink-2);
  margin-bottom: 20px;
  line-height: 1.55;
}
.pillar__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-bottom: 22px;
  flex: 1;
}
.pillar__list li {
  font-size: 14px;
  color: var(--ink-2);
  padding-left: 18px;
  position: relative;
}
.pillar__list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--beacon);
  font-family: var(--f-mono);
  font-size: 11px;
  top: 4px;
}
.pillar__list em { font-style: italic; color: var(--ink); }

.pillar__foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.pillar__price {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--ink);
}
.pillar__unit {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

/* -- Metod / blueprint ------------------------------------ */
.metod__head {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
@media (max-width: 900px) {
  .metod__head { grid-template-columns: 1fr; }
}

.blueprint {
  margin: 0 0 clamp(64px, 9vw, 120px);
}
.blueprint__frame {
  position: relative;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  padding: 28px 32px 22px;
  color: var(--ink-2);
}
.blueprint__corners span {
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--beacon);
}
.blueprint__corners span:nth-child(1) { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.blueprint__corners span:nth-child(2) { top: -1px; right: -1px; border-left: 0; border-bottom: 0; }
.blueprint__corners span:nth-child(3) { bottom: -1px; left: -1px; border-right: 0; border-top: 0; }
.blueprint__corners span:nth-child(4) { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.blueprint__labels {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  text-transform: uppercase;
  flex-wrap: wrap;
}
.blueprint__svg {
  width: 100%;
  height: auto;
  color: var(--ink-2);
}
.bp-label {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  fill: var(--ink-muted);
  text-transform: uppercase;
}
.bp-title {
  font-family: var(--f-display);
  font-size: 28px;
  fill: var(--ink);
}
.bp-meta {
  font-family: var(--f-mono);
  font-size: 10px;
  fill: var(--ink-muted);
  letter-spacing: 0.1em;
}
.blueprint__cap {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

/* -- Steps ------------------------------------------------- */
.steps__head {
  margin-bottom: 40px;
}
.steps__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: clamp(20px, 3vw, 40px);
  padding: 28px 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.step:last-child { border-bottom: 1px solid var(--line); }

.step__marker {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 6px;
}
.step__no {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 40px;
  color: var(--beacon);
  line-height: 0.9;
}
.step__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--beacon);
  margin-top: 12px;
  position: relative;
  z-index: 2;
}
.step__dot--pulse::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1px solid var(--beacon);
  animation: pulseRing 2s var(--ease) infinite;
}
@keyframes pulseRing {
  0% { transform: scale(0.7); opacity: 1; }
  100% { transform: scale(1.7); opacity: 0; }
}
.step__rail {
  position: absolute;
  left: 4.5px; top: 70px;
  bottom: -28px;
  width: 1px;
  background: var(--line-2);
}

.step__body { max-width: 68ch; }
.step__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.step__title {
  font-family: var(--f-display);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.1;
  color: var(--ink);
}
.step__time {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--beacon);
  text-transform: uppercase;
}
.step__body p {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.6;
  margin-bottom: 16px;
}
.step__body p em { font-style: italic; color: var(--ink); }
.step__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.step__tags span {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 5px 9px;
  border: 1px solid var(--line-2);
}

/* -- Stats ------------------------------------------------- */
.stats {
  background: var(--bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: clamp(48px, 6vw, 84px) var(--gutter);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
@media (max-width: 860px) {
  .stats__inner { grid-template-columns: repeat(2, 1fr); }
}
.stat {
  padding: 14px 24px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
.stat--accent .stat__num { color: var(--beacon); }
.stat__num {
  font-family: var(--f-display);
  font-size: clamp(48px, 6.4vw, 84px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  display: flex;
  align-items: flex-start;
}
.stat__sfx {
  font-size: 0.45em;
  color: var(--beacon);
  margin-left: 6px;
  padding-top: 0.22em;
  font-style: italic;
}
.stat--accent .stat__sfx { color: var(--ink-2); }
.stat__label {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  text-transform: uppercase;
  line-height: 1.5;
}

/* -- Bevis / cases ---------------------------------------- */
.bevis__head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
@media (max-width: 760px) {
  .bevis__head { grid-template-columns: 1fr; }
}
.cases {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.case {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(36px, 5vw, 64px) 0;
  border-top: 1px solid var(--line);
  align-items: start;
}
.case:last-child { border-bottom: 1px solid var(--line); }
@media (max-width: 900px) {
  .case { grid-template-columns: 1fr; gap: 24px; }
}

.case__head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: sticky;
  top: 90px;
}
.case__no {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 44px;
  color: var(--beacon);
  line-height: 0.9;
}
.case__type {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.case__title {
  font-family: var(--f-display);
  font-size: clamp(26px, 3.2vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 18px;
  max-width: 24ch;
}
.case__title em { font-style: italic; color: var(--beacon); }

.case__body {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.6;
  margin-bottom: 28px;
  max-width: 62ch;
}

.case__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 18px;
}
@media (max-width: 640px) { .case__metrics { grid-template-columns: 1fr; } }
.metric { background: var(--bg); padding: 20px 22px; }
.metric__num {
  font-family: var(--f-display);
  font-size: clamp(30px, 3.4vw, 42px);
  color: var(--beacon);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}
.metric__label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  text-transform: uppercase;
  line-height: 1.5;
}

.case__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  text-transform: uppercase;
  align-items: center;
}
.case__foot .sep {
  width: 3px; height: 3px; border-radius: 50%;
  background: var(--line-3);
}

/* Pilot */
.pilot {
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(32px, 4vw, 56px);
  background: var(--surface);
  border: 1px solid var(--beacon);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  position: relative;
  overflow: hidden;
}
.pilot::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 40%;
  height: 100%;
  background: radial-gradient(circle at right, var(--beacon-glow), transparent 70%);
  pointer-events: none;
  opacity: 0.4;
}
@media (max-width: 900px) {
  .pilot { grid-template-columns: 1fr; }
}
.pilot__body h3 {
  font-family: var(--f-display);
  font-size: clamp(24px, 2.8vw, 34px);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 10px;
  max-width: 24ch;
}
.pilot__body h3 em { font-style: italic; color: var(--beacon); }
.pilot__body p {
  color: var(--ink-2);
  font-size: 14.5px;
  max-width: 58ch;
}
.pilot > a { position: relative; z-index: 2; }

/* -- Investering / plans ---------------------------------- */
.invest__head {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(48px, 6vw, 80px);
}
@media (max-width: 900px) { .invest__head { grid-template-columns: 1fr; } }

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
@media (max-width: 1100px) { .plans { grid-template-columns: 1fr; } }

.plan {
  background: var(--bg);
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  position: relative;
}
.plan--feat {
  background: var(--surface);
}
.plan--feat::before {
  content: "";
  position: absolute;
  inset: 0;
  border: 2px solid var(--beacon);
  pointer-events: none;
  z-index: 2;
}
.plan__badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: var(--beacon);
  color: #fff;
  padding: 6px 14px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.plan__badge-star { font-size: 11px; }

.plan__head { margin-bottom: 24px; }
.plan__kicker {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  color: var(--ink-muted);
  text-transform: uppercase;
  display: block;
  margin-bottom: 12px;
}
.plan__name {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.plan__name em { font-style: italic; color: var(--beacon); }
.plan__line { color: var(--ink-2); font-size: 14.5px; max-width: 32ch; line-height: 1.5; }

.plan__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 18px 0 6px;
  border-top: 1px solid var(--line);
}
.plan__from {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.plan__amount {
  font-family: var(--f-display);
  font-size: clamp(40px, 5vw, 60px);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.plan__amount--text { font-style: italic; color: var(--beacon); font-size: clamp(32px, 4vw, 46px); }
.plan__cur {
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--ink-muted);
  font-style: italic;
}
.plan__unit {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.plan__feats {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
  flex: 1;
}
.plan__feats li {
  font-size: 14px;
  color: var(--ink-2);
  padding-left: 22px;
  position: relative;
  line-height: 1.45;
}
.plan__feats li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--beacon);
  font-family: var(--f-mono);
  font-size: 11px;
}

.plan__care {
  padding: 16px;
  border: 1px solid var(--line);
  margin-bottom: 20px;
  background: var(--bg-2);
}
.plan__care--feat {
  background: var(--beacon-dim);
  border-color: var(--beacon);
}
.plan__care-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.plan__care-top span:first-child {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  color: var(--ink);
  text-transform: uppercase;
}
.plan__care-price {
  font-family: var(--f-display);
  font-size: 18px;
  color: var(--beacon);
  font-style: italic;
}
.plan__care p {
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.5;
}
.plan__care strong { color: var(--ink); font-weight: 600; }

/* CTO callout */
.cto {
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(36px, 5vw, 64px);
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  position: relative;
}
@media (max-width: 900px) {
  .cto { grid-template-columns: 1fr; }
}
.cto__mark {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--beacon);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.cto__dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--beacon);
  box-shadow: 0 0 0 4px var(--beacon-dim);
}
@media (max-width: 900px) { .cto__mark { writing-mode: unset; transform: none; } }

.cto h3 {
  font-family: var(--f-display);
  font-size: clamp(26px, 3.2vw, 42px);
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.cto h3 em { font-style: italic; color: var(--beacon); }
.cto p {
  color: var(--ink-2);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 60ch;
}
.cto p strong { color: var(--ink); font-weight: 600; }

.plans__foot {
  margin-top: 32px;
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  text-transform: uppercase;
  text-align: center;
}

/* -- Diff + FAQ ------------------------------------------- */
.diff-faq__grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
@media (max-width: 900px) { .diff-faq__grid { grid-template-columns: 1fr; } }

.diff-faq__why {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.diff-faq__why h4 {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--beacon);
  margin-bottom: 20px;
}
.diff-faq__why ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.diff-faq__why li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.diff-faq__why .glyph {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 22px;
  color: var(--beacon);
  line-height: 1;
  text-align: center;
}

.faq {
  border-top: 1px solid var(--line);
  padding: 4px 0;
}
.faq:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-family: var(--f-display);
  font-size: clamp(18px, 1.8vw, 22px);
  line-height: 1.3;
  color: var(--ink);
  transition: color 200ms var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq:hover summary { color: var(--beacon); }
.faq__plus {
  font-family: var(--f-mono);
  font-size: 22px;
  color: var(--beacon);
  transition: transform 300ms var(--ease);
  flex-shrink: 0;
  width: 22px;
  text-align: center;
}
.faq[open] .faq__plus { transform: rotate(45deg); }
.faq p {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.6;
  padding: 0 0 22px;
  max-width: 60ch;
}
.faq p em { font-style: italic; color: var(--ink); }

/* -- CTA --------------------------------------------------- */
.cta {
  background: var(--bg-3);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  max-width: none;
  padding-left: 0;
  padding-right: 0;
}
.cta__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cta__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 50%, black, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 50%, black, transparent 80%);
  opacity: 0.8;
}
.cta__beacon {
  position: absolute;
  bottom: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle at center, var(--beacon-glow), transparent 60%);
  filter: blur(50px);
  opacity: 0.6;
}
.cta__inner {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  text-align: center;
}
.cta__title {
  margin: 0 auto;
  max-width: 18ch;
  text-align: center;
}
.cta__lede {
  margin: 28px auto 0;
  max-width: 56ch;
  text-align: center;
  color: var(--ink-2);
  font-size: clamp(16px, 1.5vw, 18.5px);
}

.booking {
  margin-top: clamp(48px, 6vw, 72px);
  max-width: 840px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: left;
  background: var(--surface);
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--line-2);
}
@media (max-width: 720px) { .booking { grid-template-columns: 1fr; } }

.field { display: flex; flex-direction: column; gap: 6px; }
.field--full { grid-column: 1 / -1; }
.field label {
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.2em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.field input,
.field select,
.field textarea {
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 12px 14px;
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 15px;
  border-radius: 2px;
  transition: border-color 180ms var(--ease);
}
[data-theme="light"] .field input,
[data-theme="light"] .field select,
[data-theme="light"] .field textarea { background: #fff; }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--beacon);
}
.field textarea { resize: vertical; font-family: var(--f-body); }

.booking__submit {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.booking__micro {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--ink-muted);
  text-transform: uppercase;
}
.booking__ok {
  grid-column: 1 / -1;
  background: var(--beacon-dim);
  border: 1px solid var(--beacon);
  padding: 14px 18px;
  color: var(--beacon);
  font-family: var(--f-mono);
  font-size: 13px;
  letter-spacing: 0.1em;
}

/* -- Footer ----------------------------------------------- */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  padding: clamp(56px, 7vw, 96px) 0 32px;
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (max-width: 900px) { .footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer__inner { grid-template-columns: 1fr; } }

.footer__brand {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.footer__mark {
  font-family: var(--f-display);
  font-size: 28px;
  color: var(--ink);
}
.footer__mark em { font-style: italic; color: var(--beacon); }
.footer__tag {
  font-family: var(--f-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-top: 4px;
}
.footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer__col h5 {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--beacon);
  margin-bottom: 8px;
}
.footer__col a,
.footer__col span {
  font-size: 14px;
  color: var(--ink-2);
  transition: color 180ms var(--ease);
}
.footer__col a:hover { color: var(--beacon); }

.footer__rule {
  max-width: var(--maxw);
  margin: 48px auto 24px;
  padding: 0 var(--gutter);
  height: 1px;
  background: var(--line);
}
.footer__bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  color: var(--ink-muted);
  text-transform: uppercase;
}

/* -- Sticky mobile CTA ----------------------------------- */
.sticky-cta {
  display: none;
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 70;
  padding: 14px 18px;
  background: var(--beacon);
  color: #fff;
  font-family: var(--f-body);
  font-weight: 500;
  font-size: 14px;
  border-radius: 2px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
@media (max-width: 720px) {
  .sticky-cta { display: flex; }
  .nav__links { display: none; }
  .nav__meta { display: none; }
  .nav__divider { display: none; }
}

/* -- Prefers reduced motion ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
