:root {
  --bg: #fbfaff;
  --ink: #201827;
  --muted: #756985;
  --line: #ebe5f4;
  --surface: #ffffff;
  --primary: #a78bfa;
  --primary-strong: #7c3aed;
  --primary-soft: #f2edff;
  --deep: #120b1d;
  --danger: #dc2626;
  --success: #059669;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(16px, 4vw, 56px);
  color: white;
  background: linear-gradient(180deg, rgba(18,11,29,.72), rgba(18,11,29,0));
}
.brand { font-weight: 900; letter-spacing: .03em; }
.brand.purple { color: var(--primary-strong); display: inline-block; margin-bottom: 16px; }
.nav { display: flex; gap: 22px; align-items: center; font-size: 14px; }
.pill { padding: 10px 18px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; background: rgba(255,255,255,.1); }

.hero-section {
  min-height: 100vh;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 5%, rgba(167,139,250,.35), transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(217,70,239,.22), transparent 34%),
    linear-gradient(180deg, #120b1d, #211332 70%, #fbfaff);
  color: white;
  padding: 110px 18px 90px;
}
.hero-glow {
  position: absolute;
  width: min(520px, 70vw);
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(167,139,250,.22);
  filter: blur(70px);
}
.hero-inner { position: relative; max-width: 900px; text-align: center; }
.eyebrow, .kicker {
  display: inline-flex;
  color: var(--primary-strong);
  background: var(--primary-soft);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
}
.hero-section .eyebrow { color: #efe9ff; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); }
.logo-mark {
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  margin: 30px auto;
  border-radius: 28px;
  background: linear-gradient(135deg, #c4b5fd, #8b5cf6);
  box-shadow: 0 0 70px rgba(167,139,250,.55);
  font-size: 34px;
  font-weight: 900;
}
h1, h2, h3, p { margin-top: 0; }
.hero-section h1 { font-size: clamp(42px, 8vw, 86px); line-height: 1.02; margin-bottom: 22px; letter-spacing: 0; }
.hero-section h1 span { color: #ddd6fe; }
.hero-section p { max-width: 700px; margin: 0 auto 32px; color: rgba(255,255,255,.76); font-size: clamp(18px, 2.4vw, 25px); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-bottom: 22px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
}
.btn.primary { color: white; background: linear-gradient(135deg, #a78bfa, #7c3aed); box-shadow: 0 16px 42px rgba(124,58,237,.28); }
.btn.secondary { color: white; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); }
.btn.dark { color: white; background: var(--deep); }
.price-line { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; color: rgba(255,255,255,.65); }
.price-line strong { color: white; }

.section {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0;
  text-align: center;
}
.section h2, .trust-card h2, .final-cta h2 { font-size: clamp(30px, 5vw, 52px); line-height: 1.06; margin-bottom: 14px; }
.section > p { max-width: 680px; margin: 0 auto 34px; color: var(--muted); }
.choice-grid, .steps, .admin-grid, .app-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}
.choice, .steps article, .panel, .card, .stat-card, .admin-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  box-shadow: 0 14px 40px rgba(61,35,91,.07);
}
.choice { display: grid; gap: 6px; text-align: left; }
.choice span, .card p, .panel p, .steps p { color: var(--muted); }

.trust-card {
  width: min(900px, calc(100% - 32px));
  margin: -35px auto 40px;
  padding: 42px;
  text-align: center;
  border-radius: 8px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  box-shadow: 0 24px 70px rgba(61,35,91,.12);
}
.trust-card h2 span { color: var(--primary-strong); }
.example { display: inline-block; margin: 12px 0 24px; padding: 10px 14px; border-radius: 8px; background: var(--primary-soft); color: var(--muted); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; text-align: left; margin-bottom: 20px; }
.section-head a { color: var(--primary-strong); font-weight: 800; }
.category-strip { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 12px; }
.category-strip div { flex: 0 0 150px; padding: 22px 16px; border-radius: 8px; background: white; border: 1px solid var(--line); font-weight: 800; }
.white { width: 100%; max-width: none; background: white; padding-inline: max(16px, calc((100% - 1120px) / 2)); }
.steps article b { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: white; background: var(--primary-strong); margin: 0 auto 14px; }
.dark-band {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 36px;
  text-align: left;
  padding-inline: max(16px, calc((100% - 1120px) / 2));
  background: var(--deep);
  color: white;
}
.dark-band ul { padding-left: 20px; color: rgba(255,255,255,.78); }
.partner-box { background: white; color: var(--ink); border-radius: 8px; padding: 28px; align-self: center; }
.faq details { background: white; border: 1px solid var(--line); border-radius: 8px; margin: 12px auto; max-width: 760px; text-align: left; padding: 18px 20px; }
.faq summary { font-weight: 800; cursor: pointer; }
.final-cta {
  width: min(1120px, calc(100% - 32px));
  margin: 40px auto 72px;
  padding: 64px 24px;
  border-radius: 8px;
  text-align: center;
  color: white;
  background: linear-gradient(135deg, #c4b5fd, #8b5cf6 55%, #6d28d9);
}
.footer { display: grid; gap: 8px; text-align: center; padding: 38px 16px; color: rgba(255,255,255,.64); background: var(--deep); }
.compact-footer { padding: 18px 16px; }

.auth-page { min-height: 100vh; background: linear-gradient(135deg, #f7f2ff, #ffffff); }
.auth-shell { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-card { width: min(430px, 100%); background: white; border: 1px solid var(--line); border-radius: 8px; padding: 28px; box-shadow: 0 24px 70px rgba(61,35,91,.12); }
.wide-auth { width: min(520px, 100%); }
.auth-card p { color: var(--muted); }
.tabs { display: flex; gap: 8px; margin: 22px 0; }
.tabs button { flex: 1; border: 1px solid var(--line); background: white; border-radius: 8px; padding: 11px; font-weight: 800; }
.tabs button.active { color: white; background: var(--primary-strong); border-color: var(--primary-strong); }
.tab { display: none; }
.tab.active { display: grid; gap: 14px; }
.code-step { display: none; gap: 14px; padding-top: 4px; }
.code-step.active { display: grid; }
.code-head { display: flex; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--primary-soft); color: var(--primary-strong); }
.code-head span { color: var(--muted); overflow-wrap: anywhere; }
label { display: grid; gap: 7px; color: var(--ink); font-weight: 700; }
input, select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: white;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(167,139,250,.22); border-color: var(--primary); }
.form-message { margin-top: 14px; color: var(--danger); font-weight: 700; }
.mini-note { font-size: 13px; margin: 12px 0 0; }
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 18px 50px rgba(61,35,91,.16);
}

.app-layout, .admin-layout { min-height: 100vh; background: var(--bg); }
.app-header, .admin-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 16px clamp(16px, 4vw, 42px);
  background: rgba(255,255,255,.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.app-nav, .admin-nav { display: flex; gap: 10px; flex-wrap: wrap; }
.app-nav button, .admin-nav button, .small-btn {
  border: 1px solid var(--line);
  background: white;
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 800;
}
.app-nav button.active, .admin-nav button.active { color: white; background: var(--primary-strong); border-color: var(--primary-strong); }
.content { width: min(1120px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 72px; }
.screen { display: none; }
.screen.active { display: block; }
.toolbar { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 18px 0; }
.badge { display: inline-flex; padding: 5px 10px; border-radius: 999px; background: var(--primary-soft); color: var(--primary-strong); font-weight: 900; font-size: 13px; }
.muted { color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: white; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; }
th { color: var(--muted); font-size: 13px; background: #fcfaff; }
.stat-value { font-size: 34px; font-weight: 900; color: var(--primary-strong); }

@media (max-width: 760px) {
  .nav a:not(.pill) { display: none; }
  .topbar { padding: 14px 16px; }
  .trust-card { padding: 26px 18px; }
  .dark-band { grid-template-columns: 1fr; }
  .section-head { align-items: start; flex-direction: column; }
  .app-header, .admin-header { align-items: start; flex-direction: column; }
  .cookie-banner { align-items: stretch; flex-direction: column; }
}
