/* ============================================================
   ممثلي — Mumathili landing · «مشروع إبحار»
   Design tokens: navy night world + luminous teal + amber signal
   RTL-first · Tajawal · transform/opacity motion only
   ============================================================ */

/* ---------- Fonts (self-hosted, subset) ---------- */
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("../fonts/tajawal-200-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E, U+2010-2011;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 200;
  font-display: swap;
  src: url("../fonts/tajawal-200-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/tajawal-400-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E, U+2010-2011;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/tajawal-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/tajawal-700-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E, U+2010-2011;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/tajawal-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/tajawal-900-arabic.woff2") format("woff2");
  unicode-range: U+0600-06FF, U+0750-077F, U+FB50-FDFF, U+FE70-FEFC, U+200C-200E, U+2010-2011;
}
@font-face {
  font-family: "Tajawal";
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url("../fonts/tajawal-900-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122;
}

/* ---------- Tokens ---------- */
:root {
  /* palette */
  --layl: #050d1d;          /* الليل — deep navy base */
  --sadeem: #0b1830;        /* سديم — raised surface */
  --ghaym: #13294a;         /* غيم — lighter surface / borders base */
  --fayruz: #2de0c8;        /* فيروز — luminous teal */
  --zumurrud: #0f9b8e;      /* زمرّد — deep emerald (brand root) */
  --tanbih: #ffb454;        /* تنبيه — amber, notifications ONLY */
  --fajr: #edf4fa;          /* فجر — primary text */
  --shafaq: #9fb2c9;        /* شفق — muted text */

  --line: rgba(159, 178, 201, 0.14);
  --line-strong: rgba(159, 178, 201, 0.24);
  --glass: rgba(11, 24, 48, 0.62);
  --grad-display: linear-gradient(120deg, #2de0c8 10%, #6ee9f0 55%, #3ea8ff 100%);
  --grad-brand: linear-gradient(135deg, #14b8a6, #1f4f7a);
  --shadow-deep: 0 30px 80px rgba(2, 8, 20, 0.6);

  --radius: 18px;
  --radius-lg: 28px;
  --wrap: 1180px;

  --fz-body: clamp(15px, 1.5vw, 17px);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
/* native smooth scrolling must be off while Lenis drives the scroll */
html.js-motion { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: "Tajawal", -apple-system, "Segoe UI", Tahoma, Arial, sans-serif;
  background: var(--layl);
  color: var(--fajr);
  font-size: var(--fz-body);
  line-height: 1.9;
  overflow-x: clip;
}

/* grain overlay — pure CSS, no asset */
body::after {
  content: "";
  position: fixed;
  inset: -50%;
  z-index: 999;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

::selection { background: rgba(45, 224, 200, 0.35); color: #fff; }

:focus-visible {
  outline: 2px solid var(--fayruz);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 28px);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.num { font-feature-settings: "tnum"; letter-spacing: 0.02em; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 90;
  transition: transform 0.45s var(--ease-spring), background 0.3s ease;
}

.site-header .nav {
  max-width: var(--wrap);
  margin-inline: auto;
  padding: 14px clamp(18px, 4vw, 28px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 13, 29, 0.55);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.site-header.scrolled::before {
  opacity: 1;
  border-bottom-color: var(--line);
}

.brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 900;
  font-size: 21px;
  background: var(--grad-brand);
  box-shadow: 0 8px 24px rgba(20, 184, 166, 0.35);
}

.brand-text strong { display: block; font-size: 17px; line-height: 1.25; }
.brand-text span { display: block; color: var(--shafaq); font-size: 11.5px; line-height: 1.4; font-weight: 500; }

.nav-links {
  position: relative;
  display: flex;
  gap: 2px;
}

.nav-links a {
  color: var(--shafaq);
  font-size: 14px;
  font-weight: 700;
  padding: 9px 13px;
  border-radius: 10px;
  transition: color 0.25s ease, background 0.25s ease;
}

.nav-links a:hover { color: var(--fajr); background: rgba(159, 178, 201, 0.1); }

.nav-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 9px 18px;
  border-radius: 12px;
  font-weight: 800;
  font-size: 14px;
  color: #04211c;
  background: var(--fayruz);
  box-shadow: 0 6px 22px rgba(45, 224, 200, 0.35);
  transition: transform 0.3s var(--ease-spring), box-shadow 0.3s ease;
}

.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(45, 224, 200, 0.5); }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-block: clamp(110px, 14vh, 150px) clamp(40px, 6vh, 70px);
  overflow: clip;
}

/* the جدول (timetable) grid motif */
.hero-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(159, 178, 201, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(159, 178, 201, 0.055) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 20%, black 30%, transparent 78%);
}

/* ambient glows */
.hero-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform;
}

.hero-glow.g1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(15, 155, 142, 0.35), transparent 65%);
  top: -140px; inset-inline-end: -120px;
}

