/* tron.mx — landing styles */
:root {
  --bg: oklch(0.13 0.005 250);
  --bg-2: oklch(0.16 0.006 250);
  --surface: oklch(0.18 0.007 250);
  --surface-2: oklch(0.21 0.008 250);
  --line: oklch(0.28 0.008 250);
  --line-soft: oklch(0.23 0.007 250);
  --text: oklch(0.97 0.003 250);
  --text-soft: oklch(0.82 0.005 250);
  --muted: oklch(0.6 0.008 250);
  --muted-2: oklch(0.48 0.008 250);
  --accent: oklch(0.72 0.16 30);
  --accent-soft: oklch(0.72 0.16 30 / 0.12);
  --accent-line: oklch(0.72 0.16 30 / 0.4);
  --ok: oklch(0.78 0.14 155);
  --danger: oklch(0.68 0.18 25);
  --maxw: 1120px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-xl: 22px;
  --font-sans: "Geist", "Söhne", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --font-display: "Geist", "Söhne", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  min-height: 100vh;
  overflow-x: hidden;
  background-image:
    radial-gradient(1200px 600px at 50% -100px, oklch(0.22 0.02 30 / 0.35), transparent 60%),
    radial-gradient(800px 500px at 90% 10%, oklch(0.2 0.015 270 / 0.25), transparent 60%);
}

img { max-width: 100%; display: block; }
button { font-family: inherit; }
a { color: var(--text); text-decoration: none; }
a:hover { color: var(--text); }

::selection { background: var(--accent-soft); color: var(--text); }

/* layout */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* nav */
.nav {
  position: sticky; top: 0; z-index: 30;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: color-mix(in oklch, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: var(--text);
  display: grid; place-items: center;
  overflow: hidden;
  flex: 0 0 28px;
}
.brand-mark img { width: 86%; height: 86%; object-fit: contain; filter: invert(1); }
.brand-text { display: flex; align-items: center; gap: 8px; line-height: 1; }
.brand-text .dot { color: var(--muted); }
.brand-text .host { color: var(--text); font-variant-numeric: tabular-nums; }
.brand-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex; align-items: center; gap: 6px;
}
.brand-meta::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
}

.nav-links {
  display: flex; align-items: center; gap: 4px;
  font-size: 14px;
  color: var(--text-soft);
}
.nav-links a {
  padding: 8px 12px; border-radius: 8px; color: var(--text-soft);
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--text); background: var(--surface); }
.nav-cta {
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease;
}
.nav-cta:hover { background: var(--surface-2); border-color: var(--muted-2); }

/* nav actions cluster */
.nav-actions { display: flex; align-items: center; gap: 8px; }

/* language switcher */
.lang-switcher { position: relative; }
.lang-trigger {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 10px 8px 11px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text-soft);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.lang-trigger:hover,
.lang-switcher.open .lang-trigger {
  background: var(--surface);
  border-color: var(--muted-2);
  color: var(--text);
}
.lang-trigger .globe { opacity: 0.7; }
.lang-trigger .lang-code {
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--text);
}
.lang-trigger .chev {
  opacity: 0.55;
  transition: transform .2s ease;
}
.lang-switcher.open .lang-trigger .chev { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: oklch(0.165 0.006 250);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  margin: 0;
  list-style: none;
  z-index: 40;
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.04) inset,
    0 30px 60px -20px oklch(0 0 0 / 0.6),
    0 6px 20px -8px oklch(0 0 0 / 0.4);
  backdrop-filter: blur(12px);
  animation: menuIn .14s ease-out;
  transform-origin: top right;
}
.lang-menu[hidden] { display: none; }
@keyframes menuIn { from { opacity: 0; transform: translateY(-4px) scale(.98); } to { opacity: 1; transform: none; } }
.lang-menu li { margin: 0; }
.lang-menu button {
  width: 100%;
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  background: transparent;
  border: none;
  border-radius: 9px;
  color: var(--text-soft);
  font: inherit;
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}
.lang-menu button:hover,
.lang-menu button:focus-visible {
  background: var(--surface);
  color: var(--text);
  outline: none;
}
.lang-menu button[aria-current="true"] { color: var(--text); }
.lang-menu button[aria-current="true"] .lang-marker {
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}
.lang-menu .lang-marker {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--line);
  justify-self: center;
}
.lang-menu .lang-name { font-weight: 500; letter-spacing: -0.005em; }
.lang-menu .lang-iso {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
}
.lang-menu button[aria-current="true"] .lang-iso {
  color: var(--accent);
  border-color: var(--accent-line);
  background: var(--accent-soft);
}

