:root {
  --bg: #0b1220;
  --bg-elev: #111a2e;
  --bg-card: #152038;
  --border: rgba(148, 163, 184, 0.18);
  --text: #e8eef9;
  --muted: #94a3b8;
  --blue: #2563eb;
  --blue-bright: #38bdf8;
  --orange: #f97316;
  --orange-deep: #ea580c;
  --danger: #fb7185;
  --ok: #38bdf8;
  --shadow: 0 18px 50px rgba(2, 8, 23, 0.45);
  --radius: 18px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(37, 99, 235, 0.28), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(249, 115, 22, 0.22), transparent 50%),
    var(--bg);
  min-height: 100vh;
  line-height: 1.55;
}

a { color: var(--blue-bright); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(11, 18, 32, 0.82);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 0; gap: 1rem;
}
.brand { display: flex; align-items: center; gap: 0.75rem; color: inherit; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 12px; box-shadow: 0 0 0 1px rgba(249,115,22,.35); }
.brand strong { display: block; font-size: 1.05rem; letter-spacing: 0.02em; }
.brand span { display: block; font-size: 0.72rem; color: var(--muted); margin-top: 1px; }
.nav { display: flex; gap: 0.9rem; align-items: center; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.nav a:hover { color: var(--text); text-decoration: none; }

.btn {
  appearance: none; border: 0; cursor: pointer;
  border-radius: 12px; padding: 0.78rem 1.15rem;
  font-weight: 700; font-size: 0.95rem;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: white;
  background: linear-gradient(135deg, var(--orange) 0%, var(--orange-deep) 55%, #c2410c 100%);
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.28);
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-blue {
  color: white;
  background: linear-gradient(135deg, #3b82f6, var(--blue));
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.28);
}
.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: rgba(56, 189, 248, 0.45); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }

.hero { padding: 3.2rem 0 1.5rem; }
.hero-grid {
  display: grid; gap: 1.75rem;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: start;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
}
.eyebrow {
  display: inline-flex; gap: 0.45rem; align-items: center;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--orange);
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.28);
  border-radius: 999px; padding: 0.35rem 0.75rem;
}
h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.08; margin: 0.9rem 0 0.85rem; letter-spacing: -0.03em;
}
h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #60a5fa, #f97316);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); font-size: 1.08rem; max-width: 40rem; }
.bullets { margin: 1.2rem 0 0; padding: 0; list-style: none; color: var(--muted); }
.bullets li { margin: 0.4rem 0; padding-left: 1.2rem; position: relative; }
.bullets li::before {
  content: ""; position: absolute; left: 0; top: 0.55rem;
  width: 0.45rem; height: 0.45rem; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--orange));
}

.card {
  background: linear-gradient(180deg, rgba(21, 32, 56, 0.96), rgba(17, 26, 46, 0.96));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
}
.card h2, .card h3 { margin-top: 0; }
label { display: block; font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-bottom: 0.4rem; }
.input-row { display: flex; gap: 0.6rem; }
input[type="url"], input[type="text"], textarea {
  width: 100%;
  background: #0b1220;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 0.85rem 0.95rem;
  font: inherit;
}
input:focus, textarea:focus {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  border-color: rgba(37, 99, 235, 0.55);
}
textarea { min-height: 110px; resize: vertical; font-family: var(--mono); font-size: 0.82rem; }

.hint { font-size: 0.8rem; color: var(--muted); margin-top: 0.55rem; }
.status {
  margin-top: 0.85rem; font-size: 0.9rem; color: var(--blue-bright);
  min-height: 1.25rem;
}
.status.err { color: var(--danger); }

.result-panel { margin-top: 1rem; display: none; }
.result-panel.show { display: block; }
.result-head {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  margin-bottom: 0.55rem;
}
.result-head h3 { margin: 0; font-size: 1rem; }
.code-box {
  position: relative;
  background: #070d18;
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 14px;
  padding: 0.9rem 3rem 0.9rem 0.9rem;
}
.code-box pre {
  margin: 0; white-space: pre-wrap; word-break: break-word;
  font-family: var(--mono); font-size: 0.78rem; color: #cbd5e1; max-height: 320px; overflow: auto;
}
.copy-btn {
  position: absolute; top: 0.55rem; right: 0.55rem;
  width: 2.25rem; height: 2.25rem; border-radius: 10px;
  border: 1px solid rgba(249, 115, 22, 0.4);
  background: rgba(249, 115, 22, 0.12);
  color: var(--orange); cursor: pointer;
  display: grid; place-items: center;
}
.copy-btn:hover { background: rgba(249, 115, 22, 0.22); }
.copy-btn.copied { color: var(--blue-bright); border-color: rgba(56,189,248,.5); }

