:root {
  --bg: #070b14;
  --bg-2: #0c1220;
  --surface: rgba(255, 255, 255, 0.06);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.14);
  --text: #f8fafc;
  --muted: #b8c0d4;
  --primary: #7c5cff;
  --primary-2: #6a4cf2;
  --accent: #19d3c5;
  --danger: #ffcc66;
  --ok: #55e3a4;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.32);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --max: 1120px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background:
    radial-gradient(circle at 15% 8%, rgba(124, 92, 255, 0.28), transparent 30%),
    radial-gradient(circle at 85% 2%, rgba(25, 211, 197, 0.18), transparent 36%),
    linear-gradient(145deg, #050810 0%, #0c1324 45%, #0a0f1d 100%);
  color: var(--text);
  line-height: 1.6;
}

a { color: #c7b9ff; }
a:hover { color: #e5ddff; }

.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.blur-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(44px);
  opacity: 0.32;
  pointer-events: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(12px);
  background: rgba(7, 11, 20, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand img { width: 38px; height: 38px; }

.nav-links {
  display: inline-flex;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover { color: #fff; }

.btn {
  appearance: none;
  border: 0;
  cursor: pointer;
  background: linear-gradient(135deg, var(--primary) 0%, #8b73ff 100%);
  color: #fff;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  transition: transform 220ms ease, box-shadow 220ms ease, opacity 220ms ease;
  box-shadow: 0 8px 26px rgba(124, 92, 255, 0.32);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(124, 92, 255, 0.45);
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  border: 1px solid var(--border);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 22px;
  align-items: center;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.badge {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.05);
  color: #dbe5ff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

h1 {
  margin: 0 0 14px;
  line-height: 1.1;
  font-size: clamp(34px, 6vw, 58px);
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(95deg, #f4f0ff 0%, #b8f5ee 48%, #c9bcff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 17px;
}

.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.price {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.micro {
  color: var(--muted);
  font-size: 13px;
}

.card {
  background: linear-gradient(165deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.04) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 22px;
}

.form-card {
  padding: 18px;
  margin-top: 16px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 12px;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(8, 13, 24, 0.5);
  color: #eaf0ff;
  outline: none;
}

.field input::placeholder {
  color: rgba(234, 240, 255, 0.6);
}

.is-hidden {
  display: none;
}

.card.selected {
  border-color: rgba(25, 211, 197, 0.55);
  box-shadow: 0 0 0 4px rgba(25, 211, 197, 0.12);
}

.mockup-wrap {
  margin-top: 18px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.16);
  background: rgba(8, 13, 24, 0.7);
}

.mockup-wrap img {
  width: 100%;
  display: block;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.caption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
}

.hero-card h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
}

.hero-card ul { margin: 0; padding-left: 18px; color: #d8e0f5; }
.hero-card li { margin-bottom: 8px; }

.notice {
  margin-top: 12px;
  border: 1px solid rgba(255, 204, 102, 0.3);
  background: rgba(255, 204, 102, 0.08);
  color: #ffe4b0;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13px;
}

.section {
  padding: 20px 0;
}

.section h2 {
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}

.section .lead {
  margin: 0 0 20px;
  color: var(--muted);
  max-width: 780px;
}

.grid-3,
.grid-4,
.grid-2 {
  display: grid;
  gap: 14px;
}

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

.grid-metrics {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.metric-panel,
.template-panel {
  padding: 20px;
}

.metric-list {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.metric-row {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 12px;
  align-items: center;
}

.metric-name,
.metric-value {
  font-size: 13px;
  color: var(--muted);
}

.metric-bar {
  height: 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.08);
}

.metric-bar > span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 100%);
}

.template-window {
  margin-top: 14px;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(10, 15, 28, 0.85);
}

.template-topbar {
  display: flex;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}

.template-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
}

.template-body {
  padding: 16px;
}

.template-kicker {
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.template-title {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 10px;
}

.template-text {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 14px;
}

.template-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.template-tag {
  font-size: 12px;
  color: #dbe5ff;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
}

.niche-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.niche-chip {
  font-size: 12px;
  color: #dbe5ff;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.05);
}

.niche-chip.good {
  border-color: rgba(85, 227, 164, 0.35);
  color: #c8ffe3;
}

.niche-chip.warn {
  border-color: rgba(255, 204, 102, 0.35);
  color: #ffe8b3;
}

.template-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.template-action {
  font-size: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
}

.feature,
.info,
.faq-item,
.stat {
  padding: 18px;
}

.info p + .micro,
.feature p + .micro {
  margin-top: 8px;
}

.stat {
  text-align: center;
}

.feature h3,
.info h3,
.faq-item h3,
.stat .num {
  margin: 0 0 6px;
}

.feature p,
.info p,
.faq-item p {
  margin: 0;
  color: var(--muted);
}

.info ul {
  margin: 8px 0 0 18px;
  padding: 0;
}

.info li {
  margin-bottom: 8px;
  color: var(--muted);
}

.stat .num {
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
}

.stat .label { color: var(--muted); font-size: 13px; }

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

.step {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px dashed rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.03);
}

.step strong { color: #fff; }

.case-meta {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  color: #d9e2fa;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}

.cta {
  padding: 28px;
  text-align: center;
}

.cta .price {
  margin-bottom: 8px;
}

.footer {
  margin-top: 36px;
  padding: 30px 0 52px;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}

.footer p { margin: 0 0 8px; color: var(--muted); }

.legal-page {
  padding: 38px 0 56px;
}

.legal-wrap {
  max-width: 860px;
}

.legal-card {
  padding: 24px;
}

.legal-card h1 {
  font-size: clamp(30px, 4vw, 44px);
  margin-bottom: 8px;
}

.legal-card h2 {
  margin-top: 24px;
  margin-bottom: 8px;
  font-size: 22px;
}

.legal-card p,
.legal-card li {
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.show {
  opacity: 1;
  transform: none;
}

#status.ok { color: var(--ok); }
#status.error { color: #ff8f8f; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grid-metrics { grid-template-columns: 1fr; }
}

@media (min-width: 900px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .form-grid .field:last-child {
    grid-column: 1 / -1;
    display: flex;
    gap: 12px;
    align-items: flex-start;
  }

  .form-grid .field:last-child button {
    flex: 0 0 auto;
  }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .hero { padding-top: 52px; }
  .grid-4, .grid-3, .grid-2, .footer-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