@media (max-width: 720px) {
  .lang-trigger .globe { display: none; }
  .lang-menu { right: -8px; min-width: 220px; }
}

@media (max-width: 720px) {
  .nav-links { display: none; }
}

/* hero */
.hero {
  position: relative;
  padding: 88px 0 96px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 72px;
  align-items: center;
}
@media (max-width: 960px) {
  .hero { padding: 56px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  padding: 7px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in oklch, var(--surface) 50%, transparent);
}
.eyebrow .eyebrow-sep {
  width: 1px; height: 10px; background: var(--line);
  display: inline-block;
}
.eyebrow .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-line);
  animation: pulse 2.2s ease-out infinite;
}
.eyebrow .pulse.pulse-ok {
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok), 0 0 0 0 oklch(0.78 0.14 155 / 0.5);
  animation: pulse-ok 2.2s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--accent-line); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}
@keyframes pulse-ok {
  0% { box-shadow: 0 0 8px var(--ok), 0 0 0 0 oklch(0.78 0.14 155 / 0.5); }
  70% { box-shadow: 0 0 8px var(--ok), 0 0 0 8px oklch(0.78 0.14 155 / 0); }
  100% { box-shadow: 0 0 8px var(--ok), 0 0 0 0 transparent; }
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 5.6vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 500;
  margin: 22px 0 20px;
  text-wrap: balance;
}
.hero h1 .accent {
  color: var(--text);
  background: linear-gradient(180deg, var(--text), oklch(0.78 0.02 30));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero h1 em {
  font-style: normal;
  color: var(--muted);
}
.hero p.lede {
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-soft);
  max-width: 52ch;
  margin: 0 0 32px;
  text-wrap: pretty;
}

.hero-bullets {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 28px;
}
.hero-bullets span {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 6px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  background: color-mix(in oklch, var(--surface) 40%, transparent);
}
.hero-bullets span::before {
  content: "▸ ";
  color: var(--accent);
  margin-right: 4px;
}

/* auth card */
.auth-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    linear-gradient(180deg, oklch(0.2 0.008 250 / 0.8), oklch(0.16 0.006 250 / 0.8));
  padding: 28px;
  box-shadow:
    0 1px 0 oklch(1 0 0 / 0.04) inset,
    0 30px 80px -30px oklch(0 0 0 / 0.7),
    0 2px 30px -10px oklch(0.72 0.16 30 / 0.18);
  backdrop-filter: blur(6px);
}
.auth-card::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: var(--r-xl);
  padding: 1px;
  background: linear-gradient(180deg, oklch(1 0 0 / 0.12), oklch(1 0 0 / 0));
  -webkit-mask:
    linear-gradient(#000, #000) content-box,
    linear-gradient(#000, #000);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}
.auth-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.auth-head .title {
  display: flex; flex-direction: column; gap: 4px;
}
.auth-head h2 {
  font-size: 16px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}
.auth-head .sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
}
.auth-head .badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.auth-head .badge .blink {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok); box-shadow: 0 0 8px var(--ok);
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .12s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(180deg, oklch(0.96 0.005 250), oklch(0.88 0.005 250));
  color: oklch(0.16 0.008 250);
  border-color: oklch(0.7 0.01 250);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.5) inset, 0 10px 24px -12px oklch(0 0 0 / 0.6);
}
.btn.primary:hover { background: linear-gradient(180deg, oklch(0.98 0.005 250), oklch(0.92 0.005 250)); }
.btn.ghost {
  background: var(--surface);
  border-color: var(--line);
  color: var(--text-soft);
}
.btn.ghost:hover { background: var(--surface-2); border-color: var(--muted-2); color: var(--text); }
.btn.link {
  background: transparent; border: none; color: var(--muted); padding: 6px 0; width: auto;
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line);
}
.btn.link:hover { color: var(--text); text-decoration-color: var(--muted); }