.meta-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 0.9rem;
}
@media (max-width: 700px) { .meta-grid { grid-template-columns: 1fr; } }
.meta-item {
  background: rgba(11, 18, 32, 0.65);
  border: 1px solid var(--border);
  border-radius: 12px; padding: 0.75rem;
  font-size: 0.85rem;
}
.meta-item strong { display: block; color: var(--muted); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.25rem; }

.section { padding: 2.25rem 0; }
.section h2 { font-size: 1.55rem; margin: 0 0 0.75rem; }
.grid-3 {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
.feature {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem;
}
.feature .icon {
  width: 2.2rem; height: 2.2rem; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(37,99,235,.25), rgba(249,115,22,.25));
  margin-bottom: 0.7rem; font-weight: 800; color: var(--orange);
}
.price-cards {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem;
}
@media (max-width: 700px) { .price-cards { grid-template-columns: 1fr; } }
.price-card {
  border-radius: 16px; padding: 1.2rem;
  border: 1px solid var(--border);
  background: var(--bg-elev);
}
.price-card.featured {
  border-color: rgba(249, 115, 22, 0.55);
  box-shadow: 0 0 0 1px rgba(249,115,22,.2), var(--shadow);
}
.price-card .amt { font-size: 1.9rem; font-weight: 800; margin: 0.35rem 0; }
.price-card ul { margin: 0.6rem 0 1rem; padding-left: 1.1rem; color: var(--muted); font-size: 0.92rem; }

.legal-banner {
  margin: 1.5rem 0 0;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(249, 115, 22, 0.35);
  background: rgba(249, 115, 22, 0.08);
  color: #fdba74;
  font-size: 0.88rem;
}

.site-footer {
  margin-top: 3rem;
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 2.5rem;
  color: var(--muted); font-size: 0.88rem;
}
.site-footer .row {
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: flex-start;
}
.site-footer nav { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Modal */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(2, 8, 23, 0.72);
  display: none; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: min(520px, 100%);
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow);
  padding: 1.25rem;
  max-height: min(90vh, 760px);
  overflow: auto;
}
.modal h2 { margin: 0 0 0.5rem; font-size: 1.25rem; }
.modal p { color: var(--muted); margin-top: 0; }
.modal .actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1rem; }
.qr-wrap {
  display: flex; gap: 1rem; align-items: center; flex-wrap: wrap;
  background: #fff; color: #0b1220; border-radius: 14px; padding: 0.85rem; margin: 0.75rem 0;
}
.qr-wrap img { width: 180px; height: 180px; }
.secret-code {
  font-family: var(--mono); font-size: 0.85rem; word-break: break-all;
  background: #0b1220; color: #fdba74; border-radius: 10px; padding: 0.6rem 0.75rem;
}
.account-chip {
  font-size: 0.8rem; color: var(--muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 0.3rem 0.7rem;
}
.hidden { display: none !important; }
.tabs { display: flex; gap: 0.4rem; margin: 1rem 0 0.6rem; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--border); background: transparent; color: var(--muted);
  border-radius: 999px; padding: 0.4rem 0.8rem; font-weight: 700; cursor: pointer;
}
.tab.active { color: white; background: rgba(37,99,235,.35); border-color: rgba(56,189,248,.45); }

.legal-page { max-width: 760px; padding: 2.5rem 0 4rem; }
.legal-page h1 { font-size: 2rem; }
.legal-page h2 { margin-top: 1.75rem; font-size: 1.2rem; color: #fdba74; }
.legal-page p, .legal-page li { color: #cbd5e1; }
.legal-strong {
  border-left: 4px solid var(--orange);
  padding: 0.75rem 1rem;
  background: rgba(249,115,22,.08);
  border-radius: 0 12px 12px 0;
  color: #fed7aa;
}
