/* ============================================================
   1AI Cloud — x.ai-inspired design system
   See ../../DESIGN.md for token provenance.
   ============================================================ */

:root {
  /* canvas */
  --bg: #0a0a0a;
  --bg-elev: #141414;
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);
  --surface-3: rgba(255, 255, 255, 0.10);
  --border: rgba(255, 255, 255, 0.08);
  --border-hi: rgba(255, 255, 255, 0.16);

  /* ink */
  --text: #ffffff;
  --text-2: #a1a1a1;
  --text-3: #6e6e6e;

  /* accent — ember. one colour, used sparingly. */
  --accent: #ff5c2b;
  --accent-soft: rgba(255, 92, 43, 0.12);
  --accent-line: rgba(255, 92, 43, 0.35);

  /* semantic, for status dots only */
  --ok: #4ade80;

  /* radii */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 9999px;

  /* type */
  --font-display: 'Geist', 'Geist Fallback', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-body: 'Geist', 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, monospace;

  /* layout */
  --container: 1200px;
  --gutter: 24px;
  --section: 160px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

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

* { margin: 0; padding: 0; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* the one atmospheric element: a barely-there radial bloom behind the hero,
   plus a fixed hairline grid. keeps the canvas flat but not dead. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 88px 88px;
  mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 100% 60% at 50% 0%, #000 0%, transparent 75%);
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

::selection { background: var(--accent); color: #0a0a0a; }

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

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

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

.section { padding-block: var(--section); position: relative; z-index: 1; }
.section--tight { padding-block: calc(var(--section) * 0.6); }

.rule {
  height: 1px;
  background: var(--border);
  border: 0;
}

/* ---------------------------------------------- type */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

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

.h-hero {
  font-size: clamp(2.75rem, 7vw, 5.5rem);
  letter-spacing: -0.038em;
  line-height: 0.98;
}

.h-section {
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  letter-spacing: -0.032em;
}

.h-card { font-size: 1.1875rem; letter-spacing: -0.02em; }

.lead {
  font-size: clamp(1rem, 1.4vw, 1.1875rem);
  color: var(--text-2);
  line-height: 1.6;
  max-width: 62ch;
  text-wrap: pretty;
}

.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.mono { font-family: var(--font-mono); }

.section-head {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 72px;
}
.section-head--center { align-items: center; text-align: center; }
.section-head--center .lead { text-align: center; }

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding-inline: 24px;
  border-radius: var(--r-pill);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease),
              color 0.22s var(--ease), transform 0.22s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--primary { background: #fff; color: #0a0a0a; }
.btn--primary:hover { background: #d9d9d9; }

.btn--ghost {
  border: 1px solid var(--border-hi);
  color: var(--text);
  background: transparent;
}
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.28); }

.btn--sm { height: 38px; padding-inline: 18px; font-size: 0.875rem; }
.btn--lg { height: 54px; padding-inline: 32px; font-size: 1rem; }

.btn__arrow { transition: transform 0.22s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* ---------------------------------------------- nav */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: 72px;
  display: flex;
  align-items: center;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(10, 10, 10, 0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--border);
}

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

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.0625rem;
  letter-spacing: -0.03em;
  flex-shrink: 0;
}
/* cloud mark — client-supplied artwork (assets/logo-cloud.svg), viewBox cropped to
   the drawn bounds so it isn't dwarfed by the original file's padding.
   Aspect ratio 151.8 : 87.5 — set width only and let height follow. */
.logo__mark {
  width: 32px;
  flex-shrink: 0;
  color: var(--text);
  display: block;
  transition: color 0.25s var(--ease), transform 0.35s var(--ease);
}
.logo__mark svg { width: 100%; height: auto; display: block; }
.logo:hover .logo__mark { color: var(--accent); transform: translateY(-1px); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin-right: auto;
}
.nav__links a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--r-sm);
  font-size: 0.9375rem;
  color: var(--text-2);
  transition: color 0.2s, background 0.2s;
}
.nav__links a:hover { color: var(--text); background: var(--surface-2); }

.nav__actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* matches .btn--sm metrics so the three nav pills line up */
.lang-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding-inline: 18px;
  border: 1px solid var(--border-hi);
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: background 0.22s var(--ease), border-color 0.22s var(--ease);
}
.lang-switch:hover { background: var(--surface-2); border-color: rgba(255, 255, 255, 0.28); }

