/* ==========================================================================
   Aipex design system
   Brand: navy #0B1B33, cyan #22D3EE, paper #F4F4F1 (taken from the logo mark).
   No framework — the whole site is built from the tokens and blocks below.
   ========================================================================== */

/* --- fonts ---------------------------------------------------------------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter.woff2') format('woff2');
}

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/space-grotesk.woff2') format('woff2');
}

/* --- tokens --------------------------------------------------------------- */

:root {
  --navy-950: #050A14;
  --navy-900: #071223;
  --navy-850: #0B1B33;
  --navy-800: #0E2340;
  --cyan: #22D3EE;
  --cyan-soft: #67E8F9;
  --paper: #F4F4F1;

  --bg: var(--navy-950);
  --surface: rgba(255, 255, 255, 0.032);
  --surface-2: rgba(255, 255, 255, 0.055);
  --line: rgba(244, 244, 241, 0.10);
  --line-strong: rgba(244, 244, 241, 0.20);
  --text: var(--paper);
  --muted: #9BAEC6;
  --dim: #6E8099;

  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;

  --fs-display: clamp(2.6rem, 1.1rem + 6vw, 5.5rem);
  --fs-h1: clamp(2.1rem, 1.25rem + 3.6vw, 4rem);
  --fs-h2: clamp(1.8rem, 1.3rem + 2.1vw, 2.85rem);
  --fs-h3: clamp(1.2rem, 1.05rem + 0.7vw, 1.5rem);
  --fs-lead: clamp(1.05rem, 0.98rem + 0.42vw, 1.3rem);

  --wrap: 1200px;
  --wrap-narrow: 760px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --section: clamp(4.25rem, 8.5vw, 8rem);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --- reset ---------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

ul, ol { list-style: none; padding: 0; }

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

::selection { background: var(--cyan); color: var(--navy-950); }

/* --- typography ----------------------------------------------------------- */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

h3, h4 { line-height: 1.2; letter-spacing: -0.02em; }

.display { font-size: var(--fs-display); }
.h1 { font-size: var(--fs-h1); }
.h2 { font-size: var(--fs-h2); }
.h3 { font-size: var(--fs-h3); }

p { text-wrap: pretty; }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.55;
  color: var(--muted);
}

.muted { color: var(--muted); }
.dim { color: var(--dim); }
.accent { color: var(--cyan); }
.small { font-size: 0.9375rem; }

/* A thin cyan wash used on one or two words of a headline. */
.glow {
  background: linear-gradient(100deg, var(--cyan) 0%, var(--cyan-soft) 55%, #A5F3FC 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Section label: a dash followed by small caps. */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
}

.eyebrow::before {
  content: '';
  width: 1.75rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

/* --- layout --------------------------------------------------------------- */

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

.wrap-narrow { max-width: var(--wrap-narrow); }

.section { padding-block: var(--section); }
.section-tight { padding-block: calc(var(--section) * 0.6); }

.section-head { max-width: 62ch; }
.section-head .eyebrow { margin-bottom: 1.25rem; }
.section-head h2 { margin-bottom: 1.15rem; }

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 13.5rem), 1fr)); }

/* --- ambient background --------------------------------------------------- */

/* Two soft colour fields plus a fading blueprint grid. Replaces the stock
   photography the old site leaned on, and costs nothing to ship. */
.aura {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 55%, transparent 100%);
}

.aura::before,
.aura::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}

.aura::before {
  width: min(60rem, 90vw);
  aspect-ratio: 1;
  top: -30%;
  right: -15%;
  background: radial-gradient(circle, rgba(34, 211, 238, 0.20), transparent 68%);
}

.aura::after {
  width: min(46rem, 80vw);
  aspect-ratio: 1;
  bottom: -35%;
  left: -18%;
  background: radial-gradient(circle, rgba(59, 96, 214, 0.20), transparent 68%);
}

.hero-art {
  position: absolute;
  top: 12%;
  right: -8%;
  width: min(48rem, 54vw);
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

@media (max-width: 1023px) {
  .hero-art { display: none; }
}

.grid-lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(244, 244, 241, 0.055) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(244, 244, 241, 0.055) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 10%, transparent 75%);
}

