/* ============ Rojina Academy — public landing ============ */
:root {
  --bg: #0a0908;
  --panel: #151311;
  --panel-2: #1e1b16;
  --gold: #cba85a;
  --gold-bright: #e6ce7b;
  --gold-deep: #9c7a33;
  --gold-soft: #d9c28e;
  --text: #e9e2d2;
  --muted: #988f7c;
  --white-warm: #f5f1e8;
  --border: rgba(203, 168, 90, 0.16);
  --metal: linear-gradient(170deg, #ebd688 0%, #d6b45e 42%, #b68f3c 72%, #8a6a2f 100%);
  --serif: 'Cormorant Garamond', 'Vazirmatn', serif;
  --sans: 'DM Sans', 'Vazirmatn', sans-serif;
  --display: 'Cinzel', 'Vazirmatn', serif;
}
html[lang='ku'] {
  --serif: 'Vazirmatn', serif;
  --sans: 'Vazirmatn', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  line-height: 1.6;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ambient gold glows */
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 80% -10%, rgba(203, 168, 90, 0.10), transparent 60%),
    radial-gradient(700px 600px at -10% 40%, rgba(203, 168, 90, 0.05), transparent 60%),
    radial-gradient(800px 500px at 50% 110%, rgba(156, 122, 51, 0.08), transparent 60%);
}

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

/* ============ nav ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(10, 9, 8, 0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; object-fit: contain; }
.brand-name { font-family: var(--serif); font-weight: 700; font-size: 17px; letter-spacing: 0.02em; color: var(--white-warm); white-space: nowrap; }
.nav-links { display: flex; gap: 24px; margin-inline-start: auto; }
.nav-links a { font-size: 14px; color: var(--muted); font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--gold-bright); }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-toggle {
  background: transparent; border: 1px solid var(--border); color: var(--gold-soft);
  font-family: var(--sans); font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em;
  padding: 7px 14px; border-radius: 999px; cursor: pointer; transition: all 0.2s;
}
.lang-toggle:hover { border-color: var(--gold); color: var(--gold-bright); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; font-weight: 700; transition: all 0.22s; cursor: pointer;
}
.btn-gold { background: var(--metal); color: #1a1408; box-shadow: 0 4px 24px rgba(203, 168, 90, 0.25); }
.btn-gold:hover { transform: translateY(-1px); box-shadow: 0 8px 32px rgba(203, 168, 90, 0.4); }
.btn-sm { padding: 8px 18px; font-size: 13px; }

/* ============ hero ============ */
.hero {
  max-width: 1180px; margin: 0 auto; padding: 72px 24px 48px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
}
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  color: var(--gold); font-size: 13px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; margin-bottom: 20px;
}
.eyebrow-line { width: 36px; height: 1px; background: var(--metal); }
.hero-title {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(38px, 5.2vw, 62px); line-height: 1.12; letter-spacing: -0.01em;
  color: var(--white-warm); margin-bottom: 20px;
  background: linear-gradient(180deg, #f5f1e8 30%, #d9c28e 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
html[lang='ku'] .hero-title { line-height: 1.45; font-size: clamp(32px, 4.6vw, 54px); }
.hero-sub { font-size: 17px; color: var(--muted); max-width: 520px; margin-bottom: 32px; }
.hero-points { list-style: none; margin-top: 32px; display: grid; gap: 10px; }
.hero-points li { color: var(--gold-soft); font-size: 14px; display: flex; align-items: center; gap: 10px; }
.hero-points li::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--metal); flex-shrink: 0; box-shadow: 0 0 8px rgba(203, 168, 90, 0.6);
}

