:root {
  --bg: #000;
  --surface: #0a0a0a;
  --surface-2: #101012;
  --border: #1c1c1f;
  --border-strong: #2a2a30;
  --text: #fafafa;
  --muted: #a1a1ac;
  --primary: #ffa45c;
  --primary-hover: #ffb77d;
  --primary-muted: #ffd0a8;
  --primary-deep: #b8652c;
  --primary-rgb: 255 164 92;
  --on-primary: #1a0d02; /* light orange needs dark text to stay readable */
  --danger: #ff6568;
  --ok: #4ade80;
  --font-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.5 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--primary); }
::selection { background: rgb(var(--primary-rgb) / .3); }

.wrap { max-width: 72rem; margin: 0 auto; padding: 0 24px; }
.accent { color: var(--primary); }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  border-bottom: 1px solid transparent;
  transition: background-color .3s, border-color .3s;
}
.site-header.solid, .site-header.scrolled {
  background: rgb(0 0 0 / .72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.logo {
  display: inline-flex; align-items: center; gap: 10px;
  font: 600 19px/1 var(--font-display); letter-spacing: -.01em;
  color: var(--text); text-decoration: none;
}
.logo-mark { width: 26px; height: 26px; color: var(--primary); flex: none; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  padding: 8px 12px; border-radius: 6px;
  font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.user-chip {
  font: 12px var(--font-mono); color: var(--muted);
  padding: 5px 10px; border: 1px solid var(--border-strong); border-radius: 99px;
}
@media (max-width: 760px) {
  .nav-links:not(.keep) { display: none; }
  .user-chip { display: none; }
}

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

button, .btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text);
  font: 600 14px var(--font-sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: box-shadow .2s, background-color .2s, border-color .2s, color .2s;
}
button:hover, .btn:hover { border-color: rgb(var(--primary-rgb) / .45); }
button:disabled { opacity: .5; cursor: default; }

.btn-primary, button.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn-primary:hover, button.primary:hover { background: var(--primary-hover); border-color: var(--primary-hover); box-shadow: 0 0 34px -6px var(--primary); }
button.primary { width: 100%; height: 44px; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); border-color: transparent; }
.btn-outline { background: transparent; }
.btn-outline:hover { background: var(--surface-2); }
.btn-lg { height: 48px; padding: 0 28px; border-radius: 12px; }
.btn-xl { height: 56px; padding: 0 40px; border-radius: 12px; font-size: 16px; }
button.small { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
button.danger { color: var(--danger); }
button.danger:hover { border-color: rgb(255 101 104 / .5); }
.glow { animation: pulse-glow 3s ease-in-out infinite; }

/* ---------- background effects ---------- */

.bg-fx { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.bg-fx.fixed { position: fixed; }
.dots {
  position: absolute; inset: 0; opacity: .08;
  background-image: radial-gradient(circle, var(--primary) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.orb { position: absolute; border-radius: 50%; animation: drift 22s ease-in-out infinite; }
.orb-1 { width: 600px; height: 600px; right: -128px; top: -128px; background: rgb(var(--primary-rgb) / .09); filter: blur(130px); }
.orb-2 { width: 520px; height: 520px; left: -192px; bottom: -192px; background: rgb(184 101 44 / .12); filter: blur(110px); animation-delay: -11s; animation-direction: reverse; }
.orb-3 { width: 600px; height: 400px; left: 50%; top: 50%; margin: -200px 0 0 -300px; background: rgb(var(--primary-rgb) / .07); filter: blur(100px); }
.hero-line {
  position: absolute; left: 50%; top: 22%; height: 1px; width: min(560px, 80vw); transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgb(var(--primary-rgb) / .5), transparent);
  animation: line-glow 3s ease-in-out infinite;
}

/* ---------- animations ---------- */

@keyframes rise-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pulse-glow { 0%, 100% { box-shadow: 0 0 24px -8px var(--primary); } 50% { box-shadow: 0 0 46px -8px var(--primary); } }
@keyframes line-glow { 0%, 100% { opacity: .5; } 50% { opacity: 1; } }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(40px, -30px); } 66% { transform: translate(-30px, 30px); } }
@keyframes blink { 50% { opacity: .35; } }

.rise { animation: rise-in .8s cubic-bezier(.25, .46, .45, .94) both; }
.d1 { animation-delay: .12s; } .d2 { animation-delay: .24s; } .d3 { animation-delay: .36s; }
.d4 { animation-delay: .6s; } .d5 { animation-delay: .9s; } .d6 { animation-delay: 1.4s; }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.25, .46, .45, .94); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.t1 { transition-delay: .08s; } .js .reveal.t2 { transition-delay: .16s; }
.js .reveal.t3 { transition-delay: .24s; } .js .reveal.t4 { transition-delay: .32s; } .js .reveal.t5 { transition-delay: .4s; }

/* ---------- landing ---------- */

.hero {
  position: relative; min-height: calc(100vh - 64px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 96px 24px 120px; text-align: center; overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 99px;
  border: 1px solid var(--border-strong); background: rgb(16 16 18 / .6);
  font: 12px var(--font-mono); color: var(--muted);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 10px var(--primary); animation: blink 2s ease-in-out infinite; }
.hero h1 {
  margin: 28px 0 0;
  font: 700 clamp(44px, 9vw, 104px)/1.02 var(--font-display); letter-spacing: -.04em;
}
.hero h1 .word { display: inline-block; margin-right: .22em; }
.hero h1 .word:last-child { margin-right: 0; }
.grad {
  background: linear-gradient(180deg, var(--primary-muted) 0%, var(--primary) 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 32px 0 0; max-width: 36rem; font-size: clamp(17px, 2.2vw, 20px); line-height: 1.65; color: var(--muted); }
.cta-row { margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.scroll-hint {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  font: 10px var(--font-mono); letter-spacing: .25em; text-transform: uppercase; color: var(--muted);
}
.scroll-hint i { width: 1px; height: 32px; background: linear-gradient(var(--muted), transparent); }

.section { position: relative; z-index: 1; max-width: 72rem; margin: 0 auto; padding: 120px 24px; scroll-margin-top: 40px; }
.section-head { max-width: 40rem; }
.kicker { font: 12px var(--font-mono); text-transform: uppercase; letter-spacing: .25em; color: rgb(255 208 168 / .75); }
.section h2 { margin: 16px 0 0; font: 700 clamp(30px, 4.5vw, 48px)/1.1 var(--font-display); letter-spacing: -.03em; }
.section-head p { margin: 16px 0 0; font-size: 18px; line-height: 1.65; color: var(--muted); }

.features { margin-top: 56px; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.feature {
  position: relative; overflow: hidden; padding: 28px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  transition: border-color .3s, background-color .3s;
}
.feature::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, var(--primary), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .5s ease-out;
}
.feature:hover { border-color: var(--border-strong); background: var(--surface-2); }
.feature:hover::before { transform: scaleX(1); }
.feature-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 36px; }
.feature-icon {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px;
  color: var(--primary); background: rgb(var(--primary-rgb) / .1); border: 1px solid rgb(var(--primary-rgb) / .2);
}
.feature-icon svg { width: 20px; height: 20px; }
.feature-num { font: 11px var(--font-mono); color: rgb(161 161 172 / .75); font-variant-numeric: tabular-nums; }
.feature h3 { margin: 0 0 8px; font: 600 16px var(--font-display); }
.feature p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--muted); }

.steps { margin-top: 64px; display: grid; gap: 40px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step { padding-top: 28px; border-top: 1px solid var(--border); }
.step-num { font: 700 48px/1 var(--font-display); color: rgb(var(--primary-rgb) / .85); }
.step h3 { margin: 16px 0 0; font: 600 18px var(--font-display); }
.step p { margin: 8px 0 0; font-size: 14px; line-height: 1.65; color: var(--muted); }
.steps-foot { margin-top: 56px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.steps-foot p { margin: 0; font-size: 12px; color: var(--muted); }

.faq-grid { display: grid; gap: 40px 64px; grid-template-columns: minmax(0, 22rem) 1fr; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; } }
.faq { border-bottom: 1px solid var(--border); }
.faq:first-child { border-top: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 0; font-size: 15px; font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font: 20px/1 var(--font-mono); color: var(--muted); transition: transform .25s, color .25s; }
.faq[open] summary::after { transform: rotate(45deg); color: var(--primary); }
.faq summary:hover { color: var(--primary-muted); }
.faq p { margin: 0 0 20px; max-width: 42rem; font-size: 14px; line-height: 1.7; color: var(--muted); }

.cta { position: relative; overflow: hidden; padding: 160px 24px; text-align: center; }
.cta .orb-3 { animation-duration: 16s; }
.cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta h2 { margin: 0; font: 700 clamp(40px, 7vw, 76px)/1.05 var(--font-display); letter-spacing: -.04em; }
.cta p { margin: 24px 0 40px; font-size: 18px; color: var(--muted); }

.site-footer { position: relative; z-index: 1; border-top: 1px solid rgb(28 28 31 / .6); padding: 48px 0; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.6fr 1fr 1fr; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
.footer-grid p { margin: 14px 0 0; max-width: 18rem; font-size: 12px; line-height: 1.6; color: var(--muted); }
.footer-grid h4 { margin: 0 0 14px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgb(250 250 250 / .8); }
.footer-grid nav a { display: block; margin-bottom: 10px; font-size: 14px; color: var(--muted); text-decoration: none; transition: color .2s; }
.footer-grid nav a:hover { color: var(--text); }
.footer-bottom {
  margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted);
}

/* ---------- auth page ---------- */

.auth { position: relative; min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 48px 16px; overflow: hidden; }
.auth-card {
  position: relative; z-index: 1; width: 100%; max-width: 400px; padding: 32px;
  background: rgb(10 10 10 / .82); border: 1px solid var(--border); border-radius: 20px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.auth-card h1 { margin: 0; text-align: center; font: 700 28px var(--font-display); letter-spacing: -.02em; }
.auth-card .sub { margin: 6px 0 24px; text-align: center; font-size: 14px; color: var(--muted); }
.tabs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 22px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px;
}
.tabs button { height: 34px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); }
.tabs button:hover { color: var(--text); }
.tabs button.active { background: rgb(var(--primary-rgb) / .13); color: var(--primary); }

/* ---------- forms ---------- */

label { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 500; color: var(--muted); }
input, select, textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: 10px;
  font: 14px var(--font-sans); transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgb(var(--primary-rgb) / .15); }
