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

:root, [data-theme="dark"] {
  --bg: #070b1a;
  --bg2: #0b1124;
  --card: #0f1730;
  --card2: #131d3b;
  --line: #1d2950;
  --ink: #eef2ff;
  --muted: #98a3c7;
  --a1: #6d5cff;   /* violet */
  --a2: #22d3ee;   /* cyan   */
  --a3: #f472b6;   /* pink   */
  --ok: #22c55e; --bad: #f43f5e; --warn: #f59e0b;
  --shadow: 0 30px 80px #0008;
  --glass: rgba(10, 16, 36, .72);
}
[data-theme="light"] {
  --bg: #f6f7fc;
  --bg2: #eef0fa;
  --card: #ffffff;
  --card2: #f5f6fd;
  --line: #e3e6f3;
  --ink: #0b1030;
  --muted: #5d6789;
  --a1: #5b47f5;
  --a2: #0891b2;
  --a3: #db2777;
  --shadow: 0 30px 70px #1b1f5a1f;
  --glass: rgba(255, 255, 255, .8);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Vazirmatn, Tahoma, sans-serif; line-height: 1.9;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background .3s, color .3s;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.35; margin: 0; }
.wrap { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 40; background: var(--glass); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.top-row { height: 72px; display: flex; align-items: center; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center;
  font-weight: 900; color: #fff; font-family: system-ui, sans-serif;
  background: conic-gradient(from 210deg, var(--a1), var(--a2), var(--a3), var(--a1));
  box-shadow: 0 10px 30px color-mix(in srgb, var(--a1) 45%, transparent);
}
.logo-text { display: flex; flex-direction: column; line-height: 1.2; }
.logo-text small { font-size: 9.5px; color: var(--muted); font-weight: 600; }
.wordmark { direction: ltr; font-weight: 900; letter-spacing: 1.5px; font-size: 16px; font-family: system-ui, -apple-system, "Segoe UI", sans-serif; display: inline-flex; }
.wordmark span { display: inline-block; animation: wave 3.2s ease-in-out infinite; background: linear-gradient(120deg, var(--a1), var(--a2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
@keyframes wave {
  0%, 70%, 100% { transform: translateY(0); filter: brightness(1); }
  20% { transform: translateY(-3px); filter: brightness(1.5); }
}
.nav { display: flex; gap: 22px; flex: 1; justify-content: center; }
.nav a { font-size: 13px; color: var(--muted); font-weight: 600; transition: color .2s; }
.nav a:hover { color: var(--ink); }
.top-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; font-size: 16px; display: grid; place-items: center; }
[data-theme="dark"] .moon, [data-theme="light"] .sun { display: none; }
.menu-btn { display: none; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 14px; padding: 13px 22px; font-weight: 800; font-size: 14px; transition: transform .2s, box-shadow .2s; border: 1px solid transparent; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { color: #fff; background: linear-gradient(135deg, var(--a1), color-mix(in srgb, var(--a1) 55%, var(--a2))); box-shadow: 0 14px 34px color-mix(in srgb, var(--a1) 40%, transparent); }
.btn-ghost { border-color: var(--line); background: var(--card); }
.btn-sm { padding: 9px 16px; font-size: 12.5px; border-radius: 12px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 70px 0 90px; overflow: hidden; }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .45; pointer-events: none; }
.g1 { width: 520px; height: 520px; background: var(--a1); top: -160px; left: -120px; }
.g2 { width: 420px; height: 420px; background: var(--a2); bottom: -200px; right: 10%; opacity: .25; }
[data-theme="light"] .glow { opacity: .18; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: 12px; font-weight: 700; color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 var(--ok); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 10px transparent; } }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 900; margin: 18px 0 16px; letter-spacing: -.5px; }
.grad { background: linear-gradient(110deg, var(--a1), var(--a2) 55%, var(--a3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { color: var(--muted); font-size: 16px; max-width: 560px; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-proof { margin-top: 30px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; color: var(--muted); font-size: 13px; }
.hero-proof b { color: var(--ink); font-size: 20px; font-weight: 900; }
.hero-proof i { width: 1px; height: 18px; background: var(--line); margin: 0 8px; align-self: center; }

/* phone mockup */
.hero-art { position: relative; height: 560px; display: grid; place-items: center; }
.phone { width: 280px; height: 540px; border-radius: 42px; padding: 12px; background: linear-gradient(160deg, #1f2a52, #0a0f22); box-shadow: var(--shadow), inset 0 0 0 2px #ffffff14; position: relative; transform: rotate(-4deg); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 0%, 100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-12px); } }
.phone-notch { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 90px; height: 22px; border-radius: 20px; background: #05070f; z-index: 2; }
.screen { height: 100%; border-radius: 32px; background: #f7f8fd; color: #0b1030; padding: 50px 14px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.scr-head { display: flex; gap: 10px; align-items: center; }
.scr-head b { font-size: 13px; display: block; }
.scr-head small { font-size: 10px; color: #6b7393; }
.scr-logo { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; color: #fff; font-weight: 900; background: linear-gradient(135deg, #0f7a4f, #18b878); }
.scr-chips { display: flex; gap: 6px; }
.c { font-size: 10px; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.c.ok, .st.ok { background: #dcfce7; color: #15803d; }
.c.bad, .st.bad { background: #ffe4e6; color: #be123c; }
.c.warn, .st.warn { background: #fef3c7; color: #b45309; }
.scr-list { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.row { display: flex; align-items: center; gap: 9px; background: #fff; border-radius: 14px; padding: 9px 10px; box-shadow: 0 2px 8px #1b1f5a0d; font-size: 12px; }
.row b { flex: 1; }
.av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #eef0ff; color: #5b47f5; font-weight: 900; font-size: 11px; }
.st { font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.scr-save { text-align: center; color: #fff; font-weight: 800; font-size: 12px; padding: 11px; border-radius: 14px; background: linear-gradient(135deg, #0f7a4f, #18b878); }
.float { position: absolute; display: flex; gap: 10px; align-items: center; padding: 11px 14px; border-radius: 18px; background: var(--glass); backdrop-filter: blur(14px); border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 12px; animation: floaty2 6s ease-in-out infinite; }
.float b { display: block; font-size: 12.5px; }
.float small { color: var(--muted); font-size: 10.5px; }
.fi { font-size: 22px; }
.f1 { top: 0; right: 0; }
.f2 { bottom: 90px; left: -20px; animation-delay: -2s; }
.f3 { bottom: 10px; right: 20px; animation-delay: -4s; }
@keyframes floaty2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- sections ---------- */
.section { padding: 90px 0; }
.section.alt { background: var(--bg2); }
.head { text-align: center; max-width: 680px; margin: 0 auto 44px; }
.kicker { display: inline-block; font-size: 12px; font-weight: 800; color: var(--a2); letter-spacing: .3px; margin-bottom: 8px; }
.kicker.light { color: #fff; opacity: .85; }
.head h2 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 900; }
.head p { color: var(--muted); margin: 12px 0 0; }

.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.stats .stat { flex: 1 1 150px; max-width: 200px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 22px 14px; text-align: center; position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--a1), var(--a2)); opacity: .8; }
.stat b { display: block; font-size: clamp(26px, 3vw, 36px); font-weight: 900; }
.stat span { color: var(--muted); font-size: 12.5px; font-weight: 600; }
.stamp { text-align: center; color: var(--muted); font-size: 11.5px; margin-top: 16px; min-height: 1em; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feat { background: var(--card); border: 1px solid var(--line); border-radius: 24px; padding: 26px; transition: transform .25s, border-color .25s, box-shadow .25s; }
.feat:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--a1) 50%, var(--line)); box-shadow: var(--shadow); }
.feat .fi { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: color-mix(in srgb, var(--a1) 14%, var(--card2)); margin-bottom: 14px; }
.feat h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.feat p { color: var(--muted); font-size: 13.5px; margin: 0; }

.role-tabs { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.role-tabs button { font: inherit; font-weight: 800; font-size: 14px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; transition: all .2s; }
.role-tabs button[aria-selected="true"] { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--a1), color-mix(in srgb, var(--a1) 55%, var(--a2))); }
.role-panel { max-width: 760px; margin: auto; background: var(--card); border: 1px solid var(--line); border-radius: 26px; padding: 26px 30px; }
.role-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.role-panel li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.role-panel li::before { content: "✓"; flex: none; width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 12px; font-weight: 900; color: #fff; background: linear-gradient(135deg, var(--a1), var(--a2)); margin-top: 3px; }

.schools { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; max-width: 900px; margin: auto; }
.schools .school { flex: 0 1 300px; }
.school { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 18px; transition: transform .2s, box-shadow .2s; }
.school:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.school-logo { width: 56px; height: 56px; border-radius: 16px; flex: none; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 22px; background: linear-gradient(135deg, var(--a1), var(--a2)); overflow: hidden; }
.school-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.school b { display: block; font-size: 15px; }
.school small { color: var(--a2); font-weight: 700; font-size: 12px; }

.cta { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; padding: 44px; border-radius: 32px; color: #fff; background: radial-gradient(circle at 15% 20%, #ffffff22, transparent 40%), linear-gradient(135deg, var(--a1), color-mix(in srgb, var(--a1) 40%, var(--a2))); box-shadow: var(--shadow); }
.cta h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 900; }
.cta p { opacity: .88; margin: 10px 0 0; }
.contact-list { display: grid; gap: 10px; }
.contact-item { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 16px; background: #ffffff1f; border: 1px solid #ffffff33; font-weight: 700; transition: background .2s; }
.contact-item:hover { background: #ffffff33; }
.contact-item .ci { font-size: 18px; }
.contact-item span:last-child { direction: ltr; margin-inline-start: auto; font-size: 13px; opacity: .9; }

.foot { border-top: 1px solid var(--line); padding: 30px 0; }
.foot-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.foot p { color: var(--muted); font-size: 13px; margin: 0; }
.copy { color: var(--muted); font-size: 12px; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { height: 520px; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .cta { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nav { display: none; position: absolute; top: 72px; inset-inline: 0; flex-direction: column; gap: 4px; padding: 12px 16px; background: var(--bg); border-bottom: 1px solid var(--line); }
  .nav.open { display: flex; }
  .nav a { padding: 10px 6px; font-size: 15px; }
  .menu-btn { display: grid; }
  .top-actions .btn-sm { display: none; }
  .logo-text small { display: none; }
  .hero { padding: 40px 0 60px; }
  .hero-art { height: 560px; }
  .phone { width: 250px; height: 490px; }
  .float { padding: 9px 11px; }
  .f1 { right: 0; } .f2 { left: 0; }
  .stats .stat { flex-basis: 40%; max-width: none; }
  .features { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .cta { padding: 28px 22px; }
  .role-panel { padding: 20px; }
}