/* store badges */
.store-badges { display: flex; flex-wrap: wrap; gap: 14px; }
.store-badges.center { justify-content: center; }
.store-badge {
  position: relative; display: flex; align-items: center; gap: 12px;
  background: #111009; border: 1px solid rgba(203, 168, 90, 0.3);
  border-radius: 14px; padding: 10px 20px; min-width: 178px;
  transition: all 0.22s; direction: ltr;
}
.store-badge:hover { border-color: var(--gold); transform: translateY(-2px); box-shadow: 0 10px 30px rgba(203, 168, 90, 0.18); }
.badge-icon { width: 26px; height: 26px; color: var(--white-warm); flex-shrink: 0; }
.badge-text { display: flex; flex-direction: column; line-height: 1.25; font-family: 'DM Sans', sans-serif; }
.badge-text small { font-size: 10px; color: var(--muted); letter-spacing: 0.04em; }
.badge-text strong { font-size: 17px; color: var(--white-warm); font-weight: 600; letter-spacing: 0.01em; }
.soon-chip {
  position: absolute; top: -9px; inset-inline-end: 10px;
  background: var(--metal); color: #1a1408; font-size: 10px; font-weight: 800;
  padding: 2px 9px; border-radius: 999px; font-family: var(--sans);
}

/* ============ phone mockup ============ */
.hero-phone { position: relative; display: flex; justify-content: center; }
.phone-glow {
  position: absolute; inset: 10% 18%; z-index: 0; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(203, 168, 90, 0.22), transparent);
  filter: blur(30px);
}
.phone {
  position: relative; z-index: 1; width: 290px; height: 600px;
  background: #060504; border: 1px solid rgba(203, 168, 90, 0.35); border-radius: 44px;
  padding: 14px; box-shadow: 0 40px 80px rgba(0, 0, 0, 0.6), inset 0 0 0 2px rgba(255, 255, 255, 0.03);
  transform: rotate(-4deg);
}
.phone-notch {
  position: absolute; top: 22px; left: 50%; transform: translateX(-50%);
  width: 92px; height: 24px; background: #060504; border-radius: 999px; z-index: 3;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.phone-screen {
  width: 100%; height: 100%; border-radius: 32px; overflow: hidden;
  background: linear-gradient(180deg, #12100d 0%, #0a0908 100%);
  padding: 56px 16px 16px; display: flex; flex-direction: column; gap: 14px;
}
.mock-row { display: flex; align-items: center; gap: 10px; }
.mock-grow { flex: 1; display: grid; gap: 6px; }
.mock-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--metal); opacity: 0.85; }
.mock-streak {
  font-size: 11px; font-weight: 700; color: var(--gold-bright);
  background: rgba(203, 168, 90, 0.12); border-radius: 999px; padding: 4px 9px;
}
.mock-line { height: 9px; border-radius: 5px; background: rgba(233, 226, 210, 0.12); }
.mock-line.strong { background: rgba(233, 226, 210, 0.28); height: 10px; }
.mock-line.gold { background: rgba(203, 168, 90, 0.45); }
.mock-line.w40 { width: 40%; } .mock-line.w50 { width: 50%; }
.mock-line.w60 { width: 60%; } .mock-line.w80 { width: 80%; }
.mock-search { height: 38px; border-radius: 12px; background: rgba(233, 226, 210, 0.06); border: 1px solid rgba(203, 168, 90, 0.12); }
.mock-card {
  border-radius: 16px; overflow: hidden; background: var(--panel-2);
  border: 1px solid rgba(203, 168, 90, 0.18);
}
.mock-cover { height: 110px; background: linear-gradient(135deg, #2a2419, #15120c); }
.mock-cover img { width: 100%; height: 100%; object-fit: cover; opacity: 0.92; }
.mock-card-body { padding: 12px; display: grid; gap: 8px; }
.mock-progress { height: 5px; border-radius: 3px; background: rgba(233, 226, 210, 0.1); overflow: hidden; }
.mock-progress span { display: block; height: 100%; width: 64%; background: var(--metal); border-radius: 3px; }
.mock-chiprow { display: flex; gap: 8px; }
.mock-chip { height: 26px; flex: 1; border-radius: 999px; background: rgba(233, 226, 210, 0.07); }
.mock-chip.active { background: rgba(203, 168, 90, 0.35); }
.mock-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; }
.mock-tile { border-radius: 14px; background: rgba(233, 226, 210, 0.05); border: 1px solid rgba(203, 168, 90, 0.1); }
.mock-tabbar {
  height: 46px; border-radius: 999px; background: rgba(233, 226, 210, 0.05);
  border: 1px solid rgba(203, 168, 90, 0.12);
  display: flex; align-items: center; justify-content: space-around;
}
.mock-tabbar .dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(233, 226, 210, 0.18); }
.mock-tabbar .dot.active { background: var(--gold); box-shadow: 0 0 10px rgba(203, 168, 90, 0.8); }