.btn .tron-mark {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  flex: 0 0 22px;
}
.btn .tron-mark svg { width: 100%; height: 100%; display: block; }

.auth-hint {
  margin: 14px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 18px 0;
}
.auth-divider::before, .auth-divider::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.field {
  display: flex; flex-direction: column; gap: 8px;
  margin-bottom: 12px;
}
.field label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.field .input {
  display: flex; align-items: center;
  background: oklch(0.14 0.006 250);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 14px;
  transition: border-color .15s ease, background .15s ease;
}
.field .input:focus-within {
  border-color: oklch(0.55 0.01 250);
  background: oklch(0.15 0.006 250);
}
.field input {
  flex: 1;
  background: transparent;
  border: none; outline: none;
  color: var(--text);
  padding: 12px 0;
  font-size: 15px;
  font-family: inherit;
}
.field input::placeholder { color: var(--muted-2); }
.field .input .suffix {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 13px;
  padding-left: 10px;
  border-left: 1px solid var(--line);
}

.auth-foot {
  margin-top: 16px;
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.auth-foot a { color: var(--text-soft); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.auth-foot a:hover { color: var(--text); }

.auth-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  background: oklch(0.14 0.006 250);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px;
  margin-bottom: 22px;
  font-size: 13px;
}
.auth-tabs button {
  padding: 8px 10px;
  background: transparent;
  border: none;
  color: var(--muted);
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  transition: background .15s ease, color .15s ease;
}
.auth-tabs button.on {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: 0 1px 0 oklch(1 0 0 / 0.05) inset;
}

/* hero abstract */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  mask-image: radial-gradient(60% 60% at 70% 50%, #000 30%, transparent 75%);
}
.hero-bg svg { width: 100%; height: 100%; }
.hero > .container { position: relative; z-index: 1; }

/* sections */
section.block {
  padding: 84px 0;
  border-top: 1px solid var(--line-soft);
  position: relative;
}
@media (max-width: 720px) {
  section.block { padding: 56px 0; }
}
.block-head {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px 64px;
  margin-bottom: 40px;
  align-items: end;
}
@media (max-width: 800px) {
  .block-head { grid-template-columns: 1fr; gap: 16px; }
}
.block-head .label {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 10px;
}
.block-head .label::before {
  content: ""; width: 8px; height: 8px; background: var(--accent); border-radius: 2px;
  display: inline-block;
}
.block-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 12px 0 0;
  text-wrap: balance;
}
.block-head .desc {
  color: var(--text-soft);
  font-size: 17px;
  max-width: 56ch;
  text-wrap: pretty;
  margin: 0;
  padding-bottom: 6px;
}

/* feature trio */
.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
@media (max-width: 900px) { .trio { grid-template-columns: 1fr; } }
.tile {
  position: relative;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
  min-height: 320px;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.tile:hover { border-color: var(--muted-2); }
/* Feature-tile display order. */
.tile--order2 { order: 2; }
.tile--order3 { order: 3; }
.tile-art {
  position: relative;
  aspect-ratio: 320 / 168;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background:
    radial-gradient(80% 60% at 30% 20%, oklch(0.22 0.012 30 / 0.35), transparent 70%),
    linear-gradient(180deg, oklch(0.185 0.007 250), oklch(0.145 0.006 250));
  overflow: hidden;
}
.tile-art::after {
  content: "";
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, oklch(1 0 0 / 0.018) 0 1px, transparent 1px 4px);
  pointer-events: none;
}
.tile-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }.tile h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  font-family: var(--font-display);
}
.tile p {
  margin: 0;
  color: var(--text-soft);
  font-size: 14.5px;
  line-height: 1.55;
}
.tile .index {
  position: absolute;
  top: 18px; right: 18px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.1em;
}

/* infra list */
.infra {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
@media (max-width: 720px) { .infra { grid-template-columns: 1fr; } }
.infra-row {
  background: var(--bg-2);
  padding: 28px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
  min-height: 160px;
  transition: background .2s ease;
}
.infra-row:hover { background: var(--surface); }
.infra-row .ico {
  width: 56px; height: 56px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--bg));
  display: grid; place-items: center;
  color: var(--text);
}
.infra-row .ico svg { width: 24px; height: 24px; }
.infra-row .meta {
  display: flex; flex-direction: column; gap: 8px;
}
.infra-row .tag {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-transform: uppercase;
}
.infra-row h4 {
  margin: 0;
  font-size: 17px;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.infra-row p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.55;
}

