/* ==========================================================================
   Domaind — design tokens + components
   Art direction: "Night grid" — deep ink blue surfaces, warm signal amber
   accent taken from city lights, mono type for domain names.
   ========================================================================== */

:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing */
  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.25rem;  --space-6: 1.5rem;
  --space-8: 2rem;     --space-10: 2.5rem;  --space-12: 3rem;
  --space-16: 4rem;    --space-20: 5rem;    --space-24: 6rem;
  --space-32: 8rem;

  /* Radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1.125rem;
  --radius-full: 9999px;

  --transition-interactive: 200ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 980px;
  --content-wide: 1240px;

  /* Fonts */
  --font-display: 'Clash Display', 'Cabinet Grotesk', Georgia, serif;
  --font-body: 'Satoshi', 'Inter', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', monospace;

  /* Fixed dark-band palette (hero + footer stay dark in both themes) */
  --ink-900: #05090f;
  --ink-800: #0a111c;
  --ink-700: #101b2b;
  --ink-600: #17263b;
  --on-ink: #eef2f8;
  --on-ink-muted: #98a5b8;
  --on-ink-faint: #6b7789;
}

:root,
[data-theme='light'] {
  --color-bg: #f5f6f8;
  --color-surface: #ffffff;
  --color-surface-2: #fbfcfd;
  --color-surface-offset: #eceff4;
  --color-surface-offset-2: #e3e7ee;
  --color-divider: oklch(0.35 0.03 250 / 0.12);
  --color-border: oklch(0.35 0.03 250 / 0.18);

  --color-text: #0b1220;
  --color-text-muted: #566072;
  --color-text-faint: #8e97a6;
  --color-text-inverse: #f7f8fa;

  --color-primary: #b4620c;          /* signal amber, darkened for AA on light */
  --color-primary-hover: #96500a;
  --color-primary-fill: #e79126;     /* button fill — pairs with ink label */
  --color-primary-fill-hover: #f2a03a;
  --color-primary-highlight: #fbf0e0;

  --color-success: #1f6b45;
  --color-success-highlight: #e3f1e9;
  --color-info: #1a5aa8;
  --color-info-highlight: #e4ecf8;

  --shadow-sm: 0 1px 2px oklch(0.2 0.04 250 / 0.07);
  --shadow-md: 0 6px 18px oklch(0.2 0.04 250 / 0.09);
  --shadow-lg: 0 20px 50px oklch(0.2 0.04 250 / 0.16);
}

[data-theme='dark'] {
  --color-bg: #080d15;
  --color-surface: #0e1622;
  --color-surface-2: #131d2c;
  --color-surface-offset: #101a27;
  --color-surface-offset-2: #17222f;
  --color-divider: oklch(0.8 0.02 250 / 0.09);
  --color-border: oklch(0.8 0.02 250 / 0.15);

  --color-text: #e6ebf3;
  --color-text-muted: #94a1b4;
  --color-text-faint: #66717f;
  --color-text-inverse: #0b1220;

  --color-primary: #f0a640;
  --color-primary-hover: #f7b95f;
  --color-primary-fill: #eda039;
  --color-primary-fill-hover: #f5b355;
  --color-primary-highlight: #2a2013;

  --color-success: #5cbe8b;
  --color-success-highlight: #12291f;
  --color-info: #7cb2ea;
  --color-info-highlight: #12222f;

  --shadow-sm: 0 1px 2px oklch(0 0 0 / 0.4);
  --shadow-md: 0 6px 18px oklch(0 0 0 / 0.5);
  --shadow-lg: 0 20px 50px oklch(0 0 0 / 0.6);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --color-bg: #080d15;
    --color-surface: #0e1622;
    --color-surface-2: #131d2c;
    --color-surface-offset: #101a27;
    --color-surface-offset-2: #17222f;
    --color-divider: oklch(0.8 0.02 250 / 0.09);
    --color-border: oklch(0.8 0.02 250 / 0.15);
    --color-text: #e6ebf3;
    --color-text-muted: #94a1b4;
    --color-text-faint: #66717f;
    --color-text-inverse: #0b1220;
    --color-primary: #f0a640;
    --color-primary-hover: #f7b95f;
    --color-primary-fill: #eda039;
    --color-primary-fill-hover: #f5b355;
    --color-primary-highlight: #2a2013;
    --color-success: #5cbe8b;
    --color-success-highlight: #12291f;
    --color-info: #7cb2ea;
    --color-info-highlight: #12222f;
  }
}