/* ============ stats ============ */
.stats {
  max-width: 1180px; margin: 24px auto 0; padding: 28px 24px;
  display: flex; align-items: center; justify-content: space-around; gap: 12px;
  border-block: 1px solid var(--border);
}
.stat { text-align: center; }
.stat strong {
  display: block; font-family: var(--serif); font-size: clamp(30px, 4vw, 46px); font-weight: 700;
  background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.2;
}
.stat span { font-size: 13px; color: var(--muted); font-weight: 500; }
.stat-sep { width: 1px; height: 44px; background: var(--border); }

/* ============ featured slideshow ============ */
.slideshow { max-width: 1180px; margin: 84px auto 0; padding: 0 24px; }
.slides-frame { position: relative; }
.slides {
  position: relative; aspect-ratio: 21 / 8; border-radius: 24px; overflow: hidden;
  border: 1px solid var(--border); background: var(--panel);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}
.slides:empty { animation: pulse 1.4s ease-in-out infinite; }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; display: block; }
.slide.active { opacity: 1; z-index: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.slide.active img { animation: kenburns 6s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.07); } to { transform: scale(1); } }
.slide-shade {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(10, 9, 8, 0.88) 0%, rgba(10, 9, 8, 0.25) 42%, transparent 65%);
}
.slide-caption {
  position: absolute; bottom: 20px; inset-inline: 24px; z-index: 2;
  display: grid; gap: 7px; justify-items: start;
}
.slide.active .slide-caption { animation: capIn 0.8s ease 0.15s both; }
@keyframes capIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.slide-title {
  font-family: var(--serif); font-weight: 700; color: var(--white-warm);
  font-size: clamp(18px, 2.6vw, 30px); line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.slide-teacher { font-size: 13px; color: var(--gold-soft); font-weight: 600; }
.slide-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 9, 8, 0.55); backdrop-filter: blur(8px);
  border: 1px solid rgba(203, 168, 90, 0.35); color: var(--gold-bright);
  transition: all 0.2s;
}
.slide-arrow svg { width: 20px; height: 20px; }
html[dir='rtl'] .slide-arrow svg { transform: scaleX(-1); }
.slide-arrow:hover { background: rgba(203, 168, 90, 0.25); border-color: var(--gold); }
.slide-arrow.prev { inset-inline-start: 14px; }
.slide-arrow.next { inset-inline-end: 14px; }
.slide-dots { display: flex; justify-content: center; gap: 8px; margin-top: 14px; }
.slide-dot {
  width: 8px; height: 8px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(233, 226, 210, 0.18); padding: 0; transition: all 0.3s;
}
.slide-dot.active { width: 26px; background: var(--metal); box-shadow: 0 0 10px rgba(203, 168, 90, 0.5); }
@media (max-width: 640px) {
  .slides { aspect-ratio: 16 / 10; border-radius: 18px; }
  .slide-arrow { width: 34px; height: 34px; }
  .slideshow { margin-top: 64px; }
}

/* ============ sections ============ */
.section { max-width: 1180px; margin: 0 auto; padding: 84px 24px 0; }
.section-head { margin-bottom: 36px; }
.section-title {
  font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3.6vw, 42px);
  color: var(--white-warm); margin-bottom: 8px;
}
.section-sub { color: var(--muted); font-size: 15px; }

