:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --line: #e2e8f0;
  --card: #ffffff;
  --surface: #ffffff;
  --brand: #2563eb;
  --brand-dark: #1d4ed8;
  --soft: #eef2ff;
  --ok: #16a34a;
  --bg-grad-a: #dbeafe;
  --bg-grad-b: #ede9fe;
}

:root[data-theme="dark"] {
  --bg: #020617;
  --text: #e2e8f0;
  --muted: #94a3b8;
  --line: #1e293b;
  --card: #0f172a;
  --surface: #111827;
  --brand: #3b82f6;
  --brand-dark: #2563eb;
  --soft: #0f172a;
  --ok: #22c55e;
  --bg-grad-a: #0b1226;
  --bg-grad-b: #1f1a3a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  transition: background-color .22s ease, color .22s ease;
  background:
    radial-gradient(1200px 420px at 10% -10%, var(--bg-grad-a) 0%, transparent 60%),
    radial-gradient(900px 380px at 90% -10%, var(--bg-grad-b) 0%, transparent 62%),
    var(--bg);
}

a { color: inherit; text-decoration: none; }

.container {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.logo-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(120deg, #3b82f6, #8b5cf6);
  box-shadow: 0 0 0 6px #dbeafe;
}

.menu {
  display: flex;
  gap: 22px;
  color: var(--muted);
  font-size: 14px;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 999px;
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .2s ease;
}

.theme-toggle:hover {
  border-color: #93c5fd;
}

.theme-toggle:active {
  transform: scale(0.96);
}

.theme-toggle .icon {
  width: 18px;
  height: 18px;
  display: block;
  transition: opacity .16s ease, transform .22s ease;
}

.theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(-35deg) scale(0.85);
  position: absolute;
}

:root[data-theme="dark"] .theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(30deg) scale(0.82);
}

:root[data-theme="dark"] .theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

:root[data-theme="dark"] .theme-toggle {
  border-color: #334155;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 15px;
  transition: all .2s ease;
  cursor: pointer;
}

.btn-outline {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.btn-outline:hover { background: #f8fafc; }

.btn-primary {
  background: linear-gradient(120deg, var(--brand), #4f46e5);
  color: #fff;
}

.btn-primary:hover { background: linear-gradient(120deg, var(--brand-dark), #4338ca); }

.hero {
  padding: 56px 0 28px;
  text-align: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3px;
  border: 1px solid #c7d2fe;
  color: #4338ca;
  background: #eef2ff;
  border-radius: 999px;
  padding: 6px 12px;
  margin-bottom: 18px;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -.6px;
}

.grad {
  background: linear-gradient(120deg, #2563eb, #7c3aed, #db2777);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin: 18px auto 0;
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 26px;
  flex-wrap: wrap;
}

.hero-card {
  margin: 36px auto 0;
  width: min(920px, 100%);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 18px 60px rgba(30, 41, 59, .08);
  text-align: left;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stat {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface);
}

.stat .k {
  display: block;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

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

section {
  padding: 64px 0;
}

.section-head {
  text-align: center;
  margin-bottom: 24px;
}

.section-head .tag {
  color: #4338ca;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .65px;
}

.section-head h2 {
  margin: 8px 0 10px;
  font-size: clamp(26px, 3.5vw, 38px);
  line-height: 1.2;
}

.section-head p {
  margin: 0 auto;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.7;
}

.sponsors {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.sponsor {
  border: 1px dashed #cbd5e1;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
  background: var(--surface);
  font-weight: 700;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.feature {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  background: var(--surface);
  box-shadow: 0 8px 20px rgba(30, 41, 59, .04);
}

.feature h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  font-size: 14px;
}

.pricing {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.plan {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
}

.plan-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
}

.plan-meta {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.plan.recommended {
  border-color: #93c5fd;
  box-shadow: 0 14px 30px rgba(37, 99, 235, .12);
  transform: translateY(-2px);
}

.plan .price {
  font-size: 28px;
  font-weight: 700;
}

.plan ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
}

.plan li::before {
  content: "\2713";
  color: var(--ok);
  margin-right: 8px;
  font-weight: 700;
}

.faq {
  max-width: 820px;
  margin: 0 auto;
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  padding: 14px 15px;
}

.faq-item h4 {
  margin: 0 0 6px;
  font-size: 16px;
}

.faq-item p,
.faq-item .faq-answer {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.faq-item .faq-answer p {
  margin: 0;
}

.cta {
  border: 1px solid #bfdbfe;
  background: linear-gradient(150deg, #eff6ff, #eef2ff);
  border-radius: 18px;
  padding: 26px;
  text-align: center;
}

:root[data-theme="dark"] .pill {
  border-color: #334155;
  color: #c7d2fe;
  background: #1e1b4b;
}

:root[data-theme="dark"] .grad {
  background: linear-gradient(120deg, #60a5fa, #a78bfa, #f472b6);
  -webkit-background-clip: text;
  background-clip: text;
}

:root[data-theme="dark"] .plan-badge {
  border-color: #334155;
  background: #172554;
  color: #bfdbfe;
}

:root[data-theme="dark"] .sponsor {
  border-color: #334155;
  color: #cbd5e1;
}

:root[data-theme="dark"] .cta {
  border-color: #334155;
  background: linear-gradient(150deg, #0f172a, #111827);
}

:root[data-theme="dark"] footer {
  color: #94a3b8;
}

@media (prefers-reduced-motion: reduce) {
  body,
  .theme-toggle,
  .theme-toggle .icon {
    transition: none;
  }
}

.cta h3 {
  margin: 0;
  font-size: clamp(24px, 3.3vw, 34px);
  line-height: 1.2;
}

.cta p {
  margin: 12px auto 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.7;
}

footer {
  padding: 26px 0 42px;
  color: #64748b;
  font-size: 13px;
  border-top: 1px solid var(--line);
  margin-top: 26px;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

@media (max-width: 1100px) {
  .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .menu { display: none; }
  .sponsors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .container { width: min(1120px, calc(100% - 22px)); }
  .hero { padding-top: 30px; }
  section { padding: 48px 0; }
  .sponsors,
  .features,
  .pricing { grid-template-columns: 1fr; }
  .actions { display: flex; }
}
