/* ai.id × Bali Tech Week 2026 — free .ai.id promo */

:root {
  /* Logo colours: "ai" runs blue → violet → red; sparkles are coral-red; ".id" is ink. */
  --blue: #4b55ff;
  --blue-2: #6f78ff;
  --violet: #8a3fd1;
  --magenta: #d5336f;
  --red: #ff3b42;
  --coral: #ff6b74;
  --green: #34d399;
  --green-ink: #0b3d2c;
  --amber: #fbbf24;
  --bg: #07071a;
  --bg-2: #0d0d27;
  --bg-3: #141434;
  --surface: rgba(255, 255, 255, .045);
  --surface-2: rgba(255, 255, 255, .08);
  --line: rgba(255, 255, 255, .1);
  --line-2: rgba(255, 255, 255, .18);
  --text: #f4f4ff;
  --text-2: #c9cbe8;
  --muted: #8f93b8;
  --ink: #1b1f2b;
  --grad: linear-gradient(110deg, #4b55ff 0%, #8a3fd1 42%, #d5336f 74%, #ff3b42 100%);
  --grad-soft: linear-gradient(110deg, rgba(75, 85, 255, .22), rgba(138, 63, 209, .18) 45%, rgba(255, 59, 66, .2));
  --grad-red: linear-gradient(135deg, #ff6b74, #e8283a);
  --shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 20px 40px -20px rgba(0, 0, 0, .7);
  --shadow-lg: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .06);
  --glow: 0 0 0 1px rgba(255, 255, 255, .08), 0 18px 50px -12px rgba(138, 63, 209, .55);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --nav-h: 72px;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; background: var(--bg); }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; color: inherit; }