/* ---------- Layout primitives ---------- */

.shell {
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: clamp(var(--space-4), 4vw, var(--space-10));
}

.skip-link {
  position: absolute; left: var(--space-4); top: var(--space-2);
  transform: translateY(-160%);
  z-index: 200;
  background: var(--color-surface); color: var(--color-text);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md); font-size: var(--text-sm); font-weight: 600;
}
.skip-link:focus-visible { transform: translateY(0); }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-md);
  font-size: var(--text-sm); font-weight: 600; line-height: 1;
  text-decoration: none; white-space: nowrap;
}
.btn--primary {
  background: var(--color-primary-fill);
  color: #10192a;
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.28) inset;
}
.btn--primary:hover { background: var(--color-primary-fill-hover); }
.btn--ghost-ink {
  color: var(--on-ink);
  border: 1px solid oklch(1 0 0 / 0.22);
  background: oklch(1 0 0 / 0.04);
  backdrop-filter: blur(8px);
}
.btn--ghost-ink:hover { background: oklch(1 0 0 / 0.11); border-color: oklch(1 0 0 / 0.4); }
.btn--outline {
  color: var(--color-text);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
}
.btn--outline:hover { border-color: var(--color-text-muted); background: var(--color-surface-offset); }
.btn--sm { min-height: 38px; padding: var(--space-2) var(--space-4); font-size: var(--text-xs); }
.btn--lg { min-height: 52px; padding: var(--space-4) var(--space-8); font-size: var(--text-base); }

/* ---------- Header ---------- */

.site-header {
  position: fixed; inset-inline: 0; top: 0; z-index: 100;
  transition: background 300ms ease, border-color 300ms ease, backdrop-filter 300ms ease;
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  display: flex; align-items: center; gap: var(--space-8);
  min-height: 72px;
}
.site-header.is-scrolled {
  background: rgba(5, 9, 15, 0.94);
  backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: oklch(1 0 0 / 0.1);
}

.brand {
  display: inline-flex; align-items: center; gap: var(--space-3);
  color: var(--on-ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.3125rem; letter-spacing: -0.02em;
}
.brand svg { color: var(--color-primary-fill); flex: none; }
.brand span em { font-style: normal; color: var(--color-primary-fill); }

.nav { display: flex; align-items: center; gap: var(--space-6); margin-inline-start: auto; }
.nav a {
  color: var(--on-ink-muted); text-decoration: none;
  font-size: var(--text-sm); font-weight: 500;
}
.nav a:hover { color: var(--on-ink); }

.header-actions { display: flex; align-items: center; gap: var(--space-3); }
.icon-btn {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--radius-md);
  color: var(--on-ink-muted);
}
.icon-btn:hover { color: var(--on-ink); background: oklch(1 0 0 / 0.08); }

.nav-toggle { display: none; }

/* ---------- Hero ---------- */

.hero {
  position: relative; isolation: isolate;
  padding-block: clamp(var(--space-32), 17vw, 13rem) clamp(var(--space-20), 12vw, var(--space-32));
  background: var(--ink-900);
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  opacity: 1;
  filter: brightness(1.3) saturate(1.12);
}
.hero::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(115% 85% at 46% 12%, oklch(0.2 0.05 250 / 0) 0%, oklch(0.08 0.03 255 / 0.4) 68%, oklch(0.05 0.02 255 / 0.82) 100%),
    linear-gradient(100deg, oklch(0.05 0.02 255 / 0.9) 0%, oklch(0.05 0.02 255 / 0.62) 46%, oklch(0.05 0.02 255 / 0.18) 78%),
    linear-gradient(180deg, oklch(0.05 0.02 255 / 0.7) 0%, oklch(0.05 0.02 255 / 0.1) 30%, oklch(0.04 0.02 255 / 0.72) 100%);
}

