:root {
  --bg: #0b0d12;
  --bg2: #12161f;
  --card: #171c27;
  --text: #eef1f7;
  --muted: #9aa3b5;
  --line: #2a3142;
  --accent: #00d4ff;
  --accent2: #7c5cff;
  --ok: #22c55e;
  --warn: #f59e0b;
  --danger: #ef4444;
  --shadow: 0 20px 50px rgba(0,0,0,.45);
  --radius: 16px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}
.theme-light {
  --bg: #f4f6fb;
  --bg2: #ffffff;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --shadow: 0 16px 40px rgba(15,23,42,.08);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(1120px, 92%); margin: 0 auto; }
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: .02em; color: var(--text); text-decoration: none;
}
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid var(--line); background: var(--card); color: var(--text);
  padding: 10px 16px; border-radius: 999px; cursor: pointer; font-weight: 600;
  text-decoration: none; transition: .2s ease;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent2));
  border: none; color: #061018;
}
.btn-ghost { background: transparent; }
.btn-danger { background: var(--danger); border: none; color: #fff; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.hero {
  padding: 72px 0 48px;
  background:
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 40%),
    radial-gradient(circle at 80% 0%, color-mix(in srgb, var(--accent2) 16%, transparent), transparent 35%);
}
.hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: center; }
.hero h1 { font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1.1; margin: 0 0 14px; }
.hero p { color: var(--muted); font-size: 1.08rem; margin: 0 0 24px; }
.hero-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.badge {
  display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700;
  background: color-mix(in srgb, var(--accent) 18%, transparent); color: var(--accent);
}
.section { padding: 56px 0; }
.section h2 { margin: 0 0 8px; font-size: 1.8rem; }
.section .lead { color: var(--muted); margin: 0 0 28px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow);
}
.card h3 { margin: 8px 0; }
.price { font-size: 2rem; font-weight: 800; margin: 12px 0; }
.price small { font-size: .9rem; color: var(--muted); font-weight: 600; }
.features { list-style: none; padding: 0; margin: 16px 0 20px; }
.features li {
  padding: 8px 0 8px 28px; position: relative; color: var(--muted); border-bottom: 1px solid var(--line);
}
.features li:before {
  content: "✓"; position: absolute; left: 0; color: var(--ok); font-weight: 800;
}
.stars { color: #fbbf24; letter-spacing: 2px; }
.testimonial { min-height: 160px; }
.muted { color: var(--muted); }
.footer {
  border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: 40px; color: var(--muted); font-size: 14px;
}
.footer a { color: var(--muted); }
.form label { display: block; margin: 12px 0 6px; font-weight: 600; font-size: 14px; }
.form input, .form textarea, .form select {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--bg2); color: var(--text); font: inherit;
}
.form textarea { min-height: 120px; resize: vertical; }
.alert {
  padding: 12px 14px; border-radius: 12px; margin: 12px 0; border: 1px solid var(--line);
}
.alert-ok { background: color-mix(in srgb, var(--ok) 15%, transparent); }
.alert-error { background: color-mix(in srgb, var(--danger) 15%, transparent); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td {
  text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 14px;
}
.table th { color: var(--muted); font-weight: 700; }
.layout-dash { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side {
  background: var(--bg2); border-right: 1px solid var(--line); padding: 20px 14px;
}
.side a {
  display: block; padding: 10px 12px; border-radius: 10px; color: var(--text); margin-bottom: 4px;
}
.side a:hover, .side a.active { background: color-mix(in srgb, var(--accent) 15%, transparent); text-decoration: none; }
.main { padding: 24px; }
.license-key {
  font-family: ui-monospace, monospace; font-size: 15px; letter-spacing: .04em;
  background: var(--bg); border: 1px dashed var(--line); padding: 12px; border-radius: 10px;
  word-break: break-all;
}
.pill {
  display: inline-block; padding: 3px 8px; border-radius: 999px; font-size: 12px; font-weight: 700;
}
.pill-ok { background: color-mix(in srgb, var(--ok) 20%, transparent); color: var(--ok); }
.pill-warn { background: color-mix(in srgb, var(--warn) 20%, transparent); color: var(--warn); }
@media (max-width: 900px) {
  .hero-grid, .grid-2, .grid-3, .layout-dash { grid-template-columns: 1fr; }
  .side { border-right: none; border-bottom: 1px solid var(--line); }
}