.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  place-items: center;
}
.nav__burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  position: relative;
  transition: transform 0.25s var(--ease), background 0.25s;
}
.nav__burger span::before,
.nav__burger span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.5px;
  background: var(--text);
  transition: transform 0.25s var(--ease);
}
.nav__burger span::before { top: -6px; }
.nav__burger span::after { top: 6px; }
.nav__burger.is-open span { background: transparent; }
.nav__burger.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav__burger.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

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

.hero {
  position: relative;
  padding-top: 168px;
  padding-bottom: 96px;
  text-align: center;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  top: -220px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 620px;
  background: radial-gradient(circle, rgba(255, 92, 43, 0.10) 0%, transparent 62%);
  pointer-events: none;
  filter: blur(20px);
}

.hero__inner { position: relative; z-index: 1; }

.announce {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 6px 0 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: var(--r-pill);
  font-size: 0.875rem;
  color: var(--text-2);
  transition: border-color 0.22s, background 0.22s;
}
.announce:hover { border-color: var(--border-hi); background: var(--surface-2); }
.announce__tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding-inline: 9px;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}
.announce strong { color: var(--text); font-weight: 500; }
.announce__go {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  font-size: 0.6875rem;
  color: var(--text);
}

.hero h1 { margin-top: 34px; }

/* the signature: a cycling word underlined by a thin rule */
.morph {
  display: inline-block;
  position: relative;
  min-width: 1ch;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 2px;
}
.morph__ch {
  display: inline-block;
  animation: chIn 0.42s var(--ease) both;
}
@keyframes chIn {
  from { opacity: 0; transform: translateY(0.32em) rotateX(-55deg); }
  to { opacity: 1; transform: none; }
}

.hero .lead { margin: 28px auto 0; }

.hero__cta {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 40px;
}

.hero__note {
  margin-top: 22px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  letter-spacing: 0.02em;
}

/* ---------------------------------------------- terminal / code card */

.term {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-elev);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}

.term__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding-inline: 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}
.term__dots { display: flex; gap: 6px; }
.term__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-3);
}
.term__name {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  margin-left: 6px;
}
.term__meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.dot-ok {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.14);
}

.term__body {
  margin: 0;
  padding: 22px 24px 26px;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.85;
  color: #d6d6d6;
  overflow-x: auto;
  tab-size: 2;
}
.term__body code { font: inherit; }