/* dev cta */
.dev {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 880px) { .dev { grid-template-columns: 1fr; } }
.dev-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  display: flex; flex-direction: column; gap: 18px;
  overflow: hidden;
}
.dev-card h3,
.dev-code h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(20px, 2.1vw, 24px);
  margin: 0;
  letter-spacing: -0.015em;
}
.dev-card p,
.dev-code p { color: var(--text-soft); font-size: 15px; margin: 0; max-width: 52ch; }
.itag {
  font-family: var(--font-mono);
  font-size: 0.86em;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
  white-space: nowrap;
}
a.itag { text-decoration: none; transition: background .15s ease, border-color .15s ease, color .15s ease; }
a.itag:hover { background: var(--surface); border-color: var(--muted-2); color: var(--text); }
.dev-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: auto; }
.dev-actions .btn { width: auto; padding: 11px 16px; font-size: 14px; }

.soon-badge {
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 5px 10px;
  border: 1px solid var(--accent-line);
  border-radius: 999px;
  background: var(--accent-soft);
  margin-bottom: -6px;
}
.soon-badge .soon-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2.2s ease-out infinite;
}
.soon-badge--live {
  color: var(--ok);
  border-color: oklch(0.78 0.14 155 / 0.4);
  background: oklch(0.78 0.14 155 / 0.12);
}
.soon-badge--live .soon-dot {
  background: var(--ok);
  box-shadow: 0 0 8px var(--ok);
  animation: pulse-ok 2.2s ease-out infinite;
}

.dev-note {
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
  padding-left: 4px;
  flex: 1 0 100%;
  margin-top: 4px;
}
.dev-code {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 36px;
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  display: flex; flex-direction: column; gap: 18px;
  overflow: hidden;
}
.dev-code header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.dev-code header .dots { display: inline-flex; gap: 6px; }
.dev-code header .dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line);
}
.dev-code pre {
  margin: 0;
  padding: 18px 20px;
  overflow-x: auto;
  white-space: pre;
  font-size: 12.5px;
  flex: 1;
}
.dev-code .kw { color: oklch(0.78 0.12 30); }
.dev-code .str { color: oklch(0.85 0.07 145); }
.dev-code .num { color: oklch(0.84 0.1 220); }
.dev-code .com { color: var(--muted-2); }
.dev-code .fn { color: oklch(0.88 0.06 80); }

/* footer links */
.foot-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.foot-links a {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 0;
  font-size: 14px;
  color: var(--text-soft);
}
.foot-links a:hover { color: var(--text); }
.foot-links a svg { flex: 0 0 auto; color: var(--muted); transition: color .15s ease; }
.foot-links a:hover svg { color: var(--text); }
.foot-links a .ext { margin-left: auto; opacity: 0.6; }

.foot-grid--lean { grid-template-columns: 1.6fr 1fr !important; gap: 48px !important; }
@media (max-width: 720px) {
  .foot-grid--lean { grid-template-columns: 1fr !important; }
}

