:root {
  color-scheme: dark;
  --bg: #090a0f;
  --panel: #11131a;
  --panel-soft: #171a23;
  --border: #2a2d38;
  --text: #f7f7fb;
  --muted: #aeb4c3;
  --red: #d7293a;
  --red-light: #f04455;
  --green: #2dbb8a;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); }
button, input { font: inherit; }
a { color: inherit; }

.site-header {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--border);
  background: rgba(9, 10, 15, 0.94);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand img { width: 42px; height: 42px; border-radius: 6px; object-fit: cover; }
.brand strong, .brand small { display: block; }
.brand strong { color: var(--red-light); font-size: 0.78rem; }
.brand small { margin-top: 2px; font-weight: 800; }
nav { display: flex; gap: 22px; }
nav a { color: var(--muted); text-decoration: none; font-size: 0.9rem; font-weight: 700; }
nav a:hover { color: var(--text); }

.hero {
  min-height: min(640px, calc(100vh - 72px));
  display: grid;
  align-items: center;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(115deg, rgba(215, 41, 58, 0.15), transparent 52%), #0d0f15;
}
.hero-inner { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 72px 0 84px; }
.eyebrow { margin: 0 0 10px; color: var(--red-light); font-size: 0.76rem; font-weight: 900; text-transform: uppercase; }
h1 { max-width: 840px; margin: 0; font-size: clamp(2.7rem, 7vw, 5.7rem); line-height: 0.98; letter-spacing: 0; }
.hero-copy { max-width: 680px; margin: 24px 0 0; color: var(--muted); font-size: 1.12rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; padding: 0 18px; border: 1px solid var(--border); font-weight: 850; text-decoration: none; cursor: pointer; }
.button.primary { border-color: var(--red); background: var(--red); color: white; }
.button.primary:hover { background: var(--red-light); }
.button.secondary { background: var(--panel-soft); color: var(--text); }
.trust-row { display: flex; flex-wrap: wrap; gap: 24px; margin-top: 48px; color: var(--muted); font-size: 0.88rem; font-weight: 700; }
.trust-row span::before { content: "✓"; margin-right: 7px; color: var(--green); }

.plans, .process { width: min(1180px, calc(100% - 48px)); margin: 0 auto; padding: 80px 0; }
.section-heading { max-width: 720px; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.section-heading > p:last-child { color: var(--muted); line-height: 1.6; }
.plan-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 34px; }
.plan-card { min-height: 370px; display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: 7px; background: var(--panel); padding: 22px; }
.plan-card.featured { border-color: rgba(240, 68, 85, 0.75); }
.plan-card .tag { align-self: flex-start; min-height: 24px; display: inline-flex; align-items: center; border-radius: 4px; padding: 0 8px; background: rgba(215, 41, 58, 0.16); color: #ff9ca6; font-size: 0.7rem; font-weight: 900; text-transform: uppercase; }
.plan-card h3 { margin: 18px 0 5px; font-size: 1.35rem; }
.price { min-height: 62px; display: flex; align-items: baseline; gap: 5px; margin: 14px 0; }
.price strong { font-size: 2rem; }
.price span, .plan-card p { color: var(--muted); }
.plan-card p { line-height: 1.55; }
.plan-card ul { display: grid; gap: 9px; padding: 0; margin: 18px 0 24px; list-style: none; color: var(--muted); font-size: 0.88rem; }
.plan-card li::before { content: "✓"; color: var(--green); margin-right: 8px; }
.plan-card .button { width: 100%; margin-top: auto; }
.loading { color: var(--muted); }
.product-warning { margin-top: 14px; }

.process { border-top: 1px solid var(--border); }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 0; margin: 34px 0 0; list-style: none; }
.process-grid li { border-top: 2px solid var(--red); padding: 20px 4px; }
.process-grid li > span { color: var(--red-light); font-weight: 900; }
.process-grid strong { display: block; margin-top: 14px; font-size: 1.1rem; }
.process-grid p { color: var(--muted); line-height: 1.55; }

footer { min-height: 84px; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 22px; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.82rem; padding: 20px 24px; }

dialog { width: min(520px, calc(100% - 28px)); border: 1px solid var(--border); border-radius: 7px; background: var(--panel); color: var(--text); padding: 0; box-shadow: 0 28px 90px rgba(0,0,0,.7); }
dialog::backdrop { background: rgba(0,0,0,.72); }
dialog form, .result-dialog { display: grid; gap: 15px; padding: 22px; }
.dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.dialog-header h2 { margin: 0; }
.icon-button { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 6px; background: var(--panel-soft); color: var(--text); cursor: pointer; font-size: 1.3rem; }
dialog label { display: grid; gap: 7px; color: var(--muted); font-size: 0.78rem; font-weight: 800; text-transform: uppercase; }
dialog input { width: 100%; min-height: 42px; border: 1px solid var(--border); border-radius: 6px; background: var(--panel-soft); color: var(--text); padding: 0 11px; outline: none; }
dialog input:focus { border-color: var(--red-light); box-shadow: 0 0 0 2px rgba(240,68,85,.12); }
.consent { grid-template-columns: 18px 1fr; align-items: start; text-transform: none; font-weight: 600; line-height: 1.45; }
.consent input { width: 17px; min-height: 17px; margin: 2px 0 0; }
.honeypot { position: absolute; left: -10000px; }
.form-message { min-height: 20px; color: #ffbd75; font-size: 0.86rem; }
.form-message.success { color: #8cf0ca; }
.submit-button:disabled { opacity: .55; cursor: wait; }
.license-key-box { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.license-key-box code { display: flex; align-items: center; min-width: 0; overflow-wrap: anywhere; border: 1px solid rgba(45,187,138,.45); border-radius: 6px; background: rgba(45,187,138,.08); padding: 12px; color: #a5ffdd; font-weight: 900; }
.license-key-box button { border: 1px solid var(--border); border-radius: 6px; background: var(--panel-soft); color: var(--text); font-weight: 800; cursor: pointer; }
.result-note { color: var(--muted); font-size: .82rem; }

@media (max-width: 900px) {
  .plan-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .site-header { height: auto; padding: 12px 18px; }
  nav a:not(:last-child) { display: none; }
  .hero { min-height: calc(100vh - 68px); align-items: start; }
  .hero-inner { width: min(100% - 36px, 1180px); padding: 64px 0 52px; }
  h1 { font-size: 3rem; }
  .plans, .process { width: min(100% - 36px, 1180px); padding: 56px 0; }
  .plan-grid, .process-grid { grid-template-columns: 1fr; }
  .plan-card { min-height: 330px; }
  .license-key-box { grid-template-columns: 1fr; }
  .license-key-box button { min-height: 40px; }
}
