:root {
  --brand-deep: #001a41;
  --brand-primary: #0056d2;
  --brand-strong: #0040a1;
  --brand-teal: #00c2cb;
  --parent: #0f766e;
  --parent-soft: #ecfdf8;
  --parent-border: #99f6e4;
  --student: #0040a1;
  --student-soft: #eff4ff;
  --student-border: #bfdbfe;
  --ink: #0b1c30;
  --muted: #424654;
  --neutral: #64748b;
  --surface: #f8f9ff;
  --white: #ffffff;
  --outline: #c3c6d6;
  --shadow: 0 18px 40px rgba(0, 26, 65, 0.1);
  --radius: 20px;
  --font-display: "Cairo", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Cairo", system-ui, sans-serif;
  --max: 68rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--brand-strong);
  text-underline-offset: 0.15em;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(0, 194, 203, 0.2), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 15%, rgba(0, 86, 210, 0.18), transparent 50%),
    linear-gradient(180deg, #dce9ff 0%, var(--surface) 32%, var(--surface) 100%);
  animation: drift 16s ease-in-out infinite alternate;
}

@keyframes drift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.04);
  }
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: rgba(248, 249, 255, 0.82);
  border-bottom: 1px solid rgba(195, 198, 214, 0.55);
}

.topbar__inner,
.hero__grid,
.section__head,
.guides,
.features,
.privacy__inner,
.footer__grid {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
}

.brand img {
  width: 150px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: var(--brand-strong);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}

.hero {
  padding: 2.5rem 0 3.5rem;
}

.hero__grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    min-height: calc(100svh - 5rem);
  }
}

.hero__copy {
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero__logo {
  width: min(240px, 70vw);
  margin-bottom: 1.25rem;
  filter: drop-shadow(0 10px 24px rgba(0, 26, 65, 0.14));
}

.hero h1 {
  margin: 0;
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hero__lead {
  margin: 0.9rem 0 0;
  max-width: 36ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 11.5rem;
  padding: 0.65rem 1rem;
  border-radius: 12px;
  background: #111827;
  color: var(--white);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  color: var(--white);
  box-shadow: 0 14px 28px rgba(17, 24, 39, 0.25);
}

.store-badge svg {
  width: 1.55rem;
  height: 1.55rem;
  flex-shrink: 0;
}

.store-badge small {
  display: block;
  font-size: 0.7rem;
  opacity: 0.8;
  line-height: 1.2;
}

.store-badge strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.store-badge--soon {
  opacity: 0.55;
  pointer-events: none;
}

.btn--telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1rem;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #2aabee, #229ed9);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(34, 158, 217, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--telegram:hover {
  transform: translateY(-1px);
  color: var(--white);
  box-shadow: 0 16px 30px rgba(34, 158, 217, 0.36);
}

.trust {
  margin: 1rem 0 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--neutral);
  font-size: 0.92rem;
}

.trust span {
  display: grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.7rem;
  font-weight: 800;
}

.hero__visual {
  display: grid;
  place-items: center;
  animation: float-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

.phone {
  width: min(100%, 280px);
  border-radius: 36px;
  padding: 0.7rem;
  background: linear-gradient(160deg, #1e293b, #0f172a);
  box-shadow:
    0 30px 60px rgba(0, 26, 65, 0.28),
    inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  animation: phone-bob 5.5s ease-in-out infinite;
}

.phone__notch {
  width: 38%;
  height: 0.55rem;
  margin: 0.2rem auto 0.7rem;
  border-radius: 999px;
  background: #020617;
}

.phone__screen {
  border-radius: 28px;
  padding: 1rem;
  min-height: 420px;
  background:
    linear-gradient(180deg, #e5eeff 0%, #f8f9ff 45%, #ffffff 100%);
}

.phone__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 1rem;
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-weight: 800;
}

.phone__brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.phone__card {
  padding: 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-deep));
  color: var(--white);
  box-shadow: 0 12px 24px rgba(0, 64, 161, 0.28);
}

.phone__card strong,
.phone__card span {
  display: block;
}