code { font-family: var(--mono); }
::selection { background: var(--violet); color: #fff; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; position: relative; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--blue); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue-2); outline-offset: 3px; border-radius: 6px; }

svg[viewBox="0 0 24 24"] { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
svg[viewBox="0 0 24 24"] .fill { fill: currentColor; stroke: none; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Logo (inline SVG, built in app.js) ---------- */
.logo { display: inline-block; width: 92px; aspect-ratio: 2000 / 1011; cursor: pointer; --logo-ink: var(--ink); }
.logo[data-logo="white"] { --logo-ink: #fff; }
.logo svg { width: 100%; height: 100%; overflow: visible; }
.logo .lg-id { fill: var(--logo-ink); transition: fill .4s var(--ease); }
.logo .lg-star { transform-box: fill-box; transform-origin: center; }
.logo.twinkle .lg-star { animation: twinkle .9s var(--spring) both; }
.logo.twinkle .lg-star:nth-child(2) { animation-delay: .08s; }
.logo.twinkle .lg-star:nth-child(3) { animation-delay: .16s; }
.logo.twinkle .lg-ai { animation: ai-pop .7s var(--spring) both; }
@keyframes twinkle {
  0% { transform: scale(1) rotate(0); }
  40% { transform: scale(.4) rotate(45deg); }
  75% { transform: scale(1.25) rotate(90deg); }
  100% { transform: scale(1) rotate(90deg); }
}
@keyframes ai-pop { 40% { transform: translateY(-3%); } }
.logo .lg-ai { transform-box: fill-box; transform-origin: 50% 100%; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: 999px; padding: 15px 26px; font-weight: 700; font-size: 16px; line-height: 1;
  color: #fff; background: var(--surface-2); text-decoration: none; white-space: nowrap;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .2s, filter .2s;
  position: relative; isolation: isolate;
}
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .65; cursor: progress; }
.btn-grad { background: var(--grad); background-size: 160% 100%; background-position: 0 0; box-shadow: 0 10px 30px -10px rgba(138, 63, 209, .9); transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-position .5s var(--ease); }
.btn-grad:hover { background-position: 100% 0; box-shadow: 0 14px 36px -10px rgba(255, 59, 66, .75); }
.btn-white { background: #fff; color: var(--bg); box-shadow: 0 14px 40px -12px rgba(255, 255, 255, .4); }
.btn-ghost { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--text-2); background: var(--surface); }
.btn-sm { padding: 11px 18px; font-size: 14px; }
.magnetic { will-change: transform; }

/* ---------- Nav ---------- */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 40; height: var(--nav-h); transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.scrolled { background: rgba(7, 7, 26, .72); backdrop-filter: saturate(1.4) blur(16px); -webkit-backdrop-filter: saturate(1.4) blur(16px); box-shadow: 0 1px 0 var(--line); }
.nav-in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; min-height: 44px; padding: 4px 0; text-decoration: none; }
.brand .logo { width: 84px; }
.links { display: flex; gap: 2px; margin-left: auto; padding: 4px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.links a { text-decoration: none; font-size: 14px; font-weight: 600; color: var(--text-2); padding: 8px 16px; border-radius: 999px; position: relative; transition: color .2s, background .2s; }
.links a:hover { color: #fff; background: var(--surface-2); }
.links a.on { color: #fff; background: var(--surface-2); }
.nav-r { display: flex; align-items: center; gap: 12px; }
.menu-cta { display: none; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); position: relative; flex: none; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: #fff; transition: transform .35s var(--spring), opacity .2s; }
.menu-btn span:nth-child(1) { top: 15px; } .menu-btn span:nth-child(2) { top: 21px; } .menu-btn span:nth-child(3) { top: 27px; }
.nav.open .menu-btn span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .menu-btn span:nth-child(2) { opacity: 0; transform: scaleX(.2); }
.nav.open .menu-btn span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.lang { display: inline-flex; background: var(--surface); border-radius: 999px; padding: 3px; box-shadow: inset 0 0 0 1px var(--line); position: relative; }
.lang button { border: 0; background: none; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--muted); position: relative; z-index: 1; transition: color .25s; }
.lang button[aria-pressed="true"] { color: #fff; }
.lang::before { content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 999px; background: var(--grad); transition: transform .35s var(--spring); }
.lang[data-on="id"]::before { transform: translateX(100%); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: calc(var(--nav-h) + 44px) 0 96px; display: flex; align-items: center; overflow: hidden; overflow: clip; }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.aurora { position: absolute; inset: 0; z-index: 0; filter: blur(70px); opacity: .85; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 46vw; height: 46vw; max-width: 720px; max-height: 720px; left: -12vw; top: -14vw; background: radial-gradient(circle, rgba(75, 85, 255, .55), transparent 65%); }
.aurora i:nth-child(2) { width: 40vw; height: 40vw; max-width: 640px; max-height: 640px; right: -8vw; top: 6vh; background: radial-gradient(circle, rgba(255, 59, 66, .42), transparent 65%); animation-duration: 22s; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 38vw; height: 38vw; max-width: 600px; max-height: 600px; left: 30vw; bottom: -18vw; background: radial-gradient(circle, rgba(138, 63, 209, .5), transparent 65%); animation-duration: 26s; animation-delay: -12s; }
@keyframes drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(4vw, 3vh) scale(1.08); } 100% { transform: translate(-3vw, 5vh) scale(.95); } }
.floor {
  position: absolute; left: -20%; right: -20%; bottom: -10%; height: 55%; z-index: 0;
  background-image: linear-gradient(rgba(140, 150, 255, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 150, 255, .16) 1px, transparent 1px);
  background-size: 64px 64px; transform: perspective(600px) rotateX(62deg); transform-origin: 50% 100%;
  mask-image: linear-gradient(to top, #000 0%, transparent 85%); -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  animation: floor 6s linear infinite;
}
@keyframes floor { to { background-position: 0 64px, 0 0; } }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 56px; align-items: center; }

.pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 5px 14px 5px 5px; font-size: 13px; font-weight: 600; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--text-2); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pill-event b { background: var(--grad); color: #fff; padding: 3px 11px; border-radius: 999px; font-weight: 700; }
.pill-live { padding-left: 13px; font-variant-numeric: tabular-nums; }
.pill-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); position: relative; }
.pill-live[data-s="live"] i { background: var(--green); }
.pill-live[data-s="live"] i::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--green); animation: ping 1.6s ease-out infinite; }
.pill-live[data-s="over"] i { background: var(--muted); }
@keyframes ping { from { transform: scale(.6); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

h1 { margin: 0 0 22px; font-weight: 800; font-size: clamp(42px, 6.2vw, 88px); line-height: 1.02; letter-spacing: -.045em; color: #fff; }
h1 > span { display: block; }
.h1-a { color: var(--text-2); }
.h1-rot { white-space: nowrap; width: max-content; max-width: 100%; transition: font-size .3s var(--ease); }
.rot { display: inline-block; background: linear-gradient(90deg, #fff, #c9cbff); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.rot.out { animation: rotOut .32s var(--ease) forwards; }
.rot.in { animation: rotIn .5s var(--spring) both; }
@keyframes rotOut { to { transform: translateY(-40%); opacity: 0; filter: blur(6px); } }
@keyframes rotIn { from { transform: translateY(45%); opacity: 0; filter: blur(6px); } to { transform: none; opacity: 1; filter: none; } }
.h1-tld { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(16px, 1.5vw, 18.5px); color: var(--text-2); max-width: 580px; margin: 0 0 30px; }

/* Search: an AI prompt box with a gradient rim */
.search {
  position: relative; max-width: 660px; padding: 18px; border-radius: 28px;
  background: linear-gradient(var(--bg-2), var(--bg-2)) padding-box, linear-gradient(130deg, rgba(75, 85, 255, .7), rgba(138, 63, 209, .35) 40%, rgba(255, 59, 66, .7)) border-box;
  border: 1px solid transparent; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 60px -20px rgba(138, 63, 209, .6);
}
.journey { list-style: none; margin: 0 0 14px; padding: 0 4px; display: flex; gap: 6px; }
.journey li { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); position: relative; min-width: 0; }
.journey li span { width: 24px; height: 24px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); font-size: 11px; font-weight: 700; font-family: var(--mono); transition: background .3s, color .3s, transform .4s var(--spring); }
.journey li em { font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.journey li:not(:last-child)::after { content: ""; flex: 1; height: 2px; border-radius: 2px; background: var(--line); min-width: 8px; transition: background .4s; }
.journey li.is-active { color: #fff; }
.journey li.is-active span { background: var(--grad); color: #fff; transform: scale(1.12); box-shadow: 0 0 0 4px rgba(138, 63, 209, .25); }
.journey li.is-done { color: var(--green); }
.journey li.is-done span { background: var(--green); color: var(--green-ink); }
.journey li.is-done::after { background: var(--green); }

.field {
  display: flex; align-items: center; gap: 4px; background: rgba(255, 255, 255, .04); border: 1.5px solid var(--line); border-radius: 20px;
  padding: 6px 6px 6px 16px; transition: border-color .2s, background .2s, box-shadow .2s;
}
.field:focus-within { background: rgba(255, 255, 255, .07); border-color: rgba(138, 140, 255, .7); box-shadow: 0 0 0 6px rgba(75, 85, 255, .14); }
.field.shake { animation: shake .45s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.field-ico { width: 20px; height: 20px; color: var(--coral); flex: none; animation: spinstar 6s linear infinite; }
@keyframes spinstar { to { transform: rotate(360deg); } }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: inherit; font-size: 22px; font-weight: 700; color: #fff; padding: 12px 0 12px 8px; caret-color: var(--coral); }
.field input::placeholder { color: #5f6390; font-weight: 600; }
.field-tld { font-size: 22px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: 8px; white-space: nowrap; }
.field .btn { padding: 17px 24px; }

.ind { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 0 8px; white-space: nowrap; opacity: 0; transform: scale(.8); transition: opacity .2s, transform .3s var(--spring); }
.ind i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.ind[data-s="checking"], .ind[data-s="available"], .ind[data-s="taken"], .ind[data-s="error"] { opacity: 1; transform: none; }
.ind[data-s="checking"] i { background: var(--blue-2); animation: pulse 0.9s ease-in-out infinite; }
.ind[data-s="checking"] b { color: var(--muted); }
.ind[data-s="available"] i { background: var(--green); } .ind[data-s="available"] b { color: var(--green); }
.ind[data-s="taken"] i { background: var(--red); } .ind[data-s="taken"] b { color: var(--coral); }
.ind[data-s="error"] i { background: var(--amber); } .ind[data-s="error"] b { color: var(--amber); }
@keyframes pulse { 50% { transform: scale(.55); opacity: .5; } }

.hint { margin: 10px 6px 0; font-size: 12.5px; color: var(--muted); transition: color .2s; }
.hint.err { color: var(--coral); font-weight: 600; }

/* Results */
#result:empty { display: none; }
#result { margin-top: 14px; }
.r-in { animation: rise .5s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.r-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; }
.r-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; }
.r-ico svg { width: 22px; height: 22px; stroke-width: 3; }
.r-dn { font-size: 20px; font-weight: 800; line-height: 1.2; word-break: break-all; color: #fff; }
.r-st { font-size: 13.5px; font-weight: 600; }
.r-ok { background: rgba(52, 211, 153, .1); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .3); } .r-ok .r-ico { background: var(--green); color: var(--green-ink); animation: pop .5s var(--spring) both; } .r-ok .r-st { color: var(--green); }
.r-no { background: rgba(255, 59, 66, .1); box-shadow: inset 0 0 0 1px rgba(255, 59, 66, .3); } .r-no .r-ico { background: var(--red); } .r-no .r-st { color: var(--coral); }
.r-warn { background: rgba(251, 191, 36, .1); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, .3); } .r-warn .r-ico { background: var(--amber); color: #3b2a00; } .r-warn .r-st { color: var(--amber); }
.r-load { background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); } .r-load .r-ico { background: var(--grad); } .r-load .r-st { color: var(--text-2); }
.r-load .r-ico svg { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: scale(0); } }

.r-label { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin: 18px 4px 10px; font-family: var(--mono); }
.r-regs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.r-reg {
  display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 10px 12px; border-radius: 16px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s, transform .25s var(--ease), background .2s; animation: rise .45s var(--ease) both;
}
.r-reg:hover { background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(-2px); }
.r-reg .mono { width: 38px; height: 38px; font-size: 13px; border-radius: 11px; }
.r-reg b { font-size: 14.5px; font-weight: 700; display: block; line-height: 1.2; }
.r-reg small { font-size: 11.5px; color: var(--muted); }
.r-reg svg { width: 18px; height: 18px; margin-left: auto; color: var(--text-2); flex: none; transition: transform .25s var(--ease); }
.r-reg:hover svg { transform: translate(2px, -2px); }
.mono { display: grid; place-items: center; flex: none; font-weight: 800; color: #fff; letter-spacing: .3px; font-family: var(--mono); }

/* Promo ticket */
.ticket {
  margin-top: 12px; display: flex; align-items: stretch; border-radius: 18px; position: relative;
  background: var(--grad-soft), var(--bg-3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14);
}
.ticket::before, .ticket::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; background: var(--bg-2); left: calc(100% - 129px); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); clip-path: inset(50% 0 0 0); }
.ticket::before { top: -9px; } .ticket::after { bottom: -9px; clip-path: inset(0 0 50% 0); }
.ticket-l { flex: 1; padding: 12px 16px; min-width: 0; }
.ticket-l small { display: block; font-size: 11.5px; color: var(--text-2); font-weight: 600; }
.ticket-l code { display: block; font-size: 24px; font-weight: 800; letter-spacing: 1.5px; line-height: 1.25; background: linear-gradient(90deg, #fff, #ffc4c8); -webkit-background-clip: text; background-clip: text; color: transparent; overflow-wrap: anywhere; }
.ticket-r { width: 120px; flex: none; border-left: 2px dashed rgba(255, 255, 255, .22); display: grid; place-items: center; padding: 8px; }
.copy-btn { border: 0; background: #fff; color: var(--bg); border-radius: 999px; padding: 10px 15px; font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; transition: transform .2s var(--spring), background .2s, color .2s; }
.copy-btn svg { width: 15px; height: 15px; }
.copy-btn:hover { transform: scale(1.05); }
.copy-btn.done { background: var(--green); color: var(--green-ink); }

.r-fine { font-size: 12px; color: var(--muted); margin: 12px 4px 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 0; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); color: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 7px; transition: box-shadow .2s, transform .25s var(--spring), background .2s; animation: rise .4s var(--ease) both; }
.chip:hover { box-shadow: inset 0 0 0 1px var(--green); background: rgba(52, 211, 153, .08); transform: translateY(-2px); }
.chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.chip.skel { width: 120px; height: 36px; background: linear-gradient(90deg, var(--surface) 0%, var(--surface-2) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; box-shadow: none; }
@keyframes shimmer { to { background-position: -200% 0; } }
.retry { margin-top: 10px; }

/* Chat mock */
.hero-r { perspective: 1200px; }
.mock-stage { position: relative; transform-style: preserve-3d; transition: transform .5s var(--ease); }
.mock {
  position: relative; border-radius: 26px; overflow: hidden; overflow: clip; transform: translateZ(0);
  background: linear-gradient(180deg, rgba(25, 25, 60, .85), rgba(12, 12, 34, .92)); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg), 0 0 80px -30px rgba(75, 85, 255, .7);
}
.mock::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: linear-gradient(160deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .04) 40%, rgba(255, 107, 116, .35)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mock-av { width: 38px; height: 38px; border-radius: 12px; background: var(--grad); display: grid; place-items: center; color: #fff; flex: none; box-shadow: 0 6px 20px -6px rgba(138, 63, 209, .9); }
.mock-av svg { width: 20px; height: 20px; animation: spinstar 8s linear infinite; }
.mock-who { min-width: 0; line-height: 1.25; }
.mock-who b { display: block; font-size: 15px; }
.mock-who small { font-size: 12px; color: var(--muted); }
.mock-chip { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; background: var(--surface-2); padding: 5px 11px; border-radius: 999px; color: var(--text-2); transition: color .2s; white-space: nowrap; }
.mock-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.mock-chip[data-s="checking"] i { background: var(--blue-2); animation: pulse .9s infinite; }
.mock-chip[data-s="available"] { color: var(--green); } .mock-chip[data-s="available"] i { background: var(--green); }
.mock-chip[data-s="taken"] { color: var(--coral); } .mock-chip[data-s="taken"] i { background: var(--red); }
.mock-chip[data-s="error"] { color: var(--amber); } .mock-chip[data-s="error"] i { background: var(--amber); }
.mock-body { padding: 20px 18px 18px; display: flex; flex-direction: column; gap: 12px; min-height: 340px; }
.msg { max-width: 88%; padding: 11px 15px; border-radius: 18px; font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.msg-me { align-self: flex-end; background: var(--grad); color: #fff; border-bottom-right-radius: 6px; }
.msg-me b { font-weight: 800; }
.msg-bot { align-self: flex-start; background: var(--surface-2); color: var(--text); border-bottom-left-radius: 6px; min-height: 42px; animation: rise .4s var(--ease) both; }
.msg-bot b { color: #fff; }
.msg-bot code { font-weight: 700; color: var(--coral); }
.dots { display: inline-flex; gap: 4px; vertical-align: middle; padding: 6px 0; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--text-2); animation: dot 1.1s ease-in-out infinite; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.mock-card { margin-top: auto; padding: 18px 18px 16px; border-radius: 20px; background: radial-gradient(120% 140% at 0% 0%, rgba(75, 85, 255, .3), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(255, 59, 66, .28), transparent 55%), rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px var(--line); }
.mock-card small { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-family: var(--mono); }
.mock-name { font-size: 40px; font-weight: 800; color: #fff; line-height: 1.15; letter-spacing: -.035em; white-space: nowrap; transition: transform .3s var(--spring); transform-origin: left center; margin: 4px 0 10px; }
.mock-name.wrap-any { white-space: normal; overflow-wrap: anywhere; }
.mock-name b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mock-name.bump { transform: scale(1.04); }
.mock-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 13px; color: var(--text-2); }
.mock-meta b { color: var(--green); font-size: 15px; }
.mock-meta code { margin-left: auto; font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 8px; background: rgba(255, 255, 255, .08); color: #fff; }
.mock-input { display: flex; align-items: center; gap: 10px; margin: 0 14px 14px; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); font-size: 13.5px; color: var(--muted); }
.mock-input span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-input i { width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--bg); display: grid; place-items: center; flex: none; }
.mock-input svg { width: 16px; height: 16px; stroke-width: 2.5; }

.float { position: absolute; display: flex; align-items: center; gap: 8px; border-radius: 16px; padding: 10px 14px; font-size: 13px; font-weight: 700; animation: bob 5s ease-in-out infinite; transform: translateZ(60px); background: rgba(20, 20, 50, .82); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: var(--shadow-lg); }
.float svg { width: 20px; height: 20px; }
.f-code { left: -34px; top: -24px; color: #fff; }
.f-code svg { color: var(--coral); }
.f-code code { font-size: 12.5px; letter-spacing: .5px; }
.f-free { right: -24px; top: 40%; flex-direction: column; gap: 0; align-items: flex-start; padding: 10px 16px; background: var(--grad-red); color: #fff; animation-delay: -1.6s; }
.f-free b { font-size: 26px; line-height: 1; }
.f-free span { font-size: 11px; font-weight: 600; opacity: .9; }
.f-len { left: 28px; bottom: -46px; flex-direction: column; gap: 0; align-items: flex-start; padding: 8px 14px; background: var(--blue); color: #fff; animation-delay: -3.2s; }
.f-len b { font-size: 22px; line-height: 1; font-family: var(--mono); }
.f-len span { font-size: 11px; font-weight: 600; opacity: .9; }
@keyframes bob { 50% { translate: 0 -10px; } }

.scroll-cue { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); width: 26px; height: 42px; border-radius: 14px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); z-index: 2; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Ticker ---------- */
.ticker { position: relative; z-index: 2; overflow: hidden; overflow: clip; padding: 18px 0; background: var(--grad); box-shadow: 0 0 60px -10px rgba(138, 63, 209, .7); }
.ticker-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track span { display: inline-flex; align-items: center; font-size: 20px; font-weight: 800; white-space: pre; letter-spacing: -.01em; }
.ticker-track span em { font-style: normal; font-family: var(--mono); color: #fff; background: rgba(0, 0, 0, .22); padding: 0 8px; border-radius: 8px; }
.ticker-track span svg { width: 18px; height: 18px; color: #fff; margin: 0 24px; flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.sec { position: relative; padding: 110px 0; }
.sec-head { max-width: 720px; margin-bottom: 44px; }
.tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--coral); margin-bottom: 14px; }
.tag::before { content: ""; width: 12px; height: 12px; background: currentColor; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); }
h2 { font-size: clamp(30px, 4.2vw, 52px); line-height: 1.06; letter-spacing: -.04em; color: #fff; margin: 0 0 12px; font-weight: 800; }
.sec-head p, .card-l > p { color: var(--text-2); font-size: 17px; margin: 0; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; }
.step { position: relative; background: var(--surface); border-radius: 24px; padding: 26px 22px 24px; box-shadow: inset 0 0 0 1px var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease), background .35s; z-index: 1; overflow: hidden; overflow: clip; }
.step:hover { transform: translateY(-6px); background: var(--surface-2); box-shadow: var(--glow); }
.step-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: #fff; margin-bottom: 18px; transition: transform .4s var(--spring); box-shadow: 0 10px 24px -10px rgba(138, 63, 209, .9); }
.step-ico svg { width: 25px; height: 25px; }
.step:hover .step-ico { transform: rotate(-8deg) scale(1.08); }
.step-n { position: absolute; top: 16px; right: 20px; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--muted); }
.step h3 { font-size: 18px; margin: 0 0 6px; font-weight: 800; letter-spacing: -.01em; }
.step p { margin: 0; font-size: 14.5px; color: var(--text-2); }
.step code, .faq .a code, .terms code { color: var(--coral); font-weight: 700; font-size: .95em; }

/* Spotlight hover */
.spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 50%), rgba(111, 120, 255, .16), transparent 60%); }
.spot:hover::after { opacity: 1; }

/* Bento */
.sec-why { padding-top: 0; }
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: minmax(220px, auto); gap: 16px; }
.tile { position: relative; background: var(--surface); border-radius: 26px; padding: 28px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; overflow: clip; display: flex; flex-direction: column; justify-content: flex-end; transition: transform .35s var(--ease); }
.tile:hover { transform: translateY(-4px); }
.tile h3 { margin: 0 0 6px; font-size: 20px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
.tile p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.t-big { grid-column: span 2; grid-row: span 2; background: radial-gradient(90% 70% at 20% 10%, rgba(75, 85, 255, .28), transparent 60%), radial-gradient(80% 60% at 90% 90%, rgba(255, 59, 66, .22), transparent 60%), var(--bg-2); }
.t-big h3 { font-size: clamp(24px, 2.6vw, 34px); letter-spacing: -.03em; }
.t-big p { font-size: 16px; max-width: 440px; }
.t-logo { flex: 1; display: grid; place-items: center; min-height: 200px; }
.t-logo .logo { width: min(340px, 78%); filter: drop-shadow(0 20px 40px rgba(75, 85, 255, .35)); }
.t-grad { background: var(--grad); color: #fff; grid-column: span 2; box-shadow: none; }
.t-grad p { color: rgba(255, 255, 255, .85); }
.t-red { background: var(--grad-red); color: #fff; box-shadow: none; }
.t-red p { color: rgba(255, 255, 255, .88); }
.t-num { font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.05em; margin-bottom: auto; padding-bottom: 18px; }
.t-num small { font-size: 16px; font-weight: 600; letter-spacing: 0; margin-left: 10px; opacity: .85; }
.t-ico { width: 52px; height: 52px; border-radius: 16px; background: var(--surface-2); color: var(--coral); display: grid; place-items: center; margin-bottom: auto; }
.t-ico svg { width: 26px; height: 26px; }
.tile.t-grad::after, .tile.t-red::after { background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .2), transparent 60%); }

/* Registrars */
.sec-reg { overflow: hidden; overflow: clip; }
.reg-glow { position: absolute; inset: 10% -10% auto; height: 70%; background: radial-gradient(50% 60% at 30% 50%, rgba(75, 85, 255, .22), transparent 70%), radial-gradient(40% 50% at 75% 40%, rgba(255, 59, 66, .18), transparent 70%); filter: blur(30px); pointer-events: none; }
.reg-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.reg-card {
  position: relative; display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: 24px; text-decoration: none; color: #fff;
  background: rgba(255, 255, 255, .05); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; overflow: clip; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .4s var(--ease), box-shadow .3s, background .3s; min-height: 210px;
}
.reg-card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .14), transparent 55%); opacity: 0; transition: opacity .3s; }
.reg-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px var(--line-2), 0 24px 40px -20px rgba(0, 0, 0, .8); }
.reg-card:hover::before { opacity: 1; }
.reg-card .mono { width: 56px; height: 56px; border-radius: 17px; font-size: 17px; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .6); }
.reg-card b { font-size: 20px; font-weight: 800; line-height: 1.2; }
.reg-card small { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.reg-go { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--text-2); }
.reg-go span.arr { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); transition: background .3s, transform .4s var(--spring); }
.reg-go svg { width: 18px; height: 18px; }
.reg-card:hover .reg-go span.arr { background: var(--grad); transform: rotate(45deg); }

