:root {
  --navy: #101a35;
  --navy-soft: #1a2850;
  --ink: #18243e;
  --muted: #63708a;
  --paper: #f5f7fb;
  --card: rgba(255, 255, 255, 0.88);
  --line: #e4e9f2;
  --teal: #14b8a6;
  --teal-deep: #087f78;
  --coral: #ff9f68;
  --shadow: 0 24px 70px rgba(16, 26, 53, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--paper);
  font-family: "Vazirmatn", Tahoma, "Segoe UI", Arial, sans-serif;
  line-height: 1.75;
}

button, a { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }

.page-glow {
  position: fixed;
  z-index: -1;
  width: 34rem;
  height: 34rem;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.32;
  pointer-events: none;
}
.page-glow-one { top: -15rem; right: -10rem; background: rgba(20, 184, 166, 0.26); }
.page-glow-two { bottom: -18rem; left: -12rem; background: rgba(255, 159, 104, 0.28); }

.shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 48px;
  align-items: center;
  min-height: 480px;
  padding: 66px 0 48px;
}
.eyebrow, .section-label { margin: 0 0 12px; color: var(--teal-deep); font-size: 0.78rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.eyebrow { display: flex; gap: 9px; align-items: center; }
.eyebrow-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 5px rgba(255, 159, 104, 0.18); }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 720px; margin-bottom: 18px; color: var(--navy); font-size: clamp(2.4rem, 6vw, 5.2rem); line-height: 1.12; letter-spacing: -0.055em; }
h1 span { color: var(--teal-deep); }
.hero-lede { max-width: 620px; margin-bottom: 26px; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.primary-action { display: inline-flex; gap: 14px; align-items: center; padding: 13px 20px; border-radius: 14px; color: white; background: var(--navy); box-shadow: 0 10px 22px rgba(16, 26, 53, 0.2); transition: transform 160ms ease, background 160ms ease; }
.primary-action:hover, .primary-action:focus-visible { background: var(--teal-deep); transform: translateY(-2px); }
.quiet-action { color: var(--teal-deep); font-weight: 800; }
.quiet-action:hover, .quiet-action:focus-visible { color: var(--navy); }

.hero-panel { padding: 25px; border: 1px solid rgba(255,255,255,0.18); border-radius: 28px; color: white; background: linear-gradient(145deg, #18264d, #0d152d); box-shadow: var(--shadow); transform: rotate(2deg); }
.hero-panel-top, .card-top, .example-head, .section-heading, .footer { display: flex; align-items: center; justify-content: space-between; }
.panel-kicker { color: #91a0c2; font-size: 0.83rem; }
.panel-mark { padding: 3px 9px; border: 1px solid rgba(255,255,255,0.2); border-radius: 99px; color: #a8f3e7; font-size: 0.75rem; font-weight: 800; }
.lesson-count { margin-top: 36px; color: #a8f3e7; font-size: 5.7rem; font-weight: 900; line-height: 0.95; letter-spacing: -0.08em; }
.hero-panel p { margin: 14px 0 28px; color: #b4bfd7; }
.panel-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 17px; border-top: 1px solid rgba(255,255,255,0.14); }
.panel-stats div { display: grid; gap: 2px; }
.panel-stats strong { font-size: 1.35rem; }
.panel-stats span { color: #91a0c2; font-size: 0.74rem; }

.lesson-nav { position: sticky; top: 12px; z-index: 5; display: flex; gap: 8px; width: max-content; max-width: 100%; margin: 0 auto 32px; padding: 6px; border: 1px solid rgba(228, 233, 242, 0.9); border-radius: 99px; background: rgba(255,255,255,0.74); box-shadow: 0 12px 30px rgba(16, 26, 53, 0.08); backdrop-filter: blur(18px); }
.lesson-nav-link { display: inline-flex; gap: 10px; align-items: center; padding: 8px 15px; border-radius: 99px; color: var(--muted); font-size: 0.92rem; font-weight: 800; transition: color 160ms ease, background 160ms ease; }
.lesson-nav-link span { color: #9aa6bd; font-size: 0.72rem; }
.lesson-nav-link:hover, .lesson-nav-link:focus-visible, .lesson-nav-link.active { color: white; background: var(--navy); }
.lesson-nav-link.active span { color: #a8f3e7; }

.guide-strip { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 66px; padding: 18px 21px; border: 1px solid #c9eee8; border-radius: 18px; background: rgba(235, 252, 249, 0.8); }
.guide-icon { display: grid; flex: 0 0 40px; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: var(--teal-deep); background: #c9eee8; font-size: 1.3rem; font-weight: 900; }
.guide-strip strong { display: block; margin-bottom: 2px; color: var(--teal-deep); }
.guide-strip p { margin: 0; color: #466c72; font-size: 0.93rem; }

.lesson-section { scroll-margin-top: 90px; margin-bottom: 96px; }
.section-heading { align-items: flex-end; gap: 20px; margin-bottom: 28px; }
.section-label { margin-bottom: 4px; color: var(--teal-deep); }
h2 { margin-bottom: 4px; color: var(--navy); font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.2; letter-spacing: -0.04em; }
.section-description { margin: 0; color: var(--muted); }
.section-badge { flex: 0 0 auto; padding: 7px 12px; border: 1px solid #bce9e2; border-radius: 99px; color: var(--teal-deep); background: #e9fbf8; font-size: 0.8rem; font-weight: 800; }
.section-badge.warm { border-color: #ffd6bd; color: #b65e2e; background: #fff2e9; }

.lesson-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.word-card { position: relative; min-width: 0; padding: 21px; border: 1px solid rgba(228, 233, 242, 0.95); border-radius: 21px; background: var(--card); box-shadow: 0 9px 28px rgba(16, 26, 53, 0.055); transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.word-card:hover { border-color: #b5e8e1; box-shadow: 0 17px 34px rgba(16, 26, 53, 0.1); transform: translateY(-3px); }
.question-card:hover { border-color: #ffd0b5; }
.card-number { color: #9ba8be; font-size: 0.78rem; font-weight: 900; letter-spacing: 0.08em; }
.play-button, .mini-play { display: inline-grid; place-items: center; border: 0; color: white; background: var(--teal-deep); transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease; }
.play-button { width: 44px; height: 44px; border-radius: 15px; box-shadow: 0 7px 16px rgba(8, 127, 120, 0.22); }
.mini-play { width: 30px; height: 30px; border-radius: 10px; font-size: 0.72rem; }
.play-button:hover, .play-button:focus-visible, .mini-play:hover, .mini-play:focus-visible { background: var(--navy); box-shadow: 0 8px 18px rgba(16, 26, 53, 0.18); transform: scale(1.06); }
.play-button.is-playing, .mini-play.is-playing { color: var(--navy); background: var(--coral); }
.play-icon { display: block; transform: translateX(-1px); font-size: 0.88em; line-height: 1; }
.word-line { display: flex; flex-wrap: wrap; gap: 12px; align-items: baseline; margin-top: 18px; }
.word-line h3 { margin: 0; color: var(--navy); font-family: "Inter", "Segoe UI", Tahoma, sans-serif; font-size: 2.15rem; font-weight: 800; line-height: 1; letter-spacing: -0.05em; }
.ipa { color: var(--teal-deep); font-family: "Inter", "Segoe UI", Tahoma, sans-serif; font-size: 0.82rem; }
.meaning { min-height: 32px; margin: 14px 0 5px; color: #2d3a55; font-size: 1.02rem; font-weight: 800; }
.persian-pronunciation { margin: 0 0 20px; color: var(--muted); font-size: 0.9rem; }
.persian-pronunciation b { color: var(--navy); font-size: 1rem; }
.example-box { padding: 14px 15px 12px; border: 1px solid #e6ebf3; border-radius: 15px; background: #f8faff; }
.question-card .example-box { background: #fffaf6; border-color: #f5e5da; }
.example-head { color: var(--muted); font-size: 0.76rem; font-weight: 800; }
.example-de { margin: 8px 0 1px; color: var(--navy); font-family: "Inter", "Segoe UI", Tahoma, sans-serif; font-size: 1.08rem; font-weight: 750; line-height: 1.4; }
.example-fa { margin: 0; color: #68748b; font-size: 0.86rem; }

.question-pattern { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin: -5px 0 22px; padding: 12px 15px; border: 1px solid #ffe0c9; border-radius: 15px; background: #fff8f2; }
.pattern-label { color: #b65e2e; font-size: 0.78rem; font-weight: 900; }
.pattern-de { color: #8b4e2f; font-family: "Inter", "Segoe UI", Tahoma, sans-serif; font-weight: 800; }
.pattern-fa { color: #866a59; font-size: 0.88rem; }

.footer { margin: 24px 0 30px; padding-top: 20px; border-top: 1px solid var(--line); color: #8a95a8; font-size: 0.78rem; }

:focus-visible { outline: 3px solid rgba(255, 159, 104, 0.8); outline-offset: 3px; }

@media (max-width: 800px) {
  .shell { width: min(100% - 28px, 600px); }
  .hero { grid-template-columns: 1fr; gap: 28px; min-height: auto; padding-top: 42px; }
  .hero-panel { width: min(100%, 330px); justify-self: start; }
  .lesson-nav { width: 100%; justify-content: center; overflow-x: auto; }
  .lesson-nav-link { flex: 0 0 auto; font-size: 0.82rem; }
  .lesson-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 480px) {
  .shell { width: min(100% - 22px, 600px); }
  h1 { font-size: 2.55rem; }
  .hero-lede { font-size: 0.98rem; }
  .guide-strip { gap: 11px; padding: 15px; }
  .word-card { padding: 18px; }
  .word-line h3 { font-size: 1.95rem; }
  .question-pattern { align-items: flex-start; flex-direction: column; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
