/* =========================================================
   NOVIN Language Academy — Landing page
   ========================================================= */
:root {
  --bg: #fdfbf8;
  --bg-blue: #f3f6ff;
  --bg-lav: #f4f0ff;
  --surface: #ffffff;
  --navy: #1e2156;
  --text: #2c2f5e;
  --muted: #6b6f93;
  --line: #ebe8f6;
  --violet: #6d4aff;
  --violet-2: #8b5cf6;
  --indigo: #4f46e5;
  --lav: #efeaff;
  --mint: #dff7ec;
  --pink: #ffe4ef;
  --yellow: #fff3d1;
  --sky: #e3f0ff;
  --grad: linear-gradient(135deg, #8b5cf6 0%, #6d4aff 45%, #4f46e5 100%);
  --shadow-sm: 0 2px 8px rgba(40, 36, 110, .06);
  --shadow: 0 10px 30px -10px rgba(52, 40, 140, .18), 0 2px 6px rgba(52, 40, 140, .05);
  --shadow-lg: 0 30px 60px -20px rgba(52, 40, 140, .28);
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.75;
  font-size: 16px;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { color: var(--navy); margin: 0; line-height: 1.35; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
:focus-visible { outline: 3px solid rgba(109, 74, 255, .45); outline-offset: 3px; border-radius: 8px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 24px; }
.ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 12px; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border-radius: 999px; padding: 11px 22px; font-weight: 700; font-size: 15px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .25s;
  white-space: nowrap; min-height: 44px;
}
.btn-lg { padding: 14px 28px; font-size: 16px; min-height: 52px; }
.btn-sm { padding: 7px 18px; font-size: 13px; min-height: 38px; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -8px rgba(109, 74, 255, .6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(109, 74, 255, .7); }
.btn-ghost { background: rgba(255,255,255,.8); color: var(--violet); border: 1.5px solid #cfc2ff; backdrop-filter: blur(6px); }
.btn-ghost:hover { background: #fff; border-color: var(--violet); transform: translateY(-2px); }
.btn-soft { background: #fff; color: var(--violet); border: 1.5px solid #e3dbff; }
.btn-soft:hover { background: var(--violet); color: #fff; border-color: var(--violet); }
.btn .arrow { transition: transform .25s var(--ease); width: 18px; height: 18px; }
.btn:hover .arrow { transform: translateX(-4px); }

.icon-btn {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--line); background: #fff; color: var(--navy); transition: .2s;
}
.icon-btn:hover { border-color: #cfc2ff; color: var(--violet); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
}
.site-header.scrolled { box-shadow: 0 6px 24px -12px rgba(40, 36, 110, .18); border-color: var(--line); }
.header-inner { display: flex; flex-direction: row-reverse; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.logo { display: flex; align-items: center; gap: 10px; direction: ltr; }
.logo-mark { width: 42px; height: 42px; }
.logo-text { display: flex; flex-direction: column; line-height: 1; font-family: "Poppins", sans-serif; }
.logo-text b { font-size: 24px; font-weight: 800; color: var(--navy); letter-spacing: .5px; }
.logo-text small { font-size: 11px; color: var(--muted); margin-top: 3px; letter-spacing: .3px; }

.main-nav ul { display: flex; gap: 6px; }
.main-nav a {
  position: relative; display: block; padding: 8px 12px; font-size: 14.5px; font-weight: 500; color: #4a4d78;
  transition: color .2s;
}
.main-nav a::after {
  content: ""; position: absolute; inset-inline: 12px; bottom: 0; height: 2.5px; border-radius: 3px;
  background: var(--grad); transform: scaleX(0); transition: transform .3s var(--ease);
}
.main-nav a:hover, .main-nav a.active { color: var(--violet); }
.main-nav a.active::after, .main-nav a:hover::after { transform: scaleX(1); }
.main-nav .nav-mobile-cta { display: none; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none; }
.search-bar { border-top: 1px solid var(--line); padding: 12px 0; background: #fff; }
.search-bar input {
  width: 100%; border: 1.5px solid var(--line); border-radius: 999px; padding: 12px 20px; outline: none; background: var(--bg-blue);
}
.search-bar input:focus { border-color: #cfc2ff; background: #fff; }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: 24px; padding-bottom: 40px; isolation: isolate; }
.hero-art {
  position: absolute; top: 0; left: 0; width: 66%; height: 600px; z-index: -1; overflow: hidden;
  border-bottom-right-radius: 120px 60px;
}
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; animation: heroZoom 18s ease-in-out infinite alternate; }
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to left, var(--bg) 0%, rgba(253,251,248,.85) 12%, rgba(253,251,248,0) 38%),
    linear-gradient(to top, var(--bg) 0%, rgba(253,251,248,0) 26%);
}
@keyframes heroZoom { from { transform: scale(1); } to { transform: scale(1.05); } }
.hero-wave { position: absolute; top: 520px; left: 0; width: 66%; height: 90px; z-index: -1; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 44%) 1fr; min-height: 470px; align-items: center; }
.hero-copy { position: relative; padding-block: 40px 20px; }
.badge-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 5px 8px 5px 16px; border: 1.5px solid #d8ccff; border-radius: 999px; background: rgba(255,255,255,.85);
  font-size: 14px; font-weight: 600; color: var(--violet);
}
.badge-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; }
.badge-dot .ic { width: 15px; height: 15px; }
.hero h1 { font-size: clamp(32px, 4.2vw, 54px); font-weight: 900; margin: 20px 0 18px; letter-spacing: -.5px; line-height: 1.4; }
.lead { font-size: 17px; color: var(--muted); max-width: 470px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.paper-plane { position: absolute; left: -60px; top: 90px; width: 72px; animation: drift 6s ease-in-out infinite; }
@keyframes drift { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(-8px,-10px) rotate(-6deg); } }

.hero-features {
  display: grid; grid-template-columns: repeat(4, 1fr);
  width: min(100%, 560px); margin-top: 28px;
  background: rgba(255,255,255,.75); backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.9); border-radius: var(--r); box-shadow: var(--shadow);
  padding: 16px 6px;
}
.hero-features li { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 4px 10px; }
.hero-features li + li { border-inline-start: 1px solid var(--line); }
.hero-features b { font-size: 13.5px; color: var(--navy); display: block; line-height: 1.5; }
.hero-features small { font-size: 12px; color: var(--muted); }
.fi { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; transition: transform .3s var(--ease); }
.hero-features li:hover .fi { transform: translateY(-4px) rotate(-6deg); }
.fi .ic { width: 24px; height: 24px; }
.fi-pink { background: var(--pink); color: #e0558a; }
.fi-violet { background: var(--lav); color: var(--violet); }
.fi-mint { background: var(--mint); color: #2f9e67; }
.fi-blue { background: var(--sky); color: #2b8fd6; }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: 88px; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head.start { text-align: start; margin: 0; }
.section-head h2, .dash-copy h2, .tools-copy h2 { font-size: clamp(26px, 3vw, 38px); font-weight: 900; }
.section-head p { color: var(--muted); margin-top: 10px; font-size: 16.5px; }
.pill-label {
  display: inline-block; font-size: 13px; font-weight: 700; color: var(--violet);
  background: #fff; border: 1.5px solid #e1d8ff; padding: 4px 14px; border-radius: 999px; margin-bottom: 14px;
}
.hand { font-family: "Caveat", cursive; color: #8b7ad6; font-size: 24px; line-height: 1.1; position: absolute; pointer-events: none; opacity: .85; }
.deco-leaf { position: absolute; width: 50px; height: 100px; opacity: .8; pointer-events: none; }

/* ---------- Courses ---------- */
.courses { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-blue) 30%, var(--bg-blue) 100%); padding-top: 64px; }
.hand-a { right: max(24px, calc(50% - 600px)); top: 40px; transform: rotate(-8deg); }
.leaf-a { left: 2%; top: 100px; transform: rotate(-30deg); }
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.course-card {
  background: var(--surface); border-radius: var(--r-lg); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s;
  display: flex; flex-direction: column;
}
.course-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--accent) 50%, white); }
.cc-thumb {
  position: relative; aspect-ratio: 4 / 3.1;
  background: url("assets/hero.jpg") var(--pos) / 320% auto no-repeat;
  transition: background-size .8s var(--ease);
}
.cc-thumb::after { content: ""; position: absolute; inset: auto 0 0 0; height: 46px; background: linear-gradient(to top, #fff, rgba(255,255,255,0)); }
.course-card:hover .cc-thumb { background-size: 335% auto; }
.cc-badge {
  position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--accent);
  display: grid; place-items: center; box-shadow: var(--shadow-sm);
}
.blocks { position: absolute; bottom: 18px; left: 14px; display: flex; gap: 4px; z-index: 2; }
.blocks i {
  width: 30px; height: 30px; border-radius: 7px; background: var(--c); display: grid; place-items: center;
  font: 800 16px/1 "Poppins", sans-serif; font-style: normal; color: #fff; text-shadow: 0 1px 0 rgba(0,0,0,.12);
  box-shadow: inset 0 -3px 0 rgba(0,0,0,.08), var(--shadow-sm); animation: bob 3.4s ease-in-out infinite;
}
.blocks i:nth-child(2) { animation-delay: .4s; transform: rotate(6deg); }
.blocks i:nth-child(3) { animation-delay: .8s; }
@keyframes bob { 0%,100% { translate: 0 0; } 50% { translate: 0 -5px; } }
.sticker { position: absolute; bottom: 20px; left: 16px; z-index: 2; width: 38px; height: 38px; border-radius: 12px; background: #fff; color: #6aa8ff; display: grid; place-items: center; box-shadow: var(--shadow-sm); animation: bob 3s ease-in-out infinite; }
.mini-board {
  position: absolute; bottom: 18px; left: 12px; z-index: 2;
  background: #2e5a4a; border: 4px solid #c99b67; border-radius: 8px; padding: 6px 10px;
  display: flex; flex-direction: column; font-family: "Caveat", cursive; color: #f4f7f2; font-size: 15px; line-height: 1.05;
  box-shadow: var(--shadow); transform: rotate(-3deg);
}
.cc-body { padding: 4px 22px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; flex: 1; }
.cc-tag { font-size: 12px; font-weight: 600; color: color-mix(in srgb, var(--accent) 80%, #222); background: var(--tint); padding: 2px 12px; border-radius: 999px; }
.cc-body h3 { font-size: 22px; font-weight: 800; margin: 10px 0 6px; }
.cc-body p { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; flex: 1; }

/* ---------- Dashboard ---------- */
.dash-section { background: linear-gradient(160deg, var(--bg-lav) 0%, #eef3ff 60%, var(--bg-blue) 100%); padding-top: 120px; overflow: hidden; }
.curve-top { position: absolute; top: -1px; left: 0; width: 100%; height: 70px; }
.curve-top path { fill: var(--bg-blue); }
.hand-b { left: max(24px, calc(50% - 600px)); top: 70px; transform: rotate(-10deg); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 36%) 1fr; gap: 56px; align-items: center; }
.dash-copy h2 { line-height: 1.45; margin-bottom: 14px; }
.dash-copy > p { color: var(--muted); font-size: 16.5px; }
.dash-features { margin: 24px 0 32px; display: grid; gap: 12px; }
.dash-features li { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; color: var(--navy); }
.fi-sm { width: 36px; height: 36px; border-radius: 11px; background: var(--c); color: var(--i); display: grid; place-items: center; flex-shrink: 0; }
.fi-sm .ic { width: 18px; height: 18px; }

.dash-mock { position: relative; }
.dm-window {
  display: grid; grid-template-columns: 170px 1fr; min-height: 470px;
  background: rgba(255,255,255,.9); border: 1px solid #fff; border-radius: 26px; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(52, 40, 140, .35), 0 0 0 8px rgba(255,255,255,.5);
  font-size: 13px;
}
.dm-side { background: #23265e; color: #c9cbf0; padding: 18px 12px; display: flex; flex-direction: column; gap: 18px; }
.dm-logo { display: flex; align-items: center; gap: 8px; color: #fff; font-family: "Poppins", sans-serif; font-size: 16px; padding-inline: 8px; justify-content: flex-end; }
.dm-nav, .dm-side-foot { display: grid; gap: 4px; }
.dm-side-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.1); padding-top: 10px; }
.dm-side button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 10px;
  font-size: 13px; color: #c9cbf0; transition: background .2s, color .2s; text-align: start;
}
.dm-side button .ic { width: 17px; height: 17px; }
.dm-side button:hover { background: rgba(255,255,255,.07); color: #fff; }
.dm-side button[aria-selected="true"] { background: rgba(139, 92, 246, .3); color: #fff; box-shadow: inset -3px 0 0 #a78bfa; }
.dm-side em { margin-inline-start: auto; font-style: normal; font-size: 11px; background: #fb7185; color: #fff; border-radius: 999px; padding: 0 7px; line-height: 18px; }

.dm-main { padding: 18px 20px; background: linear-gradient(180deg, #fbfaff, #f6f7ff); min-width: 0; }
.dm-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.dm-profile { display: flex; align-items: center; gap: 10px; }
.dm-profile b { display: block; color: var(--navy); font-size: 14px; }
.dm-profile small { color: var(--muted); font-size: 12px; }
.lvl { color: var(--violet); font-weight: 700; }
.dm-top-icons { display: flex; align-items: center; gap: 8px; }
.dm-bell { position: relative; width: 34px; height: 34px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--muted); }
.dm-bell .ic { width: 17px; height: 17px; }
.dm-bell i { position: absolute; top: 6px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: #fb7185; border: 1.5px solid #fff; }

.avatar { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; flex-shrink: 0; font-size: 16px; }
.avatar.sm { width: 30px; height: 30px; font-size: 13px; }
.av-violet { background: linear-gradient(135deg, #a78bfa, #6d4aff); }
.av-pink { background: linear-gradient(135deg, #fda4c6, #ec4f8c); }
.av-mint { background: linear-gradient(135deg, #86e3b5, #2f9e67); }
.av-blue { background: linear-gradient(135deg, #93c5fd, #3b82f6); }

.dm-panel { animation: panelIn .45s var(--ease); }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.dm-row { display: grid; gap: 12px; margin-bottom: 12px; }
.r1 { grid-template-columns: 1fr 1.6fr 1.1fr; }
.r2 { grid-template-columns: 1.4fr 1fr 1.2fr; }
.dm-card { background: #fff; border: 1px solid #eeebf9; border-radius: 16px; padding: 14px; box-shadow: 0 2px 6px rgba(40, 36, 110, .04); }
.dm-card h4 { font-size: 13px; font-weight: 700; margin-bottom: 10px; }
.dm-card small { color: var(--muted); font-size: 11.5px; }
.progress-card { text-align: center; display: flex; flex-direction: column; align-items: center; }
.ring {
  --p: 0; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; margin: 2px 0 8px; position: relative;
  background: conic-gradient(#2dd4bf calc(var(--p) * 1%), #ede9fe 0);
}
.ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #fff; }
.ring span { position: relative; font-size: 20px; font-weight: 900; color: var(--navy); }
.cn-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.cn-head h4 { margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.chip .ic { width: 13px; height: 13px; }
.chip-mint { background: var(--mint); color: #2f9e67; }
.chip-violet { background: var(--lav); color: var(--violet); }
.chip-pink { background: var(--pink); color: #d14b80; }
.lessons { display: grid; gap: 7px; }
.lessons li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; background: #faf9ff; }
.lessons b { font-size: 12px; color: var(--navy); display: block; line-height: 1.3; font-family: "Poppins", sans-serif; font-weight: 600; }
.lessons small { font-family: "Poppins", sans-serif; font-size: 10.5px; }
.ok { width: 20px; height: 20px; border-radius: 50%; background: #2dd4bf; color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.ok .ic { width: 12px; height: 12px; stroke-width: 3; }
.todo { width: 20px; height: 20px; border-radius: 50%; border: 2px dashed #c4b5fd; flex-shrink: 0; }
.next-class { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.nc-time { background: var(--grad); color: #fff; border-radius: 12px; padding: 8px 12px; width: 100%; }
.nc-time b { display: block; font-size: 14px; }
.nc-time span { font-size: 12px; opacity: .9; }
.skills ul { display: grid; gap: 9px; }
.skills li { display: grid; grid-template-columns: 62px 1fr 34px; align-items: center; gap: 8px; font-family: "Poppins", sans-serif; font-size: 11px; color: var(--muted); }
.skills b { color: var(--navy); font-weight: 600; text-align: end; }
.bar { height: 7px; background: #f1eefc; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--c); border-radius: inherit; transition: width 1.2s var(--ease); }
.dash-mock.in .bar i { width: var(--w); }
.mini-bars { display: flex; align-items: flex-end; gap: 6px; height: 70px; margin-bottom: 8px; direction: ltr; }
.mini-bars i { flex: 1; height: 0; background: #ddd6fe; border-radius: 6px 6px 3px 3px; transition: height 1s var(--ease); }
.mini-bars i.hi { background: var(--grad); }
.dash-mock.in .mini-bars i { height: var(--h); }
.feedback p { font-size: 12px; color: var(--text); line-height: 1.8; margin-bottom: 6px; }

.week { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.day { background: #faf9ff; border-radius: 12px; padding: 8px; min-height: 170px; display: flex; flex-direction: column; gap: 6px; }
.day > b { font-size: 12px; color: var(--navy); text-align: center; }
.slot { border-radius: 10px; padding: 6px 8px; font-size: 11px; font-weight: 600; display: flex; flex-direction: column; }
.slot small { font-weight: 500; }
.s-violet { background: var(--lav); color: var(--violet); }
.s-blue { background: var(--sky); color: #2b6fb6; }
.s-mint { background: var(--mint); color: #2f8a5c; }
.s-pink { background: var(--pink); color: #c43f75; }
.list { display: grid; gap: 8px; }
.list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #faf9ff; border-radius: 12px; }
.list li > div { flex: 1; min-width: 0; }
.list b { display: block; color: var(--navy); font-size: 13px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.d-pink { background: #fb7185; } .d-violet { background: #8b5cf6; } .d-mint { background: #34d399; }
.file { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; }
.file .ic { width: 18px; height: 18px; }
.f-violet { background: var(--lav); color: var(--violet); } .f-pink { background: var(--pink); color: #e0558a; } .f-mint { background: var(--mint); color: #2f9e67; }
.mini-dl { width: 32px; height: 32px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--violet); }
.mini-dl .ic { width: 16px; height: 16px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: start; color: var(--muted); font-weight: 500; font-size: 12px; padding: 6px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 10px; border-bottom: 1px solid #f3f1fb; }
.tbl b.g { color: #2f9e67; }
.dm-float-card {
  position: absolute; bottom: -22px; left: -26px; background: #fff; border-radius: 16px; padding: 12px 16px;
  display: flex; gap: 10px; align-items: center; box-shadow: var(--shadow-lg); animation: float 5s ease-in-out infinite;
}
.dm-float-card b { display: block; font-size: 13px; color: var(--navy); }
.dm-float-card small { font-size: 12px; color: var(--muted); }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Why ---------- */
.why { background: var(--bg); }
.why-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.why-grid li {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 26px 16px 22px;
  text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.why-grid li:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.why-grid b { font-size: 15px; color: var(--navy); line-height: 1.6; }
.why-grid small { font-size: 12.5px; color: var(--muted); }
.wi { width: 58px; height: 58px; border-radius: 18px; background: var(--c); color: var(--i); display: grid; place-items: center; margin-bottom: 6px; transition: transform .35s var(--ease); }
.wi .ic { width: 28px; height: 28px; }
.why-grid li:hover .wi { transform: scale(1.08) rotate(-6deg); }

/* ---------- Tools ---------- */
.tools { background: linear-gradient(180deg, var(--bg) 0%, #f7f3ff 100%); padding-top: 24px; }
.tools-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.tools-copy > p { color: var(--muted); font-size: 16.5px; margin-top: 14px; max-width: 520px; }
.tool-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 30px; }
.tool-list li {
  display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 12px 14px; font-weight: 600; color: var(--navy); font-size: 14.5px;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.tool-list li:hover { transform: translateX(-4px); box-shadow: var(--shadow); }
.ti { width: 40px; height: 40px; border-radius: 12px; background: var(--c); color: var(--i); display: grid; place-items: center; flex-shrink: 0; }

.tools-art { position: relative; height: 500px; }
.tools-blob {
  position: absolute; inset: 30px 20px 30px 40px; border-radius: 46% 54% 42% 58% / 52% 44% 56% 48%;
  background: radial-gradient(circle at 30% 30%, #e7defe 0%, #dfe9ff 60%, #fde7f1 100%);
  animation: morph 12s ease-in-out infinite;
}
@keyframes morph { 50% { border-radius: 56% 44% 52% 48% / 44% 56% 44% 56%; } }
.phone {
  position: absolute; top: 30px; right: 22%; width: 240px; height: 440px; background: #1e2156;
  border-radius: 38px; padding: 10px; box-shadow: var(--shadow-lg); transform: rotate(4deg);
}
.phone-notch { position: absolute; top: 14px; left: 50%; translate: -50% 0; width: 70px; height: 18px; background: #1e2156; border-radius: 99px; z-index: 2; }
.phone-screen { background: linear-gradient(180deg, #fbfaff, #f2efff); height: 100%; border-radius: 30px; padding: 40px 16px 16px; font-family: "Poppins", sans-serif; display: flex; flex-direction: column; }
.ph-top { display: flex; justify-content: space-between; font-size: 11px; font-weight: 600; color: var(--navy); }
.ph-step { color: var(--violet); }
.ph-progress { height: 6px; background: #e9e4ff; border-radius: 99px; margin: 10px 0 18px; overflow: hidden; }
.ph-progress i { display: block; width: 30%; height: 100%; background: var(--grad); border-radius: inherit; }
.ph-q { font-size: 11px; color: var(--muted); }
.ph-sent { font-size: 14px; font-weight: 600; color: var(--navy); line-height: 1.5; margin: 6px 0 16px; }
.ph-sent u { text-decoration-color: var(--violet); text-decoration-thickness: 2px; }
.ph-opts { display: grid; gap: 8px; }
.ph-opts button {
  background: #fff; border: 1.5px solid #e6e1fb; border-radius: 12px; padding: 9px; font-size: 13px; font-weight: 600; color: var(--navy);
  transition: .2s; font-family: inherit;
}
.ph-opts button:hover { border-color: #b8a6ff; }
.ph-opts button.right { background: #dcfce7; border-color: #34d399; color: #157347; }
.ph-opts button.wrong { background: #ffe4e6; border-color: #fb7185; color: #be123c; animation: shake .35s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.ph-fb { margin-top: auto; text-align: center; font-size: 12px; color: var(--muted); }
.mascot-tools { position: absolute; width: 150px; height: 165px; left: 8%; bottom: 30px; z-index: 2; animation: float 4.5s ease-in-out infinite; }
.book-stack { position: absolute; left: 4%; bottom: 10px; width: 210px; display: flex; flex-direction: column-reverse; gap: 2px; z-index: 1; }
.book-stack i { height: 18px; width: var(--w); background: var(--c); border-radius: 5px; box-shadow: inset 0 -3px 0 rgba(0,0,0,.06); margin-inline: auto; }
.float-letter { position: absolute; font: 800 34px/1 "Poppins", sans-serif; color: #c4b5fd; animation: float 6s ease-in-out infinite; }
.fl1 { top: 20px; left: 14%; } .fl2 { top: 46%; right: 4%; color: #fbb6ce; animation-delay: 1s; } .fl3 { bottom: 40%; left: 2%; color: #93c5fd; animation-delay: 2s; font-size: 26px; }

/* ---------- Testimonials ---------- */
.testimonials { background: #f7f3ff; padding-top: 40px; padding-bottom: 56px; }
.t-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 32px; }
.t-nav { display: flex; gap: 10px; }
.round-btn { width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 1.5px solid var(--line); display: grid; place-items: center; color: var(--violet); transition: .2s; }
.round-btn:hover { background: var(--violet); color: #fff; border-color: var(--violet); }
.t-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 6px 4px 24px; margin-inline: -4px;
}
.t-track::-webkit-scrollbar { display: none; }
.t-card {
  margin: 0; scroll-snap-align: start; background: #fff; border-radius: var(--r-lg); padding: 28px;
  border: 1px solid #ece6ff; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 16px;
  position: relative;
}
.t-card::before { content: "”"; position: absolute; top: 4px; left: 22px; font: 900 80px/1 Georgia, serif; color: #ede8ff; }
.stars { color: #fbbf24; letter-spacing: 2px; font-size: 18px; }
.t-card blockquote { margin: 0; color: var(--text); font-size: 15px; line-height: 2; flex: 1; }
.t-card figcaption { display: flex; align-items: center; gap: 12px; border-top: 1px dashed var(--line); padding-top: 16px; }
.t-card figcaption b { display: block; color: var(--navy); font-size: 15px; }
.t-card figcaption small { color: var(--muted); font-size: 12.5px; }

/* ---------- Stats ---------- */
.stats-wrap { background: linear-gradient(180deg, #f7f3ff 0%, var(--bg) 100%); padding-block: 0 40px; }
.stats {
  display: grid; grid-template-columns: minmax(0, .9fr) 2fr; gap: 32px; align-items: center;
  background: linear-gradient(120deg, #ffffff 0%, #f1ecff 50%, #e9f2ff 100%);
  border: 1px solid #fff; border-radius: var(--r-lg); padding: 32px 36px; box-shadow: var(--shadow);
}
.stats-intro h2 { font-size: 22px; font-weight: 900; }
.stats-intro p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.stat-list { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.stat-list li { background: rgba(255,255,255,.85); border-radius: 18px; padding: 18px 12px; text-align: center; box-shadow: var(--shadow-sm); }
.si { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--lav); color: var(--violet); margin-bottom: 6px; }
.si .ic { width: 18px; height: 18px; }
.stat-list b { display: block; font-size: 28px; font-weight: 900; color: var(--navy); line-height: 1.3; }
.stat-list small { color: var(--muted); font-size: 13px; }

/* ---------- CTA ---------- */
.cta-section { padding-block: 40px 88px; }
.cta-banner {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr 1.15fr; align-items: center;
  background: linear-gradient(110deg, #fff4f8 0%, #f3eeff 45%, #e8f1ff 100%);
  border-radius: 36px; border: 1px solid #fff; box-shadow: var(--shadow); min-height: 320px;
}
.cta-copy { padding: 48px 56px; position: relative; z-index: 1; }
.cta-copy h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; }
.cta-copy p { color: var(--muted); font-size: 17px; margin: 12px 0 26px; }
.cta-art { position: relative; align-self: stretch; display: flex; align-items: flex-end; }
.city { width: 100%; height: auto; -webkit-mask-image: linear-gradient(to left, transparent 0, #000 22%); mask-image: linear-gradient(to left, transparent 0, #000 22%); }
.hand-c { top: 26px; left: 30px; transform: rotate(-6deg); font-size: 22px; }
.cta-plane { position: absolute; top: 40%; right: 12%; width: 54px; animation: drift 6s ease-in-out infinite; }

/* ---------- Footer ---------- */
.site-footer { background: #f5f7ff; border-top: 1px solid var(--line); padding-top: 56px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.3fr 1.6fr; gap: 32px; padding-bottom: 36px; }
.f-brand p { color: var(--muted); margin-top: 10px; font-size: 13.5px; }
.tagline { font-family: "Poppins", sans-serif; color: var(--violet) !important; font-weight: 500; text-align: right; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 38px; height: 38px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--navy); transition: .25s var(--ease); }
.socials a:hover { background: var(--violet); color: #fff; transform: translateY(-3px); }
.site-footer h4 { font-size: 15px; margin-bottom: 14px; }
.f-col ul { display: grid; gap: 8px; }
.f-col a { color: var(--muted); transition: color .2s; }
.f-col a:hover { color: var(--violet); }
.contact li { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.contact .ic { width: 18px; height: 18px; color: var(--violet); }
.f-news p { color: var(--muted); font-size: 13.5px; margin-bottom: 14px; }
.news-form { display: flex; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 5px; transition: border-color .2s; }
.news-form:focus-within { border-color: #c4b5fd; }
.news-form input { flex: 1; border: 0; outline: none; background: transparent; padding: 8px 14px; min-width: 0; }
.news-form .btn { width: 44px; height: 44px; padding: 0; flex-shrink: 0; }
.news-msg { min-height: 1.5em; margin-top: 8px !important; color: #2f9e67 !important; font-weight: 600; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-block: 18px; color: var(--muted); font-size: 12.5px; gap: 12px; flex-wrap: wrap; }
.footer-bottom nav { display: flex; gap: 10px; }
.footer-bottom a:hover { color: var(--violet); }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.course-grid .reveal:nth-child(2), .why-grid .reveal:nth-child(2), .t-track .reveal:nth-child(2) { transition-delay: .08s; }
.course-grid .reveal:nth-child(3), .why-grid .reveal:nth-child(3), .t-track .reveal:nth-child(3) { transition-delay: .16s; }
.course-grid .reveal:nth-child(4), .why-grid .reveal:nth-child(4), .t-track .reveal:nth-child(4) { transition-delay: .24s; }
.why-grid .reveal:nth-child(5) { transition-delay: .32s; }
.why-grid .reveal:nth-child(6) { transition-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .main-nav a { padding: 8px 8px; font-size: 14px; }
  .why-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.3fr 1fr 1fr 1.4fr; }
  .f-news { grid-column: 1 / -1; max-width: 520px; }
  .r2 { grid-template-columns: 1fr 1fr; }
  .r2 .feedback { grid-column: 1 / -1; }
}

@media (max-width: 1024px) {
  .menu-btn { display: grid; }
  .btn-login span { display: none; }
  .btn-login { width: 44px; height: 44px; padding: 0; }
  .main-nav {
    position: fixed; inset: 76px 0 auto 0; background: rgba(255,255,255,.97); backdrop-filter: blur(14px);
    padding: 16px 24px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    transform: translateY(-12px); opacity: 0; visibility: hidden; transition: .3s var(--ease);
  }
  .main-nav.open { transform: none; opacity: 1; visibility: visible; }
  .main-nav ul { flex-direction: column; gap: 2px; }
  .main-nav a { padding: 12px 8px; font-size: 16px; border-radius: 12px; }
  .main-nav a::after { display: none; }
  .main-nav a.active { background: var(--lav); }
  .main-nav .nav-mobile-cta { display: flex; width: 100%; margin-top: 12px; color: #fff; justify-content: center; }

  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .dash-grid { grid-template-columns: 1fr; gap: 40px; }
  .dash-copy { text-align: center; }
  .dash-features { justify-content: center; grid-template-columns: repeat(2, auto); }
  .tools-grid { grid-template-columns: 1fr; gap: 24px; }
  .t-track { grid-auto-columns: calc((100% - 24px) / 2); }
  .stats { grid-template-columns: 1fr; text-align: center; }
  .cta-banner { grid-template-columns: 1fr; }
  .cta-copy { text-align: center; padding: 44px 28px 10px; }
  .hand-a, .hand-b, .deco-leaf { display: none; }
}

@media (max-width: 860px) {
  .hero { padding-top: 0; }
  .hero-art { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 0 0 40px 40px; }
  .hero-art::after { background: linear-gradient(to top, var(--bg) 0%, rgba(253,251,248,0) 30%); }
  .hero-wave { display: none; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-copy { padding-top: 0; margin-top: -24px; }
  .paper-plane { display: none; }
  .hero-features { width: 100%; }
  .dm-window { grid-template-columns: 1fr; }
  .dm-side { flex-direction: row; padding: 10px; overflow-x: auto; gap: 8px; scrollbar-width: none; }
  .dm-logo, .dm-side-foot { display: none; }
  .dm-nav { display: flex; gap: 4px; }
  .dm-side button { white-space: nowrap; width: auto; }
  .dm-side button[aria-selected="true"] { box-shadow: inset 0 -3px 0 #a78bfa; }
  .dm-float-card { left: 8px; }
  .week { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .f-brand, .f-news { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .container { padding-inline: 16px; }
  body { font-size: 15px; }
  .header-inner { height: 66px; }
  .main-nav { inset-block-start: 66px; }
  .logo-mark { width: 36px; height: 36px; }
  .logo-text b { font-size: 20px; }
  .section { padding-block: 64px; }
  .hero h1 { font-size: 30px; }
  .lead { font-size: 15.5px; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .hero-features { grid-template-columns: repeat(2, 1fr); row-gap: 14px; }
  .hero-features li:nth-child(3) { border-inline-start: 0; }
  .course-grid { grid-template-columns: 1fr; gap: 18px; }
  .dash-features { grid-template-columns: 1fr; justify-items: start; max-width: 320px; margin-inline: auto; }
  .dash-copy .btn { width: 100%; }
  .r1, .r2 { grid-template-columns: 1fr; }
  .dm-main { padding: 14px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .why-grid li { padding: 20px 10px; }
  .tool-list { grid-template-columns: 1fr; }
  .tools-art { height: 560px; }
  .phone { top: 0; right: 50%; translate: 50% 0; width: 220px; height: 410px; }
  .mascot-tools { width: 110px; height: 120px; left: 0; bottom: 10px; }
  .book-stack { width: 150px; left: 0; bottom: 0; }
  .t-head { flex-direction: column; align-items: flex-start; }
  .t-track { grid-auto-columns: 86%; gap: 14px; }
  .stats { padding: 24px 16px; }
  .stat-list { grid-template-columns: repeat(2, 1fr); }
  .cta-copy .btn { width: 100%; }
  .hand-c { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* =========================================================
   Extra delight — effects & illustrated characters
   ========================================================= */

/* Scroll progress */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 60; pointer-events: none; }
.scroll-progress i { display: block; height: 100%; width: 100%; transform-origin: right; transform: scaleX(0); background: linear-gradient(90deg, #f472b6, #8b5cf6, #38bdf8, #34d399); background-size: 200% 100%; animation: hueSlide 4s linear infinite; border-radius: 0 0 4px 4px; }
@keyframes hueSlide { to { background-position: 200% 0; } }

/* FX canvas (confetti + cursor sparkles) */
#fxCanvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }

/* Gradient text shimmer */
.grad-text { background-image: linear-gradient(100deg, #8b5cf6 0%, #6d4aff 25%, #ec4899 45%, #6d4aff 65%, #4f46e5 100%); background-size: 220% 100%; animation: shimmer 6s ease-in-out infinite; }
@keyframes shimmer { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* Primary button shine sweep */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.45) 50%, transparent 70%);
  transform: translateX(-120%); animation: sweep 4.5s ease-in-out infinite;
}
@keyframes sweep { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
.btn-primary { transition: transform .25s var(--ease), box-shadow .25s var(--ease), translate .2s; }
.ripple { position: absolute; border-radius: 50%; background: rgba(255,255,255,.55); transform: scale(0); animation: ripple .65s ease-out forwards; pointer-events: none; }
.btn-soft .ripple, .btn-ghost .ripple { background: rgba(109,74,255,.25); }
.btn { position: relative; overflow: hidden; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* Hero greetings + sparkles */
.hello-bubble {
  position: absolute; z-index: 2; background: #fff; border-radius: 18px; padding: 6px 14px;
  font: 700 15px/1.4 "Poppins", "Vazirmatn", sans-serif; color: var(--violet); box-shadow: var(--shadow);
  animation: popFloat 5s ease-in-out infinite;
}
.hello-bubble::after { content: ""; position: absolute; bottom: -7px; inset-inline-end: 18px; border: 8px solid transparent; border-top-color: #fff; border-bottom: 0; }
.hello-bubble b { display: inline-block; unicode-bidi: plaintext; transition: transform .35s var(--ease), opacity .35s; }
.hello-bubble b.out { transform: rotateX(90deg); opacity: 0; }
.hb1 { top: 34%; left: 14%; }
.hb2 { top: 30%; left: 44%; animation-delay: 1.2s; color: #e0558a; }
.hb3 { top: 13%; left: 54%; animation-delay: 2.4s; color: #2b8fd6; }
@keyframes popFloat { 0%,100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
.spark { position: absolute; z-index: 2; width: 16px; height: 16px; background: #fff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); filter: drop-shadow(0 0 6px #fff6c2); animation: twinkle 2.4s ease-in-out infinite; }
.s1 { top: 12%; left: 30%; } .s2 { top: 22%; left: 60%; animation-delay: .6s; width: 12px; height: 12px; }
.s3 { top: 54%; left: 8%; animation-delay: 1.1s; } .s4 { top: 10%; left: 82%; animation-delay: 1.6s; width: 20px; height: 20px; }
.s5 { top: 64%; left: 52%; animation-delay: .3s; width: 10px; height: 10px; }
@keyframes twinkle { 0%,100% { transform: scale(.3) rotate(0); opacity: .2; } 50% { transform: scale(1) rotate(45deg); opacity: 1; } }

/* Marquee */
.marquee { overflow: hidden; background: var(--grad); color: #fff; padding: 12px 0; transform: rotate(-1.2deg) scaleX(1.01); margin: 10px 0 0; box-shadow: 0 14px 30px -14px rgba(109,74,255,.6); position: relative; z-index: 2; direction: ltr; }
.marquee-track { display: flex; gap: 26px; width: max-content; animation: marquee 32s linear infinite; align-items: center; }
.marquee span { font: 700 18px/1 "Poppins", "Vazirmatn", sans-serif; white-space: nowrap; }
.marquee i { font-style: normal; color: #ffe08a; animation: spin 4s linear infinite; display: inline-block; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes spin { to { transform: rotate(360deg); } }

/* Course cards: 3D tilt + glare */
.course-grid { perspective: 1200px; }
.course-card { transform-style: preserve-3d; will-change: transform; }
.course-card.tilting { transition: transform .08s linear, box-shadow .4s, border-color .4s; }
.course-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.55), transparent 45%);
}
.course-card { position: relative; }
.course-card:hover::after { opacity: 1; }

/* Illustrated scenes */
.cc-scene { background: none; overflow: hidden; }
.cc-scene .scene { position: absolute; inset: 0; width: 100%; height: 100%; transition: transform .8s var(--ease); }
.course-card:hover .cc-scene .scene { transform: scale(1.06); }
.scene .char { animation: breathe 4s ease-in-out infinite; transform-box: view-box; transform-origin: 160px 248px; }
@keyframes breathe { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-3px) scale(1.01); } }
.scene .blink { transform-box: fill-box; transform-origin: center; animation: blink 4.2s infinite; }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.08); } }
.scene .wave { transform-box: view-box; transform-origin: 114px 196px; animation: wave 2.2s ease-in-out infinite; }
@keyframes wave { 0%, 60%, 100% { transform: rotate(0); } 70% { transform: rotate(-14deg); } 80% { transform: rotate(8deg); } 90% { transform: rotate(-10deg); } }
.course-card:hover .scene .wave { animation-duration: .9s; }
.scene .hold { transform-box: view-box; transform-origin: 200px 196px; animation: holdUp 3s ease-in-out infinite; }
@keyframes holdUp { 0%,100% { transform: rotate(0); } 50% { transform: rotate(-6deg); } }
.scene .teddy { transform-box: fill-box; transform-origin: bottom center; animation: wobble 3.6s ease-in-out infinite; }
@keyframes wobble { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
.scene .bubble-pop { transform-box: fill-box; transform-origin: 20% 100%; animation: bubblePop 3.5s ease-in-out infinite; }
@keyframes bubblePop { 0%,100% { transform: scale(1); } 10% { transform: scale(1.08); } 20% { transform: scale(1); } }
.scene .steam { animation: steam 2.4s ease-in-out infinite; }
@keyframes steam { 0% { opacity: 0; transform: translateY(4px); } 40% { opacity: .9; } 100% { opacity: 0; transform: translateY(-8px); } }
.scene .bunting path { transform-box: fill-box; transform-origin: top center; animation: wobble 3s ease-in-out infinite; }
.scene .bunting path:nth-child(even) { animation-delay: -1.5s; }

/* Why cards: icon pop + gradient border on hover */
.why-grid li { position: relative; }
.why-grid li::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: linear-gradient(135deg, #f472b6, #8b5cf6, #38bdf8); opacity: 0; transition: opacity .35s;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
.why-grid li:hover::before { opacity: 1; }
.why-grid li:hover .wi { animation: jelly .6s; }
@keyframes jelly { 30% { transform: scale(1.18, .86); } 50% { transform: scale(.9, 1.12); } 70% { transform: scale(1.06, .96); } 100% { transform: scale(1.08) rotate(-6deg); } }

/* Tools mascot talk */
#mascotTools { cursor: pointer; }
#mascotTools.jump { animation: jump .7s var(--ease); }
@keyframes jump { 30% { transform: translateY(-40px) rotate(-8deg); } 55% { transform: translateY(0) scale(1.08, .92); } 75% { transform: translateY(-10px); } 100% { transform: none; } }
.mascot-say { direction: ltr;
  position: absolute; left: 10%; bottom: 200px; z-index: 3; background: #fff; color: var(--violet); border-radius: 16px; padding: 6px 14px;
  font: 700 14px/1.4 "Poppins", sans-serif; box-shadow: var(--shadow); opacity: 0; transform: translateY(8px) scale(.8); transition: .35s var(--ease); pointer-events: none;
}
.mascot-say.show { opacity: 1; transform: none; }

/* Stats: gentle glow */
.stat-list li { transition: transform .35s var(--ease), box-shadow .35s; }
.stat-list li:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: 0 18px 30px -16px rgba(109,74,255,.45); }
.stat-list li:hover .si { animation: jelly .6s; }

/* Back to top */
.to-top {
  position: fixed; bottom: 22px; left: 22px; z-index: 55; width: 52px; height: 52px; border-radius: 50%;
  background: #fff; color: var(--violet); box-shadow: var(--shadow); display: grid; place-items: center;
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: .35s var(--ease);
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { transform: translateY(-4px); }
.to-top .ic { position: relative; }
.tt-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.tt-ring circle { fill: none; stroke: #ede9fe; stroke-width: 3; }
.tt-ring circle + circle { stroke: url(#gViolet); stroke: #8b5cf6; stroke-linecap: round; stroke-dasharray: 132; stroke-dashoffset: 132; }

@media (max-width: 860px) {
  .hb1 { top: 16%; left: 6%; } .hb2 { top: 10%; left: 40%; } .hb3 { top: 18%; left: 70%; }
  .hello-bubble { font-size: 12px; padding: 4px 10px; }
  .marquee span { font-size: 15px; }
}
@media (max-width: 640px) {
  .mascot-say { bottom: 130px; left: 0; }
  .to-top { bottom: 16px; left: 16px; width: 46px; height: 46px; }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-progress i { animation: none; }
}

/* =========================================================
   Round 2 — more delight
   ========================================================= */

/* Intro splash */
.intro { position: fixed; inset: 0; z-index: 200; background: radial-gradient(circle at 50% 40%, #f4efff, #fdfbf8 70%); display: grid; place-items: center; transition: opacity .5s var(--ease), visibility .5s; }
.intro.hide { opacity: 0; visibility: hidden; }
.intro-inner { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.intro-mark { width: 84px; height: 84px; animation: introPop .7s var(--ease) both; }
@keyframes introPop { 0% { transform: scale(0) rotate(-120deg); } 70% { transform: scale(1.15) rotate(8deg); } 100% { transform: none; } }
.intro-word { display: flex; gap: 4px; font: 800 32px/1 "Poppins", sans-serif; color: var(--navy); letter-spacing: 2px; }
.intro-word span { display: inline-block; animation: letterUp .5s var(--ease) both; }
.intro-word span:nth-child(1) { animation-delay: .25s; } .intro-word span:nth-child(2) { animation-delay: .32s; }
.intro-word span:nth-child(3) { animation-delay: .39s; } .intro-word span:nth-child(4) { animation-delay: .46s; } .intro-word span:nth-child(5) { animation-delay: .53s; }
@keyframes letterUp { from { transform: translateY(30px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }

/* Logo wiggle */
.logo:hover .logo-mark { animation: wiggle .6s ease-in-out; }
@keyframes wiggle { 20% { transform: rotate(-12deg); } 40% { transform: rotate(10deg) scale(1.1); } 60% { transform: rotate(-6deg); } 80% { transform: rotate(4deg); } }

/* Custom cursor ring */
.cursor-ring {
  position: fixed; top: 0; left: 0; z-index: 80; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 2px solid rgba(109, 74, 255, .55); pointer-events: none; opacity: 0;
  transition: width .25s var(--ease), height .25s var(--ease), margin .25s var(--ease), background .25s, border-color .25s, opacity .3s;
}
.cursor-ring.on { opacity: 1; }
.cursor-ring.big { width: 60px; height: 60px; margin: -30px 0 0 -30px; background: rgba(139, 92, 246, .1); border-color: rgba(236, 72, 153, .5); }
.cursor-ring.down { width: 22px; height: 22px; margin: -11px 0 0 -11px; }

/* Click letter burst */
.pop-letter { position: fixed; z-index: 75; pointer-events: none; font: 800 22px/1 "Poppins", "Vazirmatn", sans-serif; animation: popLetter 1s var(--ease) forwards; }
@keyframes popLetter { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1) rotate(var(--r)); opacity: 0; } }

/* Toast */
.toast { position: fixed; bottom: 26px; left: 50%; z-index: 90; translate: -50% 0; background: var(--navy); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 700; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(30px) scale(.9); transition: .4s var(--ease); pointer-events: none; white-space: nowrap; }
.toast.show { opacity: 1; transform: none; }

/* Word of the day flip card */
.wotd { position: absolute; top: 452px; left: 40px; z-index: 3; width: 210px; height: 108px; perspective: 900px; cursor: pointer; animation: popFloat 6s ease-in-out infinite; }
.wotd-inner { position: relative; display: block; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform .7s var(--ease); }
.wotd.flipped .wotd-inner { transform: rotateY(180deg); }
.wotd-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 20px; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 2px; box-shadow: var(--shadow-lg); border: 1px solid #fff; }
.wotd-front { background: rgba(255,255,255,.92); backdrop-filter: blur(8px); }
.wotd-back { background: var(--grad); color: #fff; transform: rotateY(180deg); }
.wotd small { font-size: 11.5px; font-weight: 600; color: var(--violet); }
.wotd-back small, .wotd-back em { color: rgba(255,255,255,.85); }
.wotd b { font: 800 26px/1.2 "Poppins", "Vazirmatn", sans-serif; color: var(--navy); }
.wotd-back b { color: #fff; font-family: "Vazirmatn", sans-serif; }
.wotd em { font-style: normal; font-size: 12px; color: var(--muted); }

/* Floating letters with scroll parallax */
.float-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.float-bg span { position: absolute; font: 800 64px/1 "Poppins", sans-serif; color: #8b5cf6; opacity: .07; will-change: transform; }
.float-bg span:nth-child(even) { color: #ec4899; }

/* Heading squiggle (drawn when revealed) */
.squiggle { display: block; width: 130px; height: 14px; margin: 6px auto 0; overflow: visible; }
.section-head.start .squiggle { margin-inline: 0; }
.squiggle path { fill: none; stroke: url(#gViolet); stroke: #8b5cf6; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 160; stroke-dashoffset: 160; transition: stroke-dashoffset 1.2s var(--ease) .3s; }
.in .squiggle path, .squiggle.in path { stroke-dashoffset: 0; }

/* Dashboard ring fills + live notification */
@property --p { syntax: "<number>"; inherits: false; initial-value: 0; }
.ring { transition: --p 1.6s var(--ease); }
.dash-mock:not(.in) .ring { --p: 0 !important; }
.dm-live {
  position: absolute; top: -18px; right: 30px; z-index: 3; display: flex; align-items: center; gap: 8px;
  background: #fff; border-radius: 14px; padding: 8px 14px 8px 12px; font-size: 13px; font-weight: 600; color: var(--navy);
  box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(-10px) scale(.9); transition: .4s var(--ease);
}
.dm-live.show { opacity: 1; transform: none; }
.dm-live.show .dm-live-ic { animation: ring 1s ease-in-out; }
.dm-live-ic { display: inline-block; transform-origin: top center; }
@keyframes ring { 15% { transform: rotate(18deg); } 30% { transform: rotate(-16deg); } 45% { transform: rotate(10deg); } 60% { transform: rotate(-6deg); } 75% { transform: none; } }

/* Specialist scene bits */
.scene .point { transform-box: view-box; transform-origin: 114px 196px; animation: point 3s ease-in-out infinite; }
@keyframes point { 0%,100% { transform: rotate(0); } 50% { transform: rotate(7deg); } }
.scene .chalk-tick { stroke-dasharray: 30; stroke-dashoffset: 30; animation: tick 3s ease-in-out infinite; }
@keyframes tick { 0%, 20% { stroke-dashoffset: 30; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 30; } }

/* Testimonials: stars + hover heart */
.t-card { transition: transform .35s var(--ease), box-shadow .35s; }
.t-card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: var(--shadow-lg); }
.t-card::after { content: "❤"; position: absolute; top: 18px; inset-inline-end: 24px; color: #f472b6; font-size: 20px; opacity: 0; transform: scale(0); transition: .4s var(--ease); }
.t-card:hover::after { opacity: 1; transform: scale(1); animation: heartbeat 1s ease-in-out infinite .4s; }
@keyframes heartbeat { 0%,100% { transform: scale(1); } 30% { transform: scale(1.3); } 60% { transform: scale(.95); } }
.t-card:hover .stars { animation: starShine .8s ease; }
@keyframes starShine { 50% { letter-spacing: 6px; filter: drop-shadow(0 0 6px #fde68a); } }

/* CTA paper plane flight */
.cta-trail { position: absolute; inset: 10% 0 30% 0; width: 100%; height: 60%; pointer-events: none; }
.cta-trail path { stroke-dasharray: 6 9; animation: dashMove 1.2s linear infinite; }
@keyframes dashMove { to { stroke-dashoffset: -30; } }
.cta-banner.in .cta-plane { animation: fly 9s ease-in-out infinite; }
@keyframes fly {
  0% { transform: translate(0, 0) rotate(0); }
  25% { transform: translate(-120px, 60px) rotate(-12deg); }
  50% { transform: translate(-260px, 20px) rotate(4deg); }
  75% { transform: translate(-120px, -30px) rotate(10deg); }
  100% { transform: translate(0, 0) rotate(0); }
}
.city circle[fill="#fff6d6"] { animation: twinkle 3s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

/* Stats emoji pop */
.stat-list li { position: relative; }
.stat-list li::after { content: attr(data-emoji); position: absolute; top: -10px; left: 50%; font-size: 22px; opacity: 0; transform: translate(-50%, 10px) scale(.4); transition: .4s var(--ease); }
.stat-list li:hover::after { opacity: 1; transform: translate(-50%, -14px) scale(1); }

@media (max-width: 860px) {
  .wotd { position: relative; top: auto; left: auto; display: block; margin: -40px auto 44px; }
  .dm-live { right: 10px; top: -22px; font-size: 12px; }
}
@media (pointer: coarse) { .cursor-ring { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .intro { display: none; }
  .cursor-ring { display: none; }
}

/* =========================================================
   Round 3 — dark theme, English (LTR), toggles & night magic
   ========================================================= */

/* ---------- Dark palette ---------- */
:root[data-theme="dark"] {
  --bg: #0e0f24;
  --bg-blue: #111433;
  --bg-lav: #15123a;
  --surface: #191b3d;
  --surface-2: #1f2248;
  --navy: #eef0ff;
  --text: #d6d9f6;
  --muted: #9ca1cc;
  --line: #2c2f5c;
  --lav: #2b2366;
  --mint: #123a2d;
  --pink: #3d1830;
  --yellow: #3a2e12;
  --sky: #142d4f;
  --violet: #a48bff;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .35);
  --shadow: 0 14px 34px -12px rgba(0, 0, 0, .6), 0 2px 6px rgba(0, 0, 0, .3);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .75);
  color-scheme: dark;
}
:root { --surface-2: #faf9ff; }
html { transition: background-color .4s; }

[data-theme="dark"] .site-header { background: rgba(14, 15, 36, .78); }
[data-theme="dark"] .site-header.scrolled { box-shadow: 0 6px 24px -12px rgba(0,0,0,.7); }
[data-theme="dark"] .search-bar,
[data-theme="dark"] .search-bar input:focus { background: var(--surface); }
[data-theme="dark"] .search-bar input { background: var(--bg-blue); }
[data-theme="dark"] .btn-ghost { background: rgba(25, 27, 61, .7); border-color: #4b3f99; }
[data-theme="dark"] .btn-ghost:hover { background: var(--surface); }
[data-theme="dark"] :is(.btn-soft, .icon-btn, .pill-label, .cc-badge, .sticker, .dm-card, .dm-bell, .mini-dl,
  .dm-float-card, .why-grid li, .tool-list li, .ph-opts button, .round-btn, .t-card, .socials a, .news-form,
  .hello-bubble, .mascot-say, .to-top, .dm-live, .badge-outline, .wotd-front) { background: var(--surface); border-color: var(--line); }
[data-theme="dark"] .hello-bubble::after { border-top-color: var(--surface); }
[data-theme="dark"] .btn-soft { border-color: #3d3580; }
[data-theme="dark"] .btn-soft:hover { background: var(--violet); color: #0e0f24; }
[data-theme="dark"] .hero-features,
[data-theme="dark"] .stat-list li { background: rgba(25, 27, 61, .82); border-color: var(--line); }
[data-theme="dark"] .hero-art img { filter: brightness(.62) saturate(.9) hue-rotate(-8deg); }
[data-theme="dark"] .hero-art::after {
  background:
    linear-gradient(to left, var(--bg) 0%, color-mix(in srgb, var(--bg) 85%, transparent) 12%, transparent 40%),
    linear-gradient(to top, var(--bg) 0%, transparent 28%),
    linear-gradient(180deg, rgba(40, 30, 110, .35), rgba(14, 15, 36, .15));
}
[data-theme="dark"] .cc-thumb::after { background: linear-gradient(to top, var(--surface), transparent); }
[data-theme="dark"] .scene { filter: brightness(.88) saturate(.95); }
[data-theme="dark"] .dash-section { background: linear-gradient(160deg, var(--bg-lav) 0%, #121633 60%, var(--bg-blue) 100%); }
[data-theme="dark"] .dm-window { background: var(--surface); border-color: var(--line); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 0 0 8px rgba(255,255,255,.04); }
[data-theme="dark"] .dm-side { background: #0b0c22; }
[data-theme="dark"] .dm-main { background: linear-gradient(180deg, #16183a, #131532); }
[data-theme="dark"] .dm-card { border-color: #282b57; }
[data-theme="dark"] :is(.lessons li, .day, .list li) { background: var(--surface-2); }
[data-theme="dark"] { --surface-2: #22254f; }
[data-theme="dark"] .ring { background: conic-gradient(#2dd4bf calc(var(--p) * 1%), #2b2a5e 0); }
[data-theme="dark"] .ring::before { background: var(--surface); }
[data-theme="dark"] .bar { background: #2a2c58; }
[data-theme="dark"] .mini-bars i { background: #3b3580; }
[data-theme="dark"] .tbl td { border-color: var(--line); }
[data-theme="dark"] .chip-mint { color: #5fe0a5; } [data-theme="dark"] .chip-pink { color: #ff8fb8; } [data-theme="dark"] .chip-violet { color: #c4b5fd; }
[data-theme="dark"] .tools { background: linear-gradient(180deg, var(--bg) 0%, #14123a 100%); }
[data-theme="dark"] .tools-blob { background: radial-gradient(circle at 30% 30%, #2d2470 0%, #1a2756 60%, #3a1940 100%); }
[data-theme="dark"] .phone-screen { background: linear-gradient(180deg, #1b1d42, #15173a); }
[data-theme="dark"] .ph-progress { background: #2b2a5e; }
[data-theme="dark"] .ph-opts button.right { background: #12402e; color: #6ee7b7; }
[data-theme="dark"] .ph-opts button.wrong { background: #4a1525; color: #fda4af; }
[data-theme="dark"] .phone, [data-theme="dark"] .phone-notch { background: #05061a; }
[data-theme="dark"] .testimonials { background: #14123a; }
[data-theme="dark"] .t-card::before { color: #2c2a62; }
[data-theme="dark"] .stats-wrap { background: linear-gradient(180deg, #14123a 0%, var(--bg) 100%); }
[data-theme="dark"] .stats { background: linear-gradient(120deg, #191b3d 0%, #211a4d 50%, #142a4f 100%); border-color: var(--line); }
[data-theme="dark"] .cta-banner { background: linear-gradient(110deg, #2a1736 0%, #1f1a4d 45%, #132a4d 100%); border-color: var(--line); }
[data-theme="dark"] .city { filter: brightness(.7) saturate(1.1); }
[data-theme="dark"] .site-footer { background: #0b0c20; }
[data-theme="dark"] .intro { background: radial-gradient(circle at 50% 40%, #241c5c, var(--bg) 70%); }
[data-theme="dark"] .toast { background: #f1edff; color: #1e2156; }
[data-theme="dark"] .float-bg span { opacity: .12; }
[data-theme="dark"] .marquee { box-shadow: 0 14px 40px -12px rgba(139, 92, 246, .8); }
[data-theme="dark"] .why-grid li:hover, [data-theme="dark"] .course-card:hover { box-shadow: 0 24px 50px -20px rgba(139, 92, 246, .5); }
@media (max-width: 1024px) { [data-theme="dark"] .main-nav { background: rgba(14, 15, 36, .97); } }
[data-theme="dark"] .main-nav a { color: #c3c6ee; }
[data-theme="dark"] .main-nav a:hover, [data-theme="dark"] .main-nav a.active { color: #c4b5fd; }

/* ---------- Toggles ---------- */
.lang-toggle {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; width: 78px; height: 44px; padding: 4px;
  border-radius: 999px; border: 1.5px solid var(--line); background: var(--surface); font: 700 13px/1 "Poppins", "Vazirmatn", sans-serif;
}
.lt-opt { position: relative; z-index: 1; text-align: center; color: var(--muted); transition: color .35s; }
.lt-knob {
  position: absolute; top: 4px; left: 4px; width: calc(50% - 4px); height: calc(100% - 8px); border-radius: 999px;
  background: var(--grad); box-shadow: 0 6px 14px -6px rgba(109, 74, 255, .7);
  transition: transform .5s cubic-bezier(.5, 1.6, .4, 1), width .25s;
}
.lang-toggle.squash .lt-knob { width: calc(70% - 4px); }
html[lang="fa"] .lt-opt[data-l="fa"], html[lang="en"] .lt-opt[data-l="en"] { color: #fff; }
html[lang="en"] .lt-knob { transform: translateX(100%); }
html[lang="en"] .lang-toggle.squash .lt-knob { transform: translateX(42%); }

.theme-btn { overflow: hidden; }
.sunmoon { width: 22px; height: 22px; overflow: visible; }
.sm-core { transform-origin: 12px 12px; transition: transform .6s cubic-bezier(.5, 1.6, .4, 1); }
.mm { transition: transform .6s var(--ease); }
.sm-rays { transform-origin: 12px 12px; transition: transform .6s var(--ease), opacity .4s; }
[data-theme="dark"] .sm-core { transform: scale(1.75); }
[data-theme="dark"] .mm { transform: translate(-7px, 3px); }
[data-theme="dark"] .sm-rays { transform: rotate(90deg) scale(0); opacity: 0; }
[data-theme="dark"] .theme-btn { color: #fde68a; }
.theme-btn:hover .sm-rays { transform: rotate(45deg); }
[data-theme="dark"] .theme-btn:hover .sm-core { transform: scale(1.75) rotate(-20deg); }

/* View transitions (theme circle reveal / language wipe) */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-old(root) { z-index: 1; }
::view-transition-new(root) { z-index: 2; }

/* ---------- Night sky (dark only) ---------- */
.night-sky { position: absolute; inset: 0 0 auto 0; height: 620px; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .8s; overflow: hidden; }
[data-theme="dark"] .night-sky { opacity: 1; }
.night-sky .star { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #fff; box-shadow: 0 0 6px #fff; animation: twinkle var(--d) ease-in-out infinite var(--dl); }
.night-sky .firefly {
  position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fde68a; box-shadow: 0 0 10px 3px rgba(253, 230, 138, .75);
  animation: firefly var(--d) ease-in-out infinite alternate var(--dl);
}
@keyframes firefly {
  0% { transform: translate(0, 0); opacity: .2; }
  30% { opacity: 1; }
  50% { transform: translate(var(--x1), var(--y1)); opacity: .5; }
  80% { opacity: 1; }
  100% { transform: translate(var(--x2), var(--y2)); opacity: .3; }
}
.shooting-star {
  position: absolute; top: 8%; left: 70%; width: 120px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #fff, rgba(255,255,255,0)); transform: rotate(-30deg); opacity: 0;
  animation: shoot 7s ease-in infinite 2s;
}
.shooting-star.s2 { top: 18%; left: 40%; animation-delay: 4.5s; animation-duration: 9s; }
@keyframes shoot { 0%, 90% { opacity: 0; translate: 0 0; } 92% { opacity: 1; } 100% { opacity: 0; translate: -340px 200px; } }
.moon {
  position: absolute; top: 34px; left: 48%; width: 54px; height: 54px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fffbe6, #fde68a 60%, #f5c44a);
  box-shadow: 0 0 40px 10px rgba(253, 230, 138, .35); animation: float 6s ease-in-out infinite;
}
.moon::after { content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%; background: rgba(230, 190, 90, .45); top: 16px; left: 26px; box-shadow: -14px 14px 0 -3px rgba(230, 190, 90, .4); }

/* Cursor glow (dark only) */
.cursor-glow {
  position: fixed; top: 0; left: 0; width: 460px; height: 460px; margin: -230px 0 0 -230px; border-radius: 50%; pointer-events: none; z-index: 1;
  background: radial-gradient(circle, rgba(139, 92, 246, .22), rgba(236, 72, 153, .08) 40%, transparent 70%);
  opacity: 0; transition: opacity .5s;
}
[data-theme="dark"] .cursor-glow.on { opacity: 1; }

/* Language-switch heading pop */
.lang-pop { animation: langPop .7s var(--ease); }
@keyframes langPop { 0% { transform: scale(.94); filter: blur(4px); opacity: .3; } 100% { transform: none; filter: none; opacity: 1; } }

/* ---------- English / LTR layout ---------- */
html[lang="en"] body { font-family: "Poppins", "Vazirmatn", sans-serif; }
html[lang="en"] .hero h1 { letter-spacing: -1px; line-height: 1.2; }
html[lang="en"] .lead, html[lang="en"] .section-head p { font-size: 16px; }
html[dir="ltr"] .header-inner { flex-direction: row; }
html[dir="ltr"] .hero-art { left: auto; right: 0; border-bottom-right-radius: 0; border-bottom-left-radius: 120px 60px; }
html[dir="ltr"] .hero-art::after {
  background:
    linear-gradient(to right, var(--bg) 0%, color-mix(in srgb, var(--bg) 85%, transparent) 12%, transparent 38%),
    linear-gradient(to top, var(--bg) 0%, transparent 26%);
}
html[dir="ltr"][data-theme="dark"] .hero-art::after {
  background:
    linear-gradient(to right, var(--bg) 0%, color-mix(in srgb, var(--bg) 85%, transparent) 12%, transparent 40%),
    linear-gradient(to top, var(--bg) 0%, transparent 28%),
    linear-gradient(180deg, rgba(40, 30, 110, .35), rgba(14, 15, 36, .15));
}
html[dir="ltr"] .hero-wave { left: auto; right: 0; transform: scaleX(-1); }
html[dir="ltr"] .paper-plane { left: auto; right: -60px; scale: -1 1; }
html[dir="ltr"] .wotd { left: auto; right: 40px; }
html[dir="ltr"] .moon { left: 40%; }
html[dir="ltr"] .btn .arrow, html[dir="ltr"] .round-btn .ic { scale: -1 1; }
html[dir="ltr"] .btn:hover .arrow { transform: translateX(4px); }
html[dir="ltr"] .tool-list li:hover { transform: translateX(4px); }
html[dir="ltr"] .dm-side button[aria-selected="true"] { box-shadow: inset 3px 0 0 #a78bfa; }
html[dir="ltr"] .dm-logo { justify-content: flex-start; }
html[dir="ltr"] .tagline { text-align: left; }
html[dir="ltr"] .t-card::before { left: auto; right: 22px; }
html[dir="ltr"] .scroll-progress i { transform-origin: left; }
@media (max-width: 860px) {
  html[dir="ltr"] .hero-art { border-radius: 0 0 40px 40px; }
  html[dir="ltr"] .wotd { right: auto; }
  .night-sky { height: 62vw; }
}
@media (max-width: 1024px) {
  html[dir="ltr"] [data-theme="dark"] .main-nav { background: rgba(14, 15, 36, .97); }
}
@media (max-width: 520px) {
  .btn-login { display: none; }
  .header-actions { gap: 6px; }
  .header-actions .icon-btn { width: 40px; height: 40px; }
  .lang-toggle { width: 70px; height: 40px; }
  .logo-text small { display: none; }
}
@media (pointer: coarse) { .cursor-glow { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .night-sky .star, .night-sky .firefly, .shooting-star, .moon { animation: none; }
}

/* Round 3 fixes */
.main-nav a, .logo-text { white-space: nowrap; }
@media (min-width: 1025px) and (max-width: 1320px) {
  .btn-login span { display: none; }
  .btn-login { width: 44px; height: 44px; padding: 0; }
}
html[dir="ltr"] .cc-badge { inset-inline-end: auto; inset-inline-start: 14px; }
html[dir="ltr"] .hand-b { left: auto; right: max(24px, calc(50% - 600px)); }
html[dir="ltr"] .hand-a { right: auto; left: max(24px, calc(50% - 600px)); }
[data-theme="dark"] :is(.wi, .fi-sm, .ti) { background: color-mix(in srgb, var(--i) 20%, transparent); }
[data-theme="dark"] .fi { filter: saturate(1.2); background-color: color-mix(in srgb, currentColor 18%, transparent); }
[data-theme="dark"] .si { background: color-mix(in srgb, var(--violet) 22%, transparent); }

/* =========================================================
   Round 4 — pronunciation (text-to-speech)
   ========================================================= */
.speak-btn {
  position: relative; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(109, 74, 255, .8);
  transition: transform .25s var(--ease); flex-shrink: 0;
}
.speak-btn:hover { transform: scale(1.1) rotate(-6deg); }
.speak-btn:active { transform: scale(.92); }
.speak-btn .ic { width: 18px; height: 18px; transition: opacity .2s, transform .2s; }
.speak-btn.sm { width: 28px; height: 28px; }
.speak-btn.sm .ic { width: 14px; height: 14px; }
/* sound-wave rings + equalizer while speaking */
.speak-btn::before, .speak-btn::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #a78bfa; opacity: 0; pointer-events: none;
}
.speak-btn.speaking::before { animation: soundRing 1.2s ease-out infinite; }
.speak-btn.speaking::after { animation: soundRing 1.2s ease-out infinite .4s; }
@keyframes soundRing { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.2); opacity: 0; } }
.sp-bars { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 2px; opacity: 0; }
.sp-bars i { width: 3px; height: 40%; border-radius: 2px; background: #fff; animation: eq .6s ease-in-out infinite alternate; }
.sp-bars i:nth-child(2) { animation-delay: .2s; height: 60%; } .sp-bars i:nth-child(3) { animation-delay: .4s; }
@keyframes eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
.speak-btn.speaking .ic { opacity: 0; transform: scale(.5); }
.speak-btn.speaking .sp-bars { opacity: 1; }
.sp-slow { position: absolute; top: -10px; inset-inline-end: -12px; font-size: 15px; opacity: 0; transform: scale(0); transition: .3s cubic-bezier(.5, 1.6, .4, 1); }
.speak-btn.slow .sp-slow { opacity: 1; transform: scale(1); }
html.no-tts .speak-btn { display: none; }

.wotd-front { position: relative; }
.wotd-speak { position: absolute; top: -12px; right: -12px; }
.wotd { overflow: visible; }
.ph-q { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.marquee .sayable { cursor: pointer; padding: 4px 8px; margin: -4px -8px; border-radius: 10px; transition: background .2s, transform .25s var(--ease); }
.marquee .sayable:hover { background: rgba(255, 255, 255, .18); transform: scale(1.12); }
.marquee .sayable.saying { background: rgba(255, 255, 255, .3); animation: sayPulse .5s ease-in-out infinite alternate; }
@keyframes sayPulse { to { transform: scale(1.2) rotate(-3deg); } }
.marquee:has(.saying) .marquee-track { animation-play-state: paused; }

/* floating music notes */
.note-pop { position: fixed; z-index: 75; pointer-events: none; font-size: 20px; animation: notePop 1.4s ease-out forwards; }
@keyframes notePop { 0% { transform: translate(-50%, -50%) scale(.4); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(calc(-50% + var(--dx)), calc(-50% - 90px)) scale(1.1) rotate(var(--r)); opacity: 0; } }

/* =========================================================
   Round 5 — scratch card, sound toggle
   ========================================================= */
.gift { padding-block: 40px 56px; }
.gift-grid { display: grid; grid-template-columns: 1fr minmax(0, 460px); gap: 56px; align-items: center; }
.gift-copy h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 900; }
.gift-copy > p { color: var(--muted); font-size: 16.5px; margin-top: 12px; max-width: 520px; }
.gift-steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; }
.gift-steps li { display: flex; align-items: center; gap: 12px; font-weight: 600; color: var(--navy); }
.gift-steps span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--lav); color: var(--violet); font-weight: 800; flex-shrink: 0; }

.ticket-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.ticket {
  position: relative; width: 100%; aspect-ratio: 16 / 10; max-width: 100%; border-radius: 26px; overflow: hidden;
  background: radial-gradient(circle at 20% 15%, #fff7d6, transparent 45%), linear-gradient(135deg, #fff1f7, #efe9ff 55%, #e5f0ff);
  border: 2px dashed #c4b5fd; box-shadow: var(--shadow-lg);
  -webkit-mask: radial-gradient(circle 18px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 18px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 18px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat, radial-gradient(circle 18px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  transition: transform .4s var(--ease);
}
.ticket.won { animation: ticketWin .8s var(--ease); }
@keyframes ticketWin { 30% { transform: scale(1.05) rotate(-2deg); } 60% { transform: scale(.98) rotate(1deg); } }
.ticket-prize { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px 36px; text-align: center; }
.tp-emoji { font-size: 42px; line-height: 1; }
.ticket.won .tp-emoji { animation: jelly .8s .1s; }
.ticket-prize b { font-size: clamp(18px, 2.4vw, 24px); font-weight: 900; color: var(--navy); line-height: 1.5; }
.ticket-prize small { color: var(--muted); font-size: 13.5px; }
.tp-code { display: flex; align-items: center; gap: 10px; margin-top: 8px; background: var(--surface); border: 1.5px dashed #a78bfa; border-radius: 999px; padding: 5px 5px 5px 16px; }
html[dir="rtl"] .tp-code { padding: 5px 16px 5px 5px; }
.tp-code code { font: 800 17px/1 "Poppins", monospace; letter-spacing: 2px; color: var(--violet); user-select: all; }
.scratch { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; transition: opacity .7s var(--ease), transform .7s var(--ease); }
.scratch:active { cursor: grabbing; }
.scratch.done { opacity: 0; transform: scale(1.08); pointer-events: none; }
.scratch-skip { font-size: 13px; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; padding: 6px; }
.scratch-skip:hover { color: var(--violet); }
.scratch-skip[hidden] { display: none; }
[data-theme="dark"] .ticket { background: radial-gradient(circle at 20% 15%, rgba(253, 230, 138, .15), transparent 45%), linear-gradient(135deg, #2a1736, #211a4d 55%, #142a4f); border-color: #5b4bb5; }

/* Sound toggle */
.sound-btn {
  position: fixed; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); right: calc(22px + env(safe-area-inset-right, 0px)); z-index: 55;
  width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface); color: var(--violet); border: 1.5px solid var(--line); box-shadow: var(--shadow);
  transition: transform .3s var(--ease), color .3s;
}
.sound-btn:hover { transform: translateY(-4px) rotate(-8deg); }
.sound-btn .ic { width: 24px; height: 24px; }
.sound-btn .sw { transition: opacity .3s; animation: swPulse 1.6s ease-in-out infinite; }
.sound-btn .sw2 { animation-delay: .3s; }
@keyframes swPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.sound-btn .mute-x { opacity: 0; transition: opacity .3s; }
.sound-btn[aria-pressed="false"] { color: var(--muted); }
.sound-btn[aria-pressed="false"] .sw { opacity: 0; animation: none; }
.sound-btn[aria-pressed="false"] .mute-x { opacity: 1; }
.sound-btn.bump { animation: jelly .5s; }

@media (max-width: 860px) {
  .gift-grid { grid-template-columns: 1fr; gap: 28px; }
  .gift-copy { text-align: center; }
  .gift-steps { justify-items: center; }
}
@media (max-width: 640px) {
  .sound-btn { width: 46px; height: 46px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); right: calc(16px + env(safe-area-inset-right, 0px)); }
  .ticket-prize { padding: 14px 30px; }
  .tp-emoji { font-size: 32px; }
}

/* =========================================================
   Round 6 — talking course cards, moon in the window
   ========================================================= */
.scene .mouth-open { opacity: 0; transform-box: fill-box; transform-origin: center; }
.course-card.talking .scene .mouth { opacity: 0; }
.course-card.talking .scene .mouth-open { opacity: 1; animation: talk .22s ease-in-out infinite alternate; }
@keyframes talk { from { transform: scaleY(.25); } to { transform: scaleY(1.1); } }
.course-card.talking .scene .char { animation-duration: 1.6s; }

.cc-say {
  position: absolute; inset-inline: 10px; bottom: 10px; z-index: 3; padding: 9px 12px; border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px);
  box-shadow: var(--shadow); color: var(--navy); font-size: 12.5px; font-weight: 600; line-height: 1.75; text-align: start;
  opacity: 0; transform: translateY(12px) scale(.96); transition: opacity .3s var(--ease), transform .35s var(--ease); pointer-events: none;
}
.cc-say::before { content: ""; position: absolute; top: -7px; left: 50%; translate: -50% 0; border: 8px solid transparent; border-bottom-color: color-mix(in srgb, var(--surface) 92%, transparent); border-top: 0; }
.cc-say.show { opacity: 1; transform: none; }
.cc-say .hint { display: block; margin-top: 4px; font-size: 11px; color: var(--violet); }
.cc-say .caret { display: inline-block; width: 2px; height: 1em; background: var(--violet); vertical-align: -2px; margin-inline-start: 2px; animation: caret .8s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.cc-thumb { cursor: pointer; }

.night-sky .moon { left: 0; top: 0; margin: -27px 0 0 -27px; }
.course-card { container-type: inline-size; }
.cc-say { inset-inline: 12px; bottom: auto; top: calc(77.5cqw - 14px); font-size: 13px; padding: 11px 14px; }
@media (max-width: 860px) { .hb3 { top: 46%; left: 64%; } }
[data-theme="dark"] .course-card::after { background: radial-gradient(circle at var(--gx, 50%) var(--gy, 0%), rgba(196, 181, 253, .14), transparent 45%); }

/* =========================================================
   Round 7 — scroll-driven intro (walking into the academy)
   ========================================================= */
.scroll-intro { display: none; }
html.intro-on .scroll-intro { display: block; position: relative; height: 420vh; background: #1a1206; }
html.intro-on #intro, html.intro-on .to-top, html.intro-on .scroll-progress { display: none; }
.si-stage { position: sticky; top: 0; height: 100vh; height: 100dvh; overflow: hidden; color: #fff; }
.si-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.si-vignette { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at 50% 45%, transparent 55%, rgba(10, 6, 2, .45) 100%), linear-gradient(to top, rgba(10, 6, 2, .55), transparent 38%); }
.si-top {
  position: absolute; top: 0; inset-inline: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(18px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 0 max(20px, env(safe-area-inset-left, 0px));
}
.si-brand { display: flex; align-items: center; gap: 8px; font: 800 20px/1 "Poppins", sans-serif; letter-spacing: 1px; text-shadow: 0 2px 12px rgba(0,0,0,.4); }
.si-brand svg { width: 28px; height: 28px; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.si-skip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .45); color: #fff; font-weight: 700; font-size: 14px;
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: background .25s, transform .25s var(--ease);
}
.si-skip:hover { background: rgba(255, 255, 255, .3); transform: translateY(-2px); }
.si-skip .arrow { width: 16px; height: 16px; }
html[dir="ltr"] .si-skip .arrow { scale: -1 1; }

.si-lines { position: absolute; inset-inline: 0; bottom: 22%; display: grid; place-items: center; padding-inline: 20px; pointer-events: none; }
.si-line {
  grid-area: 1 / 1; margin: 0; max-width: 820px; text-align: center; font-size: clamp(22px, 3.6vw, 44px); font-weight: 900; line-height: 1.5;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .55), 0 1px 3px rgba(0, 0, 0, .5); text-wrap: balance;
  opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity .6s var(--ease), transform .6s var(--ease), filter .6s;
}
.si-line.big { font-size: clamp(26px, 4.4vw, 56px); }
.si-line.on { opacity: 1; transform: none; filter: none; }
.si-hint { position: absolute; bottom: calc(34px + env(safe-area-inset-bottom, 0px)); left: 50%; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; text-shadow: 0 2px 10px rgba(0,0,0,.5); transition: opacity .4s; white-space: nowrap; }
.si-hint small { font-size: 12px; opacity: .8; min-height: 1em; }
.si-hint.gone { opacity: 0; }
.si-mouse { width: 26px; height: 40px; border: 2px solid #fff; border-radius: 14px; position: relative; }
.si-mouse i { position: absolute; top: 7px; left: 50%; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.6s ease-in-out infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }
.si-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255, 255, 255, .18); }
.si-progress i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(0); background: linear-gradient(90deg, #fde68a, #f472b6, #a78bfa); }
html[dir="rtl"] .si-progress i { transform-origin: right; }
.si-white { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }

/* the hand-off from the intro to the site */
.intro-flash { position: fixed; inset: 0; z-index: 300; background: #fff; pointer-events: none; transition: opacity .9s var(--ease); }
.intro-flash.out { opacity: 0; }

.replay-intro { color: inherit; font-size: inherit; text-decoration: none; }
.replay-intro:hover { color: var(--violet); }

/* Round 8 — the mountain-peak intro (replaces the video) */
html.intro-on .scroll-intro { height: 340vh; background: #f6d9c6; }
.si-bg { position: absolute; inset: -40px; overflow: hidden; }
.si-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: blur(28px) saturate(1.15) brightness(1.04); transform: scale(1.1); }
.si-img { position: absolute; top: 0; left: 0; max-width: none; transform-origin: 0 0; will-change: transform; }
.si-img.full { -webkit-mask-image: none; mask-image: none; }
.si-vignette { background: linear-gradient(to top, rgba(40, 20, 50, .38), transparent 30%); }
.si-glow {
  position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 20%), #fff 0, rgba(255, 252, 235, .95) calc(var(--gr, 40px) * .35), rgba(255, 236, 170, .55) var(--gr, 40px), rgba(255, 220, 150, 0) calc(var(--gr, 40px) * 2.2));
  mix-blend-mode: screen;
}
.si-letters { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.si-letters span {
  position: absolute; left: 0; top: 0; font: 800 26px/1 "Poppins", sans-serif; color: #fff; will-change: transform, opacity;
  text-shadow: 0 0 12px rgba(255, 214, 120, .95), 0 2px 6px rgba(120, 60, 140, .35); opacity: 0;
}
.si-hint { text-shadow: 0 2px 10px rgba(60, 20, 70, .6); }

/* Round 9 — more magic in the intro */
.si-rays {
  position: absolute; left: 0; top: 0; width: 200vmax; height: 200vmax; margin: -100vmax 0 0 -100vmax; pointer-events: none;
  background: repeating-conic-gradient(from 0deg, rgba(255, 244, 205, .2) 0deg 5deg, transparent 5deg 15deg);
  -webkit-mask-image: radial-gradient(circle, #000 0, rgba(0,0,0,.6) 18%, transparent 46%);
          mask-image: radial-gradient(circle, #000 0, rgba(0,0,0,.6) 18%, transparent 46%);
  mix-blend-mode: screen; will-change: transform, opacity;
}
.si-fx { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.si-flares { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; }
.si-flares i { position: absolute; left: 0; top: 0; border-radius: 50%; will-change: transform, opacity; }
.si-flares i:nth-child(1) { width: 90px; height: 90px; margin: -45px; background: radial-gradient(circle, rgba(255, 220, 160, .5), transparent 70%); }
.si-flares i:nth-child(2) { width: 46px; height: 46px; margin: -23px; background: rgba(196, 181, 253, .28); box-shadow: 0 0 20px rgba(196, 181, 253, .4); }
.si-flares i:nth-child(3) { width: 140px; height: 140px; margin: -70px; border: 2px solid rgba(255, 236, 190, .35); background: radial-gradient(circle, transparent 60%, rgba(255, 200, 230, .18)); }
.si-flares i:nth-child(4) { width: 26px; height: 26px; margin: -13px; background: rgba(255, 190, 220, .4); }

.si-birds { position: absolute; inset: 0 0 50% 0; pointer-events: none; transition: opacity .4s; }
.si-birds i { position: absolute; left: -60px; width: 34px; animation: birdFly 22s linear infinite; }
.si-birds i:nth-child(1) { top: 16%; }
.si-birds i:nth-child(2) { top: 22%; width: 26px; animation-delay: -1.2s; animation-duration: 24s; }
.si-birds i:nth-child(3) { top: 12%; width: 22px; animation-delay: -2s; animation-duration: 26s; }
.si-birds svg { display: block; width: 100%; animation: flap .5s ease-in-out infinite alternate; transform-origin: center; }
.si-birds i:nth-child(2) svg { animation-delay: -.2s; } .si-birds i:nth-child(3) svg { animation-delay: -.35s; }
@keyframes birdFly { from { transform: translate(0, 0); } 50% { transform: translate(55vw, -4vh); } to { transform: translate(115vw, 2vh); } }
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(-.35); } }

.si-petals { position: absolute; inset: 0; pointer-events: none; overflow: hidden; transition: opacity .4s; }
.si-petals i {
  position: absolute; top: -6%; width: 12px; height: 9px; border-radius: 70% 0 70% 0; background: linear-gradient(135deg, #ffd1e3, #ff9cc2);
  opacity: .9; animation: petalFall var(--d) linear infinite var(--dl);
}
@keyframes petalFall {
  0% { transform: translate(0, 0) rotate(0); }
  50% { transform: translate(calc(var(--sx) * .5), 55vh) rotate(260deg); }
  100% { transform: translate(var(--sx), 112vh) rotate(540deg); }
}

.si-bubble {
  position: absolute; left: 0; top: 0; padding: 8px 14px; border-radius: 18px; background: #fff; font-size: 22px; line-height: 1;
  box-shadow: 0 10px 24px -8px rgba(80, 40, 110, .45); pointer-events: none; opacity: 0;
  transition: opacity .35s var(--ease);
}
.si-bubble::after { content: ""; position: absolute; bottom: -8px; left: 22px; border: 9px solid transparent; border-top-color: #fff; border-bottom: 0; }
.si-bubble.show { opacity: 1; }

.si-climb { position: absolute; left: 50%; bottom: calc(10px + env(safe-area-inset-bottom, 0px)); translate: -50% 0; width: 240px; height: 44px; pointer-events: none; }
.si-climb svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 1px 3px rgba(60, 20, 70, .5)); }
.sc-sun { position: absolute; right: -8px; top: -12px; font-size: 22px; animation: float 3s ease-in-out infinite; }
.sc-book { position: absolute; left: 0; top: 0; font-size: 20px; will-change: transform; filter: drop-shadow(0 2px 4px rgba(60, 20, 70, .45)); }
.si-hint { bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }

/* Round 10 — gentle arrival from the intro */
.intro-flash { transition: opacity 1.6s cubic-bezier(.33, 0, .2, 1); }
html.arriving { overflow: hidden; }
html.arriving .site-header, html.arriving .hero { animation: arrive 1.7s cubic-bezier(.22, .8, .25, 1) both; }
html.arriving .site-header { animation-name: arriveHeader; }
@keyframes arrive { from { transform: scale(1.07); filter: blur(10px) brightness(1.25); } to { transform: none; filter: none; } }
@keyframes arriveHeader { from { transform: translateY(-24px); opacity: 0; } 30% { opacity: 0; } to { transform: none; opacity: 1; } }

/* Round 11 — intro glitch fixes */
/* birds flap without ever folding flat into a line */
@keyframes flap { from { transform: scaleY(1); } to { transform: scaleY(.45) translateY(2px); } }
/* the climbing path sits on a frosted pill so it reads as a control, not a stray line */
.si-climb {
  width: 260px; height: 50px; padding: 4px 14px; box-sizing: border-box; border-radius: 999px;
  background: rgba(255, 255, 255, .22); border: 1px solid rgba(255, 255, 255, .45);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 8px 24px -10px rgba(60, 20, 70, .45);
}
.si-climb svg { filter: none; }
.sc-sun { right: 6px; top: -10px; }
.sc-book { left: 14px; top: 4px; }

/* Testimonials slideshow */
.t-stage { position: relative; }
.t-show { position: relative; display: grid; padding: 12px 0 6px; outline: none; touch-action: pan-y; user-select: none; }
.t-show:focus-visible { outline: 3px solid rgba(109, 74, 255, .35); outline-offset: 6px; border-radius: var(--r-lg); }
.t-show .t-card {
  --side: 0;
  grid-area: 1 / 1; justify-self: center; width: min(660px, 100%); padding: 34px 36px;
  opacity: 0; visibility: hidden; pointer-events: none; z-index: 1; filter: blur(3px);
  transform: translateX(calc(var(--side) * 54%)) scale(.78);
  transition: transform .75s cubic-bezier(.22, .8, .25, 1), opacity .6s ease, filter .6s ease, visibility .75s, box-shadow .6s;
}
.t-show .t-card.is-next { --side: 1; }
.t-show .t-card.is-prev { --side: -1; }
html[dir="rtl"] .t-show .t-card.is-next { --side: -1; }
html[dir="rtl"] .t-show .t-card.is-prev { --side: 1; }
.t-show .t-card.is-next, .t-show .t-card.is-prev { visibility: visible; opacity: .42; pointer-events: auto; cursor: pointer; z-index: 2; }
.t-show .t-card.is-active { opacity: 1; visibility: visible; pointer-events: auto; z-index: 3; filter: none; transform: none; box-shadow: var(--shadow-lg); }
.t-show .t-card:hover { transform: translateX(calc(var(--side) * 54%)) scale(.8); }
.t-show .t-card.is-active:hover { transform: translateY(-4px); }
.t-show .t-card.is-next:hover, .t-show .t-card.is-prev:hover { opacity: .7; }
.t-show .t-card blockquote { font-size: 16.5px; }
.t-show .t-card.is-active blockquote { animation: quoteIn .8s .2s both; }
.t-show .t-card.is-active .stars { animation: starsIn .7s .1s both; }
.t-show .t-card.is-active .avatar { animation: jelly .7s .35s both; }
@keyframes quoteIn { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes starsIn { from { opacity: 0; letter-spacing: 10px; } to { opacity: 1; letter-spacing: 2px; } }

.t-dots { display: flex; justify-content: center; gap: 2px; margin-top: 18px; }
.t-dot { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 999px; transition: width .45s var(--ease); }
.t-dot span { position: relative; display: block; width: 10px; height: 10px; border-radius: 999px; background: var(--line); overflow: hidden; transition: width .45s var(--ease), background .3s; }
.t-dot:hover span { background: #c4b5fd; }
.t-dot.is-active { width: 52px; }
.t-dot.is-active span { width: 40px; background: color-mix(in srgb, var(--violet) 22%, transparent); }
.t-dot.is-active span::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--grad);
  transform-origin: left; animation: dotFill 5.5s linear forwards;
}
html[dir="rtl"] .t-dot.is-active span::after { transform-origin: right; }
.t-stage.paused .t-dot.is-active span::after { animation-play-state: paused; }
@keyframes dotFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .t-dot.is-active span::after { animation: none; transform: none; } }

@media (max-width: 760px) {
  .t-show .t-card { padding: 26px 22px; }
  .t-show .t-card.is-next, .t-show .t-card.is-prev { opacity: 0; visibility: hidden; pointer-events: none; }
  .t-show .t-card:hover { transform: translateX(calc(var(--side) * 30%)) scale(.9); }
  .t-show .t-card { transform: translateX(calc(var(--side) * 30%)) scale(.9); }
}

/* =========================================================
   Round 12 — hero seam fix, prettier climb, tasteful extras
   ========================================================= */

/* The hero picture fades out through its own mask instead of being covered by an overlay:
   during the zoom/parallax animation the overlay could leave a 1px seam at the picture's edge. */
@media (min-width: 861px) {
  .hero-art {
    -webkit-mask-image: linear-gradient(to left, transparent 0, #000 9%), linear-gradient(to top, transparent 0, #000 12%);
    -webkit-mask-composite: source-in;
            mask-image: linear-gradient(to left, transparent 0, #000 9%), linear-gradient(to top, transparent 0, #000 12%);
            mask-composite: intersect;
  }
  html[dir="ltr"] .hero-art {
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 9%), linear-gradient(to top, transparent 0, #000 12%);
            mask-image: linear-gradient(to right, transparent 0, #000 9%), linear-gradient(to top, transparent 0, #000 12%);
  }
}

/* ---- Intro progress: a little blue book walking up a glowing mountain path ---- */
.si-climb {
  width: 300px; height: 70px; padding: 0 56px 0 10px; border-radius: 22px; overflow: visible;
  background: linear-gradient(180deg, rgba(255, 255, 255, .34), rgba(255, 255, 255, .14));
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: 0 12px 30px -12px rgba(70, 30, 90, .5), inset 0 1px 0 rgba(255, 255, 255, .6);
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
}
.si-climb .sc-svg { width: 100%; height: 100%; display: block; overflow: visible; border-radius: 22px 0 0 22px; }
.sc-track { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 2.5; stroke-dasharray: 1 7; stroke-linecap: round; }
.sc-fill { fill: none; stroke: url(#scFill); stroke-width: 4.5; stroke-linecap: round; filter: drop-shadow(0 0 4px rgba(244, 114, 182, .6)); }

.sc-rays { transform-origin: 0 0; animation: spin 9s linear infinite; }
.sc-sun-glow { transform-origin: 0 0; animation: sunPulse 2.2s ease-in-out infinite; }
@keyframes sunPulse { 50% { transform: scale(1.25); opacity: .75; } }
.si-climb.near .sc-sun-glow { animation-duration: .9s; }
.si-climb.near .sc-rays { animation-duration: 3s; }
.si-climb .sc-book {
  position: absolute; left: 0; top: 0; width: 26px; height: 29px; filter: drop-shadow(0 3px 4px rgba(40, 20, 80, .35));
  animation: none; transition: none;
}
.sc-pct {
  position: absolute; right: 12px; top: 50%; translate: 0 -50%; min-width: 40px; text-align: center;
  font: 800 15px/1 "Vazirmatn", "Poppins", sans-serif; color: #fff; text-shadow: 0 1px 6px rgba(60, 20, 80, .55);
  padding: 7px 8px; border-radius: 12px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .4);
}
.si-climb.near .sc-pct { background: linear-gradient(135deg, #f472b6, #fbbf24); border-color: transparent; }
.sc-trail { position: absolute; inset: 0; pointer-events: none; }
.sc-trail i {
  position: absolute; width: 6px; height: 6px; margin: -3px; border-radius: 50%;
  background: radial-gradient(circle, #fff, #fde68a 60%, transparent 70%);
  animation: trailFade .9s ease-out forwards;
}
@keyframes trailFade { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: translateY(-10px) scale(.2); } }
@media (max-width: 640px) { .si-climb { width: 270px; height: 64px; } }

/* ---- Tasteful extras across the site ---- */
/* the logo's N draws itself in */
.site-header .logo-mark path:first-child { stroke-dasharray: 120; stroke-dashoffset: 0; animation: drawN 1.4s .2s cubic-bezier(.65, 0, .35, 1) both; }
html.arriving .site-header .logo-mark path:first-child { animation: drawN 1.4s .6s cubic-bezier(.65, 0, .35, 1) both; }
@keyframes drawN { from { stroke-dashoffset: 120; } to { stroke-dashoffset: 0; } }

/* a soft "breathing" halo on the main call to action */
.hero-ctas .btn-primary { animation: ctaPulse 3.2s ease-out infinite 2.5s; }
@keyframes ctaPulse {
  0% { box-shadow: 0 10px 24px -8px rgba(109, 74, 255, .6), 0 0 0 0 rgba(139, 92, 246, .45); }
  70%, 100% { box-shadow: 0 10px 24px -8px rgba(109, 74, 255, .6), 0 0 0 16px rgba(139, 92, 246, 0); }
}

/* headings wipe in, in the reading direction */
:is(.section-head.reveal, .reveal .section-head, .dash-copy.reveal, .tools-copy.reveal, .gift-copy.reveal) h2 {
  -webkit-mask-image: linear-gradient(to left, #000 40%, transparent 60%);
          mask-image: linear-gradient(to left, #000 40%, transparent 60%);
  -webkit-mask-size: 260% 100%; mask-size: 260% 100%;
  -webkit-mask-position: 0 0; mask-position: 0 0;
  transition: -webkit-mask-position 1.2s cubic-bezier(.22, .8, .25, 1) .1s, mask-position 1.2s cubic-bezier(.22, .8, .25, 1) .1s;
}
:is(.section-head.reveal.in, .reveal.in .section-head, .dash-copy.reveal.in, .tools-copy.reveal.in, .gift-copy.reveal.in) h2 {
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
}
html[dir="ltr"] :is(.section-head.reveal, .reveal .section-head, .dash-copy.reveal, .tools-copy.reveal, .gift-copy.reveal) h2 {
  -webkit-mask-image: linear-gradient(to right, #000 40%, transparent 60%);
          mask-image: linear-gradient(to right, #000 40%, transparent 60%);
  -webkit-mask-position: 100% 0; mask-position: 100% 0;
}
html[dir="ltr"] :is(.section-head.reveal.in, .reveal.in .section-head, .dash-copy.reveal.in, .tools-copy.reveal.in, .gift-copy.reveal.in) h2 {
  -webkit-mask-position: 0 0; mask-position: 0 0;
}

/* course cards tip up into place */
.course-grid { perspective: 1200px; }
.course-card.reveal:not(.in) { transform: rotateX(24deg) translateY(46px) scale(.95); transform-origin: 50% 100%; }

/* a soft light follows the pointer across feature cards */
:is(.why-grid li, .tool-list li) { position: relative; }
:is(.why-grid li, .tool-list li)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 92, 246, .13), transparent 65%);
}
:is(.why-grid li, .tool-list li):hover::after { opacity: 1; }

/* stats give a little pop when their count finishes */
.stat-list li.counted b { animation: countPop .6s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes countPop { 40% { transform: scale(1.18); color: var(--violet); } }
.stat-list li.counted .si { animation: jelly .7s .1s; }

@media (prefers-reduced-motion: reduce) {
  .site-header .logo-mark path:first-child, .hero-ctas .btn-primary { animation: none; }
  :is(.section-head, .dash-copy, .tools-copy, .gift-copy) h2 { -webkit-mask-image: none !important; mask-image: none !important; }
}

/* =========================================================
   Round 13 — night picture for the dark theme, goodbye books
   ========================================================= */
.hero-art .hero-night { position: absolute; inset: 0; opacity: 0; transition: opacity .9s ease; }
[data-theme="dark"] .hero-art img { filter: none; }
[data-theme="dark"] .hero-art .hero-day { filter: brightness(.62) saturate(.9); }
[data-theme="dark"] .hero-art .hero-night { opacity: 1; }
/* the night picture has its own moon and stars; keep only the fireflies on top */
[data-theme="dark"] .night-sky :is(.moon, .star, .shooting-star) { display: none; }
[data-theme="dark"] .hero-art::after {
  background:
    linear-gradient(to left, var(--bg) 0%, color-mix(in srgb, var(--bg) 85%, transparent) 10%, transparent 34%),
    linear-gradient(to top, var(--bg) 0%, transparent 26%);
}
html[dir="ltr"][data-theme="dark"] .hero-art::after {
  background:
    linear-gradient(to right, var(--bg) 0%, color-mix(in srgb, var(--bg) 85%, transparent) 10%, transparent 34%),
    linear-gradient(to top, var(--bg) 0%, transparent 26%);
}

/* Goodbye books sitting on the footer's top edge */
@property --wave { syntax: "<angle>"; inherits: true; initial-value: 0deg; }
.site-footer { position: relative; }
.footer-books {
  position: absolute; top: -62px; inset-inline-end: max(24px, calc(50% - 570px));
  display: flex; align-items: flex-end; gap: 0; cursor: pointer; z-index: 2;
}
.fb-book { width: 62px; height: 68px; transform-origin: 50% 100%; animation: fbIdle 3.4s ease-in-out infinite; filter: drop-shadow(0 6px 6px rgba(40, 30, 90, .18)); }
.fb-book.b2 { width: 56px; height: 62px; margin-inline-start: -10px; animation-delay: -1.7s; }
.fb-book.b1 { rotate: -6deg; } .fb-book.b2 { rotate: 5deg; }
@keyframes fbIdle { 0%, 100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-3px) scaleY(1.02); } }
.footer-books.hello .fb-book { animation: fbHello 2.4s cubic-bezier(.3, 1.3, .5, 1) 1, fbIdle 3.4s ease-in-out 2.4s infinite; }
.footer-books.hello .fb-book.b2 { animation-delay: .18s, 2.6s; }
@keyframes fbHello {
  0% { transform: translateY(0); --wave: 0deg; }
  12% { transform: translateY(-16px); --wave: -125deg; }
  24% { transform: translateY(0); --wave: -95deg; }
  38% { --wave: -130deg; } 52% { --wave: -95deg; } 66% { --wave: -130deg; } 80% { --wave: -100deg; }
  100% { transform: translateY(0); --wave: 0deg; }
}
.fb-bubble {
  position: absolute; bottom: calc(100% + 8px); inset-inline-end: 6px; padding: 8px 14px; border-radius: 16px;
  background: var(--surface); color: var(--navy); font-size: 13.5px; font-weight: 700; white-space: nowrap;
  box-shadow: var(--shadow); opacity: 0; transform: translateY(8px) scale(.85); transform-origin: bottom center;
  transition: opacity .3s var(--ease), transform .35s cubic-bezier(.3, 1.6, .5, 1); pointer-events: none;
}
.fb-bubble::after { content: ""; position: absolute; top: 100%; inset-inline-end: 28px; border: 8px solid transparent; border-top-color: var(--surface); border-bottom: 0; }
.fb-bubble.show { opacity: 1; transform: none; }
.fb-z { position: absolute; top: -6px; inset-inline-start: -4px; display: none; pointer-events: none; }
.fb-z i { position: absolute; font: 800 14px/1 "Poppins", sans-serif; font-style: normal; color: #c4b5fd; opacity: 0; animation: zFloat 3s ease-in infinite; }
.fb-z i:nth-child(2) { animation-delay: 1s; font-size: 17px; } .fb-z i:nth-child(3) { animation-delay: 2s; font-size: 21px; }
@keyframes zFloat { 0% { transform: translate(0, 0) rotate(-10deg); opacity: 0; } 20% { opacity: 1; } 100% { transform: translate(-22px, -46px) rotate(10deg); opacity: 0; } }
/* night: eyes closed, slow breathing, zZz */
[data-theme="dark"] .fb-book { --eo: 0; --ec: 1; animation: fbSleep 3.6s ease-in-out infinite; }
[data-theme="dark"] .footer-books.hello .fb-book { animation: fbSleep 3.6s ease-in-out infinite; }
[data-theme="dark"] .fb-z { display: block; }
@keyframes fbSleep { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.03, .97); } }
[data-theme="dark"] .footer-books.stir .fb-book { animation: fbStir .6s ease-in-out, fbSleep 3.6s ease-in-out .6s infinite; }
@keyframes fbStir { 25% { transform: rotate(-4deg); } 75% { transform: rotate(4deg); } }
@media (max-width: 640px) { .footer-books { top: -52px; } .fb-book { width: 52px; height: 57px; } .fb-book.b2 { width: 46px; height: 51px; } }
@media (prefers-reduced-motion: reduce) { .fb-book, .fb-z i { animation: none !important; } }