/* footer */
footer {
  border-top: 1px solid var(--line);
  padding: 28px 0;
  background: oklch(0.115 0.005 250);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 800px) {
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
.foot-grid h5 {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 14px;
}
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.foot-grid a {
  color: var(--text-soft);
  font-size: 14px;
  transition: color .15s ease;
}
.foot-grid a:hover { color: var(--text); }
.foot-brand p {
  color: var(--text-soft);
  font-size: 14px;
  max-width: 38ch;
  margin: 14px 0 0;
}
.foot-meta {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.04em;
  gap: 16px;
  flex-wrap: wrap;
}

/* compact horizontal footer row */
.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 8px 0;
  flex-wrap: wrap;
}
.foot-left {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.foot-copy {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 15px;
  color: var(--text-soft);
  padding: 6px 4px;
}
.foot-copy .foot-copy-link {
  color: var(--text-soft);
  padding: 6px 10px;
  margin-left: 4px;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.foot-copy .foot-copy-link:hover {
  color: var(--text);
  background: var(--surface);
}
.foot-copy .foot-copy-link--channel {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px;
  padding: 0;
  margin-left: -2px;
}
.foot-copy .foot-copy-link--channel .brand-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  color: oklch(0.92 0.005 250);
  opacity: 0.85;
  transition: opacity .15s ease, color .15s ease;
}
.foot-copy .foot-copy-link--channel .brand-icon svg {
  width: 100%; height: 100%; display: block;
  transform: translateY(-1px);
}
.foot-copy .foot-copy-link--channel:hover .brand-icon {
  opacity: 1; color: oklch(1 0 0);
}
.foot-copy .foot-version {
  font-size: 11.5px;
  color: var(--muted);
  padding: 3px 8px;
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  letter-spacing: 0.04em;
  margin-left: 4px;
}
.foot-row .brand { font-size: 14px; }
.foot-row .brand-mark {
  width: 24px; height: 24px; border-radius: 6px;
  flex: 0 0 24px;
}
.foot-row .brand-text { font-size: 14px; }
.foot-links-inline {
  display: flex; justify-content: center; gap: 4px;
  flex-wrap: wrap;
}
.foot-links-inline a {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 15px;
  color: var(--text-soft);
  transition: color .15s ease, background .15s ease;
}
.foot-links-inline a:hover { color: var(--text); background: var(--surface); }
.foot-links-inline a svg { color: var(--muted); transition: color .15s ease; }
.foot-links-inline a:hover svg { color: var(--text); }
.foot-links-inline a .favicon {
  width: 20px; height: 20px;
  border-radius: 5px;
  background: oklch(0.2 0.005 250);
  object-fit: cover;
  flex: 0 0 20px;
  opacity: 0.7;
  filter: grayscale(1) contrast(0.95);
  transition: opacity .15s ease;
}
.foot-links-inline a:hover .favicon { opacity: 0.95; }
.foot-links-inline a .brand-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  flex: 0 0 20px;
  color: oklch(0.92 0.005 250);
  opacity: 0.85;
  transition: opacity .15s ease, color .15s ease;
}
.foot-links-inline a .brand-icon svg { width: 100%; height: 100%; display: block; }
.foot-links-inline a .brand-icon--chums svg { transform: scale(1.22); }
.foot-links-inline a .brand-icon--telegram svg { transform: translateY(-1px); }
.foot-links-inline a:hover .brand-icon { opacity: 1; color: oklch(1 0 0); }
.foot-meta-inline {
  display: inline-flex; gap: 16px; align-items: center;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-soft);
  letter-spacing: 0;
  text-transform: none;
}
.foot-meta-inline .sep {
  width: 1px; height: 10px; background: var(--line); display: inline-block;
}
@media (max-width: 760px) {
  .foot-row { gap: 12px; justify-content: center; text-align: center; }
  .foot-copy { justify-content: center; flex-wrap: wrap; }
  .foot-left { justify-content: center; flex-wrap: wrap; }
  .foot-links-inline { justify-content: center; }
}

/* modal */
.modal-root {
  position: fixed; inset: 0;
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 24px;
  background: oklch(0.08 0.005 250 / 0.7);
  backdrop-filter: blur(10px);
}
.modal-root.open { display: flex; animation: modalIn .25s ease; }
@keyframes modalIn { from { opacity: 0; } to { opacity: 1; } }
.modal {
  width: 100%; max-width: 460px;
  background: oklch(0.16 0.006 250);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: 0 40px 100px -20px oklch(0 0 0 / 0.7);
  animation: modalScale .3s cubic-bezier(.2,.7,.2,1);
}
@keyframes modalScale { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: translateY(0) scale(1); opacity: 1; } }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.modal-head h3 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.modal-close {
  background: transparent; border: none; color: var(--muted);
  width: 32px; height: 32px; border-radius: 8px; cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s ease, color .15s ease;
}
.modal-close:hover { background: var(--surface); color: var(--text); }