input::placeholder { color: #5c5c66; }
textarea { font-family: var(--font-mono); font-size: 13px; resize: vertical; margin-top: 14px; }
.row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.row > label { flex: 1; min-width: 150px; margin-bottom: 0; }
.row > button { flex: none; height: 41px; }
.row > label.check { flex: none; min-width: 0; display: flex; align-items: center; gap: 8px; padding-bottom: 11px; }
label.check input { width: auto; margin: 0; accent-color: var(--primary); }
input.inline { display: inline-block; width: 90px; margin: 0; padding: 5px 8px; }

.error, .notice { margin: 12px 0 0; font-size: 14px; }
.error { color: var(--danger); }
.notice { color: var(--ok); }

/* ---------- dashboard / admin ---------- */

main.page { position: relative; z-index: 1; max-width: 72rem; margin: 0 auto; padding: 48px 24px 96px; display: grid; gap: 20px; }
.page-head { margin-bottom: 12px; }
.page-head h1 { margin: 12px 0 0; font: 700 clamp(28px, 4vw, 42px)/1.1 var(--font-display); letter-spacing: -.03em; }
.grid-2 { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 28px; min-width: 0; }
.card h2 { margin: 0 0 18px; font: 600 18px var(--font-display); }
.card h3 { margin: 0 0 12px; font: 600 15px var(--font-display); }
.card > p.muted { font-size: 13px; }
.mt { margin-top: 26px !important; }

.licenses { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.license { position: relative; overflow: hidden; padding: 22px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; }
.license::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 1px; background: linear-gradient(90deg, var(--primary), transparent); }
.license-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.license-head h3 { margin: 0; font: 600 16px var(--font-display); }
.countdown { margin-top: 18px; font: 500 clamp(20px, 3vw, 26px) var(--font-mono); letter-spacing: -.02em; color: var(--primary); font-variant-numeric: tabular-nums; }
.countdown.dead { color: var(--danger); }
.meta { margin: 16px 0 0; display: grid; gap: 6px; font-size: 13px; }
.meta div { display: flex; justify-content: space-between; gap: 12px; }
.meta dt { color: var(--muted); }
.meta dd { margin: 0; }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; text-align: left; white-space: nowrap; border-bottom: 1px solid var(--border); }
th { font: 500 11px var(--font-mono); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
tbody tr { transition: background-color .15s; }
tbody tr:hover { background: var(--surface-2); }
td.actions { white-space: nowrap; }
td.actions > * + * { margin-left: 6px; }

.badge {
  display: inline-block; padding: 2px 9px; border-radius: 99px;
  font: 500 11px var(--font-mono); letter-spacing: .02em;
  background: var(--surface-2); border: 1px solid var(--border-strong);
}
.badge.ok { color: var(--ok); border-color: rgb(74 222 128 / .35); background: rgb(74 222 128 / .06); }
.badge.bad { color: var(--danger); border-color: rgb(255 101 104 / .35); background: rgb(255 101 104 / .06); }
.empty { margin: 0; padding: 12px 0; color: var(--muted); }

@media (max-width: 600px) {
  .card { padding: 20px; }
  .auth-card { padding: 24px; }
  .section { padding: 88px 20px; }
}

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

/* Fade the hero glow out instead of cutting it at the section edge. */
.hero > .bg-fx, .auth > .bg-fx {
  -webkit-mask-image: linear-gradient(#000 65%, transparent);
  mask-image: linear-gradient(#000 65%, transparent);
}
