:root {
  --bg0: #0b1220;
  --bg1: #121a2b;
  --card: #162033;
  --line: #243049;
  --text: #e8eef8;
  --muted: #93a0b8;
  --accent: #3ecf8e;
  --accent2: #5b8cff;
  --danger: #ff6b7a;
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1200px 600px at 10% -10%, #1a3a5c55, transparent),
    radial-gradient(900px 500px at 90% 0%, #1f4d3a44, transparent),
    var(--bg0);
  line-height: 1.45;
  min-height: 100vh;
}
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip {
  position: absolute;
  left: -999px;
  top: 0.4rem;
  background: var(--card);
  color: var(--text);
  padding: 0.4rem 0.7rem;
  z-index: 20;
}
.skip:focus { left: 0.5rem; }

.wrap { width: min(1080px, calc(100% - 2rem)); margin: 0 auto; }
.site-head {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg0) 88%, transparent);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.95rem;
  padding-bottom: 0.95rem;
}
.brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}
.brand:hover { text-decoration: none; color: var(--text); }
.nav { display: flex; gap: 0.95rem; flex-wrap: wrap; align-items: center; }
.nav a, .nav button {
  color: var(--muted);
  background: none;
  border: 0;
  cursor: pointer;
  font: inherit;
  padding: 0.15rem 0;
  text-decoration: none;
}
.nav a:hover, .nav button:hover { color: var(--text); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }

.page-intro { padding: 2.2rem 0 0.2rem; }
.page-intro-tight { padding: 0.8rem 0 0; }
.page-intro-tight h1 { font-size: 1.45rem; margin-bottom: 0.15rem; }
.page-intro-tight p { margin-bottom: 0.15rem; }
.page-intro-tight + .panel h2,
.panel h2 { margin-top: 0.7rem; }
.page-intro h1, .hero-copy h1, .hero h1 {
  font-weight: 700;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.15;
  margin: 0 0 0.8rem;
  max-width: 16em;
}
.page-intro p, .hero-copy p, .hero p {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 38rem;
  margin: 0 0 1.3rem;
  white-space: pre-line;
}
h2 { font-weight: 700; font-size: 1.15rem; margin: 1rem 0 0.4rem; }
h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 2rem;
  align-items: center;
  padding: 2.6rem 0 0.4rem;
}
.cta { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  padding: 0.7rem 1.15rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.btn {
  transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.18s, border-color 0.18s, background 0.18s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-primary { background: var(--accent); color: #041018; }
.btn-primary:hover { filter: brightness(1.08); text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-ghost:hover { border-color: #3a4d6e; text-decoration: none; }

.ticket {
  position: relative;
  background: linear-gradient(180deg, #182438, var(--card));
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 1rem 1.1rem 1.05rem;
}
.ticket::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(from var(--spin, 0deg), #3ecf8e, #5b8cff 35%, transparent 55%, #3ecf8e 80%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  animation: spin-ring 7s linear infinite;
  pointer-events: none;
}
@property --spin {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes spin-ring { to { --spin: 360deg; } }
.signal {
  display: block;
  width: 100%;
  height: 36px;
  margin: 0 0 0.65rem;
}
.ticket p { margin: 0 0 0.9rem; color: var(--muted); max-width: none; font-size: 0.95rem; }
.ticket-row + .ticket-row { margin-top: 0.75rem; padding-top: 0.75rem; border-top: 1px solid var(--line); }
.ticket-row span { display: block; color: var(--muted); font-size: 0.82rem; margin-bottom: 0.2rem; }
.ticket-row code {
  display: block;
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.92rem;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plans {
  list-style: none;
  margin: 0.1rem 0 1.2rem;
  padding: 0;
}
.plan {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 0.45rem 0.9rem;
  align-items: center;
  padding: 0.65rem 0.85rem;
  margin-bottom: 0.4rem;
  background: linear-gradient(180deg, #182438, var(--card));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.plan h3 { font-size: 1rem; font-weight: 700; margin: 0; }
.plan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.7rem;
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.plan-price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.plan form { margin: 0; }
.plan-buy { align-items: center; }
.plan-buy form {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  max-width: none;
}
.plan-buy .btn { padding: 0.4rem 0.85rem; }

.flash, .error {
  padding: 0.7rem 0.9rem;
  border-radius: 10px;
  margin: 1rem 0 0;
  white-space: pre-line;
}
.flash { background: #1c3d2f; border: 1px solid #2f6b4e; color: #b7f0d1; }
.error { background: #3a1c24; border: 1px solid #7a3340; color: #ffc3cb; }

.stack { max-width: 28rem; padding-bottom: 2rem; }
.stack h3 { font-size: 1.15rem; margin: 1.3rem 0 0.4rem; }
label { display: block; margin: 0.75rem 0; }
label span, .field-label { display: block; color: var(--muted); font-size: 0.85rem; margin-bottom: 0.3rem; }
input, select {
  width: 100%;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0e1624;
  color: var(--text);
  font: inherit;
}
.muted { color: var(--muted); white-space: pre-line; }
.account-line { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; color: var(--muted); margin: 0; }
.panel { padding: 0.2rem 0 0.4rem; }
.sub-line { display: flex; gap: 0.55rem; align-items: stretch; margin: 0.35rem 0 0.9rem; }
.sub-box {
  flex: 1;
  background: #0e1624;
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 0.75rem;
  word-break: break-all;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.85rem;
  margin: 0;
}
.copy-btn { flex-shrink: 0; align-self: center; }
.methods { display: flex; flex-direction: row; flex-wrap: wrap; gap: 0.35rem; margin: 0; }
.method-row {
  display: inline-flex;
  gap: 0.35rem;
  align-items: center;
  margin: 0;
  width: auto;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #0e1624;
  font-size: 0.85rem;
}
.method-row span { display: inline; margin: 0; color: inherit; }
.method-row input { width: auto; accent-color: var(--accent); }
.method-row:has(input:checked) { border-color: var(--accent); }
.footer {
  border-top: 1px solid var(--line);
  padding: 1.4rem 0 2rem;
  color: var(--muted);
  font-size: 0.9rem;
  white-space: pre-line;
}
.inline { display: inline; }

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; align-items: start; gap: 1.3rem; }
  .plan { grid-template-columns: 1fr auto; }
  .plan .btn, .plan form { grid-column: 1 / -1; }
  .plan-buy form { flex-wrap: wrap; }
  .sub-line { flex-direction: column; }
  .copy-btn { align-self: flex-start; }
}
@media (max-width: 640px) {
  .site-head .wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
  .nav { width: 100%; gap: 0.85rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .ticket::before, .btn { animation: none; transition: none; }
}
