/* ── StudyEdge AI — Shared SEO Page Design System ─────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #060614;
  --bg-card:   rgba(255,255,255,0.03);
  --bg-card-h: rgba(255,255,255,0.055);
  --border:    rgba(255,255,255,0.07);
  --border-h:  rgba(255,255,255,0.13);
  --text:      #e2e8f0;
  --text-muted:#94a3b8;
  --text-dim:  #475569;
  --indigo:    #6366f1;
  --indigo-d:  #4f46e5;
  --indigo-glow: rgba(99,102,241,0.2);
  --cyan:      #22d3ee;
  --green:     #34d399;
  --purple:    #a78bfa;
  --radius-sm: 10px;
  --radius:    14px;
  --radius-lg: 20px;
  --max-w:     1080px;
  --section-gap: 96px;
}

html { font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); line-height: 1.65; scroll-behavior: smooth; }
body { min-height: 100vh; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }
strong { color: var(--text); }

/* ── Layout ──────────────────────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: var(--section-gap) 0; }
.section-sm { padding: 48px 0; }

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(6,6,20,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.site-nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-w); margin: 0 auto; padding: 16px 24px;
}
.nav-logo { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 700; color: var(--text); }
.nav-logo img { width: 28px; height: 28px; border-radius: 7px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-cta { background: var(--indigo); color: #fff !important; font-size: 14px; font-weight: 600; padding: 9px 20px; border-radius: var(--radius-sm); }
.nav-cta:hover { background: var(--indigo-d); text-decoration: none !important; opacity: 1; }
@media (max-width: 640px) { .nav-links { display: none; } }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { padding: 88px 0 72px; text-align: center; }
.hero .container { max-width: 820px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 14px; border-radius: 999px; margin-bottom: 26px;
}
.eyebrow-indigo { background: rgba(99,102,241,0.12); color: #a5b4fc; border: 1px solid rgba(99,102,241,0.25); }
.eyebrow-cyan   { background: rgba(34,211,238,0.1);  color: #67e8f9; border: 1px solid rgba(34,211,238,0.2); }
.eyebrow-green  { background: rgba(52,211,153,0.1);  color: #6ee7b7; border: 1px solid rgba(52,211,153,0.2); }
.eyebrow-purple { background: rgba(167,139,250,0.1); color: #c4b5fd; border: 1px solid rgba(167,139,250,0.2); }

.hero h1 { font-size: clamp(34px, 5.5vw, 58px); font-weight: 800; line-height: 1.12; letter-spacing: -0.03em; color: #fff; margin-bottom: 22px; }
.grad-indigo { background: linear-gradient(135deg, #818cf8, #6366f1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.grad-cyan   { background: linear-gradient(135deg, #67e8f9, #22d3ee); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.grad-green  { background: linear-gradient(135deg, #6ee7b7, #34d399); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.grad-purple { background: linear-gradient(135deg, #c4b5fd, #a78bfa); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.hero-sub { font-size: 18px; color: var(--text-muted); max-width: 600px; margin: 0 auto 36px; line-height: 1.7; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 52px; }
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: inherit; font-size: 15px; font-weight: 600; padding: 13px 26px; border-radius: var(--radius-sm); cursor: pointer; border: none; transition: all 0.15s; text-decoration: none; }
.btn-primary { background: var(--indigo); color: #fff; }
.btn-primary:hover { background: var(--indigo-d); text-decoration: none; }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--border-h); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); text-decoration: none; }
.btn-lg { font-size: 16px; padding: 15px 32px; }

/* Stats strip */
.stats-strip { display: flex; justify-content: center; gap: 40px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat-num { font-size: 26px; font-weight: 800; color: #fff; letter-spacing: -0.03em; }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.stats-divider { width: 1px; background: var(--border); }
@media (max-width: 480px) { .stats-divider { display: none; } .stats-strip { gap: 24px; } }

/* ── Section headings ─────────────────────────────────────────────────────── */
.section-head { text-align: center; margin-bottom: 52px; }
.section-kicker { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--indigo); margin-bottom: 12px; }
h2.section-title { font-size: clamp(26px, 4vw, 40px); font-weight: 800; color: #fff; letter-spacing: -0.025em; line-height: 1.2; }
.section-sub { font-size: 17px; color: var(--text-muted); max-width: 560px; margin: 14px auto 0; line-height: 1.7; }

/* ── Cards ───────────────────────────────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.card-grid-2 { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.2s, background 0.2s;
}
.card:hover { background: var(--bg-card-h); border-color: var(--border-h); }
.card-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.card h3 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin: 0; }

/* ── Steps ───────────────────────────────────────────────────────────────── */
.steps { display: grid; gap: 20px; margin-top: 0; }
.step {
  display: flex; gap: 22px; align-items: flex-start;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px;
}
.step-num {
  width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800; color: #fff;
}
.step-num-indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); }
.step-num-cyan   { background: linear-gradient(135deg, #22d3ee, #0891b2); }
.step-num-green  { background: linear-gradient(135deg, #34d399, #059669); }
.step-num-purple { background: linear-gradient(135deg, #a78bfa, #7c3aed); }
.step h3 { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.step p { font-size: 15px; color: var(--text-muted); margin: 0; line-height: 1.7; }

/* ── Prose / deep-dive ───────────────────────────────────────────────────── */
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: -0.02em; margin-bottom: 16px; }
.prose h3 { font-size: 20px; font-weight: 700; color: var(--text); margin: 32px 0 10px; }
.prose p { font-size: 16px; color: var(--text-muted); line-height: 1.8; margin-bottom: 18px; }
.prose ul { padding-left: 20px; margin-bottom: 18px; }
.prose ul li { font-size: 16px; color: var(--text-muted); line-height: 1.75; margin-bottom: 8px; }

/* ── Comparison table ────────────────────────────────────────────────────── */
.compare-table { width: 100%; border-collapse: collapse; border-radius: var(--radius); overflow: hidden; }
.compare-table th { background: rgba(99,102,241,0.1); color: var(--text); font-size: 14px; font-weight: 700; padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--border); }
.compare-table th:first-child { color: var(--text-muted); font-weight: 500; }
.compare-table td { padding: 13px 18px; font-size: 14px; color: var(--text-muted); border-bottom: 1px solid var(--border); background: var(--bg-card); }
.compare-table td:first-child { color: var(--text); font-weight: 500; }
.compare-table tr:last-child td { border-bottom: none; }
.check { color: var(--green); font-weight: 700; }
.cross { color: #64748b; }
.compare-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }

/* ── Testimonials ────────────────────────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.testimonial {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
}
.testimonial-stars { color: #fbbf24; font-size: 14px; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-quote { font-size: 15px; color: var(--text); line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.testimonial-author { font-size: 13px; color: var(--text-muted); font-weight: 600; }

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq-list { display: grid; gap: 12px; }
.faq-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 26px; }
.faq-q { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.faq-a { font-size: 15px; color: var(--text-muted); line-height: 1.75; }

/* ── Highlight callout ───────────────────────────────────────────────────── */
.callout {
  background: rgba(99,102,241,0.07);
  border: 1px solid rgba(99,102,241,0.2);
  border-left: 3px solid var(--indigo);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 18px 22px;
  margin: 24px 0;
}
.callout p { font-size: 15px; color: var(--text); margin: 0; line-height: 1.7; }

/* ── Related links grid ──────────────────────────────────────────────────── */
.related-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.related-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 20px; transition: border-color 0.15s; }
.related-card:hover { border-color: var(--border-h); text-decoration: none; }
.related-card .related-title { font-size: 14px; font-weight: 600; color: #a5b4fc; display: block; margin-bottom: 4px; }
.related-card .related-desc { font-size: 13px; color: var(--text-muted); }

/* ── Final CTA block ─────────────────────────────────────────────────────── */
.cta-block {
  background: linear-gradient(135deg, rgba(99,102,241,0.12), rgba(167,139,250,0.08));
  border: 1px solid rgba(99,102,241,0.25);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
}
.cta-block h2 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; color: #fff; margin-bottom: 14px; letter-spacing: -0.02em; }
.cta-block p { font-size: 17px; color: var(--text-muted); margin-bottom: 32px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-block .cta-fine { font-size: 13px; color: var(--text-dim); margin-top: 16px; margin-bottom: 0; }

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--border); padding: 36px 24px; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; margin-bottom: 16px; }
.footer-links a { font-size: 14px; color: var(--text-dim); }
.footer-links a:hover { color: var(--text-muted); text-decoration: none; }
.footer-copy { font-size: 13px; color: var(--text-dim); }

/* ── Proof strip ─────────────────────────────────────────────────────────── */
.proof-strip { padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.proof-inner { display: flex; align-items: center; justify-content: center; gap: 36px; flex-wrap: wrap; }
.proof-item { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-muted); font-weight: 500; }
.proof-stars { color: #fbbf24; letter-spacing: 2px; font-size: 15px; }

/* ── Blog specific ───────────────────────────────────────────────────────── */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.blog-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 12px; transition: border-color 0.15s; }
.blog-card:hover { border-color: var(--border-h); text-decoration: none; }
.blog-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--indigo); }
.blog-card h2 { font-size: 18px; font-weight: 700; color: var(--text); line-height: 1.4; }
.blog-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; flex: 1; }
.blog-meta { font-size: 13px; color: var(--text-dim); }
.blog-read-more { font-size: 14px; font-weight: 600; color: #a5b4fc; }

/* Blog post */
.post-hero { padding: 72px 0 56px; }
.post-hero .container { max-width: 760px; }
.post-meta { font-size: 14px; color: var(--text-muted); margin-bottom: 20px; }
.post-hero h1 { font-size: clamp(28px, 5vw, 48px); font-weight: 800; letter-spacing: -0.03em; color: #fff; line-height: 1.15; margin-bottom: 20px; }
.post-hero .post-intro { font-size: 18px; color: var(--text-muted); line-height: 1.7; }

.post-body { max-width: 760px; margin: 0 auto; padding: 0 24px 96px; }
.post-body h2 { font-size: 26px; font-weight: 800; color: #fff; margin: 48px 0 16px; letter-spacing: -0.02em; }
.post-body h3 { font-size: 20px; font-weight: 700; color: var(--text); margin: 32px 0 12px; }
.post-body p { font-size: 16px; color: var(--text-muted); line-height: 1.85; margin-bottom: 20px; }
.post-body ul, .post-body ol { padding-left: 22px; margin-bottom: 20px; }
.post-body li { font-size: 16px; color: var(--text-muted); line-height: 1.8; margin-bottom: 8px; }
.post-body strong { color: var(--text); font-weight: 600; }
.post-cta { background: rgba(99,102,241,0.08); border: 1px solid rgba(99,102,241,0.2); border-radius: var(--radius); padding: 32px; text-align: center; margin: 48px 0; }
.post-cta h3 { font-size: 20px; font-weight: 700; color: #fff; margin-bottom: 10px; }
.post-cta p { font-size: 15px; color: var(--text-muted); margin-bottom: 20px; }

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  :root { --section-gap: 64px; }
  .hero { padding: 60px 0 52px; }
  .step { flex-direction: column; gap: 14px; }
  .cta-block { padding: 44px 24px; }
}
@media (max-width: 500px) {
  .card-grid { grid-template-columns: 1fr; }
}