.hero-glow.g2 {
  width: 480px; height: 480px;
  background: radial-gradient(circle, rgba(31, 79, 122, 0.5), transparent 65%);
  bottom: -160px; inset-inline-start: -100px;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(30px, 5vw, 60px);
  align-items: center;
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--fayruz);
  background: rgba(45, 224, 200, 0.08);
  border: 1px solid rgba(45, 224, 200, 0.25);
  border-radius: 999px;
  padding: 8px 16px;
  font-weight: 700;
  font-size: 13px;
  margin-block-end: 26px;
}

.eyebrow .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--fayruz);
  box-shadow: 0 0 10px var(--fayruz);
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.6); opacity: 0.6; }
}

.hero h1 {
  margin: 0 0 22px;
  font-size: clamp(40px, 5.6vw, 74px);
  line-height: 1.14;
  font-weight: 900;
  letter-spacing: -0.5px;
}

.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: inline-block; }

.hero h1 .thin { font-weight: 200; color: var(--shafaq); }

.hero h1 .shine {
  background: var(--grad-display);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-block-end: 0.12em; /* keep descenders inside clip */
}

.hero-copy {
  margin: 0;
  color: var(--shafaq);
  font-size: clamp(16px, 1.8vw, 19px);
  max-width: 620px;
  line-height: 2;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-block-start: 34px;
}

/* store badges — official-style dark badges */
.store-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 62px;
  padding: 10px 20px;
  border-radius: 14px;
  background: #0d1117;
  border: 1px solid rgba(159, 178, 201, 0.28);
  color: #fff;
  overflow: hidden;
  transition: transform 0.35s var(--ease-spring), border-color 0.3s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.store-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.08) 50%, transparent 70%);
  transform: translateX(120%);
  transition: transform 0.7s ease;
}

.store-btn:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: rgba(45, 224, 200, 0.5);
  box-shadow: 0 14px 40px rgba(45, 224, 200, 0.18);
}

.store-btn:hover::before { transform: translateX(-120%); }

.store-icon { width: 30px; height: 30px; flex: 0 0 30px; }

.store-label { display: grid; line-height: 1.3; text-align: start; }
.store-label small { font-size: 11px; font-weight: 500; color: rgba(255, 255, 255, 0.65); }
.store-label b { font-size: 17px; font-weight: 800; letter-spacing: 0.01em; }

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-block-start: 28px;
}

.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(11, 24, 48, 0.5);
  color: var(--shafaq);
  font-size: 12.5px;
  font-weight: 700;
}

.trust-pill svg { width: 14px; height: 14px; color: var(--fayruz); }

/* ---------- The phone (signature element) ---------- */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  perspective: 1400px;
}