/* --- buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
              border-color 0.25s var(--ease), box-shadow 0.25s var(--ease), color 0.25s var(--ease);
}

.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn svg { flex: none; transition: transform 0.25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }

.btn-primary {
  background: var(--cyan);
  color: var(--navy-950);
  font-weight: 700;
  box-shadow: 0 8px 30px -10px rgba(34, 211, 238, 0.65);
}

.btn-primary:hover {
  background: var(--cyan-soft);
  box-shadow: 0 14px 38px -10px rgba(34, 211, 238, 0.8);
}

.btn-ghost {
  border-color: var(--line-strong);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--cyan);
  background: rgba(34, 211, 238, 0.08);
  color: var(--cyan);
}

.btn-lg { padding: 1rem 2rem; font-size: 1.02rem; }

/* Text link with a rule that wipes in on hover. */
.link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--cyan);
  background-image: linear-gradient(var(--cyan), var(--cyan));
  background-repeat: no-repeat;
  background-position: 0 100%;
  background-size: 0% 1px;
  transition: background-size 0.35s var(--ease);
}

.link:hover { background-size: 100% 1px; }
.link svg { transition: transform 0.3s var(--ease); }
.link:hover svg { transform: translateX(4px); }

/* --- chips ---------------------------------------------------------------- */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.38rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}

.chip-dot::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--cyan);
  flex: none;
}

/* --- navigation ----------------------------------------------------------- */

.skip {
  position: absolute;
  left: 50%;
  top: 0.5rem;
  translate: -50% -200%;
  z-index: 100;
  padding: 0.7rem 1.2rem;
  border-radius: 999px;
  background: var(--cyan);
  color: var(--navy-950);
  font-weight: 600;
  transition: translate 0.2s var(--ease);
}

.skip:focus { translate: -50% 0; }

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease);
}

.nav.is-stuck {
  background: rgba(5, 10, 20, 0.78);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--line);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.75rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-right: auto;
}

/* The wordmark carries width/height attributes; height:auto lets it keep its
   aspect ratio if the global svg max-width ever shrinks it. */
.logo { flex: none; height: auto; transition: opacity 0.25s var(--ease); }

.brand:hover .logo,
.footer-about a:hover .logo { opacity: 0.78; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-link {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.22s var(--ease), background-color 0.22s var(--ease);
}

.nav-link:hover { color: var(--text); background: var(--surface-2); }

.nav-link[aria-current='page'] { color: var(--text); }

.nav-link[aria-current='page']::after {
  content: '';
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.15rem;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
}

.nav-cta { margin-left: 0.5rem; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: background-color 0.2s linear;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--text);
  border-radius: inherit;
  transition: transform 0.3s var(--ease);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded='true'] span { background: transparent; }
.nav-toggle[aria-expanded='true'] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded='true'] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: fixed;
    inset: 4.75rem 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 1rem var(--gutter) 1.75rem;
    background: rgba(5, 10, 20, 0.97);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    opacity: 0;
    visibility: hidden;
    translate: 0 -0.75rem;
    transition: opacity 0.25s var(--ease), translate 0.25s var(--ease), visibility 0.25s;
  }

  .nav-links.is-open { opacity: 1; visibility: visible; translate: 0 0; }

  .nav-link { padding: 0.85rem 0.5rem; font-size: 1.05rem; border-radius: var(--r-sm); }
  .nav-link[aria-current='page']::after { display: none; }
  .nav-link[aria-current='page'] { color: var(--cyan); }

  .nav-cta { display: flex; width: 100%; margin: 0.75rem 0 0; justify-content: center; }
}

/* --- hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(6.5rem, 10vh + 4rem, 11rem) var(--section);
  isolation: isolate;
  overflow: hidden;
}

.hero > .wrap { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.42rem 0.5rem 0.42rem 0.85rem;
  margin-bottom: 1.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.85rem;
  color: var(--muted);
}

.hero-badge b {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.14);
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 600;
}

.hero h1 { margin-bottom: 1.6rem; }

.hero .lead { max-width: 54ch; }

.hero-heading { margin-block: 1.25rem 1.5rem; }
.hero-lead { max-width: 58ch; }
.hero-chips { margin-top: 2.25rem; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.5rem;
}

@media (max-width: 520px) {
  .hero-actions .btn,
  .cta-actions .btn { flex: 1 1 100%; }
}

/* --- cards ---------------------------------------------------------------- */

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
  transition: border-color 0.35s var(--ease), transform 0.35s var(--ease),
              background-color 0.35s var(--ease);
}

/* Pointer-tracked highlight; the coordinates come from site.js. */
.card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(20rem circle at var(--mx, 50%) var(--my, 0%),
              rgba(34, 211, 238, 0.10), transparent 60%);
  transition: opacity 0.35s var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
  background: var(--surface-2);
  transform: translateY(-4px);
}

.card:hover::before { opacity: 1; }

.card > * { position: relative; }

