:root {
  --bg: #02040a;
  --ink: #f3f6ff;
  --muted: rgba(208, 220, 255, 0.64);
  --dim: rgba(208, 220, 255, 0.4);
  --line: rgba(170, 196, 255, 0.14);
  --blue: #5b95ff;
  --ice: #b9d4ff;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --pad: clamp(20px, 4vw, 56px);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
[hidden] { display: none !important; }

html { background: var(--bg); color-scheme: dark; -webkit-text-size-adjust: 100%; }

body {
  min-height: 100svh;
  font-family: var(--sans);
  color: var(--ink);
  /* fallback when WebGL is unavailable; the canvas paints over it */
  background: radial-gradient(130% 70% at 50% 100%, #0b1b4a 0%, #050b20 42%, var(--bg) 72%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
:focus-visible { outline: 1.5px solid var(--ice); outline-offset: 3px; }

/* ---------- Background layers ---------- */
.backdrop-field { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }

.grain {
  position: fixed; inset: -100%; z-index: 2; pointer-events: none; opacity: 0.075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(5) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -2%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Layout ---------- */
.page {
  position: relative; z-index: 3;
  min-height: 100svh;
  display: grid; grid-template-rows: auto 1fr auto auto;
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(22px + env(safe-area-inset-top)) var(--pad) 22px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none;
  font-weight: 500; font-size: 15px; letter-spacing: -0.01em;
}
.brand .dim { color: var(--dim); }
.brand__mark { width: 22px; height: 22px; fill: var(--ice); color: var(--ice); }

.nav__right { display: flex; align-items: center; gap: clamp(16px, 3vw, 36px); }
.status {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
}
.status i {
  width: 6px; height: 6px; border-radius: 50%; background: #6fe3b0;
  box-shadow: 0 0 0 0 rgba(111, 227, 176, 0.5); animation: ping 2.8s ease-out infinite;
}
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(111, 227, 176, 0.45); } 70%, 100% { box-shadow: 0 0 0 7px rgba(111, 227, 176, 0); } }
.nav__link {
  font-size: 14px; color: var(--ink); opacity: 0.86;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line);
  transition: opacity 0.3s, border-color 0.3s, background 0.3s;
}
.nav__link:hover { opacity: 1; border-color: rgba(255, 255, 255, 0.4); background: rgba(255, 255, 255, 0.04); }

/* ---------- Hero ---------- */
/* Copy centred in the upper half; the particle dune (canvas) rises underneath it. */
.hero {
  display: grid; align-content: start; justify-items: center; text-align: center;
  padding: clamp(48px, 13vh, 150px) var(--pad) 32px;
}
.hero__copy { display: flex; flex-direction: column; align-items: center; max-width: 64rem; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 12px; font-weight: 500;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--ice);
  margin-bottom: clamp(16px, 2.4vh, 26px);
}
.eyebrow::before, .eyebrow::after {
  content: ''; width: 40px; height: 1px;
  background: linear-gradient(90deg, rgba(185, 212, 255, 0.6), transparent);
}
.eyebrow::before { transform: scaleX(-1); }

.title {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(3rem, min(9vw, 15vh), 8.6rem);
  line-height: 0.95;
  letter-spacing: -0.055em;
  color: #fff;
  text-shadow: 0 4px 60px rgba(2, 4, 10, 0.5);
}
.title__tld { color: rgba(196, 212, 255, 0.55); }

.tagline {
  margin-top: clamp(14px, 2vh, 22px);
  font-size: clamp(1.2rem, 1.9vw, 1.65rem);
  font-weight: 500; letter-spacing: -0.03em; color: #eef2ff;
}
.lede {
  margin-top: 10px; max-width: 32rem;
  font-size: clamp(0.92rem, 1vw, 1rem); line-height: 1.6; font-weight: 400;
  color: var(--muted);
}

.cta { display: flex; justify-content: center; gap: 12px; margin-top: clamp(24px, 3.6vh, 36px); }

/* live asking price under the buttons */
.ask {
  display: flex; align-items: baseline; justify-content: center; flex-wrap: wrap; gap: 6px 12px;
  margin-top: clamp(16px, 2.4vh, 24px); text-shadow: 0 1px 12px rgba(2, 6, 30, 0.8);
}
.ask__label { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(243, 246, 255, 0.75); }
.ask strong { font-size: 1.35rem; font-weight: 600; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; }
.ask__next { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ice); }
.ask__next:empty { display: none; }