/* course grid */
.course-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.course-card {
  background: var(--panel); border: 1px solid var(--border); border-radius: 18px;
  overflow: hidden; transition: all 0.28s; display: flex; flex-direction: column;
}
.course-card:hover {
  transform: translateY(-5px); border-color: rgba(203, 168, 90, 0.45);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.5), 0 4px 18px rgba(203, 168, 90, 0.1);
}
.course-card.skeleton { min-height: 280px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 0.9; } }
.course-cover { position: relative; aspect-ratio: 16/9.4; background: linear-gradient(135deg, #241f15, #14110b); overflow: hidden; }
.course-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.course-card:hover .course-cover img { transform: scale(1.05); }
.course-cover .fallback {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 40px; font-weight: 700;
  background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.course-chips { position: absolute; top: 10px; inset-inline-start: 10px; display: flex; gap: 6px; }
.chip {
  font-size: 10.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: rgba(10, 9, 8, 0.78); backdrop-filter: blur(8px);
  color: var(--gold-bright); border: 1px solid rgba(203, 168, 90, 0.3);
}
.course-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.course-title { font-size: 15px; font-weight: 700; color: var(--text); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.course-teacher { font-size: 12.5px; color: var(--muted); }
.course-cta {
  margin-top: auto; padding-top: 10px; font-size: 12.5px; font-weight: 700; color: var(--gold);
  display: flex; align-items: center; gap: 6px;
}
.course-cta svg { width: 14px; height: 14px; transition: transform 0.2s; }
html[dir='ltr'] .course-card:hover .course-cta svg { transform: translateX(3px); }
html[dir='rtl'] .course-card:hover .course-cta svg { transform: translateX(-3px) scaleX(-1); }
html[dir='rtl'] .course-cta svg { transform: scaleX(-1); }

/* teachers strip */
.teacher-strip {
  display: flex; gap: 16px; overflow-x: auto; padding: 4px 4px 18px;
  scrollbar-width: thin; scrollbar-color: rgba(203, 168, 90, 0.3) transparent;
}
.teacher-strip::-webkit-scrollbar { height: 6px; }
.teacher-strip::-webkit-scrollbar-thumb { background: rgba(203, 168, 90, 0.25); border-radius: 3px; }
.teacher-card {
  flex: 0 0 168px; text-align: center; padding: 22px 14px 18px;
  background: var(--panel); border: 1px solid var(--border); border-radius: 18px;
  transition: all 0.25s;
}
.teacher-card:hover { border-color: rgba(203, 168, 90, 0.45); transform: translateY(-4px); }
.teacher-avatar {
  width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 12px;
  padding: 2.5px; background: var(--metal);
}
.teacher-avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: var(--panel-2); }
.teacher-name { font-size: 13.5px; font-weight: 700; color: var(--text); line-height: 1.4; }
.teacher-meta { font-size: 11.5px; color: var(--muted); margin-top: 4px; }

/* ============ download band ============ */
.dl-band {
  max-width: 1080px; margin: 96px auto 0; padding: 64px 32px; text-align: center;
  background:
    radial-gradient(600px 280px at 50% 0%, rgba(203, 168, 90, 0.12), transparent 70%),
    var(--panel);
  border: 1px solid var(--border); border-radius: 28px;
}
.dl-mark { width: 64px; height: 64px; margin: 0 auto 18px; object-fit: contain; }
.dl-title { font-family: var(--serif); font-weight: 700; font-size: clamp(28px, 3.6vw, 44px); color: var(--white-warm); margin-bottom: 10px; }
.dl-sub { color: var(--muted); font-size: 15.5px; max-width: 460px; margin: 0 auto 32px; }

/* ============ footer ============ */
.footer { margin-top: 96px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1180px; margin: 0 auto; padding: 36px 24px; text-align: center; display: grid; gap: 18px; justify-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 22px; justify-content: center; }
.footer-links a { font-size: 13px; color: var(--muted); transition: color 0.2s; }
.footer-links a:hover { color: var(--gold-bright); }
.footer-copy { font-size: 12px; color: rgba(152, 143, 124, 0.7); }

/* ============ reveal animation ============ */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.shown { opacity: 1; transform: none; }

/* ============ responsive ============ */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 48px; text-align: center; }
  .eyebrow, .store-badges { justify-content: center; }
  .hero-sub { margin-inline: auto; }
  .hero-points { justify-items: center; }
  .hero-phone { margin-top: 12px; }
  .course-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
}
@media (max-width: 540px) {
  .course-grid { grid-template-columns: 1fr; }
  .stats { flex-wrap: wrap; gap: 20px; }
  .stat-sep { display: none; }
  .stat { flex: 1 1 38%; }
  .phone { width: 250px; height: 520px; }
  .brand-name { font-size: 14px; }
}
