:root {
  --bg: #07100f;
  --panel: #101b19;
  --panel-2: #142320;
  --line: #29413b;
  --text: #f0f7f4;
  --muted: #9eb5ae;
  --accent: #58e0aa;
  --accent-dark: #09251c;
  --danger: #ff8b82;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; color: var(--text); background: radial-gradient(circle at 85% 15%, #18352e 0, transparent 32rem), var(--bg); }
button, input, select { font: inherit; }
.shell { width: min(1080px, calc(100% - 40px)); margin: 0 auto; min-height: 100vh; display: flex; flex-direction: column; }
.topbar { min-height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { color: var(--text); text-decoration: none; display: flex; align-items: center; gap: 12px; }
.brand-mark { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: #07100f; font-weight: 900; }
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); margin-top: 3px; }
.hero { flex: 1; display: grid; grid-template-columns: 1.5fr .75fr; align-items: center; gap: 72px; padding: 80px 0; }
h1 { font-size: clamp(2.2rem, 5vw, 4.8rem); line-height: .98; letter-spacing: -.05em; margin: 12px 0 24px; }
.lead { max-width: 620px; color: var(--muted); font-size: 1.12rem; line-height: 1.7; margin-bottom: 34px; }
.eyebrow { color: var(--accent); font-size: .78rem; letter-spacing: .16em; font-weight: 800; }
.panel, .security-card { background: linear-gradient(145deg, rgba(20,35,32,.96), rgba(12,23,21,.96)); border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: 0 24px 80px rgba(0,0,0,.28); }
.security-card ul { margin: 24px 0 0; padding: 0; list-style: none; color: var(--muted); }
.security-card li { padding: 13px 0; border-top: 1px solid var(--line); }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 18px var(--accent); margin-right: 9px; }
.button { border: 1px solid var(--line); border-radius: 12px; padding: 13px 19px; cursor: pointer; color: var(--text); background: transparent; font-weight: 700; }
.button.primary { color: var(--accent-dark); background: var(--accent); border-color: var(--accent); }
.button:disabled { cursor: wait; opacity: .55; }
.welcome { display: flex; justify-content: space-between; align-items: end; margin: 58px 0 26px; }
.welcome h1 { font-size: clamp(2.1rem, 4vw, 3.5rem); margin-bottom: 8px; }
.muted { color: var(--muted); }
.environment-pill { color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 7px 12px; font-size: .74rem; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
label { display: grid; gap: 9px; color: var(--muted); font-size: .88rem; font-weight: 700; }
input, select { width: 100%; color: var(--text); background: #091411; border: 1px solid var(--line); border-radius: 11px; padding: 13px; outline: none; }
input:focus, select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(88,224,170,.12); }
.form-actions { grid-column: 1 / -1; display: flex; justify-content: flex-end; margin-top: 8px; }
.result, .error { margin-top: 22px; }
.result h2 { margin-top: 0; }
.result code { color: var(--accent); font-size: 1.05rem; }
.download-button { display: inline-block; text-decoration: none; margin-top: 8px; }
.error { border-color: rgba(255,139,130,.55); color: var(--danger); }
.centered { margin: auto; text-align: center; min-width: 280px; }
.spinner { width: 28px; height: 28px; margin: 0 auto 14px; border: 3px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
.hidden { display: none !important; }
footer { margin-top: auto; padding: 28px 0; color: var(--muted); font-size: .78rem; text-align: center; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 38px; padding: 54px 0; }
  .form-grid { grid-template-columns: 1fr; }
  .shell { width: min(100% - 28px, 1080px); }
}