/* syntax tints — muted, never rainbow */
.t-kw { color: #c792ea; }
.t-fn { color: #82aaff; }
.t-str { color: #a5d6a7; }
.t-num { color: #f7c873; }
.t-com { color: #5c5c5c; font-style: italic; }
.t-var { color: #e6e6e6; }

.hero__term {
  max-width: 760px;
  margin: 72px auto 0;
}

/* code tabs */
.tabs { display: flex; gap: 4px; margin-left: 8px; }
.tab {
  height: 28px;
  padding-inline: 12px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-3);
  transition: background 0.2s, color 0.2s;
}
.tab:hover { color: var(--text-2); }
.tab.is-active { background: var(--surface-3); color: var(--text); }

/* ---------------------------------------------- provider marquee */

.marquee {
  border-block: 1px solid var(--border);
  padding-block: 26px;
  overflow: hidden;
  position: relative;
  z-index: 1;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  gap: 56px;
  width: max-content;
  animation: slide 42s linear infinite;
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes slide { to { transform: translateX(-50%); } }
.marquee__item {
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--text-3);
  white-space: nowrap;
  transition: color 0.25s;
}
.marquee__item:hover { color: var(--text); }

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

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.stat {
  padding: 34px 28px;
  border-right: 1px solid var(--border);
  transition: background 0.25s;
}
.stat:last-child { border-right: 0; }
.stat:hover { background: var(--surface); }
.stat__n {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.4vw, 2.625rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat__l {
  margin-top: 10px;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

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

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

.card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  padding: 30px;
  transition: background 0.28s var(--ease), border-color 0.28s var(--ease), transform 0.28s var(--ease);
}
.card:hover {
  background: var(--surface-2);
  border-color: var(--border-hi);
  transform: translateY(-3px);
}
.card__ico {
  width: 40px;
  height: 40px;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
  background: var(--surface-2);
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  color: var(--text);
}
.card__ico svg { width: 19px; height: 19px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 0.9375rem; }

.card--wide { grid-column: span 2; }

/* feature card with a mono footnote */
.card__foot {
  margin-top: 22px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
  color: var(--text-3);
}

/* ---------------------------------------------- model catalogue */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.chip {
  height: 34px;
  padding-inline: 15px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 0.8125rem;
  color: var(--text-2);
  transition: all 0.2s var(--ease);
}
.chip:hover { border-color: var(--border-hi); color: var(--text); }
.chip.is-active { background: #fff; color: #0a0a0a; border-color: #fff; }

.mtools {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}
.search,
.select {
  height: 44px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--text);
  padding-inline: 16px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  transition: border-color 0.2s, background 0.2s;
}
.search { flex: 1; min-width: 0; }
.search::placeholder { color: var(--text-3); }
.search:hover, .select:hover { border-color: var(--border-hi); }
.search:focus, .select:focus { outline: none; border-color: var(--accent-line); background: var(--surface-2); }
.select {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  cursor: pointer;
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236e6e6e' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.select option { background: var(--bg-elev); color: var(--text); }

/* ---------------------------------------------- long-form doc body */

.doc { max-width: 860px; }
.doc h2 { margin-top: 56px; margin-bottom: 12px; }
.doc h2:first-child { margin-top: 0; }
.doc > p { margin-bottom: 18px; }
.doc .term { margin-bottom: 8px; }
.doc a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-hi); }
.doc a:hover { text-decoration-color: var(--accent); }

.doc-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.doc-list li {
  position: relative;
  padding-left: 26px;
  color: var(--text-2);
  font-size: 0.9375rem;
}
.doc-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.mtable {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.mrow {
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) 0.9fr 1fr 1fr 0.9fr;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}
.mrow:last-child { border-bottom: 0; }
.mrow:not(.mrow--head):hover { background: var(--surface); }
.mrow--head {
  background: rgba(255, 255, 255, 0.02);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.mrow__name { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mrow__name b { font-weight: 500; font-size: 0.9375rem; letter-spacing: -0.015em; }
.mrow__id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mrow__cell { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--text-2); }
.tag {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding-inline: 9px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface-2);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-2);
  white-space: nowrap;
}
.tag--accent { border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }

.empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-3);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
}

/* ---------------------------------------------- pricing */

.pgroup {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 16px;
  background: var(--surface);
}
.pgroup__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 24px;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s;
}
.pgroup__head::-webkit-details-marker { display: none; }
.pgroup__head:hover { background: var(--surface-2); }
.pgroup__head h3 { font-size: 1.0625rem; }
.pgroup__sub { font-size: 0.8125rem; color: var(--text-3); }
.pgroup__count { margin-left: auto; }
.pgroup__chev {
  transition: transform 0.25s var(--ease);
  color: var(--text-3);
  flex-shrink: 0;
}
.pgroup[open] .pgroup__chev { transform: rotate(180deg); }

.prow {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) 1fr 1fr;
  gap: 16px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  align-items: start;
}
.prow--head {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
  background: rgba(255, 255, 255, 0.02);
}
.prow b { font-weight: 500; font-size: 0.9375rem; display: block; letter-spacing: -0.015em; }
.prow .mrow__id { margin-top: 3px; }
.prow__v { font-family: var(--font-mono); font-size: 0.875rem; }
.prow__note { display: block; font-size: 0.6875rem; color: var(--text-3); margin-top: 3px; line-height: 1.5; }

.psub {
  padding: 14px 24px 6px;
  border-top: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}

.pfoot {
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-3);
}
.pfoot a { color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.pfoot a:hover { color: var(--text); }

.pnotice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 20px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  font-size: 0.8125rem;
  color: var(--text-2);
  margin-bottom: 28px;
}
.pnotice svg { flex-shrink: 0; margin-top: 2px; color: var(--text-3); }

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

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: 16px;
}
.step {
  padding: 30px 26px;
  border-right: 1px solid var(--border);
  transition: background 0.25s;
}
.step:last-child { border-right: 0; }
.step:hover { background: var(--surface); }
.step__n {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 18px;
}
.step h3 { font-size: 1.0625rem; margin-bottom: 8px; }
.step p { font-size: 0.875rem; color: var(--text-2); }