.phone__card strong {
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.phone__card span {
  margin-top: 0.2rem;
  opacity: 0.85;
  font-size: 0.85rem;
}

.phone__stats {
  margin-top: 0.85rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.phone__stats div {
  padding: 0.75rem;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--outline);
}

.phone__stats b,
.phone__stats span {
  display: block;
}

.phone__stats b {
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: 0.9rem;
}

.phone__stats span {
  color: var(--neutral);
  font-size: 0.75rem;
}

.phone__row {
  margin-top: 0.75rem;
  height: 2.6rem;
  border-radius: 12px;
  background: rgba(0, 64, 161, 0.08);
}

.phone__row--short {
  width: 72%;
  height: 2.1rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(1rem);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float-in {
  from {
    opacity: 0;
    transform: translateY(1.5rem) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes phone-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.section {
  padding: 3.5rem 0;
}

.section--soft {
  background: linear-gradient(180deg, rgba(220, 233, 255, 0.45), transparent);
}

.section__head {
  text-align: center;
  margin-bottom: 2rem;
}

.section__head h2 {
  margin: 0;
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.5vw, 2rem);
  font-weight: 800;
}

.section__head p {
  margin: 0.55rem auto 0;
  max-width: 40ch;
  color: var(--muted);
}

.guides {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 860px) {
  .guides {
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
  }
}

.guide {
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
  overflow: hidden;
  border: 1px solid transparent;
}

.guide--student {
  border-color: var(--student-border);
}

.guide--parent {
  border-color: var(--parent-border);
}

.guide__head {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  padding: 1.15rem 1.25rem;
  color: var(--white);
}

.guide--student .guide__head {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-deep));
}

.guide--parent .guide__head {
  background: linear-gradient(135deg, #14b8a6, var(--parent));
}

.guide__icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.18);
  flex-shrink: 0;
}

.guide__icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.guide__head h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
}

.guide__head p {
  margin: 0.15rem 0 0;
  opacity: 0.9;
  font-size: 0.9rem;
}

.guide__steps {
  list-style: none;
  margin: 0;
  padding: 1.2rem 1.25rem 0.4rem;
  display: grid;
  gap: 1rem;
}

.guide__steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.8rem;
  align-items: start;
}

.guide__steps .n {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
}

.guide--student .n {
  background: var(--student);
}

.guide--parent .n {
  background: var(--parent);
}

.guide__steps strong {
  display: block;
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
}

.guide__steps p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.kbd {
  display: inline-block;
  margin: 0 0.1em;
  padding: 0.08em 0.45em;
  border-radius: 8px;
  background: rgba(0, 26, 65, 0.06);
  border: 1px solid var(--outline);
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-size: 0.88em;
  font-weight: 700;
  line-height: 1.55;
  white-space: nowrap;
}

.guide__note {
  margin: 0.75rem 1.25rem 1.25rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  font-size: 0.92rem;
  color: var(--muted);
}

.guide--student .guide__note {
  background: var(--student-soft);
  border: 1px solid var(--student-border);
}

.guide--parent .guide__note {
  background: var(--parent-soft);
  border: 1px solid var(--parent-border);
}

.guide__note strong {
  color: var(--brand-deep);
  font-family: var(--font-display);
}

.features {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .features {
    grid-template-columns: repeat(4, 1fr);
  }
}

.features li {
  text-align: center;
  padding: 1.35rem 1rem;
}

.features__icon {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  margin-inline: auto;
  border-radius: 999px;
  background: linear-gradient(145deg, var(--brand-primary), var(--brand-deep));
  color: var(--white);
  box-shadow: 0 12px 24px rgba(0, 64, 161, 0.22);
}

.features__icon svg {
  width: 1.55rem;
  height: 1.55rem;
}

.features strong {
  display: block;
  margin-top: 0.9rem;
  color: var(--brand-deep);
  font-family: var(--font-display);
  font-weight: 800;
}

.features p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.privacy {
  padding: 0 0 3rem;
}

.privacy__inner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.2rem 1.35rem;
  border-radius: var(--radius);
  background: rgba(0, 194, 203, 0.12);
  border: 1px solid rgba(0, 194, 203, 0.28);
}

.privacy__icon {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  background: var(--brand-teal);
  color: var(--brand-deep);
  flex-shrink: 0;
}

.privacy__icon svg {
  width: 1.3rem;
  height: 1.3rem;
}

.privacy p {
  margin: 0;
  color: var(--muted);
}

.privacy strong {
  color: var(--brand-deep);
  font-family: var(--font-display);
}

.footer {
  background: linear-gradient(180deg, #00245c, var(--brand-deep));
  color: rgba(255, 255, 255, 0.88);
  padding: 2.5rem 0 1.5rem;
}

.footer__grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 800px) {
  .footer__grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
    align-items: center;
  }
}

.footer__brand img {
  width: 140px;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.footer__brand p {
  margin: 0.55rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
}

.footer__support,
.footer__bot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
}

.footer__support:hover,
.footer__bot:hover {
  color: var(--white);
}

.footer__wa {
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: #25d366;
  color: var(--white);
}

.footer__wa svg {
  width: 1.3rem;
  height: 1.3rem;
}

.footer__support small,
.footer__bot small {
  display: block;
  opacity: 0.75;
  font-size: 0.8rem;
}

.footer__support strong,
.footer__bot strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
}

.footer__copy {
  width: min(100% - 2rem, var(--max));
  margin: 2rem auto 0;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
  font-size: 0.85rem;
  opacity: 0.7;
}

/* —— Privacy policy page —— */
.privacy-page .privacy-main {
  width: min(100% - 2rem, var(--max));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
  position: relative;
  z-index: 1;
}

.privacy-intro {
  margin: 0 0 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--outline);
  color: var(--muted);
  line-height: 1.7;
  font-size: 0.95rem;
}