.phone {
  position: relative;
  width: min(78vw, 320px);
  aspect-ratio: 320 / 660;
  border-radius: 46px;
  padding: 12px;
  background: linear-gradient(160deg, #1d2b45, #0a1425 60%);
  border: 1px solid rgba(159, 178, 201, 0.3);
  box-shadow:
    var(--shadow-deep),
    0 0 0 2px rgba(5, 13, 29, 0.9),
    0 0 90px rgba(45, 224, 200, 0.12);
  transform-style: preserve-3d;
  will-change: transform;
}

.phone::before {
  content: "";
  position: absolute;
  top: 22px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  width: 88px;
  height: 24px;
  border-radius: 999px;
  background: #030a16;
  z-index: 6;
}

[dir="rtl"] .phone::before { transform: translateX(50%); }

.phone .screen {
  position: absolute;
  inset: 12px;
  border-radius: 36px;
  overflow: hidden;
  background: #f4f8fb;
}

/* app screens stack */
.app-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 0.55s ease, transform 0.55s var(--ease-spring);
  pointer-events: none;
  background: #f4f8fb;
}

.app-screen.active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.app-top {
  padding: 52px 18px 16px;
  color: #fff;
  background: var(--grad-brand);
}

.app-top.night { background: linear-gradient(135deg, #123a4f, #0b1830); }

.app-status {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 700;
  opacity: 0.85;
}

.app-greet { margin-top: 12px; }
.app-greet strong { display: block; font-size: 20px; font-weight: 900; line-height: 1.3; }
.app-greet span { display: block; font-size: 11.5px; opacity: 0.85; margin-top: 3px; }

.app-body {
  flex: 1;
  padding: 14px 14px 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.app-card {
  background: #fff;
  border: 1px solid #e3ebf3;
  border-radius: 15px;
  padding: 12px 14px;
  box-shadow: 0 6px 18px rgba(13, 30, 55, 0.06);
  color: #16263e;
}

.app-card h4 {
  margin: 0 0 6px;
  font-size: 12.5px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-card h4 .tag {
  font-size: 9.5px;
  font-weight: 800;
  color: var(--zumurrud);
  background: rgba(15, 155, 142, 0.1);
  padding: 2px 8px;
  border-radius: 999px;
}

.app-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-top: 1px solid #eef3f8;
  font-size: 11.5px;
  color: #5d6d84;
}

.app-row:first-of-type { border-top: 0; }
.app-row b { color: #16263e; font-weight: 800; }
.app-row .time { color: var(--zumurrud); font-weight: 800; font-size: 11px; }
.app-row .due { color: #d97706; font-weight: 800; font-size: 10.5px; }

/* chat screen */
.chat-bubbles { display: flex; flex-direction: column; gap: 8px; }

.bubble {
  max-width: 82%;
  padding: 9px 13px;
  border-radius: 15px;
  font-size: 11.5px;
  line-height: 1.65;
  color: #16263e;
  background: #fff;
  border: 1px solid #e3ebf3;
  align-self: flex-start;
  border-start-start-radius: 4px;
}

.bubble.me {
  align-self: flex-end;
  background: linear-gradient(135deg, #14b8a6, #0f9b8e);
  color: #fff;
  border: 0;
  border-start-start-radius: 15px;
  border-start-end-radius: 4px;
}

.bubble .who { display: block; font-size: 9.5px; font-weight: 800; color: var(--zumurrud); margin-bottom: 2px; }

.voice-line { display: flex; align-items: center; gap: 8px; }
.voice-line .play {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(15, 155, 142, 0.12);
  display: grid;
  place-items: center;
  color: var(--zumurrud);
  flex: 0 0 24px;
}
.voice-bars { display: flex; align-items: center; gap: 2.5px; height: 18px; }
.voice-bars i {
  width: 2.5px;
  border-radius: 2px;
  background: #9db4c9;
  height: var(--h, 8px);
}
.bubble .vtime { font-size: 9px; color: #8298b0; }

/* poll card inside chat */
.poll-box { margin-top: 2px; }
.poll-box .q { font-weight: 800; font-size: 11.5px; margin-bottom: 8px; color: #16263e; }
.poll-opt { position: relative; margin-bottom: 6px; }
.poll-opt .bar {
  position: absolute;
  inset-block: 0;
  inset-inline-start: 0;
  border-radius: 8px;
  background: rgba(20, 184, 166, 0.16);
  width: 0;
  transition: width 1s var(--ease-spring);
}
.app-screen.active .poll-opt .bar { width: var(--w, 50%); }
.poll-opt .txt {
  position: relative;
  display: flex;
  justify-content: space-between;
  padding: 6px 10px;
  font-size: 10.5px;
  font-weight: 700;
  color: #33465f;
  border: 1px solid #e3ebf3;
  border-radius: 8px;
}
.poll-opt .txt b { color: var(--zumurrud); }

/* meemo screen */
.meemo-bubble {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.09), rgba(31, 79, 122, 0.09));
  border: 1px solid rgba(20, 184, 166, 0.25);
}

.meemo-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--grad-brand);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

/* app bottom nav */
.app-nav {
  display: flex;
  justify-content: space-around;
  padding: 9px 8px calc(9px + 6px);
  background: #fff;
  border-top: 1px solid #e8eef5;
}

.app-nav span {
  font-size: 9px;
  font-weight: 700;
  color: #8298b0;
  display: grid;
  justify-items: center;
  gap: 3px;
}

.app-nav span svg { width: 17px; height: 17px; }
.app-nav span.on { color: var(--zumurrud); }

/* notification toast that flies into the phone */
.app-toast {
  position: absolute;
  top: 54px;
  inset-inline: 10px;
  z-index: 5;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 11px 13px;
  border-radius: 15px;
  background: rgba(8, 16, 32, 0.92);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 180, 84, 0.35);
  color: #fff;
  box-shadow: 0 14px 40px rgba(2, 8, 20, 0.5);
  opacity: 0;
  transform: translateY(-56px) scale(0.92);
  transition: opacity 0.5s ease, transform 0.5s var(--ease-spring);
  pointer-events: none;
}

.app-toast.show { opacity: 1; transform: none; }

.app-toast .bell {
  width: 34px; height: 34px;
  flex: 0 0 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #1a0f00;
  background: var(--tanbih);
}

.app-toast b { display: block; font-size: 11px; }
.app-toast small { display: block; font-size: 9.5px; color: rgba(255, 255, 255, 0.7); }

/* floating cards around the phone */
.float-card {
  position: absolute;
  z-index: 4;
  padding: 13px 16px;
  border-radius: 16px;
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-deep);
  width: max-content;
  max-width: 200px;
  will-change: transform;
}

.float-card b { display: flex; align-items: center; gap: 7px; font-size: 13px; }
.float-card b svg { width: 16px; height: 16px; color: var(--fayruz); }
.float-card.amber b svg { color: var(--tanbih); }
.float-card span { display: block; font-size: 11px; color: var(--shafaq); margin-top: 3px; }

.float-card.f1 { top: 12%; inset-inline-end: -6%; }
.float-card.f2 { bottom: 16%; inset-inline-start: -8%; }

/* scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 22px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--shafaq);
  font-size: 11.5px;
  font-weight: 700;
}

[dir="rtl"] .scroll-hint { transform: translateX(50%); }

.scroll-hint .wheel {
  width: 22px; height: 34px;
  border: 2px solid var(--line-strong);
  border-radius: 999px;
  position: relative;
}

.scroll-hint .wheel::after {
  content: "";
  position: absolute;
  top: 6px;
  inset-inline-start: 50%;
  margin-inline-start: -2px;
  width: 4px; height: 7px;
  border-radius: 4px;
  background: var(--fayruz);
  animation: wheel 1.8s ease-in-out infinite;
}

@keyframes wheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(11px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ============================================================
   Marquee strip
   ============================================================ */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 18px;
  overflow: hidden;
  background: rgba(11, 24, 48, 0.35);
}

.marquee-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.marquee-group {
  display: flex;
  gap: 14px;
  padding-inline-end: 14px;
}

.marquee-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--shafaq);
  font-size: 13.5px;
  font-weight: 700;
}