/* ---------------------------------------------- trust */

.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.trust__i {
  padding: 30px 28px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s;
}
.trust__i:hover { background: var(--surface); }
.trust__i:nth-child(3n) { border-right: 0; }
.trust__i:nth-last-child(-n+3) { border-bottom: 0; }
.trust__i h3 { font-size: 1rem; margin-bottom: 8px; display: flex; align-items: center; gap: 9px; }
.trust__i h3 svg { width: 16px; height: 16px; color: var(--text-3); flex-shrink: 0; }
.trust__i p { font-size: 0.875rem; color: var(--text-2); }

/* status strip */
.status {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 18px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-2);
  margin-top: 16px;
}
.status__sep { color: var(--text-3); }

/* ---------------------------------------------- faq */

.faq { border-top: 1px solid var(--border); }
.faq__i { border-bottom: 1px solid var(--border); }
.faq__q {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 26px 4px;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  cursor: pointer;
  list-style: none;
  transition: color 0.2s;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--text-2); }
.faq__q span:first-child { flex: 1; }
.faq__chev { transition: transform 0.25s var(--ease); color: var(--text-3); flex-shrink: 0; }
.faq__i[open] .faq__chev { transform: rotate(45deg); }
.faq__a {
  padding: 0 60px 28px 4px;
  color: var(--text-2);
  font-size: 0.9375rem;
  max-width: 78ch;
}

/* ---------------------------------------------- cta band */

.cta {
  position: relative;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 84px 40px;
  text-align: center;
  overflow: hidden;
  background: var(--surface);
}
.cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 100% at 50% 100%, rgba(255, 92, 43, 0.13), transparent 70%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta .lead { margin: 20px auto 0; }
.cta__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 36px; }

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

.footer { border-top: 1px solid var(--border); padding-block: 72px 40px; position: relative; z-index: 1; }
.footer__top {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 56px;
}
.footer__blurb { color: var(--text-2); font-size: 0.9375rem; margin-top: 18px; max-width: 34ch; }
.footer h4 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 18px;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.footer ul a { color: var(--text-2); font-size: 0.9375rem; transition: color 0.2s; }
.footer ul a:hover { color: var(--text); }
.footer__bot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--text-3);
}
.footer__bot .mono { font-size: 0.75rem; }

/* ---------------------------------------------- modal */

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s var(--ease), visibility 0.25s;
}
.modal.is-open { opacity: 1; visibility: visible; }
.modal__box {
  width: min(520px, 100%);
  border: 1px solid var(--border-hi);
  border-radius: var(--r-xl);
  background: var(--bg-elev);
  padding: 32px;
  transform: translateY(14px) scale(0.98);
  transition: transform 0.3s var(--ease);
  max-height: 86vh;
  overflow-y: auto;
}
.modal.is-open .modal__box { transform: none; }
.modal__head { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 24px; }
.modal__head h3 { font-size: 1.25rem; }
.modal__head p { font-size: 0.875rem; color: var(--text-2); margin-top: 6px; }
.modal__x {
  margin-left: auto;
  width: 32px;
  height: 32px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  color: var(--text-3);
  flex-shrink: 0;
  transition: background 0.2s, color 0.2s;
}
.modal__x:hover { background: var(--surface-2); color: var(--text); }

.contact-list { display: flex; flex-direction: column; gap: 10px; }
.contact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: background 0.2s, border-color 0.2s;
}
.contact:hover { background: var(--surface-2); border-color: var(--border-hi); }
.contact__av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface-3);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  flex-shrink: 0;
}
.contact__n { font-weight: 500; font-size: 0.9375rem; }
.contact__h { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-3); }
.contact__go { margin-left: auto; color: var(--text-3); }

.qr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.qr {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--surface);
  padding: 14px;
  text-align: center;
}
.qr__img {
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  background:
    repeating-conic-gradient(rgba(255,255,255,0.10) 0% 25%, transparent 0% 50%) 50% / 12px 12px;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-3);
  margin-bottom: 10px;
}
.qr__n { font-size: 0.8125rem; }

