:root {
  --navy-950: #050d17;
  --navy-900: #071525;
  --navy-800: #0d2136;
  --navy-700: #14324d;
  --cream: #f7f2e9;
  --cream-soft: #d8d0c4;
  --gold: #d8b477;
  --gold-bright: #f0d49f;
  --line: rgba(230, 205, 160, 0.17);
  --font: "IBM Plex Sans Arabic", "SF Arabic", Tahoma, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--navy-950);
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 0%, rgba(56, 113, 154, 0.23), transparent 32rem),
    linear-gradient(145deg, var(--navy-900), var(--navy-950) 64%);
  color: var(--cream);
  font-family: var(--font);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 56px 56px;
  content: "";
  mask-image: linear-gradient(to bottom, black, transparent 72%);
  pointer-events: none;
}

.page-glow {
  position: fixed;
  z-index: -1;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  filter: blur(95px);
  opacity: 0.14;
  pointer-events: none;
}

.page-glow--top {
  top: -12rem;
  left: -8rem;
  background: #d8b477;
}

.page-glow--bottom {
  right: -10rem;
  bottom: -10rem;
  background: #4c9ee4;
}

.page-shell {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.teacher-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 28px 22px;
  border-bottom: 1px solid var(--line);
}

.teacher-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  text-decoration: none;
}

.teacher-brand__mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(240, 212, 159, 0.32);
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(240, 212, 159, 0.17), rgba(216, 180, 119, 0.04));
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
}

.teacher-brand__mark svg {
  width: 30px;
  fill: none;
  stroke: var(--gold-bright);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.teacher-brand strong,
.teacher-brand small {
  display: block;
}

.teacher-brand strong {
  font-size: 1.2rem;
  line-height: 1.2;
}

.teacher-brand small {
  margin-top: 4px;
  color: #9cabb8;
  font-size: 0.78rem;
}

.download-only {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #aeb9c3;
  font-size: 0.84rem;
}

.download-only span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #58d99a;
  box-shadow: 0 0 0 5px rgba(88, 217, 154, 0.09), 0 0 16px rgba(88, 217, 154, 0.45);
}

main {
  padding-block: clamp(44px, 7vw, 84px) 52px;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(260px, 0.55fr);
  align-items: end;
  gap: clamp(30px, 6vw, 76px);
  margin-bottom: 40px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.intro__copy {
  max-width: 690px;
  margin: 18px 0 0;
  color: #bdc6ce;
  font-size: clamp(1rem, 1.6vw, 1.14rem);
  line-height: 1.9;
}

.single-download-note {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.05);
}

.single-download-note__icon {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  background: rgba(216, 180, 119, 0.13);
  color: var(--gold-bright);
}

.single-download-note svg {
  width: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.single-download-note p {
  margin: 0;
  color: #aeb9c3;
  font-size: 0.91rem;
  line-height: 1.7;
}

.single-download-note strong {
  color: var(--cream);
  font-weight: 600;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.download-card {
  --platform: var(--gold);
  position: relative;
  display: flex;
  min-height: 470px;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(26px, 3vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 30px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)),
    rgba(8, 22, 37, 0.88);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.24), inset 0 1px rgba(255, 255, 255, 0.06);
  isolation: isolate;
}

.download-card::before {
  position: absolute;
  z-index: -1;
  top: -9rem;
  right: -8rem;
  width: 20rem;
  height: 20rem;
  border-radius: 50%;
  background: var(--platform);
  content: "";
  filter: blur(90px);
  opacity: 0.11;
}

.download-card--android {
  --platform: #61d991;
}

.download-card--windows {
  --platform: #6eafff;
}

.download-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.platform-icon {
  display: grid;
  width: 76px;
  height: 76px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--platform) 34%, transparent);
  border-radius: 24px;
  background: color-mix(in srgb, var(--platform) 12%, transparent);
  color: var(--platform);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.09);
}

.platform-icon svg {
  width: 43px;
  height: 43px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3.2;
}