.marquee-chip svg { width: 15px; height: 15px; color: var(--fayruz); }

/* ============================================================
   Scrollytelling — «يوم طالب»
   ============================================================ */
.day {
  position: relative;
  padding-block: clamp(70px, 10vh, 120px) 0;
}

.day-head { text-align: center; max-width: 720px; margin-inline: auto; }

.kicker {
  display: inline-block;
  color: var(--fayruz);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  margin-block-end: 10px;
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.25;
  font-weight: 900;
}

.section-sub { margin: 0; color: var(--shafaq); font-size: clamp(15px, 1.7vw, 17.5px); }

.day-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: clamp(24px, 5vw, 70px);
  align-items: start;
  margin-block-start: clamp(40px, 6vh, 70px);
}

.day-beats { position: relative; padding-block: 12vh 30vh; }

.beat {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  transition: opacity 0.5s ease;
}

/* dim inactive beats only when JS-driven motion is on */
.js-motion .beat { opacity: 0.25; }
.js-motion .beat.on { opacity: 1; }

.beat-time {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--fayruz);
  font-weight: 800;
  font-size: 14px;
  margin-block-end: 12px;
}

.beat-time .ln { width: 34px; height: 2px; border-radius: 2px; background: var(--fayruz); opacity: 0.5; }
.beat.amber .beat-time { color: var(--tanbih); }
.beat.amber .beat-time .ln { background: var(--tanbih); }