.card :is(h2, h3) { margin-bottom: 0.65rem; }
.card p { color: var(--muted); }
.card .link { margin-top: auto; padding-top: 1.5rem; align-self: flex-start; }

/* A single wide card carrying one idea rather than a grid item. */
.card-explainer {
  border-radius: var(--r-xl);
  background: linear-gradient(150deg, rgba(34, 211, 238, 0.07), transparent 55%), var(--surface);
}

.card-explainer:hover { transform: none; }

.card-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  margin-bottom: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(34, 211, 238, 0.16), rgba(34, 211, 238, 0.02));
  color: var(--cyan);
  transition: transform 0.4s var(--ease), border-color 0.35s var(--ease);
}

.card:hover .card-icon { transform: translateY(-2px) scale(1.04); border-color: rgba(34, 211, 238, 0.4); }

/* --- feature list --------------------------------------------------------- */

.ticks { display: grid; gap: 0.7rem; margin-top: 1.5rem; }

.ticks li {
  display: grid;
  grid-template-columns: 1.1rem 1fr;
  gap: 0.7rem;
  align-items: start;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.ticks li::before {
  content: '';
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.22rem;
  border-radius: 50%;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%2322D3EE' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 6.2 5 8.6 9.5 3.6'/%3E%3C/svg%3E") center / 11px no-repeat,
    rgba(34, 211, 238, 0.12);
}

/* --- numbered detail rows ------------------------------------------------- */

.rows { border-top: 1px solid var(--line); }

.row-item {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.row-num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--cyan);
  padding-top: 0.5rem;
}

.row-body h3 { margin-bottom: 0.8rem; }
.row-body p { color: var(--muted); max-width: 62ch; }
.row-body .chips { margin-top: 1.35rem; }

@media (max-width: 640px) {
  .row-item { grid-template-columns: 1fr; gap: 0.75rem; }
  .row-num { padding-top: 0; }
}

/* --- stats ---------------------------------------------------------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  overflow: hidden;
}

.stat {
  padding: clamp(1.75rem, 3.5vw, 2.5rem);
  border-right: 1px solid var(--line);
}

.stat:last-child { border-right: 0; }

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 1.4rem + 3.2vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.045em;
  margin-bottom: 0.65rem;
}

.stat-label { color: var(--muted); font-size: 0.95rem; line-height: 1.45; }

@media (max-width: 720px) {
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}

/* --- steps ---------------------------------------------------------------- */

.steps {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  counter-reset: step;
}

.step {
  position: relative;
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 1.1rem;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--cyan);
}

.step h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* --- price cards ---------------------------------------------------------- */

.price {
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}

.price:hover { border-color: var(--line-strong); transform: translateY(-3px); }

.price-featured {
  border-color: rgba(34, 211, 238, 0.4);
  background: linear-gradient(165deg, rgba(34, 211, 238, 0.09), var(--surface) 55%);
}

.price-kicker {
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.1rem;
}

.price .price-value {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 1.4rem + 2vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price .price-value small {
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--dim);
}

.price h3 { font-size: 1.1rem; margin-block: 1.1rem 0.5rem; }
.price p { color: var(--muted); font-size: 0.95rem; }

/* --- quote ---------------------------------------------------------------- */

.quote {
  position: relative;
  padding: clamp(2rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: linear-gradient(160deg, rgba(34, 211, 238, 0.07), transparent 60%), var(--surface);
}

.quote blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 1rem + 1.5vw, 2rem);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.quote figcaption {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.avatar {
  width: 44px;
  height: 44px;
  flex: none;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.1);
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: -0.02em;
}

/* --- call to action band -------------------------------------------------- */

.cta {
  position: relative;
  overflow: hidden;
  padding: clamp(2.5rem, 6vw, 4.5rem);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 140% at 100% 0%, rgba(34, 211, 238, 0.18), transparent 60%),
    radial-gradient(70% 120% at 0% 100%, rgba(59, 96, 214, 0.18), transparent 60%),
    var(--navy-900);
  text-align: center;
}

.cta > * { position: relative; z-index: 1; }
.cta h2 { margin-bottom: 1rem; }
.cta .lead { margin-inline: auto; max-width: 48ch; }

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
  margin-top: 2.25rem;
}

/* --- contact -------------------------------------------------------------- */

.contact-grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
}