.hero__inner { max-width: 900px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-3);
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid oklch(1 0 0 / 0.18);
  background: oklch(1 0 0 / 0.06);
  backdrop-filter: blur(10px);
  color: var(--on-ink);
  font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.02em;
}
.eyebrow .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--color-primary-fill);
  box-shadow: 0 0 0 4px oklch(from var(--color-primary-fill) l c h / 0.22);
}

.hero h1 {
  font-family: var(--font-display);
  word-spacing: 0.08em;
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--on-ink);
  margin-block: var(--space-6) var(--space-5);
  max-width: 20ch;
}
.hero h1 em { font-style: normal; color: var(--color-primary-fill); }

.hero__lede {
  color: var(--on-ink-muted);
  font-size: var(--text-base);
  max-width: 56ch;
}
.hero__lede strong { color: var(--on-ink); font-weight: 600; }

/* ---------- Search ---------- */

.search {
  margin-top: clamp(var(--space-8), 4vw, var(--space-12));
  max-width: 780px;
}
.segmented {
  display: inline-flex; gap: var(--space-1);
  padding: var(--space-1);
  border-radius: var(--radius-full);
  background: oklch(0.05 0.02 255 / 0.55);
  border: 1px solid oklch(1 0 0 / 0.12);
  backdrop-filter: blur(10px);
  margin-bottom: var(--space-4);
  overflow-x: auto;
  max-width: 100%;
  scrollbar-width: none;
}
.segmented::-webkit-scrollbar { display: none; }
.segmented button {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-size: var(--text-xs); font-weight: 600; white-space: nowrap;
  color: var(--on-ink-muted); min-height: 36px;
}
.segmented button:hover { color: var(--on-ink); }
.segmented button[aria-selected='true'] {
  background: var(--on-ink); color: #0b1220;
}

.search__field {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-5);
  border-radius: var(--radius-xl);
  background: oklch(1 0 0 / 0.96);
  border: 1px solid oklch(1 0 0 / 0.5);
  box-shadow: 0 24px 60px oklch(0.02 0.02 255 / 0.55);
}
[data-theme='dark'] .search__field { background: #f4f6fa; }
.search__field:focus-within { box-shadow: 0 24px 60px oklch(0.02 0.02 255 / 0.55), 0 0 0 3px oklch(from var(--color-primary-fill) l c h / 0.5); }
.search__field svg { color: #6b7482; flex: none; }
.search__field input {
  flex: 1 1 auto; min-width: 0;
  border: 0; background: none; outline: none;
  min-height: 52px;
  color: #0b1220;
  font-size: var(--text-base); font-weight: 500;
  font-family: var(--font-mono);
  letter-spacing: -0.01em;
}
.search__field input::placeholder { color: #8b939f; font-family: var(--font-body); letter-spacing: 0; }

.tld-strip {
  display: flex; flex-wrap: wrap; align-items: center;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-4);
}
.tld-strip__label { color: var(--on-ink-faint, #6b7789); font-size: var(--text-xs); }
.tld-chip {
  display: inline-flex; align-items: baseline; gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
  border: 1px solid oklch(1 0 0 / 0.14);
  background: oklch(1 0 0 / 0.05);
  color: var(--on-ink);
  font-size: var(--text-xs);
  text-decoration: none;
}
.tld-chip:hover { border-color: oklch(1 0 0 / 0.36); background: oklch(1 0 0 / 0.1); }
.tld-chip b { font-family: var(--font-mono); font-weight: 600; }
.tld-chip span { color: #9aa7ba; }

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

.stats {
  margin-top: clamp(var(--space-12), 6vw, var(--space-20));
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-6) var(--space-8);
  border-top: 1px solid oklch(1 0 0 / 0.12);
  padding-top: var(--space-8);
}
.stat dt { color: var(--on-ink-muted); font-size: var(--text-xs); letter-spacing: 0.06em; text-transform: uppercase; text-wrap: nowrap; }
.stat dd {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--text-xl); letter-spacing: -0.025em;
  color: var(--on-ink); font-variant-numeric: tabular-nums;
  margin-top: var(--space-1);
}

/* ---------- Results panel (the differentiator) ---------- */

.results-band {
  position: relative; z-index: 1;
  scroll-margin-top: 0;
  background: linear-gradient(180deg, var(--ink-900) 0%, var(--ink-900) 96px, var(--color-bg) 96px, var(--color-bg) 100%);
  padding-bottom: clamp(var(--space-16), 8vw, var(--space-24));
}
.results-band .shell { margin-top: clamp(-3.5rem, -4vw, -2rem); }

.results {
  scroll-margin-top: 96px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.results__head {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-divider);
  background: var(--color-surface-2);
}
.results__query { font-size: var(--text-sm); color: var(--color-text-muted); }
.results__query b { font-family: var(--font-mono); color: var(--color-text); font-weight: 600; }
.filters { display: flex; gap: var(--space-2); margin-inline-start: auto; flex-wrap: wrap; }
.filter {
  min-height: 36px; padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border);
  font-size: var(--text-xs); font-weight: 600;
  color: var(--color-text-muted);
}
.filter:hover { color: var(--color-text); border-color: var(--color-text-faint); }
.filter[aria-pressed='true'] {
  background: var(--color-text); color: var(--color-text-inverse); border-color: var(--color-text);
}

.result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: var(--space-4) var(--space-6);
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--color-divider);
}
.result:last-child { border-bottom: 0; }
.result:hover { background: var(--color-surface-offset); }
.result--featured {
  background: linear-gradient(90deg, var(--color-primary-highlight) 0%, var(--color-surface) 100%);
}
.result--featured:hover { background: var(--color-primary-highlight); }
.result--taken { opacity: 0.62; }