.beat h3 { margin: 0 0 10px; font-size: clamp(23px, 2.8vw, 32px); font-weight: 900; line-height: 1.35; }
.beat p { margin: 0; color: var(--shafaq); max-width: 460px; }

.day-phone-col { position: relative; }

.day-phone-sticky {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding-block: 20px;
}

/* progress rail */
.day-rail {
  position: absolute;
  inset-block: 14vh 32vh;
  inset-inline-start: calc(-1 * clamp(12px, 2.5vw, 36px));
  width: 3px;
  border-radius: 3px;
  background: rgba(159, 178, 201, 0.12);
}

.day-rail .fill {
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 0%;
  border-radius: 3px;
  background: linear-gradient(180deg, var(--fayruz), var(--zumurrud));
}

/* ============================================================
   Features — bento
   ============================================================ */
.features { padding-block: clamp(80px, 12vh, 140px) clamp(40px, 6vh, 70px); }

.features-head { max-width: 700px; margin-block-end: clamp(36px, 5vh, 56px); }

.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.card {
  position: relative;
  grid-column: span 2;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(165deg, rgba(19, 41, 74, 0.5), rgba(11, 24, 48, 0.65));
  padding: clamp(22px, 3vw, 30px);
  overflow: hidden;
  transform-style: preserve-3d;
  will-change: transform;
  transition: border-color 0.35s ease;
}

.card:hover { border-color: rgba(45, 224, 200, 0.4); }

.card.wide { grid-column: span 3; }

/* pointer-follow glow */
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(45, 224, 200, 0.12), transparent 65%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.card:hover::before { opacity: 1; }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: var(--fayruz);
  background: rgba(45, 224, 200, 0.09);
  border: 1px solid rgba(45, 224, 200, 0.22);
  margin-block-end: 18px;
}

.card-icon svg { width: 25px; height: 25px; }

.card.amber .card-icon {
  color: var(--tanbih);
  background: rgba(255, 180, 84, 0.09);
  border-color: rgba(255, 180, 84, 0.25);
}

.card h3 { margin: 0 0 8px; font-size: clamp(18px, 2vw, 21px); font-weight: 900; }
.card p { margin: 0; color: var(--shafaq); font-size: 14.5px; line-height: 1.85; }

