@font-face { font-family: Vazirmatn; font-weight: 400; font-display: swap; src: url(/assets/fonts/Vazirmatn-Regular.woff2) format('woff2'); }
@font-face { font-family: Vazirmatn; font-weight: 500; font-display: swap; src: url(/assets/fonts/Vazirmatn-Medium.woff2) format('woff2'); }
@font-face { font-family: Vazirmatn; font-weight: 700; font-display: swap; src: url(/assets/fonts/Vazirmatn-Bold.woff2) format('woff2'); }
@font-face { font-family: Vazirmatn; font-weight: 800; font-display: swap; src: url(/assets/fonts/Vazirmatn-ExtraBold.woff2) format('woff2'); }

:root {
  --bg: #050816;
  --text: #e8eefc;
  --muted: #9aa8c7;
  --accent: #5eead4;
  --accent2: #a78bfa;
  --card: rgba(15, 23, 48, 0.55);
  --card-border: rgba(148, 163, 255, 0.18);
}

* { box-sizing: border-box; margin: 0; }
html, body { height: 100%; }
body {
  font-family: Vazirmatn, Tahoma, sans-serif;
  background: radial-gradient(1200px 700px at 50% 30%, #0d1636 0%, var(--bg) 60%) fixed, var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
#bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.veil { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(5, 8, 22, 0.75) 100%); }
main { position: relative; z-index: 2; }

.hero {
  min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2.4rem; padding: 2rem 16px; text-align: center;
}
.title {
  font-weight: 800; line-height: 1.35;
  font-size: 1.15rem;  /* same as .btn */
  background: linear-gradient(100deg, #f0f9ff 10%, var(--accent) 50%, var(--accent2) 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(94, 234, 212, 0.15);
}
.subtitle { color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.25rem); font-weight: 500; }

.btn {
  display: inline-flex; align-items: center; gap: .7rem;
  padding: 1rem 2.2rem; border-radius: 999px;
  font: 700 1.15rem/1 Vazirmatn, sans-serif; color: #04121a; text-decoration: none;
  background: linear-gradient(100deg, var(--accent), #7dd3fc 55%, var(--accent2));
  box-shadow: 0 10px 40px -10px rgba(94, 234, 212, 0.6), inset 0 1px 0 rgba(255,255,255,.5);
  transition: transform .2s, box-shadow .2s;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(167, 139, 250, 0.7); outline: none; }
.btn svg { width: 1.2em; height: 1.2em; }

/* course list */
.page { max-width: 1080px; margin: 0 auto; padding: 4.5rem 16px 4rem; }
.page header { text-align: center; margin-bottom: 2.8rem; }
.page .title { font-size: clamp(1.8rem, 5vw, 3.2rem); }
.page .subtitle { margin-top: .8rem; }
.back { display: inline-block; margin-bottom: 1.4rem; color: var(--muted); text-decoration: none; font-size: .95rem; }
.back:hover { color: var(--accent); }

.live-wrap { display: flex; justify-content: center; margin-bottom: 2rem; }
.live {
  display: inline-flex; align-items: center; gap: .75rem; max-width: 100%;
  padding: .95rem 1.8rem; border-radius: 999px; text-decoration: none;
  font: 600 1.1rem/1.5 Vazirmatn, sans-serif;
  color: var(--muted); background: rgba(15, 23, 48, .5); border: 1px dashed rgba(148, 163, 255, .25);
  cursor: not-allowed; user-select: none;
}
.live b { font-weight: 700; }
.live .dot { flex: none; width: .7rem; height: .7rem; border-radius: 50%; background: #64748b; }
.live.on {
  color: #fff; cursor: pointer; user-select: auto; border: 1px solid rgba(248, 113, 113, .6);
  background: linear-gradient(100deg, rgba(220, 38, 38, .85), rgba(190, 24, 93, .85));
  box-shadow: 0 10px 40px -10px rgba(239, 68, 68, .7);
  transition: transform .2s, box-shadow .2s;
}
.live.on:hover, .live.on:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 50px -10px rgba(239, 68, 68, .9); outline: none; }
.live.on .dot { background: #fff; animation: pulse 1.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.8); } 100% { box-shadow: 0 0 0 .7rem rgba(255,255,255,0); } }
@media (prefers-reduced-motion: reduce) { .live.on .dot { animation: none; } }

.courses { list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.course {
  display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.3rem;
  border-radius: 18px; text-decoration: none; color: var(--text);
  background: var(--card); border: 1px solid var(--card-border);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  transition: transform .2s, border-color .2s, background .2s;
}
.course:hover, .course:focus-visible { transform: translateY(-3px); border-color: rgba(94, 234, 212, .55); background: rgba(20, 32, 66, .7); outline: none; }
.course .num {
  flex: none; width: 2.6rem; height: 2.6rem; border-radius: 12px; display: grid; place-items: center;
  font-weight: 700; color: var(--accent); background: rgba(94, 234, 212, .08); border: 1px solid rgba(94, 234, 212, .25);
}
.course .name { font-weight: 600; font-size: 1.08rem; line-height: 1.6; }
.course .arrow { margin-inline-start: auto; color: var(--muted); transition: transform .2s, color .2s; }
.course:hover .arrow { color: var(--accent); transform: translateX(-4px); }

footer { position: relative; z-index: 2; text-align: center; color: var(--muted); font-size: .85rem; padding: 0 16px 1.5rem; }
.hero + footer { position: fixed; bottom: 0; inset-inline: 0; }