.contact-card {
  padding: clamp(1.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}

.contact-card h2,
.contact-card h3 {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.9rem;
}

.contact-big {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1rem + 0.9vw, 1.5rem);
  font-weight: 500;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

a.contact-big { transition: color 0.25s var(--ease); }
a.contact-big:hover { color: var(--cyan); }

.contact-card address { font-style: normal; color: var(--muted); }

/* --- prose (privacy policy) ----------------------------------------------- */

.prose { max-width: 72ch; color: var(--muted); }
.prose > * + * { margin-top: 1.1rem; }

.prose h2 {
  font-size: clamp(1.35rem, 1.1rem + 1vw, 1.75rem);
  color: var(--text);
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

.prose h3 {
  font-size: 1.1rem;
  color: var(--text);
  margin-top: 2rem;
}

.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 600; }

.prose ul { display: grid; gap: 0.55rem; padding-left: 1.1rem; list-style: disc; }
.prose li::marker { color: var(--cyan); }

.prose address {
  font-style: normal;
  padding: 1.25rem 1.5rem;
  border-left: 2px solid var(--cyan);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--surface);
}

/* --- footer --------------------------------------------------------------- */

.footer {
  border-top: 1px solid var(--line);
  background: var(--navy-900);
}

/* The `min(100%, …)` floor lets every column collapse to full width on a phone;
   a plain 9rem minimum would force four tracks and push the page sideways. */
.footer-top {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr));
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.footer-about { grid-column: 1 / -1; }

@media (min-width: 900px) {
  .footer-top { grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr)); }
  .footer-about { grid-column: auto; }
}

.footer-about p { color: var(--muted); font-size: 0.95rem; margin-top: 1.1rem; max-width: 34ch; }

.footer-col h2 {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 1.25rem;
}

.footer-links { display: grid; gap: 0.7rem; }

.footer-links a {
  color: var(--muted);
  font-size: 0.95rem;
  transition: color 0.22s var(--ease);
}

.footer-links a:hover { color: var(--cyan); }

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  padding-block: 1.75rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-size: 0.85rem;
}

/* --- scroll reveal -------------------------------------------------------- */

[data-reveal] {
  opacity: 0;
  translate: 0 1.25rem;
  transition: opacity 0.7s var(--ease), translate 0.7s var(--ease);
  transition-delay: var(--delay, 0ms);
}

[data-reveal].is-in { opacity: 1; translate: 0 0; }

/* Without JS nothing may stay hidden, so the reveal only arms itself once
   site.js has flipped the root class. */
html:not(.js) [data-reveal] { opacity: 1; translate: 0 0; }

/* --- cookie banner -------------------------------------------------------- */

/* The plugin ships its own light theme; these are its documented hooks, repointed
   at the brand palette so the banner does not look bolted on. */
.cc_div {
  --cc-font-family: 'Inter', system-ui, sans-serif;
  --cc-bg: #0A1425;
  --cc-text: #F4F4F1;
  --cc-border-radius: 16px;
  --cc-btn-border-radius: 999px;
  --cc-btn-primary-bg: #22D3EE;
  --cc-btn-primary-text: #050A14;
  --cc-btn-primary-hover-bg: #67E8F9;
  --cc-btn-primary-hover-text: #050A14;
  --cc-btn-secondary-bg: rgba(255, 255, 255, 0.07);
  --cc-btn-secondary-text: #F4F4F1;
  --cc-btn-secondary-hover-bg: rgba(255, 255, 255, 0.13);
  --cc-btn-secondary-hover-text: #F4F4F1;
  --cc-toggle-bg-off: #35455C;
  --cc-toggle-bg-on: #22D3EE;
  --cc-toggle-bg-readonly: #22384F;
  --cc-toggle-knob-bg: #050A14;
  --cc-toggle-knob-icon-color: #050A14;
  --cc-block-text: #9BAEC6;
  --cc-cookie-category-block-bg: rgba(255, 255, 255, 0.04);
  --cc-cookie-category-block-bg-hover: rgba(255, 255, 255, 0.07);
  --cc-section-border: rgba(244, 244, 241, 0.10);
  --cc-cookie-table-border: rgba(244, 244, 241, 0.10);
  --cc-overlay-bg: #050A14;
  --cc-webkit-scrollbar-bg: #35455C;
  --cc-webkit-scrollbar-bg-hover: #22D3EE;
}

.cc_div #c-bn,
.cc_div #s-all-bn,
.cc_div .c-bn { font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 500; }

.cc_div #cm,
.cc_div #s-inr { border: 1px solid rgba(244, 244, 241, 0.10); }

.cc_div #c-txt,
.cc_div .p { color: #9BAEC6; }

.cc_div a { color: #22D3EE; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] { opacity: 1; translate: 0 0; }
}