.result__name {
  font-family: var(--font-mono);
  font-size: var(--text-lg); font-weight: 500;
  letter-spacing: -0.02em; color: var(--color-text);
  line-height: 1.3;
  max-width: none;
}
.result__name .dn { overflow-wrap: anywhere; }
.result__name .badge { margin-inline-start: var(--space-3); translate: 0 -0.14em; }
.result__name .tld { color: var(--color-text-muted); }
.result--taken .result__name .dn { text-decoration: line-through; text-decoration-thickness: 1px; }
.result__meta { color: var(--color-text-muted); font-size: var(--text-xs); margin-top: var(--space-2); max-width: 60ch; }

.badge {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 0.2rem var(--space-2);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-xs); font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  white-space: nowrap;
}
.badge--available { background: var(--color-success-highlight); color: var(--color-success); }
.badge--sale { background: var(--color-primary-highlight); color: var(--color-primary); }
.badge--offer { background: var(--color-info-highlight); color: var(--color-info); }
.badge--taken { background: var(--color-surface-offset-2); color: var(--color-text-faint); }

.result__buy {
  display: flex; align-items: center; gap: var(--space-4);
  justify-self: end;
}
.price { text-align: right; }
.price b {
  display: block;
  font-family: var(--font-mono); font-weight: 600;
  font-size: var(--text-base); letter-spacing: -0.02em;
  color: var(--color-text); font-variant-numeric: tabular-nums;
}
.price span { font-size: var(--text-xs); color: var(--color-text-muted); }

.results__foot {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4);
  padding: var(--space-4) var(--space-6);
  background: var(--color-surface-offset);
  border-top: 1px solid var(--color-divider);
  font-size: var(--text-xs); color: var(--color-text-muted);
}
.results__foot p { max-width: 78ch; }
.results__empty { padding: var(--space-16) var(--space-6); text-align: center; }
.results__empty p { margin-inline: auto; color: var(--color-text-muted); font-size: var(--text-sm); }
.results__empty strong { display: block; color: var(--color-text); font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-2); }

/* ---------- Generic section ---------- */

.section { padding-block: clamp(var(--space-16), 9vw, var(--space-32)); }
.section--tight { padding-block: clamp(var(--space-12), 6vw, var(--space-20)); }

.section__kicker {
  font-size: var(--text-xs); font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--color-primary);
  margin-bottom: var(--space-4);
}
.section__title {
  font-family: var(--font-display); font-weight: 600; word-spacing: 0.06em;
  font-size: var(--text-xl); letter-spacing: -0.03em;
  color: var(--color-text);
  max-width: 24ch;
}
.section__lede { margin-top: var(--space-4); color: var(--color-text-muted); max-width: 58ch; font-size: var(--text-base); }

