:root {
  --ink: #0b1220;
  --ink-soft: #1c2740;
  --muted: #5b6785;
  --line: #e4e9f4;
  --paper: #f6f7fb;
  --white: #ffffff;
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --accent: #f59e0b;
  --ok: #059669;
  --danger: #dc2626;
  --shadow: 0 20px 50px -24px rgba(15, 23, 42, .35);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.nav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(246,247,251,.86);
  border-bottom: 1px solid rgba(228,233,244,.8);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.03em; font-size: 1.15rem; }
.logo {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; color: #fff; font-weight: 800;
  box-shadow: 0 8px 20px -10px #4f46e5;
}
.nav-links { display: flex; gap: 22px; color: var(--muted); font-weight: 600; font-size: .95rem; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; font-weight: 700; border-radius: 999px;
  padding: 10px 16px; font-size: .92rem;
}
.btn-ghost { background: transparent; color: var(--ink-soft); }
.btn-outline { background: #fff; border: 1px solid var(--line); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; box-shadow: 0 10px 22px -12px #4f46e5;
}
.btn-dark { background: var(--ink); color: #fff; }
.btn-accent { background: var(--accent); color: #1a1203; }
.btn-block { width: 100%; }
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(79,70,229,.28), transparent 50%),
    radial-gradient(700px 380px at 90% 0%, rgba(245,158,11,.22), transparent 45%),
    linear-gradient(180deg, #0b1220 0%, #151b33 70%, #f6f7fb 70%);
  color: #fff; padding: 72px 0 0;
}
.hero h1 { font-size: clamp(2.3rem, 5vw, 4.2rem); line-height: 1.05; letter-spacing: -.04em; margin: 0 0 16px; max-width: 18ch; }
.hero p.lead { font-size: 1.15rem; color: #c9d2ea; max-width: 46ch; }
.hero-actions { display: flex; gap: 12px; margin: 28px 0 36px; flex-wrap: wrap; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pill { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.1); padding: 6px 10px; border-radius: 999px; font-size: .78rem; color: #d7def3; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: end; }
.preview {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: 24px 24px 0 0; padding: 16px; backdrop-filter: blur(10px);
}
.preview-card { background: #fff; color: var(--ink); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow); }
.cover { height: 160px; background: linear-gradient(135deg,#312e81,#7c3aed 40%, #f59e0b); }
.pad { padding: 16px 18px 18px; }
.section { padding: 72px 0; }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.03em; margin: 0 0 8px; }
.sub { color: var(--muted); margin: 0 0 28px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 1px 0 rgba(15,23,42,.02); }
.card-pad { padding: 22px; }
.icon-blob {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
  background: #eef2ff; color: var(--brand); font-weight: 800; margin-bottom: 12px;
}
.price { font-size: 2.2rem; font-weight: 800; letter-spacing: -.04em; }
.muted { color: var(--muted); }
.tiny { font-size: .8rem; }
.badge { display: inline-flex; padding: 3px 8px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: #eef2ff; color: #4338ca; }
.badge-amber { background: #fff7ed; color: #c2410c; }
.badge-green { background: #ecfdf5; color: #047857; }
.list { margin: 16px 0 0; padding: 0; list-style: none; }
.list li { padding: 7px 0; color: var(--ink-soft); }
.list li::before { content: "✓  "; color: var(--ok); font-weight: 800; }
.footer { background: #0b1220; color: #c9d2ea; padding: 48px 0 24px; margin-top: 40px; }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.form { display: grid; gap: 12px; }
label { font-weight: 650; font-size: .86rem; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px;
  font: inherit; background: #fff; color: var(--ink);
}
textarea { min-height: 120px; resize: vertical; }
.alert { padding: 12px 14px; border-radius: 12px; margin: 12px 0; font-weight: 600; }
.alert-ok { background: #ecfdf5; color: #065f46; }
.alert-err { background: #fef2f2; color: #991b1b; }
.dash { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.side { background: #0b1220; color: #d7def3; padding: 22px 16px; }
.side a { display: block; padding: 10px 12px; border-radius: 10px; color: #c9d2ea; font-weight: 600; }
.side a:hover, .side a.active { background: rgba(255,255,255,.08); color: #fff; }
.main { padding: 28px; }
.stat { padding: 18px; }
.stat b { display: block; font-size: 1.5rem; letter-spacing: -.03em; }
.progress { height: 10px; background: #eef2ff; border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--accent)); }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.range { accent-color: var(--brand); width: 100%; }
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 32px;
  background:
    radial-gradient(600px 280px at 20% 0%, rgba(79,70,229,.2), transparent),
    var(--paper);
}
.auth-card { width: min(440px, 100%); background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
@media (max-width: 900px) {
  .hero-grid, .grid-3, .grid-4, .footer-grid, .dash, .grid-2 { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .preview { display: none; }
}
