/* مُدرّس / Modares — mymodares.com. Brand: dark teal + ice-cyan/mint starburst.
   Typeface: IBM Plex Sans Arabic (matches the apps). No build step. */

:root {
  --ink:    #022329;
  --ink-2:  #01161B;
  --teal:   #0A2A33;
  --teal-3: #114048;
  --cyan:   #C5FFFF;
  --mint:   #ABFFC1;
  --paper:  #F7FBFB;
  --card:   #FFFFFF;
  --text:   #0E2A30;
  --muted:  #5C7178;
  --line:   #E4EEF0;
  --radius: 18px;
  --shadow: 0 10px 30px rgba(2, 35, 41, 0.07);
  --shadow-lg: 0 24px 60px rgba(2, 35, 41, 0.18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, -apple-system, sans-serif;
  background: var(--paper);
  color: var(--text);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1, h2, h3 { line-height: 1.3; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: #0d5e6e; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; letter-spacing: .2px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(197,255,255,.16); color: var(--cyan);
  border: 1px solid rgba(197,255,255,.22);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 251, 251, .82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo-link { display: inline-flex; align-items: center; }
.logo-link img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--muted); font-size: 15px; font-weight: 600; transition: color .15s; }
.nav a:hover { color: var(--ink); }
.nav .nav-cta {
  padding: 9px 18px; border-radius: 12px;
  background: var(--ink); color: #fff;
}
.nav .nav-cta:hover { color: #fff; background: var(--teal-3); }
.menu-btn { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 14px 26px; border-radius: 14px;
  font-weight: 700; font-size: 15.5px; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s ease, box-shadow .15s ease, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(135deg, var(--cyan), var(--mint)); color: var(--ink); box-shadow: 0 10px 26px rgba(171,255,193,.28); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--teal-3); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 120% at 85% 0%, #0d3640 0%, var(--ink) 45%, var(--ink-2) 100%);
  color: #fff;
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; filter: blur(90px); opacity: .5; pointer-events: none;
}
.hero::before { width: 460px; height: 460px; background: rgba(197,255,255,.20); top: -120px; left: -80px; }
.hero::after  { width: 420px; height: 420px; background: rgba(171,255,193,.18); bottom: -160px; right: -60px; }
.hero .wrap {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
  padding: 84px 22px 90px;
}
.hero h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 800; letter-spacing: -.5px; margin: 18px 0 16px; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--cyan), var(--mint));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 18.5px; color: rgba(255,255,255,.82); max-width: 540px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13.5px; color: rgba(255,255,255,.6); }

/* store badges */
.store-badges { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.store-badges.center { justify-content: center; }
.store-badge { display: inline-block; transition: transform .12s ease, filter .12s ease; }
.store-badge:hover { transform: translateY(-2px); }
.store-badge img { height: 56px; width: auto; display: block; }

/* hero app-icon tile */
.hero-visual { display: flex; justify-content: center; }
.app-tile { position: relative; }
.app-tile img {
  width: 260px; max-width: 64vw; display: block;
  filter: drop-shadow(0 24px 60px rgba(0,0,0,.45));
}
.app-tile::after {
  content: ""; position: absolute; inset: -8% -8% -4%;
  background: radial-gradient(circle at 50% 40%, rgba(197,255,255,.22), transparent 68%);
  z-index: -1;
}

/* ---------- Section scaffolding ---------- */
section { scroll-margin-top: 84px; }
.section { padding: 84px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 52px; }
.section-head .kicker { color: #0d5e6e; font-weight: 700; font-size: 14px; letter-spacing: .4px; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin: 10px 0 12px; color: var(--ink); }
.section-head p { color: var(--muted); font-size: 17px; }

/* ---------- Features ---------- */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.feature:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(2,35,41,.10); }
.feature .ic {
  width: 52px; height: 52px; border-radius: 14px; margin-bottom: 18px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(197,255,255,.55), rgba(171,255,193,.55));
  color: var(--ink);
}
.feature .ic svg { width: 26px; height: 26px; }
.feature h3 { font-size: 18.5px; margin-bottom: 8px; color: var(--ink); }
.feature p { color: var(--muted); font-size: 15px; }

/* ---------- Download ---------- */
.download { background: linear-gradient(180deg, #fff, var(--paper)); }

/* ---------- CTA band ---------- */
.cta-band { background: radial-gradient(120% 140% at 15% 0%, #0d3640, var(--ink)); color: #fff; }
.cta-band .wrap { padding: 64px 22px; text-align: center; }
.cta-band h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 12px; }
.cta-band p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 28px; font-size: 17px; }

/* ---------- Legal pages ---------- */
.legal { padding: 56px 0 80px; }
.legal .lead-block { max-width: 820px; margin: 0 auto; }
.legal h1 { font-size: clamp(28px, 4vw, 38px); color: var(--ink); margin-bottom: 6px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 30px; }
.legal section { margin-bottom: 28px; }
.legal h2 { font-size: 20px; color: var(--ink); margin-bottom: 10px; padding-inline-start: 14px; border-inline-start: 3px solid var(--mint); }
.legal p { margin-bottom: 10px; color: #243d43; }
.legal ul { margin: 0 0 10px; padding-inline-start: 22px; color: #243d43; }
.legal li { margin-bottom: 7px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-2); color: rgba(255,255,255,.72); }
.site-footer .wrap { padding: 54px 22px 30px; }
.footer-top { display: flex; justify-content: space-between; gap: 30px; flex-wrap: wrap; padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.10); }
.footer-brand img { height: 70px; margin-bottom: 14px; }
.footer-brand p { max-width: 320px; font-size: 14.5px; color: rgba(255,255,255,.6); }
.footer-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,.66); font-size: 14.5px; margin-bottom: 10px; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 22px; font-size: 13.5px; color: rgba(255,255,255,.5); }
.footer-col a.ig, .footer-bottom .ig { display: inline-flex; align-items: center; gap: 7px; }
.footer-col a.ig svg, .footer-bottom .ig svg { width: 16px; height: 16px; flex: none; }
.footer-bottom .ig { color: rgba(255,255,255,.6); }
.footer-bottom .ig:hover { color: var(--cyan); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 64px; }
  .hero p.lead { margin-inline: auto; }
  .hero-cta, .store-badges { justify-content: center; }
  .hero-visual { margin-top: 8px; order: -1; }
  .app-tile img { width: 180px; }
  .features-grid { grid-template-columns: 1fr 1fr; }
  .nav { display: none; }
}
@media (max-width: 560px) {
  .features-grid { grid-template-columns: 1fr; }
  .section { padding: 60px 0; }
}