/* ---------- Flow (how it works) ---------- */

.flow-head { display: grid; gap: var(--space-8); grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end; }
.flow {
  margin-top: clamp(var(--space-10), 5vw, var(--space-16));
  display: grid; gap: var(--space-8);
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: step;
}
.flow__step { position: relative; padding-top: var(--space-8); }
.flow__step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute; top: 0; left: 0;
  font-family: var(--font-mono); font-size: var(--text-xs); font-weight: 700;
  color: var(--color-primary);
}
.flow__step::after {
  content: ''; position: absolute; top: 0.42rem; left: 0; right: calc(var(--space-8) * -1);
  height: 1px; background: var(--color-border);
  z-index: -1;
}
.flow__step:last-child::after { right: 0; }
.flow__step h3 { font-size: var(--text-lg); font-weight: 600; margin-bottom: var(--space-2); letter-spacing: -0.015em; }
.flow__step p { font-size: var(--text-sm); color: var(--color-text-muted); }

/* ---------- Listings grid (asymmetric) ---------- */

.listings-head { display: flex; flex-wrap: wrap; align-items: end; gap: var(--space-6); justify-content: space-between; }
.listings {
  margin-top: clamp(var(--space-8), 4vw, var(--space-12));
  display: grid; gap: var(--space-4);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.card {
  display: flex; flex-direction: column; gap: var(--space-3);
  padding: var(--space-5);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  text-decoration: none; color: inherit;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-text-faint); }
.card__name {
  font-family: var(--font-mono); font-weight: 500;
  font-size: var(--text-base); letter-spacing: -0.02em; color: var(--color-text);
  overflow-wrap: anywhere;
}
.card__name .tld { color: var(--color-text-muted); }
.card__tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: auto; }
.card > .badge { align-self: start; }
.card--feature .badge { align-self: start; }
.tag {
  font-size: var(--text-xs); color: var(--color-text-muted);
  padding: 0.15rem var(--space-2);
  border: 1px solid var(--color-divider); border-radius: var(--radius-sm);
}
.card__price {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--color-divider);
  font-family: var(--font-mono); font-weight: 600; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.card__price em { font-style: normal; font-family: var(--font-body); font-weight: 500; font-size: var(--text-xs); color: var(--color-primary); }

.card--feature {
  grid-column: span 2; grid-row: span 2;
  justify-content: space-between;
  padding: var(--space-8);
  background: var(--ink-800);
  border-color: oklch(1 0 0 / 0.12);
  color: var(--on-ink);
  background-image: radial-gradient(90% 70% at 88% 8%, oklch(0.55 0.13 62 / 0.3) 0%, transparent 62%);
}
.card--feature:hover { border-color: oklch(1 0 0 / 0.3); }
.card--feature .card__name {
  font-size: var(--text-xl); color: var(--on-ink); letter-spacing: -0.03em;
}
.card--feature .card__name .tld { color: var(--on-ink-muted); }
.card--feature p { font-size: var(--text-sm); color: var(--on-ink-muted); max-width: 34ch; }
.card--feature .tag { color: var(--on-ink-muted); border-color: oklch(1 0 0 / 0.18); }
.card--feature .card__price { color: var(--on-ink); border-top-color: oklch(1 0 0 / 0.16); font-size: var(--text-lg); }
.card--feature .card__price em { color: var(--color-primary-fill); }

/* ---------- Split CTA ---------- */

.split {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border-radius: var(--radius-xl); overflow: hidden;
  border: 1px solid var(--color-border);
}
.split > div { padding: clamp(var(--space-8), 4vw, var(--space-16)); display: flex; flex-direction: column; gap: var(--space-4); }
.split__buy { background: var(--color-surface); }
.split__sell { background: var(--ink-800); color: var(--on-ink); }
.split h3 { font-family: var(--font-display); font-weight: 600; font-size: var(--text-xl); letter-spacing: -0.03em; word-spacing: 0.06em; }
.split__sell h3 { color: var(--on-ink); }
.split p { font-size: var(--text-sm); color: var(--color-text-muted); }
.split__sell p { color: var(--on-ink-muted); }
.split ul { list-style: none; display: grid; gap: var(--space-2); font-size: var(--text-sm); }
.split li { display: flex; gap: var(--space-3); align-items: baseline; color: var(--color-text-muted); }
.split__sell li { color: var(--on-ink-muted); }
.split li svg { flex: none; color: var(--color-primary); translate: 0 2px; }
.split__sell li svg { color: var(--color-primary-fill); }
.split .btn { align-self: start; margin-top: var(--space-2); }