/* connection steps */
.steps {
  display: flex; flex-direction: column; gap: 12px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--muted);
  margin: 8px 0 22px;
}
.step {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: oklch(0.14 0.006 250);
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.step .marker {
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-size: 10px; color: var(--muted-2);
  flex: 0 0 18px;
}
.step.active { color: var(--text); border-color: var(--accent-line); background: var(--accent-soft); }
.step.active .marker { border-color: var(--accent); color: var(--accent); }
.step.done { color: var(--text-soft); }
.step.done .marker {
  border-color: var(--ok); color: var(--ok);
}
.spinner {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  border-top-color: var(--accent);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.success-burst {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: oklch(0.78 0.14 155 / 0.12);
  border: 1px solid oklch(0.78 0.14 155 / 0.4);
  display: grid; place-items: center;
  margin: 8px auto 18px;
  animation: bounce .5s cubic-bezier(.3,1.4,.5,1);
}
@keyframes bounce { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal .center { text-align: center; }
.modal .wallet-card {
  margin-top: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: oklch(0.14 0.006 250);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.wallet-card .addr { color: var(--text); }
.wallet-card .net {
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.wallet-card .net::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 6px var(--ok);
}

/* locale pill in modal */
.locale-pill {
  margin-top: 12px;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 11px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.locale-pill svg { color: var(--muted-2); }
.locale-pill strong { color: var(--text); font-weight: 500; }

/* utility */
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }
.hidden { display: none !important; }

.scroll-mark {
  position: absolute;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.scroll-mark::after {
  content: "";
  width: 22px; height: 1px;
  background: linear-gradient(90deg, var(--muted), transparent);
}
@media (max-width: 960px) { .scroll-mark { display: none; } }

/* ------------------------------------------------------------------ */
/* Auth card additions */
/* ------------------------------------------------------------------ */

/* Auth sections — only one visible at a time. */
.auth-section { display: flex; flex-direction: column; gap: 14px; }
.auth-blurb {
  font-size: 14.5px;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.55;
}
.auth-blurb strong { color: var(--text); font-weight: 500; }

/* Wallet card outside the .modal scope (used in welcome / signup
   sections of the auth card). Same look as the in-modal wallet card. */
.auth-card .wallet-card {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: oklch(0.14 0.006 250);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12.5px;
}

/* Username field prefix (the "@" before the input). The base CSS only
   styles `.suffix` because the design's mock didn't have a prefix
   element. */
.field .input .prefix {
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: 13px;
  padding-right: 8px;
  border-right: 1px solid var(--line);
  margin-right: 10px;
}

/* Inline validation error under the username input. */
.field-error {
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--danger);
  margin: -4px 0 0;
}

/* Disabled state for the connect / submit buttons during in-flight
   TronLink requests. */
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}
.btn.primary:disabled,
.btn.primary:disabled:hover {
  background: linear-gradient(180deg, oklch(0.96 0.005 250), oklch(0.88 0.005 250));
}

/* Trailing spinner on the primary CTA while the auth card is busy
   (connecting / looking-up). Driven by `data-state` on `.auth-card`. */
.auth-card[data-state="connecting"] .btn.primary,
.auth-card[data-state="looking-up"] .btn.primary { position: relative; }
.auth-card[data-state="connecting"] .btn.primary::after,
.auth-card[data-state="looking-up"] .btn.primary::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 12px; height: 12px; border-radius: 50%;
  border: 2px solid oklch(0.16 0.008 250 / 0.3);
  border-top-color: oklch(0.16 0.008 250);
  /* Use a CTA-specific keyframe that bakes `translateY(-50%)` into
     every step so the vertical centering survives the rotation. The
     generic `spin` keyframe is used by the in-modal `.spinner` (which
     doesn't need centering), so we leave it alone. */
  animation: spin-cta 0.8s linear infinite;
}

@keyframes spin-cta {
  from { transform: translateY(-50%) rotate(0deg); }
  to   { transform: translateY(-50%) rotate(360deg); }
}

/* "Use a different wallet" link sits below the primary action and is
   self-centered (the base `.btn.link` defaults to inline width). */
.auth-section .btn.link { align-self: center; font-size: 13px; }

/* Override base `.auth-hint` (center-aligned) for blurbs that read
   like body copy inside welcome / signup / error sections — left-align
   matches the rest of the card. */
.auth-section[data-section="welcome"] .auth-hint,
.auth-section[data-section="signup"] .auth-hint,
.auth-section[data-section="error"] .auth-hint {
  text-align: left;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--muted);
  letter-spacing: 0;
}