.card .badge-soon {
  position: absolute;
  top: 20px;
  inset-inline-end: 20px;
  font-size: 10.5px;
  font-weight: 800;
  color: var(--fayruz);
  border: 1px solid rgba(45, 224, 200, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
}

/* ============================================================
   Workflow
   ============================================================ */
.workflow { padding-block: clamp(60px, 9vh, 110px); position: relative; }

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-block-start: clamp(36px, 5vh, 54px);
  position: relative;
}

.flow-path {
  position: absolute;
  top: 44px;
  inset-inline: 8%;
  height: 2px;
  pointer-events: none;
}

.flow-path line {
  stroke: var(--line-strong);
  stroke-width: 2;
  stroke-dasharray: 7 8;
}

.flow-step {
  text-align: center;
  padding: 26px 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(11, 24, 48, 0.45);
  position: relative;
}

.step-num {
  width: 58px; height: 58px;
  margin-inline: auto;
  display: grid;
  place-items: center;
  border-radius: 18px;
  font-size: 22px;
  font-weight: 900;
  color: #04211c;
  background: var(--grad-display);
  box-shadow: 0 10px 30px rgba(45, 224, 200, 0.25);
  margin-block-end: 18px;
}

.flow-step h3 { margin: 0 0 8px; font-size: 19px; font-weight: 900; }
.flow-step p { margin: 0; color: var(--shafaq); font-size: 14.5px; }

/* ============================================================
   Download CTA
   ============================================================ */
.dl {
  position: relative;
  margin-block: clamp(50px, 8vh, 90px);
}

.dl-box {
  position: relative;
  border-radius: calc(var(--radius-lg) + 8px);
  border: 1px solid rgba(45, 224, 200, 0.25);
  background:
    radial-gradient(120% 160% at 50% 0%, rgba(15, 155, 142, 0.28), transparent 55%),
    linear-gradient(165deg, rgba(19, 41, 74, 0.7), rgba(5, 13, 29, 0.9));
  padding: clamp(44px, 7vw, 80px) clamp(24px, 5vw, 70px);
  text-align: center;
  overflow: hidden;
}

.dl-box::before {
  content: "م";
  position: absolute;
  inset-inline-end: -30px;
  bottom: -80px;
  font-size: 340px;
  font-weight: 900;
  line-height: 1;
  color: rgba(45, 224, 200, 0.05);
  pointer-events: none;
}

.dl-box h2 { font-size: clamp(32px, 5vw, 58px); }

.dl-box .section-sub { max-width: 560px; margin-inline: auto; }

.dl-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-block-start: 34px;
}

.dl-note { margin-block-start: 18px; color: var(--shafaq); font-size: 12.5px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding-block: clamp(50px, 8vh, 90px); }

.faq-list { max-width: 780px; margin-inline: auto; display: grid; gap: 12px; margin-block-start: clamp(30px, 4vh, 44px); }

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 24, 48, 0.45);
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.faq-item.open { border-color: rgba(45, 224, 200, 0.35); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 19px 22px;
  background: none;
  border: 0;
  color: var(--fajr);
  font-family: inherit;
  font-size: 16px;
  font-weight: 800;
  text-align: start;
  cursor: pointer;
}

.faq-q .chev {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--fayruz);
  transition: transform 0.45s var(--ease-spring), background 0.3s ease;
}

.faq-item.open .faq-q .chev { transform: rotate(180deg); background: rgba(45, 224, 200, 0.12); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-spring);
}

.faq-item.open .faq-a { grid-template-rows: 1fr; }

.faq-a > div { overflow: hidden; }

.faq-a p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--shafaq);
  font-size: 14.5px;
}

/* ============================================================
   Support
   ============================================================ */
.support { padding-block: clamp(40px, 7vh, 80px) clamp(70px, 10vh, 110px); }

.support-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.support-intro h2 { font-size: clamp(26px, 3.6vw, 40px); }

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 26px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: rgba(11, 24, 48, 0.45);
  transition: transform 0.35s var(--ease-spring), border-color 0.3s ease;
}