.download-card--windows .platform-icon svg {
  fill: currentColor;
  stroke: none;
}

.version-pill {
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #aeb9c3;
  font-size: 0.76rem;
}

.download-card__content {
  margin-top: 30px;
}

.platform-name {
  margin: 0 0 4px;
  color: var(--platform);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.download-card h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  font-weight: 600;
}

.download-card__content > p:last-child {
  max-width: 450px;
  margin: 10px 0 0;
  color: #aeb9c3;
  line-height: 1.8;
}

.download-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: auto 0 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.075);
}

.download-meta div {
  padding: 12px 15px;
  background: rgba(5, 13, 23, 0.52);
}

.download-meta dt,
.download-meta dd {
  margin: 0;
}

.download-meta dt {
  margin-bottom: 3px;
  color: #718292;
  font-size: 0.71rem;
}

.download-meta dd {
  color: #dbe2e8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", var(--font);
  font-size: 0.83rem;
  font-weight: 600;
}

.download-button {
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 13px 19px;
  border: 1px solid color-mix(in srgb, var(--platform) 58%, transparent);
  border-radius: 17px;
  background: var(--platform);
  box-shadow: 0 15px 36px color-mix(in srgb, var(--platform) 16%, transparent);
  color: #06111d;
  font-weight: 700;
  text-decoration: none;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease;
}

.download-button svg {
  width: 23px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.download-button:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
}

.download-button:active {
  transform: translateY(0);
}

.download-button:focus-visible,
.teacher-brand:focus-visible,
footer a:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 4px;
}

.update-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 13px 2px 0;
  color: #8495a4;
  font-size: 0.76rem;
}

.update-note span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6eafff;
  box-shadow: 0 0 10px rgba(110, 175, 255, 0.7);
}

.install-help {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: center;
  gap: 30px;
  margin-top: 22px;
  padding: 22px 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.028);
}

.install-help__heading {
  display: flex;
  align-items: center;
  gap: 14px;
}

.install-help__heading > span {
  display: grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 15px;
  background: rgba(216, 180, 119, 0.11);
  color: var(--gold-bright);
}

.install-help svg {
  width: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.install-help h2,
.install-help p {
  margin: 0;
}

.install-help h2 {
  font-size: 1rem;
}

.install-help__heading p,
.install-help__detail {
  color: #8f9daa;
  font-size: 0.82rem;
  line-height: 1.7;
}

.install-help__detail {
  padding-inline-start: 30px;
  border-inline-start: 1px solid var(--line);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 22px 34px;
  border-top: 1px solid var(--line);
  color: #687989;
  font-size: 0.78rem;
}

footer a {
  color: #8d9aa7;
  text-decoration: none;
}

@media (max-width: 780px) {
  .page-shell {
    width: min(100% - 30px, 620px);
  }

  .teacher-nav {
    padding-block: 18px;
  }

  .download-only {
    display: none;
  }

  main {
    padding-block: 38px 36px;
  }

  .intro {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 26px;
  }

  h1 {
    font-size: clamp(2.2rem, 11vw, 3.35rem);
  }

  .single-download-note {
    padding: 14px;
  }

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

  .download-card {
    min-height: 430px;
    padding: 24px;
    border-radius: 25px;
  }

  .install-help {
    grid-template-columns: 1fr;
    gap: 17px;
  }

  .install-help__detail {
    padding: 16px 0 0;
    border-top: 1px solid var(--line);
    border-inline-start: 0;
  }
}

@media (max-width: 430px) {
  .page-shell {
    width: calc(100% - 24px);
  }

  .teacher-brand__mark {
    width: 43px;
    height: 43px;
    border-radius: 15px;
  }

  .intro__copy {
    font-size: 0.95rem;
  }

  .platform-icon {
    width: 66px;
    height: 66px;
    border-radius: 21px;
  }

  .platform-icon svg {
    width: 37px;
    height: 37px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
