:root {
  color-scheme: dark;
  --bg: #070d16;
  --bg-soft: #0e1623;
  --panel: rgba(19, 28, 42, 0.88);
  --panel-soft: rgba(23, 36, 55, 0.92);
  --border: rgba(160, 190, 255, 0.16);
  --text: #ebf3ff;
  --muted: rgba(235, 243, 255, 0.7);
  --accent: #73c2ff;
  --accent-strong: #5d8eff;
  --ok: #8bf3be;
  --shadow: 0 18px 50px rgba(2, 8, 18, 0.45);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(115, 194, 255, 0.16), transparent 42%),
    radial-gradient(circle at 90% 0%, rgba(93, 142, 255, 0.18), transparent 45%),
    linear-gradient(180deg, #070d16 0%, #0a1220 100%);
}

.shell {
  width: min(1160px, calc(100vw - 28px));
  margin: 0 auto;
  padding: 26px 0 48px;
}

h1, h2, h3, h4, p, ul {
  margin-top: 0;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.topbar,
.hero,
.marketing-panel,
.panel {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.topbar,
.hero,
.marketing-panel,
.panel {
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.brand {
  margin: 8px 0 8px;
  font-size: clamp(25px, 4vw, 34px);
  line-height: 1.14;
}

.brand-sub {
  margin: 0;
  max-width: 60ch;
}

.topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  margin-bottom: 16px;
}

.hero h2 {
  margin: 10px 0 10px;
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1.1;
}

.hero-cta {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.cta-note {
  color: var(--ok);
  font-size: 14px;
}

.hero-stats {
  display: grid;
  gap: 12px;
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: var(--panel-soft);
}

.stat-card span {
  display: block;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 6px;
}

.stat-card strong {
  font-size: 17px;
}

.marketing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.steps {
  display: grid;
  gap: 12px;
}

.step-card {
  display: flex;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px;
  background: var(--panel-soft);
}

.step-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #04101d;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  flex-shrink: 0;
}

.step-card h4 {
  margin: 0 0 3px;
}

.step-card p {
  margin: 0;
}

.price-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.price-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: var(--panel-soft);
}

.price-card.highlight {
  border-color: rgba(139, 243, 190, 0.45);
  box-shadow: inset 0 0 0 1px rgba(139, 243, 190, 0.15);
}

.price-card p {
  margin: 0 0 4px;
  font-size: 13px;
}

.price-card strong {
  font-size: 18px;
}

.layout {
  display: grid;
  grid-template-columns: 390px minmax(0, 1fr);
  gap: 16px;
}

.stack {
  display: grid;
  gap: 14px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.tabs {
  display: flex;
  gap: 8px;
  margin: 16px 0;
  flex-wrap: wrap;
}

.button,
.tab {
  border: 0;
  border-radius: 999px;
  padding: 10px 16px;
  font: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.button:hover,
.tab:hover {
  transform: translateY(-1px);
}

.button.primary,
.tab.active {
  color: #04111f;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
}

.button.buy-plan {
  color: var(--text);
  background: linear-gradient(135deg, #1e395f, #31579b);
  border: 1px solid rgba(115, 194, 255, 0.25);
}

.button.ghost,
.tab {
  color: var(--text);
  background: var(--panel-soft);
}

.button-wide {
  width: 100%;
}

.form {
  display: none;
  gap: 12px;
}

.form.active {
  display: grid;
}

label {
  display: grid;
  gap: 7px;
}

label span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

input {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  color: var(--text);
  background: var(--bg-soft);
}

input:focus {
  outline: none;
  border-color: rgba(115, 194, 255, 0.6);
  box-shadow: 0 0 0 3px rgba(115, 194, 255, 0.15);
}

.panel-note {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--panel-soft);
  color: var(--muted);
}

.status,
.helper-copy {
  margin: 0;
}

.simple-list,
.feature-list,
.plans,
.license-list {
  display: grid;
  gap: 12px;
}

.simple-item,
.plan-card,
.license-card,
.summary-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
  background: var(--panel-soft);
}

.simple-item {
  display: flex;
  gap: 10px;
  align-items: center;
}

.simple-item strong {
  color: var(--accent);
}

.feature-list {
  padding-left: 18px;
  color: var(--muted);
}

.summary-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.summary-card span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.plans {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.license-key {
  display: block;
  margin: 10px 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.24);
  overflow-wrap: anywhere;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.license-meta {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.license-meta code {
  padding: 2px 6px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  color: var(--text);
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.license-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.hidden {
  display: none !important;
}

.button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.toast-stack {
  position: fixed;
  top: 16px;
  right: 16px;
  display: grid;
  gap: 10px;
  z-index: 9999;
}

.toast {
  min-width: 240px;
  max-width: 320px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #112136;
  color: var(--text);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.3);
}

.toast.success {
  border-color: rgba(139, 243, 190, 0.45);
}

.toast.error {
  border-color: rgba(255, 140, 140, 0.45);
}

@media (max-width: 980px) {
  .hero,
  .marketing-grid,
  .layout,
  .plans,
  .price-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .shell {
    width: calc(100vw - 16px);
    padding-top: 16px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