/* ---------- Facts row (bottom) ---------- */
.facts { padding: 18px var(--pad) calc(30px + env(safe-area-inset-bottom)); text-align: center; text-shadow: 0 1px 12px rgba(2, 6, 30, 0.8); }
.facts__label {
  font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.26em; text-transform: uppercase;
  color: rgba(243, 246, 255, 0.85); margin-bottom: 14px;
}
.facts__list { list-style: none; display: flex; justify-content: center; flex-wrap: wrap; gap: 12px clamp(24px, 4vw, 56px); }
.facts__list li { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; font-weight: 500; letter-spacing: -0.01em; color: rgba(243, 246, 255, 0.9); }
.facts__list svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 30px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), box-shadow 0.35s var(--ease), transform 0.35s var(--ease), color 0.35s;
}
.btn:active { transform: scale(0.98); }
.btn--ghost {
  border: 1px solid rgba(255, 255, 255, 0.55); color: #fff;
  background: rgba(4, 8, 20, 0.2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, 0.07); }
.btn--solid {
  background: #fff; color: #050812;
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.8);
}
.btn--solid:hover { background: #e9efff; }
.btn__arrow { width: 16px; height: 16px; transition: transform 0.35s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }
.btn--block { width: 100%; }
.btn:disabled { cursor: not-allowed; background: rgba(255, 255, 255, 0.1); color: var(--dim); box-shadow: none; }
.btn:disabled .btn__arrow { display: none; }

/* ---------- Assurances (replaces "trusted by") ---------- */
.assure {
  padding: 56px var(--pad) calc(30px + env(safe-area-inset-bottom)); text-align: center;
  background: linear-gradient(180deg, transparent, rgba(2, 4, 10, 0.72) 55%);
}
.assure__label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 18px;
}
.assure__list { list-style: none; display: flex; justify-content: center; gap: clamp(28px, 6vw, 88px); }
.assure__list li { display: flex; align-items: center; gap: 12px; text-align: left; }
.assure__list svg {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: var(--ice); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85;
}
.assure__list span { display: flex; flex-direction: column; gap: 2px; }
.assure__list b { font-size: 13.5px; font-weight: 500; color: rgba(243, 246, 255, 0.9); }
.assure__list small { font-size: 12px; color: var(--muted); }

/* ---------- Entrance ---------- */
.reveal {
  opacity: 0; transform: translateY(16px); filter: blur(8px);
  animation: rise 1.3s var(--ease) forwards;
  animation-delay: calc(var(--i) * 110ms + 200ms);
}
@keyframes rise { to { opacity: 1; transform: none; filter: none; } }

/* ---------- Modals ---------- */
.modal {
  border: 0; padding: 16px; margin: auto; background: transparent; color: var(--ink);
  width: 100%; max-width: 488px; max-height: 100svh; overflow: visible;
}
.modal::backdrop { background: rgba(1, 3, 9, 0.66); backdrop-filter: blur(12px) saturate(120%); -webkit-backdrop-filter: blur(12px) saturate(120%); }
.modal[open] { animation: fade 0.35s ease; }
.modal[open] .modal__panel { animation: pop 0.55s var(--ease); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(0.98); } }

.modal__panel {
  position: relative;
  max-height: calc(100svh - 32px); overflow-y: auto; overscroll-behavior: contain;
  padding: 38px 34px 30px;
  border-radius: 26px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(80, 130, 255, 0.13), transparent 60%),
    linear-gradient(180deg, rgba(13, 21, 46, 0.94), rgba(5, 9, 22, 0.96));
  border: 1px solid rgba(160, 190, 255, 0.15);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 50px 120px -30px rgba(0, 0, 0, 0.9);
}
.modal__close {
  position: absolute; top: 18px; right: 18px; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center; color: var(--muted); transition: background 0.3s, color 0.3s;
}
.modal__close:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.modal__close svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; }

.modal__eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--ice);
}
.modal__domain {
  margin-top: 12px; font-size: clamp(1.9rem, 7vw, 2.35rem); font-weight: 600; letter-spacing: -0.045em; line-height: 1.05;
}
.modal__domain span { color: rgba(198, 214, 255, 0.5); }
.modal__lede { margin-top: 10px; font-size: 14px; color: var(--muted); }

