:root {
  color-scheme: dark;
  --ink: #f5f7f8;
  --muted: #9aa8ad;
  --line: rgba(255, 255, 255, .1);
  --panel: rgba(20, 29, 32, .84);
  --panel-2: #10181a;
  --accent: #d8ff45;
  --accent-ink: #172000;
  --cyan: #5eead4;
  --danger: #ff746c;
  --success: #78e0ae;
}

* { box-sizing: border-box; }
html { background: #081012; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 8% 2%, rgba(63, 215, 190, .13), transparent 32rem),
    radial-gradient(circle at 92% 8%, rgba(216, 255, 69, .08), transparent 26rem),
    #081012;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

a { color: inherit; }
.topbar {
  height: 76px;
  padding: 0 clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 16, 18, .78);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.brand, .account { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(216,255,69,.55); color: var(--accent); font: 800 12px/1 ui-monospace, monospace; letter-spacing: .1em; }
.brand span:last-child, .account > span { display: grid; gap: 2px; }
.brand small, .account small { color: var(--muted); font-size: 12px; }
.account { text-align: right; }
.quiet-button { color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 7px; padding: 9px 12px; cursor: pointer; }
.quiet-button:hover { color: white; border-color: rgba(255,255,255,.28); }

main { width: min(1420px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 80px; position: relative; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 50px; align-items: end; margin-bottom: 38px; }
.eyebrow { margin: 0 0 12px; color: var(--cyan); font: 700 11px/1.2 ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 800px; margin: 0; font-size: clamp(42px, 5.4vw, 76px); line-height: .98; letter-spacing: -.055em; font-weight: 720; }
.hero-copy { max-width: 720px; color: #b3c0c3; font-size: 18px; line-height: 1.6; margin: 24px 0 0; }
.release-card { border: 1px solid var(--line); background: rgba(13,22,24,.74); padding: 20px; display: grid; grid-template-columns: 1fr auto; gap: 13px; font-size: 13px; }
.release-card span { color: var(--muted); }
.release-card strong { font-family: ui-monospace, monospace; font-weight: 650; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(340px, .8fr); gap: 22px; align-items: start; }
.panel { border: 1px solid var(--line); background: linear-gradient(150deg, rgba(22,32,35,.94), rgba(11,18,20,.92)); box-shadow: 0 30px 80px rgba(0,0,0,.2); }
.build-panel { padding: clamp(22px, 3.5vw, 42px); }
.jobs-panel { padding: 26px; position: sticky; top: 98px; }
.panel-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; }
.panel-heading h2 { margin: 0; font-size: 24px; letter-spacing: -.025em; }
.secure-pill { color: var(--success); border: 1px solid rgba(120,224,174,.28); background: rgba(120,224,174,.07); padding: 7px 10px; border-radius: 99px; font: 650 10px/1 ui-monospace, monospace; text-transform: uppercase; white-space: nowrap; }
.build-form { margin-top: 34px; }
fieldset { border: 0; border-top: 1px solid var(--line); padding: 28px 0 8px; margin: 0; }
legend { padding: 0 20px 0 0; font-weight: 680; font-size: 15px; }
legend span { color: var(--accent); font-family: ui-monospace, monospace; margin-right: 10px; }
label { display: grid; gap: 9px; color: #e1e8e9; font-size: 13px; margin-bottom: 20px; }
.field-label { color: #e1e8e9; font-size: 13px; margin-bottom: 9px; }
label small { color: var(--muted); line-height: 1.45; }
input, textarea { width: 100%; border: 1px solid rgba(255,255,255,.13); border-radius: 7px; background: #0a1214; color: white; padding: 13px 14px; font: inherit; outline: none; }
textarea { resize: vertical; min-height: 104px; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
input:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(94,234,212,.1); }
.two-column, .netbird-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.netbird-grid { grid-template-columns: 1fr 110px; }
.profile-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.profile-option { grid-template-columns: auto 1fr; align-items: center; gap: 12px; background: rgba(255,255,255,.025); border: 1px solid var(--line); padding: 14px; margin: 0; cursor: pointer; }
.profile-option:has(input:checked) { border-color: rgba(216,255,69,.6); background: rgba(216,255,69,.055); }
.profile-option input, .acknowledgement input { width: 17px; height: 17px; accent-color: var(--accent); }
.profile-option span { display: grid; gap: 4px; }
.acknowledgement { display: flex; align-items: flex-start; gap: 10px; margin: 24px 0 18px; color: var(--muted); }
.primary-button { width: 100%; border: 0; border-radius: 7px; background: var(--accent); color: var(--accent-ink); padding: 15px 20px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-weight: 760; }
.public-start { justify-content: center; text-decoration: none; }
.welcome-panel { max-width: 1000px; padding: clamp(22px, 3.5vw, 42px); }
.welcome-panel p { color: var(--muted); margin: 24px 0 22px; }
.public-choice-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 24px; }
.public-choice { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 12px; min-height: 50px; background: rgba(255,255,255,.025); border: 1px solid var(--line); padding: 14px 18px; font-size: 13px; }
.public-choice.is-selected { border-color: rgba(216,255,69,.6); background: rgba(216,255,69,.055); }
.display-radio { width: 18px; height: 18px; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; }
.public-choice.is-selected .display-radio { border-color: var(--accent); box-shadow: inset 0 0 0 4px #172000; background: var(--accent); }
.public-flow-image { display: block; width: min(100%, 625px); height: auto; margin: 0 auto; border: 1px solid var(--line); }
.primary-button small { font-weight: 600; opacity: .65; }
.primary-button:disabled { opacity: .55; cursor: wait; }
.retention { color: var(--muted); font-size: 13px; line-height: 1.5; }
.job-list { display: grid; gap: 10px; margin-top: 20px; }
.job { border: 1px solid var(--line); background: rgba(3,8,9,.28); padding: 16px; }
.job-top { display: flex; justify-content: space-between; gap: 12px; }
.job-top > div { display: grid; gap: 4px; }
.job-top small { color: var(--muted); font: 11px/1 ui-monospace, monospace; }
.status { font: 700 10px/1 ui-monospace, monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); }
.job.ready .status { color: var(--success); }
.job.failed .status, .failure { color: var(--danger); }
.job p { color: var(--muted); font-size: 12px; line-height: 1.5; margin: 14px 0 0; }
.job dl { display: grid; grid-template-columns: 1fr 1fr; margin: 16px 0; }
.job dl div { display: grid; gap: 5px; }
.job dt { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.job dd { margin: 0; font: 12px/1.2 ui-monospace, monospace; }
.download-row { display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; gap: 10px; }
.download-row.setup-only { grid-template-columns: 1fr; }
.download-row form { margin: 0; }
.download-button { flex: 1; text-align: center; padding: 10px; color: var(--accent); border: 1px solid rgba(216,255,69,.35); text-decoration: none; font-size: 12px; font-weight: 700; }
.windows-button { width: 100%; height: 100%; padding: 10px; color: var(--cyan); background: transparent; border: 1px solid rgba(94,234,212,.35); font-family: inherit; font-size: 12px; font-weight: 700; line-height: 1.2; cursor: pointer; }
.checksum-link { grid-column: 1 / -1; color: var(--muted); font: 11px/1 ui-monospace, monospace; }
.progress { height: 3px; background: rgba(255,255,255,.07); margin-top: 18px; overflow: hidden; }
.progress span { display: block; width: 36%; height: 100%; background: var(--accent); animation: drift 1.8s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(175%); } }
.safety-note { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.safety-note strong { color: var(--accent); font-size: 12px; }
.safety-note p, .empty-state p { color: var(--muted); font-size: 13px; line-height: 1.55; }
.usage-links { display: grid; gap: 8px; }
.usage-links a { color: var(--accent); text-decoration: none; }
.notice { margin-bottom: 20px; padding: 14px 16px; border: 1px solid var(--line); background: var(--panel-2); }
.notice.error { border-color: rgba(255,116,108,.4); color: #ffc2bd; }
.notice.success { border-color: rgba(120,224,174,.4); color: #b5f5d4; }
.empty-state { padding: 28px; border: 1px dashed rgba(255,255,255,.18); margin-top: 24px; }
.empty-state.compact { margin: 0; padding: 20px; }
.signed-out { max-width: 560px; margin: 15vh auto; text-align: center; }

@media (max-width: 960px) {
  .hero, .workspace-grid { grid-template-columns: 1fr; }
  .release-card { max-width: 430px; }
  .jobs-panel { position: static; }
}
@media (max-width: 620px) {
  main { width: min(100% - 24px, 1420px); padding-top: 38px; }
  .topbar { padding: 0 12px; }
  .account > span { display: none; }
  .hero { gap: 26px; }
  .two-column, .profile-list, .public-choice-list { grid-template-columns: 1fr; }
  .primary-button { align-items: flex-start; flex-direction: column; gap: 5px; text-align: left; }
}
.destructive-warning { margin: -8px 0 30px; padding: 20px 22px; border: 2px solid var(--danger); background: rgba(255,116,108,.12); color: #ffd4d1; display: grid; gap: 8px; }
.destructive-warning strong { color: #fff; font-size: clamp(18px, 2vw, 25px); letter-spacing: .015em; }
.destructive-warning span { font-size: 13px; }
