:root {
  --bg: #0a0e1c;
  --surface: #141b30;
  --surface-alt: #1c2542;
  --border: rgba(148, 163, 184, 0.16);
  --indigo: #6366f1;
  --cyan: #06b6d4;
  --emerald: #10b981;
  --gold: #f59e0b;
  --text: #f8fafc;
  --muted: #a5b4cf;
  --radius: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  overflow-x: hidden;
}

.bg-glow {
  position: fixed;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(130px);
  opacity: 0.22;
  pointer-events: none;
  z-index: -1;
}
.bg-glow-1 { top: -180px; left: -140px; background: var(--indigo); }
.bg-glow-2 { bottom: -180px; right: -140px; background: var(--cyan); }

.container { width: min(1120px, 92%); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(10, 14, 28, 0.78);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.02rem;
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  color: #fff;
}
.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 0.94rem; transition: color .18s; }
.nav a:hover { color: var(--text); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.96rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s, border-color .18s, background .18s;
  font-family: inherit;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }
.btn-primary {
  background: linear-gradient(135deg, var(--indigo), var(--cyan));
  color: #fff;
}
.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-outline {
  background: transparent;
  border-color: rgba(99, 102, 241, 0.45);
  color: var(--text);
  width: 100%;
}
.btn-gold {
  background: var(--gold);
  color: #0b1020;
}
.copy-tag {
  font-size: 0.78rem;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}
.btn-gold .copy-tag { background: rgba(11, 16, 32, 0.14); }
.copied .copy-tag { background: var(--emerald); color: #06131a; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
  padding: 64px 0 42px;
}
.pill {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(99, 102, 241, 0.18);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #c7d2fe;
}
.pill.gold {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.45);
  color: #fcd34d;
}
h1 {
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.14;
  margin: 16px 0 18px;
  letter-spacing: -0.02em;
}
.grad {
  background: linear-gradient(90deg, var(--cyan), #a5b4fc);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead { color: var(--muted); font-size: 1.06rem; margin: 0 0 26px; }
.lead a { color: var(--cyan); text-decoration: none; font-weight: 600; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border-top: 1px solid var(--border);
  padding-top: 22px;
}
.metric strong { display: block; font-size: 1.32rem; color: var(--text); }
.metric span { font-size: 0.85rem; color: var(--muted); }

.hero-card, .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 16px;
}
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); }
.badge-live {
  margin-left: auto;
  font-size: 0.74rem;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(6, 182, 212, 0.16);
  color: var(--cyan);
}
.chat-bubble {
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 0.92rem;
}
.chat-bubble.user {
  background: rgba(99, 102, 241, 0.2);
  border: 1px solid rgba(99, 102, 241, 0.35);
  margin-bottom: 12px;
}
.chat-bubble.bot { background: var(--surface-alt); border: 1px solid var(--border); }
.score-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.score-val { color: var(--emerald); font-size: 0.9rem; }
.criteria-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.criteria-list li { display: flex; align-items: flex-start; gap: 8px; color: var(--muted); font-size: 0.88rem; }
.tag {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
}
.tag.ok { background: rgba(16, 185, 129, 0.18); color: #34d399; }
.tag.warn { background: rgba(245, 158, 11, 0.18); color: #fbbf24; }
.tag.info { background: rgba(6, 182, 212, 0.18); color: #22d3ee; }

.section { padding: 54px 0; }
.section-head { margin-bottom: 26px; }
.section-head h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.section-head p { margin: 0; color: var(--muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.icon-box {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.icon-box.indigo { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; }
.icon-box.cyan { background: rgba(6, 182, 212, 0.2); color: #67e8f9; }
.icon-box.emerald { background: rgba(16, 185, 129, 0.2); color: #6ee7b7; }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.94rem; }

.subject-layout { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.subject-tabs { display: grid; gap: 8px; }
.subject-tab {
  text-align: left;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color .15s, color .15s, background .15s;
}
.subject-tab:hover { color: var(--text); border-color: rgba(6, 182, 212, 0.45); }
.subject-tab.active {
  background: var(--surface-alt);
  color: var(--text);
  border-color: var(--cyan);
}
.subject-panel h3 { font-size: 1.35rem; margin: 10px 0 8px; }
.subject-bullets { margin: 16px 0 22px; padding-left: 18px; color: var(--muted); display: grid; gap: 8px; }

.pricing-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.price-card { display: flex; flex-direction: column; gap: 12px; }
.price-card.featured { border-color: var(--indigo); background: var(--surface-alt); }
.tier { font-weight: 700; font-size: 0.92rem; color: #c7d2fe; display: flex; align-items: center; gap: 8px; }
.tag-pop { font-size: 0.72rem; padding: 2px 8px; border-radius: 999px; background: var(--indigo); color: #fff; }
.price { font-size: 1.9rem; font-weight: 800; }
.price span { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
.price-desc { flex: 1; }
.packs-note { margin-top: 16px; color: var(--muted); font-size: 0.95rem; }

.promo-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(6, 182, 212, 0.14));
  border: 1px solid rgba(245, 158, 11, 0.45);
  border-radius: 22px;
  padding: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.promo-col h2 { margin: 12px 0 10px; font-size: 1.55rem; }
.promo-col p { margin: 0; color: var(--muted); max-width: 620px; }
.promo-actions { display: flex; flex-direction: column; gap: 10px; min-width: 230px; }
code {
  background: rgba(15, 23, 42, 0.75);
  padding: 2px 8px;
  border-radius: 6px;
  color: #fcd34d;
  font-family: Consolas, monospace;
}

.footer {
  border-top: 1px solid var(--border);
  padding: 26px 0 38px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.92rem;
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--cyan); text-decoration: none; }

.guides-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 18px; align-items: start; }
.channel-links { display: grid; gap: 10px; margin-top: 16px; }
.channel-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 15px;
  border-radius: 12px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 600;
  transition: border-color .15s, transform .15s;
}
.channel-link:hover { border-color: var(--cyan); transform: translateY(-1px); }
.guide-list {
  margin: 12px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 9px;
}
.guide-list a { color: var(--cyan); text-decoration: none; font-size: 0.93rem; }
.guide-list a:hover { text-decoration: underline; }
.guides-cta { margin-top: 18px; }

.page-hero { padding: 54px 0 24px; max-width: 820px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.guide-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .15s;
}
.guide-card:hover { border-color: var(--cyan); transform: translateY(-2px); }
.guide-card .pill { align-self: flex-start; }

.promo-steps { margin: 14px 0 0; padding-left: 20px; color: var(--muted); display: grid; gap: 8px; }
.promo-steps a { color: var(--cyan); text-decoration: none; }

.faq-list { display: grid; gap: 12px; }
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item p { margin-top: 10px; }

@media (max-width: 920px) {
  .hero, .subject-layout, .guides-grid, .grid-2 { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .promo-banner { flex-direction: column; align-items: stretch; }
  .nav { display: none; }
}
@media (max-width: 600px) {
  .grid-3, .pricing-grid { grid-template-columns: 1fr; }
  .hero-metrics { grid-template-columns: 1fr; gap: 10px; }
  .footer { flex-direction: column; align-items: flex-start; }
}