.price {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  margin-top: 26px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.price span { font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
.price strong { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.price strong.is-empty { font-size: 15px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.price__next { margin-top: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; color: var(--ice); opacity: 0.8; text-align: right; }
.price__next:empty { display: none; }

.steps { list-style: none; counter-reset: s; margin: 22px 0 26px; display: grid; gap: 14px; }
.steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; column-gap: 12px; }
.steps li::before {
  content: counter(s, decimal-leading-zero); grid-row: span 2;
  font-family: var(--mono); font-size: 11px; color: var(--blue); padding-top: 3px;
}
.steps b { font-size: 14px; font-weight: 500; }
.steps span { font-size: 13px; color: var(--dim); line-height: 1.5; }

.modal__note {
  margin: 20px 0; padding: 14px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line);
  font-size: 13.5px; line-height: 1.55; color: var(--muted);
}
.modal__alt {
  display: block; margin: 16px auto 0; font-size: 13.5px; color: var(--muted);
  text-decoration: underline; text-decoration-color: rgba(208, 220, 255, 0.25); text-underline-offset: 4px;
  transition: color 0.3s;
}
.modal__alt:hover { color: #fff; }

/* ---------- Offer form ---------- */
.form { margin-top: 24px; display: grid; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.field label em { font-style: normal; color: var(--dim); letter-spacing: 0.1em; }
.field input, .field textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink);
  background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 12px;
  padding: 13px 15px; transition: border-color 0.25s, box-shadow 0.25s, background 0.25s;
}
.field textarea { resize: vertical; min-height: 88px; line-height: 1.5; }
.field input:focus, .field textarea:focus {
  outline: none; border-color: rgba(120, 165, 255, 0.7); background: rgba(91, 149, 255, 0.05);
  box-shadow: 0 0 0 4px rgba(91, 149, 255, 0.14);
}
.field [aria-invalid="true"] { border-color: rgba(255, 128, 140, 0.6); }
.field__error { min-height: 0; font-size: 12.5px; color: #ff9aa5; }
.field__error:empty { display: none; }

.amount { position: relative; }
.amount span {
  position: absolute; left: 15px; top: 50%; transform: translateY(-50%);
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; color: var(--dim); pointer-events: none;
}
.amount input { padding-left: 56px; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.amount input::-webkit-outer-spin-button, .amount input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__status { font-size: 13.5px; line-height: 1.55; color: var(--muted); }
.form__status:empty { display: none; }
.form__status a { color: var(--ice); }
.form__status.is-error { color: #ffb3bb; }

.sent { margin-top: 28px; text-align: center; padding: 10px 0 6px; }
.sent svg { width: 44px; height: 44px; fill: none; stroke: #8fe6c0; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }
.sent__title { margin-top: 14px; font-size: 18px; font-weight: 500; }
.sent__text { margin-top: 8px; font-size: 14px; line-height: 1.6; color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .status { display: none; }
  .nav__link[data-open="buy"] { display: none; }
  .hero { padding-top: 9svh; }
  .eyebrow { font-size: 10.5px; letter-spacing: 0.26em; gap: 10px; }
  .title { font-size: clamp(2.2rem, 11.4vw, 4.4rem); }
  .lede { max-width: 22rem; }
  .cta { flex-direction: column-reverse; width: 100%; max-width: 380px; gap: 12px; }
  .facts__list { gap: 8px 18px; }
  .facts__list li { font-size: 12.5px; gap: 7px; }
  .facts__list svg { width: 16px; height: 16px; }
  .btn { width: 100%; height: 54px; }
  .assure { padding-top: 40px; }
  .assure__list { gap: 10px; justify-content: space-between; max-width: 400px; margin: 0 auto; }
  .assure__list li { flex: 1; flex-direction: column; gap: 9px; text-align: center; }
  .assure__list b { font-size: 12px; }
  .assure__list small { display: none; }
  .modal { padding: 10px; }
  .modal__panel { padding: 32px 22px 24px; border-radius: 22px; max-height: calc(100svh - 20px); }
}
@media (max-height: 640px) and (min-width: 761px) {
  .hero { padding-top: 24px; }
  .lede { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; filter: none; }
  .grain, .status i { animation: none; }
  .modal[open], .modal[open] .modal__panel { animation: none; }
}
