/* === FONTS === */
:root {
  --font-display: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --orange: #FF6B35;
  --green: #1B4332;
  --sand: #F5E6D3;
  --sand-dark: #E8D9C4;
  --charcoal: #1A1A2E;
  --gray-600: #4A4A5A;
  --gray-400: #8A8A9A;
  --gray-200: #D4D4DE;
  --white: #FFFFFF;
  --success: #22c55e;
}

/* === RESET === */
* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: #FAFAF7;
  color: var(--charcoal);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* === NAVBAR === */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--charcoal);
}
.nav-links {
  display: flex;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--orange); }

/* === HERO === */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 24px 100px;
  background: var(--sand);
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.12;
}
.shape-1 {
  width: 600px; height: 600px;
  background: var(--orange);
  top: -200px; right: -100px;
}
.shape-2 {
  width: 400px; height: 400px;
  background: var(--green);
  bottom: -150px; left: 100px;
}
.shape-3 {
  width: 200px; height: 200px;
  background: var(--orange);
  bottom: 50px; right: 300px;
  opacity: 0.08;
}
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-text { display: flex; flex-direction: column; gap: 20px; }
.hero-eyebrow {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  background: rgba(255, 107, 53, 0.1);
  display: inline-block;
  padding: 4px 12px;
  border-radius: 99px;
  width: fit-content;
}
.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--charcoal);
  letter-spacing: -0.02em;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 480px;
  line-height: 1.7;
}
.hero-subjects {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.subject-chip {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 99px;
  background: var(--white);
  color: var(--green);
  border: 1.5px solid var(--sand-dark);
}

/* === HERO VISUAL === */
.hero-visual {
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
}
.guide-card {
  background: var(--white);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 8px 32px rgba(26, 26, 46, 0.08), 0 1px 4px rgba(26, 26, 46, 0.04);
  border: 1px solid var(--gray-200);
}
.guide-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.guide-icon {
  width: 32px; height: 32px;
  background: rgba(255, 107, 53, 0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.guide-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.guide-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 16px;
}
.guide-sections { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.guide-section { display: flex; flex-direction: column; gap: 4px; }
.guide-section-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--gray-600);
  display: flex;
  justify-content: space-between;
}
.guide-section-bar {
  height: 6px;
  background: var(--sand);
  border-radius: 99px;
  position: relative;
}
.guide-section-bar::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: var(--fill, 80%);
  background: linear-gradient(90deg, var(--orange), #FF8F5A);
  border-radius: 99px;
}
.guide-meta {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 500;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}

/* flashcard stack */
.flashcard-stack {
  position: relative;
  height: 120px;
}
.fc-1 {
  position: absolute;
  left: 0; top: 0;
  transform: rotate(-3deg);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(26,26,46,0.06);
  width: 85%;
}
.fc-2 {
  position: absolute;
  left: 20px; top: 20px;
  transform: rotate(2deg);
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 4px 16px rgba(26,26,46,0.06);
  width: 85%;
}
.fc-3 {
  position: absolute;
  left: 10px; top: 40px;
  transform: rotate(-1deg);
  background: var(--green);
  color: var(--white);
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 6px 20px rgba(27,67,50,0.25);
  width: 80%;
}
.fc-term {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 4px;
}
.fc-def {
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--gray-600);
}
.fc-3 .fc-def { color: rgba(255,255,255,0.75); }

/* === HOW IT WORKS === */
.how-it-works {
  padding: 100px 24px;
  background: var(--white);
}
.how-inner { max-width: 1200px; margin: 0 auto; }
.how-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 16px;
}
.how-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 60px;
  max-width: 600px;
}
.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
.step {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-num {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}
.step-icon {
  width: 52px; height: 52px;
  background: var(--sand);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--charcoal);
}
.step p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.6;
}
.step-connector {
  padding-top: 20px;
  display: flex; align-items: center;
  flex-shrink: 0;
}