.privacy-intro span[lang="ar"] {
  display: block;
  margin-top: 0.65rem;
}

.privacy-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 960px) {
  .privacy-grid {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

.privacy-card {
  background: var(--white);
  border: 1px solid var(--outline);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.25rem 1.5rem;
}

.privacy-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
}

.privacy-card h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  font-weight: 800;
  color: var(--brand-deep);
  line-height: 1.3;
}

.privacy-card h2 {
  margin: 1.35rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--brand-primary);
}

.privacy-card .meta {
  margin: 0 0 0.85rem;
  color: var(--neutral);
  font-size: 0.85rem;
}

.privacy-card p,
.privacy-card li {
  line-height: 1.7;
  font-size: 0.95rem;
  color: var(--ink);
}

.privacy-card ul {
  margin: 0.35rem 0 0;
  padding-inline-start: 1.2rem;
}

.privacy-card li + li {
  margin-top: 0.45rem;
}

.privacy-card a {
  color: var(--brand-primary);
  font-weight: 600;
  text-decoration: none;
}

.privacy-card a:hover {
  text-decoration: underline;
}

.privacy-card code {
  font-size: 0.85em;
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--student-soft);
  color: var(--brand-strong);
}

.privacy-card--ar {
  font-family: var(--font-body);
}

/* —— Assistant privacy theme (matches assistant Android app) —— */
.privacy-page--assistant {
  --brand-deep: #001748;
  --brand-primary: #006a6a;
  --brand-strong: #0d2b6b;
  --brand-teal: #6df4f3;
  --assistant-navy: #001748;
  --assistant-teal: #006a6a;
  --assistant-teal-soft: #e6f6f6;
  --assistant-surface: #f7fafc;
  --ink: #181c1e;
  --muted: #444650;
  --neutral: #757681;
  --surface: #f7fafc;
  --outline: #c5c6d2;
  --shadow: 0 18px 40px rgba(0, 23, 72, 0.12);
  --student-soft: #e6f6f6;
  background: var(--assistant-surface);
}

.privacy-page--assistant .atmosphere {
  background:
    radial-gradient(ellipse 70% 45% at 100% 0%, rgba(109, 244, 243, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 15%, rgba(0, 106, 106, 0.16), transparent 50%),
    radial-gradient(ellipse 50% 35% at 50% 0%, rgba(13, 43, 107, 0.18), transparent 55%),
    linear-gradient(180deg, #dce8ef 0%, var(--assistant-surface) 34%, var(--assistant-surface) 100%);
}

.privacy-page--assistant .topbar {
  background: linear-gradient(90deg, #001748 0%, #0d2b6b 48%, #006a6a 100%);
  border-bottom: 1px solid rgba(109, 244, 243, 0.25);
}

.privacy-page--assistant .topbar__inner {
  padding: 0.7rem 0;
}

.privacy-page--assistant .brand {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid rgba(109, 244, 243, 0.22);
}

.privacy-page--assistant .brand img {
  width: min(220px, 58vw);
  height: auto;
}

.privacy-page--assistant .pill {
  background: rgba(109, 244, 243, 0.16);
  color: #e8fffe;
  border: 1px solid rgba(109, 244, 243, 0.35);
}

.privacy-page--assistant .privacy-intro {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(0, 106, 106, 0.22);
  border-inline-start: 4px solid var(--assistant-teal);
}

.privacy-page--assistant .privacy-card h1 {
  color: var(--assistant-navy);
}

.privacy-page--assistant .privacy-card h2 {
  color: var(--assistant-teal);
}

.privacy-page--assistant .privacy-card a {
  color: #005858;
}

.privacy-page--assistant .privacy-card code {
  background: var(--assistant-teal-soft);
  color: var(--assistant-navy);
}

.privacy-page--assistant .footer {
  background: linear-gradient(90deg, #001748 0%, #0d2b6b 45%, #006a6a 100%);
  color: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(109, 244, 243, 0.22);
}

.privacy-page--assistant .footer__brand img {
  width: min(180px, 55vw);
  filter: none;
  opacity: 1;
}

.privacy-page--assistant .footer__brand p {
  color: #6df4f3;
}

.privacy-page--assistant .footer__bot {
  color: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(109, 244, 243, 0.28);
  border-radius: 14px;
  padding: 0.75rem 0.9rem;
}

.privacy-page--assistant .footer__bot:hover {
  color: #ffffff;
  border-color: rgba(109, 244, 243, 0.55);
  background: rgba(109, 244, 243, 0.08);
}

.privacy-page--assistant .footer__bot strong {
  color: #ffffff;
}

.privacy-page--assistant .footer__copy {
  color: rgba(255, 255, 255, 0.7);
  border-top-color: rgba(255, 255, 255, 0.14);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .atmosphere,
  .hero__copy,
  .hero__visual,
  .phone,
  .store-badge,
  .btn--telegram {
    animation: none !important;
    transition: none !important;
  }
}
