:root {
  --bg: #000000;
  --bg-2: #090909;
  --card: #0c0c0c;
  --card-2: #181818;
  --line: #242424;
  --line-2: #363636;
  --text: #f5f5f5;
  --muted: #a0a0a0;
  --accent: #eeeeee;
  --accent-2: #d6d6d6;
  --grad: linear-gradient(135deg, var(--accent), var(--accent-2));
  --ok: #22c55e;
  --warn: #f59e0b;
  --info: #a78bfa;
  --bad: #ef4444;
  --radius: 14px;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 Inter, system-ui, -apple-system, Segoe UI, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
::selection { background: rgba(92, 207, 255, .35); }
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 10px; }

.bg-glow {
  position: fixed; inset: -20vh -10vw auto; height: 70vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 60% at 25% 20%, rgba(92, 207, 255, .16), transparent 70%),
    radial-gradient(40% 60% at 75% 10%, rgba(59, 155, 255, .16), transparent 70%);
}

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
main.wrap { flex: 1; padding-top: 32px; padding-bottom: 64px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(0, 0, 0, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; min-height: 76px; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: .12em; font-size: 16px; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 500; }
.nav a:not(.btn):hover, .nav a.active { color: var(--text); background: var(--card); }

.announcement {
  background: linear-gradient(90deg, rgba(92, 207, 255, .14), rgba(59, 155, 255, .14));
  border-bottom: 1px solid var(--line);
  text-align: center; padding: 10px 16px; font-size: 14px;
}

/* Buttons & inputs */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line-2); background: var(--card-2); color: var(--text);
  padding: 10px 16px; border-radius: 10px; font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none; transition: transform .08s, filter .15s, background .15s;
  white-space: nowrap;
}
.btn:hover { background: #252525; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: transparent; color: #080808; }
.btn.primary:hover { filter: brightness(1.1); }
.btn.danger { color: #fca5a5; border-color: rgba(239, 68, 68, .35); }
.btn.danger:hover { background: rgba(239, 68, 68, .12); }
.btn.sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }
.btn.lg { padding: 14px 22px; font-size: 16px; }
.btn.block { width: 100%; }

label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin: 14px 0 6px; }
input, select, textarea {
  width: 100%; background: var(--bg-2); color: var(--text);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 11px 12px; font: inherit;
}
textarea { resize: vertical; min-height: 80px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(92, 207, 255, .18); }
input.mono { font-family: var(--mono); letter-spacing: .02em; }
.check { display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 500; font-size: 14px; }
.check input { width: auto; accent-color: var(--accent); }

/* Cards */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.card h2 { margin: 0 0 4px; font-size: 17px; }
.card .sub { color: var(--muted); margin: 0 0 16px; font-size: 14px; }
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spread { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Status pill */
.pill { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border: 1px solid; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }
.pill.undetected { color: var(--ok); border-color: rgba(34, 197, 94, .35); background: rgba(34, 197, 94, .08); }
.pill.testing { color: var(--info); border-color: rgba(167, 139, 250, .35); background: rgba(167, 139, 250, .08); }
.pill.updating { color: var(--warn); border-color: rgba(245, 158, 11, .35); background: rgba(245, 158, 11, .08); }
.pill.detected { color: var(--bad); border-color: rgba(239, 68, 68, .35); background: rgba(239, 68, 68, .08); }
.pill.neutral { color: var(--muted); border-color: var(--line-2); background: transparent; }
.pill.neutral::before { box-shadow: none; }

/* Hero */
.hero { text-align: center; padding: 56px 0 40px; }
.hero h1 { font-size: clamp(40px, 8vw, 76px); line-height: 1.02; margin: 18px 0 14px; letter-spacing: -.03em; font-weight: 800; }
.hero h1 span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 auto 28px; }
.hero .row { justify-content: center; }
.feature { padding: 20px; }
.feature .icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgba(92, 207, 255, .1); color: var(--accent); margin-bottom: 12px; }
.feature h3 { margin: 0 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; }