/* Promo bar above the registrars (always shows the code; plus the name once one is available) */
.reg-buy { display: flex; flex-wrap: wrap; gap: 14px; margin: -14px 0 22px; }
.reg-buy .ticket { flex: 1 1 340px; margin-top: 0; }
.reg-buy .ticket::before, .reg-buy .ticket::after { background: var(--bg); }
.reg-pill {
  flex: 1 1 340px; min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 18px; border-radius: 18px;
  background: rgba(52, 211, 153, .1); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, .35); animation: rise .5s var(--ease) both;
}
.reg-pill i { width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: var(--green-ink); display: grid; place-items: center; flex: none; }
.reg-pill i svg { width: 20px; height: 20px; stroke-width: 3; }
.reg-pill-t { min-width: 0; flex: 1; }
.reg-pill small { display: block; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.reg-pill b { display: block; font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
.reg-change { color: var(--text-2); font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: none; border-bottom: 1px solid var(--line-2); padding: 4px 0; }
.reg-change:hover { color: #fff; border-color: #fff; }
.reg-grid.buy .reg-card { background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px var(--line-2); }
.reg-grid.buy .reg-go { color: #fff; }
.reg-grid.buy .reg-go span.arr { background: var(--grad); }
.reg-card.pop { animation: rise .55s var(--ease) both; animation-delay: var(--i, 0s); }
.reg-grid.flash .reg-card { animation: glow 1.6s var(--ease) both; animation-delay: calc(var(--i, 0s) + .5s); }
.reg-grid.flash .reg-card.pop { animation: rise .55s var(--ease) both, glow 1.6s var(--ease) both; animation-delay: var(--i, 0s), calc(var(--i, 0s) + .5s); }
@keyframes glow {
  0%, 100% { box-shadow: inset 0 0 0 1px var(--line-2); }
  35% { box-shadow: inset 0 0 0 2px #a78bfa, 0 0 0 6px rgba(138, 63, 209, .3); }
}
.reg-next { margin-top: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 20px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); animation: rise .45s var(--ease) both; }
.reg-next p { margin: 0; flex: 1; min-width: 200px; color: var(--text-2); font-weight: 600; }

/* Claim card */
.card-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; align-items: center; }
.card-form { margin-top: 28px; background: var(--surface); padding: 18px; border-radius: 24px; box-shadow: inset 0 0 0 1px var(--line); }
.card-form label { display: block; font-size: 13px; font-weight: 600; color: var(--text-2); margin: 0 4px 8px; }
.field-sm { padding: 4px 12px 4px 16px; }
.field-sm input { font-size: 19px; padding: 10px 0; }
.field-sm .field-tld { font-size: 19px; }
.card-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.card-btns .btn:hover svg { transform: translateY(2px); }
.tiny { font-size: 12.5px; color: var(--muted); margin: 12px 4px 0; }
.board-frame { position: relative; border-radius: 24px; padding: 10px; background: linear-gradient(140deg, rgba(75, 85, 255, .55), rgba(138, 63, 209, .25) 45%, rgba(255, 59, 66, .55)); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9), 0 0 80px -30px rgba(138, 63, 209, .8); transform: rotate(-1.4deg); transition: transform .5s var(--spring); }
.board-frame:hover { transform: rotate(0) scale(1.015); }
.board-frame canvas { width: 100%; height: auto; border-radius: 16px; }

/* Terms + FAQ */
.tf-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.terms { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.terms li { display: flex; gap: 14px; align-items: flex-start; background: var(--surface); padding: 14px 16px; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; color: var(--text-2); transition: transform .25s var(--ease); }
.terms li:hover { transform: translateX(4px); }
.terms li b { flex: none; width: 28px; height: 28px; border-radius: 9px; background: var(--grad); color: #fff; font-family: var(--mono); font-size: 12px; display: grid; place-items: center; }
.faq { margin-top: 20px; display: grid; gap: 10px; }
.faq details { background: var(--surface); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; overflow: clip; transition: background .25s; }
.faq details[open] { background: var(--surface-2); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; font-weight: 700; font-size: 15.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--surface-2); position: relative; transition: transform .35s var(--spring), background .25s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; background: #fff; transform: translate(-50%, -50%); }
.faq summary i::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] summary i { transform: rotate(135deg); background: var(--grad); }
.faq .a { padding: 0 18px 16px; color: var(--text-2); font-size: 14.5px; animation: rise .35s var(--ease) both; }

/* ---------- Footer ---------- */
.foot { position: relative; overflow: hidden; overflow: clip; background: var(--bg); padding: 90px 0 30px; border-top: 1px solid var(--line); }
.foot-glow { position: absolute; left: 50%; bottom: -60%; width: 1100px; height: 700px; transform: translateX(-50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(138, 63, 209, .45), rgba(75, 85, 255, .2) 50%, transparent); pointer-events: none; }
.foot-big { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding-bottom: 50px; border-bottom: 1px solid var(--line); }
.foot-thanks { margin: 0; font-size: clamp(52px, 10vw, 140px); font-weight: 800; line-height: .92; letter-spacing: -.055em; color: var(--text-2); }
.foot-thanks b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-row { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding: 28px 0 18px; }
.foot-brand { display: flex; align-items: center; gap: 16px; }
.foot-brand .logo { width: 88px; }
.foot-brand b { display: block; font-size: 15px; }
.foot-brand span { font-size: 13px; color: var(--muted); }
.foot-links { display: flex; gap: 6px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: background .2s; }
.foot-links a:hover { background: var(--surface-2); }
.foot-legal { position: relative; margin: 0; font-size: 12.5px; color: var(--muted); }

/* ---------- Floating bits ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 24px) scale(.96); opacity: 0; pointer-events: none; z-index: 60;
  background: #fff; color: var(--bg); padding: 12px 18px; border-radius: 16px; font-size: 14px; font-weight: 600; box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7);
  transition: opacity .25s, transform .35s var(--spring); max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 70; }

/* ---------- Reveal ---------- */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease) var(--d, 0s), transform .8s var(--ease) var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .menu-btn { display: block; }
  .links {
    position: fixed; top: calc(var(--nav-h) + 4px); left: 12px; right: 12px; margin: 0; flex-direction: column; gap: 2px;
    background: var(--bg-3); border-radius: 22px; padding: 10px; box-shadow: var(--shadow-lg);
    opacity: 0; transform: translateY(-12px) scale(.98); transform-origin: top center; pointer-events: none; visibility: hidden;
    transition: opacity .25s var(--ease), transform .35s var(--spring), visibility 0s .35s;
  }
  .nav.open .links { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .25s var(--ease), transform .35s var(--spring); }
  .nav.open { background: rgba(7, 7, 26, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); }
  .links a { font-size: 17px; padding: 14px 16px; border-radius: 14px; color: #fff; }
  .links .menu-cta { display: flex; margin-top: 6px; justify-content: center; }
  .nav-r { margin-left: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 64px; }
  .hero-r { max-width: 540px; width: 100%; margin: 0 auto; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-grid, .tf-grid { grid-template-columns: minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 640px) {
  :root { --nav-h: 64px; }
  .wrap { padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
  .toast { bottom: calc(20px + env(safe-area-inset-bottom)); }
  .foot { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
  .brand .logo { width: 72px; }
  .nav-cta { display: none; }
  .hero { padding-top: calc(var(--nav-h) + 24px); min-height: 0; }
  .floor { height: 40%; }
  .search { padding: 14px; border-radius: 24px; }
  .journey li em { display: none; }
  .journey li { flex: 1 1 auto; }
  .journey li.is-active em { display: inline; }
  .journey li.is-active { flex: 2 1 auto; }
  .field { flex-wrap: wrap; padding: 6px 6px 6px 14px; }
  .field input, .field-tld { font-size: 19px; }
  .field .ind { order: 3; padding: 0 0 6px 30px; width: 100%; }
  .field .ind:not([data-s="checking"]):not([data-s="available"]):not([data-s="taken"]):not([data-s="error"]) { display: none; }
  .field .btn { order: 4; width: 100%; }
  .field-sm { flex-wrap: nowrap; }
  .r-regs { grid-template-columns: minmax(0, 1fr); }
  .reg-next .btn { width: 100%; white-space: normal; }
  .reg-buy { gap: 10px; margin: 0 0 14px; }
  .reg-pill { flex-wrap: nowrap; gap: 12px; padding: 10px 14px; border-radius: 16px; }
  .reg-pill i { width: 32px; height: 32px; }
  .reg-pill i svg { width: 16px; height: 16px; }
  .reg-pill small { font-size: 10px; }
  .reg-pill b { font-size: 17px; }
  .reg-change { font-size: 12.5px; flex: none; }
  .ticket::before, .ticket::after { left: calc(100% - 109px); }
  .ticket-r { width: 100px; }
  .ticket-l code { font-size: 19px; letter-spacing: 1px; }
  .reg-buy .ticket-l { padding: 8px 14px; }
  .reg-buy .copy-btn { padding: 8px 12px; }
  .card-btns .btn { flex: 1 1 100%; }
  .foot-big { padding-bottom: 36px; }
  .float { font-size: 12px; padding: 8px 11px; }
  .f-code { left: -6px; top: -18px; }
  .f-code code { font-size: 11px; }
  .f-free { right: -6px; top: auto; bottom: 150px; }
  .f-free b { font-size: 21px; }
  .f-len { left: auto; right: 22px; bottom: -42px; }
  .mock-body { min-height: 0; }
  .mock-name { font-size: 32px; }
  .scroll-cue { display: none; }
  .ticker-track span { font-size: 16px; }
  .sec { padding: 80px 0; }
  .sec-why { padding-top: 0; }
  .steps, .reg-grid, .bento { grid-template-columns: minmax(0, 1fr); }
  .t-big, .t-grad { grid-column: auto; grid-row: auto; }
  .reg-grid { gap: 10px; }
  .reg-card { min-height: 0; flex-direction: row; flex-wrap: nowrap; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; }
  .reg-card .mono { width: 46px; height: 46px; border-radius: 13px; font-size: 14px; }
  .reg-card > span:nth-child(2) { flex: 1; min-width: 0; }
  .reg-card b { font-size: 17px; }
  .reg-card small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .reg-card .reg-go { margin-top: 0; margin-left: auto; }
  .reg-card .reg-go > span:first-child { display: none; }
  .buying .reg-card .reg-go { background: var(--grad); border-radius: 999px; padding: 4px 4px 4px 14px; gap: 8px; }
  .buying .reg-card .reg-go > span:first-child { display: inline; color: #fff; font-size: 14px; font-weight: 700; }
  .buying .reg-card .reg-go span.arr { width: 32px; height: 32px; background: rgba(255, 255, 255, .2); }
  .sec-reg.buying { padding-top: 36px; }
  .buying .sec-head { margin-bottom: 16px; }
  .buying .sec-head h2 { font-size: 24px; margin-bottom: 0; overflow-wrap: anywhere; }
  .buying .sec-head p { display: none; }
  .buying .reg-card { padding: 9px 12px; gap: 12px; border-radius: 16px; }
  .buying .reg-card .mono { width: 38px; height: 38px; font-size: 12px; border-radius: 11px; }
  .buying .reg-card small { font-size: 12px; margin-top: 0; }
  .buying .reg-card .reg-go span.arr { width: 30px; height: 30px; }
  .buying .reg-card b { font-size: 16px; }
  .board-frame { transform: none; }
}

/* Short phones (e.g. iPhone SE): keep all registrars on screen in the buy step */
@media (max-width: 640px) and (max-height: 700px) {
  .buying .tag { display: none; }
  .sec-reg.buying { padding-top: 24px; }
}

/* Touch devices: 44px tap targets */
@media (hover: none), (pointer: coarse) {
  .lang button { padding: 0 14px; min-height: 38px; min-width: 44px; }
  .chip { min-height: 44px; padding: 8px 16px; }
  .foot-links a { padding: 12px 16px; }
  .btn-sm { min-height: 44px; }
  .scroll-cue { display: none; }
}

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