.contact-card:hover { transform: translateY(-4px); border-color: rgba(45, 224, 200, 0.4); }

.contact-card .cc-icon {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: var(--fayruz);
  background: rgba(45, 224, 200, 0.09);
  border: 1px solid rgba(45, 224, 200, 0.22);
}

.contact-card .cc-icon svg { width: 22px; height: 22px; }
.contact-card b { font-size: 16px; }
.contact-card span { color: var(--shafaq); font-size: 13px; }
.contact-card .cc-value { color: var(--fayruz); font-weight: 800; font-size: 15.5px; }

/* ============================================================
   Footer
   ============================================================ */
.footer {
  border-top: 1px solid var(--line);
  background: rgba(4, 10, 22, 0.8);
  padding-block: 34px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer .brand-mark { width: 38px; height: 38px; font-size: 18px; }

.footer-links { display: flex; gap: 6px 20px; flex-wrap: wrap; font-size: 13.5px; font-weight: 700; color: var(--shafaq); }
.footer-links a { transition: color 0.25s ease; }
.footer-links a:hover { color: var(--fayruz); }

.footer-note { width: 100%; color: rgba(159, 178, 201, 0.55); font-size: 12px; margin: 0; }

/* ============================================================
   Cursor glow (desktop only)
   ============================================================ */
.cursor-glow {
  position: fixed;
  z-index: 1;
  width: 480px; height: 480px;
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(45, 224, 200, 0.05), transparent 60%);
  transform: translate(-50%, -50%);
  will-change: left, top;
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  .cursor-glow { display: block; }
}

/* ============================================================
   Reveal defaults (JS adds motion; without JS all visible)
   ============================================================ */
.rv { opacity: 1; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1020px) {
  .nav-links { display: none; }

  .hero { min-height: auto; }

  .hero-inner { grid-template-columns: 1fr; }

  .hero-visual { order: 2; margin-block-start: 10px; }

  .day-stage {
    display: block;
    margin-block-start: 30px;
  }

  /* phone sticks at top; beat cards scroll over it */
  .day-phone-col {
    position: sticky;
    top: 72px;
    z-index: 1;
    display: grid;
    justify-content: center;
  }

  .day-phone-sticky {
    position: static;
    min-height: auto;
    padding-block: 0;
  }

  .day-beats {
    position: relative;
    z-index: 2;
    padding-block: 6vh 12vh;
  }

  .phone { width: min(60vw, 260px); }

  .beat {
    min-height: auto;
    padding: 22px 20px;
    margin-block-end: 46vh;
    border-radius: var(--radius-lg);
    background: rgba(8, 17, 34, 0.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--line-strong);
  }

  .beat:first-child { margin-block-start: 10vh; }
  .beat:last-child { margin-block-end: 14vh; }

  .day-rail { display: none; }

  .bento { grid-template-columns: 1fr 1fr; }
  .card, .card.wide { grid-column: span 1; }

  .flow-grid { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; }
  .flow-path { display: none; }

  .support-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .float-card { display: none; }

  .bento { grid-template-columns: 1fr; }

  .cta-row, .dl-actions { display: grid; grid-template-columns: 1fr; width: 100%; }
  .store-btn { justify-content: center; }

  .hero h1 { font-size: clamp(38px, 11vw, 52px); }

  .phone { width: min(64vw, 240px); }

  .footer-inner { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   Reduced motion — full graceful degradation
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html { scroll-behavior: auto; }

  .beat { opacity: 1; }

  /* phone shows one calm screen; no cycling */
  .app-screen { opacity: 0; }
  .app-screen.active { opacity: 1; transform: none; }
  .app-toast { opacity: 0 !important; }

  .scroll-hint { display: none; }
  .cursor-glow { display: none !important; }
  .marquee-track { flex-wrap: wrap; width: 100%; justify-content: center; }
}