/* ---------- Proof row ---------- */

.proof {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-6) var(--space-10);
  padding-block: var(--space-10);
  border-top: 1px solid var(--color-divider);
  border-bottom: 1px solid var(--color-divider);
}
.proof__score { display: flex; align-items: center; gap: var(--space-3); }
.proof__stars { display: flex; gap: 2px; color: var(--color-primary); }
.proof__score p { font-size: var(--text-xs); color: var(--color-text-muted); }
.proof__score b { color: var(--color-text); }
.proof__items { display: flex; flex-wrap: wrap; gap: var(--space-3) var(--space-6); margin-inline-start: auto; }
.proof__items span {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); color: var(--color-text-muted);
}
.proof__items svg { color: var(--color-success); flex: none; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--ink-900); color: var(--on-ink-muted);
  padding-block: clamp(var(--space-16), 7vw, var(--space-24)) var(--space-10);
}
.footer-grid {
  display: grid; gap: var(--space-10);
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
}
.site-footer h2 { font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-ink); margin-bottom: var(--space-4); }
.site-footer ul { list-style: none; display: grid; gap: var(--space-3); }
.site-footer a { color: var(--on-ink-muted); text-decoration: none; font-size: var(--text-sm); }
.site-footer a:hover { color: var(--on-ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-about p { font-size: var(--text-sm); max-width: 40ch; margin-top: var(--space-4); }
.legal {
  margin-top: clamp(var(--space-10), 5vw, var(--space-16));
  padding-top: var(--space-6);
  border-top: 1px solid oklch(1 0 0 / 0.12);
  display: grid; gap: var(--space-4);
}
.legal p { font-size: var(--text-xs); color: #7d8899; max-width: 92ch; }
.legal p a { font-size: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Reveal ---------- */

.reveal { opacity: 0; transform: translateY(14px); transition: opacity 700ms cubic-bezier(0.16,1,0.3,1), transform 700ms cubic-bezier(0.16,1,0.3,1); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */

@media (max-width: 1080px) {
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-8) var(--space-6); }
  .flow__step:nth-child(2n)::after { right: 0; }
  .listings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card--feature { grid-column: span 2; grid-row: auto; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-head { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .nav { display: none; }
  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch; gap: var(--space-1);
    position: absolute; inset-inline: var(--space-4); top: 72px;
    padding: var(--space-4);
    border-radius: var(--radius-lg);
    background: oklch(from var(--ink-800) l c h / 0.97);
    border: 1px solid oklch(1 0 0 / 0.14);
    backdrop-filter: blur(18px);
    margin: 0;
  }
  .nav.is-open a { padding: var(--space-3); font-size: var(--text-base); }
  .nav-toggle { display: inline-grid; margin-inline-start: auto; }
  .header-actions .btn { display: none; }
  .split { grid-template-columns: 1fr; }
  .proof__items { margin-inline-start: 0; }
}

@media (max-width: 640px) {
  .result { grid-template-columns: 1fr; }
  .result__buy { justify-self: stretch; justify-content: space-between; }
  .results__head { align-items: start; flex-direction: column; }
  .filters { margin-inline-start: 0; }
  .listings { grid-template-columns: 1fr; }
  .card--feature { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--space-8); }
  .hero h1 { max-width: none; }
  .tld-strip .tld-chip:nth-of-type(n+3) { display: none; }
  .price { text-align: left; }
  .segmented { display: flex; width: 100%; mask-image: linear-gradient(90deg, #000 0, #000 calc(100% - 2.75rem), transparent 100%); }
  .result__name { font-size: var(--text-base); }
  .result__name .badge { margin-inline-start: 0; display: block; width: max-content; margin-top: var(--space-2); translate: none; }
}
