:root {
  --bg: #070b12;
  --bg-2: #0b1019;
  --card: #111826;
  --text: #eef2f7;
  --muted: #9aa6b8;
  --accent: #22c55e;
  --accent-2: #f5b942;
  --border: #243044;
  --danger: #f87171;
  --glow: rgba(34, 197, 94, .35);
  --r: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: system-ui, "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent-2); }
h1 { font-size: clamp(32px, 5.6vw, 58px); line-height: 1.2; margin: 0 0 18px; font-weight: 900; letter-spacing: -.5px; }
h2 { font-size: clamp(24px, 3.4vw, 36px); margin: 0 0 14px; line-height: 1.3; font-weight: 800; }
h3 { margin: 6px 0 4px; font-size: 20px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 18px; position: relative; }
.narrow { max-width: 580px; }
.section { padding: 76px 0; position: relative; }
.section h2 { margin-top: 0; }
.muted { color: var(--muted); }
.eyebrow {
  display: inline-block; margin: 0 0 10px; padding: 3px 12px; font-size: 13px; font-weight: 700;
  color: var(--accent); border: 1px solid rgba(34,197,94,.35); border-radius: 999px;
  background: rgba(34,197,94,.08); letter-spacing: .5px;
}

/* ---------- scroll progress + reveal (CSS only) ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 50; transform-origin: right;
  background: linear-gradient(90deg, var(--accent), var(--accent-2)); transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .progress { animation: grow linear both; animation-timeline: scroll(root); }
  .reveal { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
}
@keyframes grow { to { transform: scaleX(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 96px 0 80px; overflow: hidden; isolation: isolate; }
.grid-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%);
}
.aurora { position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); opacity: .55; }
.aurora.a1 { width: 420px; height: 420px; background: #16a34a; top: -120px; right: -60px; animation: drift 14s ease-in-out infinite alternate; }
.aurora.a2 { width: 360px; height: 360px; background: #b45309; bottom: -140px; left: -40px; opacity: .35; animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.15); } }

.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px; margin: 0 0 16px;
  border-radius: 999px; background: rgba(19,26,38,.8); border: 1px solid var(--border);
  color: var(--accent-2); font-size: 14px; backdrop-filter: blur(6px);
}
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--glow); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }

.grad {
  background: linear-gradient(100deg, #fff 0%, #bbf7d0 35%, var(--accent-2) 70%, #fff 100%);
  background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 7s linear infinite;
}
@keyframes shine { to { background-position: -220% center; } }

.hero .sub { color: var(--muted); font-size: 18px; max-width: 560px; margin: 0 0 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.trust { list-style: none; display: flex; gap: 8px 18px; flex-wrap: wrap; padding: 0; margin: 26px 0 0; color: var(--muted); font-size: 14px; }
.trust li::before { content: "◆"; color: var(--accent); margin-inline-end: 6px; font-size: 10px; }

/* terminal */
.hero-visual { position: relative; perspective: 1100px; }
.term {
  background: linear-gradient(160deg, #0d1522, #080d16); border: 1px solid var(--border); border-radius: 18px;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,.8), 0 0 60px -10px var(--glow);
  transform: rotateY(-9deg) rotateX(4deg); transition: transform .6s ease; overflow: hidden;
}
.hero-visual:hover .term { transform: rotateY(0) rotateX(0); }
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); background: rgba(255,255,255,.02); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #f87171; }
.term-bar i:nth-child(2) { background: #f5b942; }
.term-bar i:nth-child(3) { background: #22c55e; }
.term-bar span { margin-inline-start: auto; font: 12px ui-monospace, Menlo, Consolas, monospace; color: var(--muted); }
.term-body { padding: 20px 18px 24px; font: 13.5px/2 ui-monospace, Menlo, Consolas, monospace; color: #cbd5e1; min-height: 270px; }
.l { display: block; overflow: hidden; white-space: nowrap; width: 0; animation: type .9s steps(34) forwards; animation-delay: calc(var(--i) * 1s + .4s); }
@keyframes type { to { width: 100%; } }
.l b { color: var(--accent-2); margin-inline-end: 8px; }
.l em { color: var(--accent); font-style: normal; margin-inline-end: 8px; }
.l.ok { color: var(--accent); font-weight: 700; }
.caret { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: middle; margin-inline-start: 4px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.chip {
  position: absolute; padding: 8px 14px; border-radius: 12px; font-size: 13px; font-weight: 700;
  background: rgba(17,24,38,.9); border: 1px solid var(--border); backdrop-filter: blur(8px);
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.7); animation: float 5s ease-in-out infinite;
}
.chip.c1 { top: -14px; left: -10px; color: var(--accent); }
.chip.c2 { bottom: 40px; left: -28px; color: var(--accent-2); animation-delay: -1.6s; }
.chip.c3 { bottom: -16px; right: 24px; color: #7dd3fc; animation-delay: -3.2s; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; background: var(--accent); color: #04120a; padding: 15px 28px; border-radius: 14px;
  font-weight: 800; font-size: 17px; text-decoration: none; border: 0; cursor: pointer; font-family: inherit;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .6; cursor: default; transform: none; }
.btn-glow { box-shadow: 0 10px 34px -8px var(--glow), inset 0 1px 0 rgba(255,255,255,.35); background: linear-gradient(135deg, #4ade80, #16a34a); }
.btn-glow:hover { box-shadow: 0 14px 44px -6px rgba(34,197,94,.6), inset 0 1px 0 rgba(255,255,255,.35); }
.btn .arr { display: inline-block; transition: transform .2s; }
.btn:hover .arr { transform: translateX(-5px); }
.btn-block { display: block; width: 100%; text-align: center; }
.btn-ghost { background: rgba(255,255,255,.03); color: var(--text); border: 1px solid var(--border); box-shadow: none; }
.btn-ghost:hover { border-color: var(--accent); }

/* ---------- cards ---------- */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent), var(--card);
  border: 1px solid var(--border); border-radius: var(--r); padding: 22px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.card:hover { border-color: #34476a; }

.pillars { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 28px; }
.pillar:hover { transform: translateY(-6px); box-shadow: 0 20px 40px -20px var(--glow); }
.pillar p { color: var(--muted); margin: 6px 0 0; font-size: 15px; }
.ico {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; font: 700 20px ui-monospace, monospace;
  color: var(--accent); background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); margin-bottom: 10px;
}

.review blockquote { margin: 8px 0; color: var(--muted); }
.review figcaption { font-weight: 700; font-size: 14px; }
.review .stars { color: var(--accent-2); letter-spacing: 2px; }
.reviews .grid, .stores { margin-top: 24px; }

.stores .store { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; text-decoration: none; color: var(--text); }
.stores .store:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 20px 40px -20px var(--glow); }
.stores img { width: 96px; height: 96px; object-fit: contain; background: #fff; border-radius: 16px; padding: 8px; }
.logo-fallback { width: 96px; height: 96px; border-radius: 16px; background: var(--border); display: grid; place-items: center; font-size: 36px; font-weight: 800; }

/* ---------- timeline ---------- */
.timeline { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; inset-block: 18px; inset-inline-start: 21px; width: 2px; background: linear-gradient(var(--accent), transparent); }
.timeline li { display: flex; gap: 18px; align-items: flex-start; padding: 12px 0; position: relative; }
.timeline b {
  flex: 0 0 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--bg);
  border: 2px solid var(--accent); color: var(--accent); font-size: 18px; box-shadow: 0 0 20px -4px var(--glow); z-index: 1;
}
.timeline h3 { margin: 4px 0 0; }
.timeline p { margin: 2px 0 0; color: var(--muted); }

/* ---------- packages ---------- */
.packages { margin-top: 26px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); align-items: stretch; }
.package { display: block; cursor: pointer; position: relative; overflow: hidden; }
.package:hover { transform: translateY(-6px); }
.package input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.package:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset, 0 20px 50px -20px var(--glow); background: linear-gradient(180deg, rgba(34,197,94,.1), transparent), var(--card); }
.package:has(input:focus-visible) { outline: 2px solid var(--accent-2); outline-offset: 3px; }
.tick {
  position: absolute; top: 14px; inset-inline-end: 14px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent); color: #04120a; font-weight: 900; transform: scale(0); transition: transform .25s cubic-bezier(.3,1.6,.5,1);
}
.package:has(input:checked) .tick { transform: scale(1); }

.package.highlight { border-color: transparent; background: linear-gradient(var(--card), var(--card)) padding-box, conic-gradient(from var(--ang, 0deg), var(--accent-2), var(--accent), #7dd3fc, var(--accent-2)) border-box; border: 2px solid transparent; animation: spin 6s linear infinite; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin { to { --ang: 360deg; } }
.package.highlight:has(input:checked) { box-shadow: 0 20px 50px -20px var(--glow); }
.ribbon { display: inline-block; font-size: 12px; font-weight: 800; padding: 2px 10px; border-radius: 999px; background: var(--accent-2); color: #1a1100; margin-bottom: 6px; }

.price { font-size: 30px; font-weight: 900; color: var(--accent-2); margin: 6px 0 12px; }
.price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.perks, .modules { list-style: none; padding: 0; margin: 10px 0 0; font-size: 15px; }
.perks li { color: var(--accent); }
.modules { border-top: 1px dashed var(--border); padding-top: 10px; }
.modules li { padding: 3px 0; }
.modules .on { color: var(--text); }
.modules .off { color: #5d6a7e; text-decoration: line-through; text-decoration-color: rgba(93,106,126,.5); }

/* ---------- form ---------- */
.form-card { padding: 28px; box-shadow: 0 30px 70px -30px rgba(0,0,0,.8); }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; border: 0; padding: 0; }
.field label, .field legend { font-weight: 600; }
.field input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
.filters input, .filters select {
  width: 100%; padding: 14px; border-radius: 12px; border: 1px solid var(--border);
  background: #0a101a; color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .filters input:focus, .filters select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(34,197,94,.15); }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; cursor: pointer; }
.check input { margin-top: 6px; accent-color: var(--accent); }
.err { color: var(--danger); font-size: 14px; display: block; min-height: 1em; }
.general { font-size: 15px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.thanks { text-align: center; }
.prose p, .prose li { color: var(--muted); }
.prose h2 { font-size: 20px; color: var(--text); margin-top: 24px; }

footer { padding: 36px 0 90px; color: var(--muted); text-align: center; border-top: 1px solid var(--border); }

/* sticky mobile CTA */
.sticky-cta {
  display: none; position: fixed; z-index: 40; inset-inline: 14px; bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  text-align: center; padding: 14px; border-radius: 14px; font-weight: 800; text-decoration: none; color: #04120a;
  background: linear-gradient(135deg, #4ade80, #16a34a); box-shadow: 0 14px 40px -8px rgba(34,197,94,.55);
}

/* ================= Admin (unchanged behavior) ================= */
.admin-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 16px 0; }
.filters input, .filters select { width: auto; }
.filters .btn, .filters .btn-ghost { padding: 10px 16px; font-size: 15px; }
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--border); border-radius: 12px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px; border-bottom: 1px solid var(--border); text-align: right; white-space: nowrap; }
th { color: var(--accent-2); font-weight: 700; }

.admin-nav, .tabs { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); margin-bottom: 8px; }
.admin-nav a, .tabs a { padding: 8px 14px; border-radius: 10px; text-decoration: none; color: var(--text); border: 1px solid var(--border); font-size: 15px; }
.admin-nav a.active, .tabs a.active { background: var(--accent); color: #06140b; border-color: var(--accent); font-weight: 700; }
.admin-nav .inline { margin-inline-start: auto; }
.tabs { border: 0; padding-top: 0; }
.btn-mini { background: transparent; color: var(--text); border: 1px solid var(--border); border-radius: 8px; padding: 6px 10px; cursor: pointer; font: inherit; }
.btn-mini.danger { color: var(--danger); }
.flash { padding: 10px 14px; border-radius: 10px; margin: 12px 0; }
.flash.ok { background: #12301d; border: 1px solid var(--accent); }
.flash.bad { background: #351616; border: 1px solid var(--danger); }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; border: 1px solid var(--border); }
.pill.sent { color: var(--accent); border-color: var(--accent); }
.pill.failed { color: var(--danger); border-color: var(--danger); }
.pill.skipped, .pill.pending { color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 16px 0 24px; }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px; }
.kpi span { display: block; color: var(--muted); font-size: 13px; }
.kpi strong { font-size: 24px; }
.bars { display: grid; gap: 8px; margin-bottom: 16px; }
.bar-row { display: grid; grid-template-columns: 130px 1fr 150px; gap: 10px; align-items: center; font-size: 14px; }
.bar { background: var(--card); border: 1px solid var(--border); border-radius: 999px; height: 12px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--accent); }
.checklist { list-style: none; padding: 0; }
.checklist li { padding: 4px 0; }
.result { margin: 16px 0; }
.result.ok { border-color: var(--accent); }
.result.bad { border-color: var(--danger); }
pre { white-space: pre-wrap; word-break: break-all; background: #0e1420; padding: 12px; border-radius: 10px; font-size: 13px; }
td.resp { max-width: 340px; overflow: hidden; text-overflow: ellipsis; }

.repeater { display: grid; gap: 12px; margin: 16px 0; }
.repeater [data-rows] { display: grid; gap: 12px; }
.rep-row { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 14px; display: grid; gap: 10px; }
.rep-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.rep-fields label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.rep-fields .wide { grid-column: 1 / -1; }
.rep-fields input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
.rep-fields textarea, .rep-fields select, .field textarea {
  width: 100%; padding: 10px; border-radius: 10px; border: 1px solid var(--border);
  background: #0e1420; color: var(--text); font: inherit;
}
.rep-fields .check { flex-direction: row; align-items: center; }
.rep-tools { display: flex; gap: 6px; justify-content: flex-end; }
.logo-field { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.logo-field img { border-radius: 8px; background: #fff; object-fit: contain; }
.includes { border: 1px solid var(--border); border-radius: 10px; padding: 10px; }
.includes legend { padding: 0 6px; }

/* ---------- responsive ---------- */
@media (max-width: 880px) {
  .hero { padding: 64px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-copy { text-align: center; }
  .hero .sub { margin-inline: auto; }
  .hero-actions, .trust { justify-content: center; }
  .term { transform: none; }
  .chip.c2 { left: -6px; }
}
@media (max-width: 640px) {
  .section { padding: 52px 0; }
  .sticky-cta { display: block; }
  .form-card { padding: 20px; }
}
@media (max-width: 480px) {
  .bar-row { grid-template-columns: 90px 1fr 110px; }
  .term-body { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .l { width: 100%; }
  .reveal { opacity: 1; transform: none; }
}