/* Auth */
.auth { max-width: 420px; margin: 24px auto 0; }
.auth h1 { font-size: 26px; margin: 0 0 4px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; margin: 18px 0 4px; }
.tabs button { background: none; border: 0; color: var(--muted); padding: 9px; border-radius: 9px; font: inherit; font-weight: 600; cursor: pointer; }
.tabs button.on { background: var(--card-2); color: var(--text); box-shadow: 0 1px 0 var(--line-2) inset; }
.form-error { color: #fca5a5; background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .3); padding: 10px 12px; border-radius: 10px; font-size: 14px; margin-top: 14px; }
.auth .foot { text-align: center; color: var(--muted); font-size: 14px; margin-top: 16px; }
.auth .foot a { color: var(--accent); text-decoration: none; font-weight: 600; }

/* Dashboard */
.page-head { margin-bottom: 22px; }
.page-head h1 { margin: 0; font-size: 28px; letter-spacing: -.02em; }
.keybox {
  display: flex; align-items: center; gap: 8px; background: var(--bg-2); border: 1px solid var(--line-2);
  border-radius: 10px; padding: 10px 12px; font-family: var(--mono); font-size: 14px; word-break: break-all;
}
.keybox span { flex: 1; min-width: 0; }
.iconbtn { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 4px; border-radius: 6px; display: grid; place-items: center; }
.iconbtn:hover { color: var(--text); background: var(--card-2); }
.stat { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 14px; }
.stat:first-of-type { border-top: 0; }
.stat .muted { flex-shrink: 0; }
.stat > :last-child { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.sub-block + .sub-block { margin-top: 18px; padding-top: 18px; border-top: 1px dashed var(--line-2); }
.expired { color: var(--bad); }

.dl { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-2); }
.dl + .dl { margin-top: 10px; }
.dl.latest { border-color: rgba(92, 207, 255, .45); background: linear-gradient(135deg, rgba(92, 207, 255, .07), rgba(59, 155, 255, .07)); }
.dl .meta { flex: 1; min-width: 0; }
.dl .title { font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dl .notes { color: var(--muted); font-size: 13px; margin-top: 4px; white-space: pre-wrap; }
.tag { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--card-2); border: 1px solid var(--line-2); color: var(--muted); letter-spacing: .04em; }
.tag.hot { background: var(--grad); color: #03111f; border-color: transparent; }
.empty { text-align: center; color: var(--muted); padding: 28px 12px; border: 1px dashed var(--line-2); border-radius: 12px; }

/* Admin */
.progress { height: 8px; background: var(--bg-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); margin-top: 12px; }
.progress div { height: 100%; width: 0; background: var(--grad); transition: width .2s; }
.drop { border: 2px dashed var(--line-2); border-radius: 12px; padding: 22px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .15s, background .15s; }
.drop.over, .drop:hover { border-color: var(--accent); background: rgba(92, 207, 255, .05); }
.drop strong { color: var(--text); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.table td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table-wrap { overflow-x: auto; }
pre.code { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 14px; overflow-x: auto; font: 13px/1.6 var(--mono); color: #c3d6ee; margin: 8px 0 0; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--card-2); border: 1px solid var(--line-2); padding: 11px 18px; border-radius: 12px;
  font-weight: 500; font-size: 14px; transition: .2s; pointer-events: none; z-index: 50;
  max-width: calc(100vw - 32px); box-shadow: 0 10px 30px rgba(0, 0, 0, .5);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { border-color: rgba(239, 68, 68, .5); color: #fecaca; }

.site-footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; padding: 22px 0; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line-2); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; margin: 60px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 820px) {
  .grid.two, .grid.three { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .brand span { display: none; }
  .nav a:not(.btn) { padding: 8px; }
  .hero { padding-top: 32px; }
  .dl { flex-direction: column; align-items: stretch; }
  .card { padding: 18px; }
}

.update-card { border-color: rgba(92, 207, 255, .35); background: linear-gradient(160deg, rgba(92, 207, 255, .07), var(--card) 55%); }
.update-card .current { background: var(--bg-2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 14px; margin-bottom: 14px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* Logo: logo.png has the black background keyed out to transparency. */
.brand-logo { height: 32px; width: auto; }
.hero-logo { margin: 8px 0 6px; line-height: 0; }
.hero-logo img { width: min(460px, 86vw); height: auto; filter: drop-shadow(0 0 40px rgba(92, 207, 255, .25)); }

/* Black is the base on every page; color is reserved for status and the logo. */
[hidden] { display: none !important; }
::selection { background: #454545; color: #fff; }
:focus-visible { outline: 2px solid #ddd; outline-offset: 4px; }
main:focus { outline: none; }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px #ffffff12; }
.announcement { background: #111; }
.dl.latest, .update-card { background: #111; border-color: #454545; }
.drop.over, .drop:hover { background: #171717; }
.feature .icon { color: #d6d6d6; background: #1b1b1b; }
.tag.hot { color: #080808; }
pre.code { color: #ccc; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 20px; background: white; color: black; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.eyebrow { font: 11px/1.5 var(--mono); letter-spacing: .16em; color: var(--muted); }
.landing-hero { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: center; text-align: left; padding: 64px 0 86px; }
.landing-hero h1 { font-size: clamp(42px, 5.1vw, 64px); line-height: 1.08; letter-spacing: -.055em; margin: 22px 0; font-weight: 600; }
.landing-hero h1 span { background: none; color: #999; }
.landing-hero p { font-size: 16px; max-width: 420px; margin: 0 0 30px; line-height: 1.8; }
.landing-hero .row { justify-content: flex-start; }
.hero-meta { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 30px; font-size: 12px; }
.hero-meta b { color: #ddd; font-weight: 500; }
.pill { font-size: 10px; letter-spacing: .08em; }
.pill::before { width: 5px; height: 5px; box-shadow: none; }
.status-note { margin-top: 14px; color: var(--muted); font-size: 13px; }
.brand-panel { position: relative; border: 1px solid #292929; border-radius: 20px; background: radial-gradient(ellipse at center, #1c1c1c 0, #0a0a0a 65%); overflow: hidden; }
.brand-panel img { display: block; width: 100%; height: auto; padding: 24px 12px; }
.panel-caption, .panel-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 24px; color: #858585; font: 10px/1.5 var(--mono); letter-spacing: .12em; }
.panel-caption { border-bottom: 1px solid #ffffff08; }
.panel-bottom { border-top: 1px solid #ffffff0b; letter-spacing: 0; font: 12px/1.5 Inter, sans-serif; }
.panel-bottom > :last-child { font-size: 22px; color: #eee; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin: 0 0 22px; }
.section-head h2 { font-size: 23px; letter-spacing: -.035em; font-weight: 500; margin: 10px 0 0; }
.section-head > .muted { font-size: 12px; }
.feature { padding: 26px; }
.feature-top { display: flex; align-items: start; justify-content: space-between; margin-bottom: 22px; }
.feature-top > span { color: #6b6b6b; font: 11px var(--mono); }
.feature-top .icon { margin: 0; }
.feature h3 { font-weight: 500; margin-bottom: 10px; }
.feature p { line-height: 1.75; font-size: 13px; }
.start-strip { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 44px; padding: 28px 0 0; border-top: 1px solid var(--line); }
.start-strip h2 { font-size: 17px; font-weight: 500; margin: 0 0 6px; }
.start-strip p { color: var(--muted); font-size: 13px; margin: 0; }
.site-footer a { font-size: 12px; text-decoration: none; }
.site-footer a:hover { color: white; }
.buy-head { text-align: center; padding: 48px 0 42px; }
.buy-head h1 { font-size: clamp(32px, 5vw, 50px); letter-spacing: -.045em; font-weight: 500; margin: 16px 0 12px; }
.buy-head p { color: var(--muted); margin-bottom: 22px; }
.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.plan { padding: 24px; }
.plan > .spread { color: #777; margin-bottom: 28px; }
.plan h2 { font-size: 24px; font-weight: 500; }
.plan p { font-size: 13px; margin-top: 6px; }
.plan-duration { font-size: 26px; letter-spacing: -.03em; margin: 30px 0 24px; }
.plan-duration span { display: block; font-size: 12px; color: var(--muted); letter-spacing: 0; margin-top: 3px; }
.plan-features { list-style: none; padding: 20px 0 0; margin: 0 0 28px; border-top: 1px solid var(--line); font-size: 12px; color: #bbb; }
.plan-features li { margin: 10px 0; }
.plan-features li::before { content: "✓"; margin-right: 10px; color: #888; }
.plan .btn:disabled { opacity: 1; color: #929292; background: #161616; border-color: #2b2b2b; transform: none; }
.pricing-note { color: var(--muted); text-align: center; font-size: 12px; margin: 24px 0 54px; }
.faq { max-width: 740px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-size: 14px; }
.faq p { color: var(--muted); font-size: 13px; line-height: 1.8; max-width: 640px; }
.faq a, .field-hint a { color: #ddd; text-underline-offset: 3px; }
.field-hint { color: var(--muted); font-size: 12px; line-height: 1.7; margin: 18px 0 0; }
.password-toggle { display: block; margin: 8px 0 0 auto; background: none; border: 0; padding: 4px; color: #bbb; font: 12px Inter, sans-serif; cursor: pointer; }
.auth { margin-top: 36px; padding: 30px; }
@media (max-width: 950px) {
  .landing-hero { gap: 28px; }
  .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .landing-hero { grid-template-columns: 1fr; padding: 32px 0 46px; }
  .brand-panel { display: none; }
  .landing-hero h1 { font-size: clamp(39px, 8vw, 58px); }
  .section-head { align-items: start; flex-direction: column; gap: 8px; }
  .start-strip { align-items: start; flex-direction: column; }
}
@media (max-width: 420px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .header-row { min-height: 68px; }
  .nav { gap: 2px; flex-wrap: wrap; justify-content: flex-end; }
  .nav a:not(.btn) { padding: 8px 6px; font-size: 12px; }
  .plans { grid-template-columns: 1fr; }
  .buy-head { padding-top: 24px; }
  .hero .btn.lg { font-size: 14px; padding: 12px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Simple account landing page. */
.landing-hero { padding: 60px 0; gap: 72px; }
.landing-hero h1 { font-size: clamp(48px, 6vw, 76px); margin: 0 0 20px; }
.brand-panel { border: 0; background: none; border-radius: 0; }
.brand-panel img { padding: 0; }
.home-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin: 12px 0 30px; }
.home-links a { padding: 28px 24px; text-decoration: none; border-bottom: 1px solid var(--line); }
.home-links a:first-child { padding-left: 0; }
.home-links a:last-child { padding-right: 0; }
.home-links a:hover h2 { color: white; }
.home-links h2 { display: flex; justify-content: space-between; gap: 16px; color: #d0d0d0; font-size: 16px; font-weight: 500; margin: 0 0 8px; }
.home-links h2 span { color: #777; }
.home-links p { color: var(--muted); font-size: 13px; margin: 0; }
.buy-head { text-align: left; padding: 20px 0 28px; }
.buy-head h1 { font-size: 36px; }
.plan { border-radius: 10px; }
.plan h2 { font-size: 20px; }
.faq { margin-left: 0; }
@media (max-width: 700px) {
  .landing-hero { padding: 26px 0 36px; }
  .home-links { grid-template-columns: 1fr; }
  .home-links a, .home-links a:first-child, .home-links a:last-child { padding: 22px 0; }
}