/* floating contact dock */
.dock {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.dock button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding-inline: 16px;
  border: 1px solid var(--border-hi);
  border-radius: var(--r-pill);
  background: rgba(20, 20, 20, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 0.8125rem;
  transition: background 0.2s, border-color 0.2s;
}
.dock button:hover { background: var(--bg-elev); border-color: rgba(255, 255, 255, 0.3); }

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

.reveal { opacity: 0; transform: translateY(24px); }
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal[data-d="1"].is-in { transition-delay: 0.07s; }
.reveal[data-d="2"].is-in { transition-delay: 0.14s; }
.reveal[data-d="3"].is-in { transition-delay: 0.21s; }
.reveal[data-d="4"].is-in { transition-delay: 0.28s; }

/* hero load stagger */
.rise { animation: rise 0.85s var(--ease) both; }
.rise[data-d="1"] { animation-delay: 0.08s; }
.rise[data-d="2"] { animation-delay: 0.16s; }
.rise[data-d="3"] { animation-delay: 0.26s; }
.rise[data-d="4"] { animation-delay: 0.36s; }
.rise[data-d="5"] { animation-delay: 0.48s; }
@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* ---------------------------------------------- responsive */

@media (max-width: 1024px) {
  :root { --section: 112px; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr; gap: 40px; }
  /* .nav__links carried the margin-right:auto that pushed the actions right —
     hiding it means .nav__actions has to claim that space itself */
  .nav__links { display: none; }
  .nav__actions { margin-left: auto; }
  .nav__burger { display: grid; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust__i:nth-child(3n) { border-right: 1px solid var(--border); }
  .trust__i:nth-child(2n) { border-right: 0; }
  .trust__i:nth-last-child(-n+3) { border-bottom: 1px solid var(--border); }
  .trust__i:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 768px) {
  :root { --section: 88px; --gutter: 20px; }
  /* nav bar keeps only the primary CTA + burger; the rest lives in the drawer */
  .nav__actions .lang-switch,
  .nav__actions .btn--ghost { display: none; }
  /* tight budget on a 360px phone: logo + CTA + burger + gutters must all fit */
  .nav__inner { gap: 12px; }
  .nav__actions { gap: 8px; }
  .logo { font-size: 1rem; min-width: 0; }
  .logo__mark { width: 28px; }
  .nav__actions .btn--sm { padding-inline: 15px; }
  .hero { padding-top: 132px; padding-bottom: 64px; }
  .stats, .steps { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .step:nth-child(2n) { border-right: 0; }
  .step:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .grid--3, .grid--4, .grid--2 { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .mrow {
    grid-template-columns: 1fr 1fr;
    row-gap: 10px;
    padding: 16px 18px;
  }
  .mrow--head { display: none; }
  .mrow__name { grid-column: 1 / -1; }
  .mrow__cell::before {
    content: attr(data-l);
    display: block;
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
    margin-bottom: 2px;
  }
  .prow { grid-template-columns: 1fr; gap: 8px; }
  .prow--head { display: none; }
  .cta { padding: 56px 24px; }
  .faq__a { padding-right: 4px; }
  .qr-grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; }
  .term__body { font-size: 0.75rem; }
  .term__meta { display: none; }
  .term__bar { padding-inline: 12px; }
  .tabs { margin-left: auto; }
  /* the dock floats over content — keep its footprint small on small screens */
  .dock { right: 12px; bottom: 12px; gap: 6px; }
  .dock button { height: 32px; padding-inline: 12px; font-size: 0.75rem; }
}

@media (max-width: 420px) {
  .stats, .steps { grid-template-columns: 1fr; }
  .stat, .step { border-right: 0; border-bottom: 1px solid var(--border); }
  .stat:last-child, .step:last-child { border-bottom: 0; }
}

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

/* mobile nav drawer */
.drawer {
  position: fixed;
  inset: 72px 0 auto 0;
  z-index: 99;
  background: rgba(10, 10, 10, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 16px var(--gutter) 26px;
  display: none;
}
.drawer.is-open { display: block; }
.drawer ul { list-style: none; display: flex; flex-direction: column; }
.drawer ul a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  font-size: 1.0625rem;
  color: var(--text-2);
}
.drawer ul a:hover { color: var(--text); }
.drawer__cta { display: flex; gap: 10px; margin-top: 22px; }
.drawer__cta .btn { flex: 1; }