/* === SUBJECTS === */
.subjects {
  padding: 100px 24px;
  background: var(--sand);
}
.subjects-inner { max-width: 1200px; margin: 0 auto; }
.subjects-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.subjects-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--charcoal);
  margin-bottom: 48px;
  max-width: 560px;
}
.subjects-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.subject-card {
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  border: 1.5px solid var(--sand-dark);
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.subject-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(26, 26, 46, 0.08);
}
.sc-math { border-top: 3px solid #FF6B35; }
.sc-science { border-top: 3px solid #1B4332; }
.sc-history { border-top: 3px solid #8B5CF6; }
.sc-english { border-top: 3px solid #F59E0B; }
.subject-icon {
  width: 48px; height: 48px;
  background: var(--sand);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  color: var(--charcoal);
}
.subject-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
}
.subject-card p {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
  flex: 1;
}
.subject-topics {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 12px;
  border-top: 1px solid var(--gray-200);
}

/* === STUDY GUIDES === */
.study-guides {
  padding: 100px 24px;
  background: var(--white);
}
.sg-inner { max-width: 1200px; margin: 0 auto; }
.sg-header { margin-bottom: 48px; }
.sg-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 12px;
}
.sg-headline {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  color: var(--charcoal);
}
.sg-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}
.sg-card {
  background: var(--sand);
  border-radius: 18px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1.5px solid var(--sand-dark);
}
.sg-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26,26,46,0.06);
}
.sg-featured {
  grid-column: 1;
  grid-row: 1 / 3;
  background: linear-gradient(135deg, var(--green) 0%, #2D6A4F 100%);
  color: var(--white);
  border: none;
}
.sg-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.sg-featured .sg-tag { color: rgba(255,255,255,0.6); }
.sg-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
}
.sg-card p {
  font-size: 0.87rem;
  color: var(--gray-600);
  line-height: 1.6;
  flex: 1;
}
.sg-featured p { color: rgba(255,255,255,0.8); }
.sg-stats {
  display: flex;
  gap: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--gray-400);
  padding-top: 12px;
  border-top: 1px solid var(--sand-dark);
}
.sg-featured .sg-stats {
  border-top-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.6);
}

/* === QUIZ PREVIEW === */
.quiz-preview {
  padding: 100px 24px;
  background: var(--charcoal);
  color: var(--white);
}
.qp-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.qp-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 12px;
}
.qp-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 16px;
}
.qp-text p {
  font-size: 0.95rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-bottom: 28px;
}
.qp-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.qp-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 500;
}
.qp-feat svg { flex-shrink: 0; }

/* quiz box */
.quiz-box {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 28px;
  backdrop-filter: blur(8px);
}
.quiz-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.quiz-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--orange);
  background: rgba(255, 107, 53, 0.15);
  padding: 4px 10px;
  border-radius: 99px;
}
.quiz-score {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.quiz-question {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 16px;
  line-height: 1.4;
}
.quiz-options { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.quiz-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.7);
  cursor: pointer;
  transition: background 0.2s;
}
.qo-correct {
  background: rgba(34, 197, 94, 0.15);
  border-color: rgba(34, 197, 94, 0.4);
  color: #86efac;
}
.opt-letter {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  width: 22px; height: 22px;
  background: rgba(255,255,255,0.1);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.qo-correct .opt-letter { background: rgba(34,197,94,0.25); }
.opt-check { margin-left: auto; flex-shrink: 0; }
.quiz-result {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.8rem;
  color: #86efac;
  padding: 12px;
  background: rgba(34, 197, 94, 0.1);
  border-radius: 10px;
  line-height: 1.4;
}
.quiz-result svg { flex-shrink: 0; margin-top: 2px; }

/* === TESTIMONIALS === */
.testimonials {
  padding: 100px 24px;
  background: var(--sand);
}
.test-inner { max-width: 1200px; margin: 0 auto; }
.test-eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 40px;
  text-align: center;
}
.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.test-card {
  background: var(--white);
  border-radius: 20px;
  padding: 28px;
  border: 1.5px solid var(--sand-dark);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.test-stars { display: flex; gap: 2px; }
.test-quote {
  font-size: 0.92rem;
  color: var(--charcoal);
  line-height: 1.7;
  font-style: italic;
  flex: 1;
}
.test-author { display: flex; align-items: center; gap: 12px; }
.test-avatar {
  width: 36px; height: 36px;
  background: var(--green);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.test-name {
  font-weight: 600;
  font-size: 0.9rem;
}
.test-detail {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* === MANIFESTO === */
.manifesto {
  padding: 120px 24px;
  background: var(--green);
  color: var(--white);
}
.manifesto-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.manifesto-quote-mark {
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 0.5;
  color: var(--orange);
  margin-bottom: 24px;
  display: block;
}
.manifesto h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 24px;
}
.manifesto p {
  font-size: 1rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.8;
  max-width: 640px;
  margin: 0 auto;
}

/* === FOOTER === */
.footer {
  padding: 60px 24px 32px;
  background: var(--charcoal);
  color: rgba(255,255,255,0.7);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 64px;
  margin-bottom: 48px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 12px;
}
.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.6;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--orange); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .qp-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .subjects-grid { grid-template-columns: repeat(2, 1fr); }
  .test-grid { grid-template-columns: 1fr; }
  .sg-grid { grid-template-columns: 1fr; }
  .sg-featured { grid-row: auto; }
  .steps-row { flex-direction: column; }
  .step-connector { display: none; }
  .nav-links { display: none; }
}

@media (max-width: 600px) {
  .hero { padding: 60px 20px 80px; }
  .subjects-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr; }
}