:root {
  --petrol: #00413c;
  --petrol-2: #0f5a54;
  --petrol-3: #0b302d;
  --green: #2d6a4f;
  --green-deep: #1e523d;
  --green-soft: #e4efe6;
  --gold: #c2a91f;
  --gold-light: #f3df63;
  --paper: #f6f8f2;
  --white: #ffffff;
  --ink: #102522;
  --muted: #687873;
  --line: #dce7dc;
  --ui: "Tajawal", sans-serif;
  --display: "El Messiri", "Tajawal", sans-serif;
  --naskh: "Noto Naskh Arabic", serif;
  --shadow: 0 24px 60px -38px rgba(0, 65, 60, 0.42);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--ui);
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.7;
}

html[dir="ltr"] body {
  --ui: "Inter", sans-serif;
  --display: "Inter", sans-serif;
  --naskh: "Inter", sans-serif;
}

body.menu-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid var(--gold-light);
  outline-offset: 4px;
}

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

.skip-link {
  position: fixed;
  inset-inline-start: 20px;
  top: -80px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 6px;
  background: var(--white);
  color: var(--petrol);
  font-weight: 800;
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  color: var(--white);
  transition: background 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.site-header.scrolled,
.site-header.menu-visible {
  color: var(--ink);
  background: rgba(245, 247, 243, 0.96);
  box-shadow: 0 8px 30px -24px rgba(0, 65, 60, 0.7);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 82px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 36px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.site-header.scrolled .header-inner,
.site-header.menu-visible .header-inner {
  border-color: rgba(16, 37, 34, 0.1);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
}

.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  color: var(--petrol-3);
  background: var(--gold-light);
  box-shadow: inset 0 -3px 0 rgba(194, 169, 31, 0.22);
  font-family: var(--naskh);
  font-size: 29px;
  font-weight: 700;
  line-height: 1;
}

.brand-copy {
  display: grid;
  row-gap: 11px;
  line-height: 1.2;
}

.brand-copy b {
  font-family: var(--display);
  font-size: 22px;
}

.brand-copy small {
  margin-top: 0;
  color: currentColor;
  font-size: 10px;
  line-height: 1.35;
  opacity: 0.7;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.language-switcher {
  min-height: 38px;
  display: inline-grid;
  grid-template-columns: repeat(3, 34px);
  align-items: center;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.language-switcher button {
  width: 34px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  color: inherit;
  background: transparent;
  font: 700 11px/1 var(--ui);
  letter-spacing: 0;
  cursor: pointer;
}

.language-switcher button[aria-pressed="true"] {
  color: var(--petrol-3);
  background: var(--gold-light);
  box-shadow: 0 5px 12px -9px rgba(0, 0, 0, 0.55);
}

.site-header.scrolled .language-switcher,
.site-header.menu-visible .language-switcher {
  border-color: var(--line);
  background: var(--white);
}

.desktop-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
}

.desktop-nav a {
  position: relative;
  padding: 28px 0 24px;
  font-size: 14px;
  font-weight: 700;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 17px;
  width: 0;
  height: 2px;
  background: var(--gold-light);
  transition: width 180ms ease;
}

.desktop-nav a:hover::after {
  width: 100%;
}

.header-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  font-weight: 800;
  transition: background 150ms ease, color 150ms ease, transform 150ms ease;
}

.site-header.scrolled .header-cta,
.site-header.menu-visible .header-cta {
  border-color: var(--petrol);
  background: var(--petrol);
  color: var(--white);
}

.header-cta:hover {
  transform: translateY(-2px);
  background: var(--white);
  color: var(--petrol);
}

.menu-toggle,
.mobile-nav {
  display: none;
}

.hero {
  min-height: min(820px, 88svh);
  position: relative;
  display: grid;
  align-items: stretch;
  overflow: hidden;
  color: var(--white);
  background: var(--petrol-3) url("assets/landing/hero-arabic-learning.webp") center center / cover no-repeat;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 25, 23, 0.08) 10%, rgba(4, 25, 23, 0.22) 42%, rgba(3, 31, 28, 0.94) 100%),
    linear-gradient(180deg, rgba(2, 23, 21, 0.24), transparent 45%, rgba(2, 23, 21, 0.54));
}

html[dir="ltr"] .hero-shade {
  background:
    linear-gradient(270deg, rgba(4, 25, 23, 0.08) 10%, rgba(4, 25, 23, 0.22) 42%, rgba(3, 31, 28, 0.94) 100%),
    linear-gradient(180deg, rgba(2, 23, 21, 0.24), transparent 45%, rgba(2, 23, 21, 0.54));
}

.hero-inner {
  position: relative;
  z-index: 1;
  min-height: inherit;
  display: grid;
  grid-template-rows: 1fr auto;
  align-items: center;
  padding-top: 110px;
  padding-bottom: 34px;
}

.hero-copy {
  width: min(620px, 58%);
  margin-inline-start: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 800;
}

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 92px;
  font-weight: 700;
  line-height: 1;
}

.hero-lead {
  margin: 18px 0 10px;
  font-family: var(--naskh);
  font-size: 32px;
  line-height: 1.45;
}

.hero-description {
  max-width: 590px;
  margin: 0;
  color: rgba(255, 255, 255, 0.83);
  font-family: var(--naskh);
  font-size: 20px;
  line-height: 1.9;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 26px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--gold-light);
  color: var(--petrol-3);
  box-shadow: 0 16px 30px -22px rgba(243, 223, 99, 0.94);
}

.button-primary:hover {
  background: var(--white);
}

.button-ghost {
  border-color: rgba(255, 255, 255, 0.36);
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(8px);
}

.button-ghost:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--petrol);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.24);
}

.hero-proof div {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding: 26px 28px 10px;
  border-inline-end: 1px solid rgba(255, 255, 255, 0.2);
}

.hero-proof div:last-child {
  border-inline-end: 0;
}

.hero-proof b {
  color: var(--gold-light);
  font-family: var(--display);
  font-size: 30px;
}

.hero-proof span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.promise-band {
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.promise-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.promise-item {
  min-height: 154px;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 36px 30px;
  border-inline-end: 1px solid var(--line);
}

.promise-item:last-child {
  border-inline-end: 0;
}

.promise-item > span,
.method-row > span {
  color: var(--green);
  font-family: var(--display);
  font-size: 13px;
  font-weight: 800;
}

.promise-item b {
  display: block;
  margin-bottom: 5px;
  font-family: var(--display);
  font-size: 17px;
}

.promise-item p,
.journey-step p,
.topic-card p,
.method-row p,
.level-option p {
  margin: 0;
  color: var(--muted);
}

.section {
  padding: 110px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 52px;
}

.section-heading-row {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
}

.section-kicker {
  color: var(--gold);
}

.section-kicker.light {
  color: var(--gold-light);
}

.section-heading h2,
.method-intro h2,
.closing-inner h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 46px;
  line-height: 1.35;
}

.section-heading > p:last-child,
.section-heading > div > p:last-child,
.method-intro > p:nth-of-type(2) {
  margin: 16px 0 0;
  color: var(--muted);
  font-family: var(--naskh);
  font-size: 20px;
  line-height: 1.85;
}

.journey-section {
  position: relative;
  overflow: hidden;
}

.journey-section::after {
  content: "ض";
  position: absolute;
  inset-inline-start: -40px;
  bottom: -180px;
  color: rgba(0, 65, 60, 0.035);
  font-family: var(--naskh);
  font-size: 520px;
  line-height: 1;
  pointer-events: none;
}

.journey-track {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.journey-step {
  min-height: 230px;
  padding: 34px 30px;
  border-inline-end: 1px solid var(--line);
}

.journey-step:last-child {
  border-inline-end: 0;
}

.journey-step > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  margin-bottom: 34px;
  border: 1px solid rgba(45, 106, 79, 0.3);
  border-radius: 50%;
  color: var(--green-deep);
  background: var(--green-soft);
  font-weight: 800;
}

.journey-step b {
  display: block;
  margin-bottom: 8px;
  font-family: var(--display);
  font-size: 22px;
}

.topics-section {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.text-link {
  flex: 0 0 auto;
  color: var(--green-deep);
  font-weight: 800;
}

.text-link span {
  display: inline-block;
  transition: transform 160ms ease;
}

.text-link:hover span {
  transform: translateX(-5px);
}

html[dir="ltr"] .text-link:hover span {
  transform: translateX(5px);
}

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

.topic-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.topic-card:hover {
  transform: translateY(-6px);
  border-color: rgba(45, 106, 79, 0.38);
  box-shadow: 0 30px 70px -42px rgba(0, 65, 60, 0.58);
}

.topic-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.topic-card > div {
  padding: 26px;
}

.topic-card span {
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
}

.topic-card h3 {
  margin: 8px 0 10px;
  font-family: var(--display);
  font-size: 22px;
  line-height: 1.4;
}

.method-section {
  padding: 110px 0;
  color: var(--white);
  background:
    linear-gradient(rgba(0, 65, 60, 0.96), rgba(0, 50, 46, 0.98)),
    url("assets/vocab-a2/unit-10/lesson-099/language.webp") center / cover;
}

.method-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 96px;
  align-items: start;
}

.method-intro > p:nth-of-type(2) {
  color: rgba(255, 255, 255, 0.7);
}

.button-light {
  margin-top: 28px;
  border-color: rgba(255, 255, 255, 0.34);
  color: var(--white);
}

.button-light:hover {
  background: var(--white);
  color: var(--petrol);
}

.method-list {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
}

.method-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.method-row h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 21px;
}

.method-row p {
  color: rgba(255, 255, 255, 0.66);
}

.levels-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 90px;
  align-items: start;
}

.level-options {
  border-top: 1px solid var(--line);
}

.level-option {
  display: grid;
  grid-template-columns: 74px 1fr auto;
  align-items: center;
  gap: 22px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}

.level-option:hover .level-code {
  color: var(--white);
  border-color: var(--green);
  background: var(--green);
}

.level-code {
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(45, 106, 79, 0.3);
  border-radius: 8px;
  color: var(--green-deep);
  background: var(--green-soft);
  font-family: var(--display);
  font-size: 20px;
  font-weight: 800;
  transition: color 160ms ease, background 160ms ease;
}

.level-option b {
  display: block;
  margin-bottom: 4px;
  font-family: var(--display);
  font-size: 19px;
}

.level-option strong {
  color: var(--green-deep);
}

.closing-cta {
  position: relative;
  min-height: 480px;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--white);
  text-align: center;
  background:
    linear-gradient(rgba(4, 33, 30, 0.72), rgba(4, 33, 30, 0.88)),
    url("assets/landing/hero-arabic-learning.webp") center 44% / cover;
}

.closing-inner {
  position: relative;
  z-index: 1;
}

.closing-inner p {
  margin: 0 0 8px;
  color: var(--gold-light);
  font-weight: 800;
}

.closing-inner h2 {
  max-width: 780px;
  margin-inline: auto;
}

.button-gold {
  margin-top: 28px;
  background: var(--gold-light);
  color: var(--petrol-3);
}

.button-gold:hover {
  background: var(--white);
}

.site-footer {
  padding: 58px 0 30px;
  color: rgba(255, 255, 255, 0.72);
  background: #082e2a;
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
}

.footer-brand {
  color: var(--white);
}

.footer-inner > p {
  margin: 0;
  font-size: 14px;
}

.footer-links {
  display: flex;
  gap: 22px;
  font-size: 13px;
  font-weight: 700;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-inner > small {
  grid-column: 1 / -1;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 560ms ease, transform 560ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 960px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

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

  .header-actions {
    gap: 10px;
  }

  .menu-toggle {
    width: 46px;
    height: 46px;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 5px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 8px;
    color: inherit;
    background: rgba(255, 255, 255, 0.08);
  }

  .site-header.scrolled .menu-toggle,
  .site-header.menu-visible .menu-toggle {
    border-color: var(--line);
    background: var(--white);
  }

  .menu-toggle span {
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .mobile-nav {
    max-height: 0;
    display: grid;
    overflow: hidden;
    color: var(--ink);
    background: var(--paper);
    transition: max-height 220ms ease;
  }

  .mobile-nav.open {
    max-height: 380px;
    border-bottom: 1px solid var(--line);
  }

  .mobile-nav a {
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 0 24px;
    border-top: 1px solid var(--line);
    font-weight: 700;
  }

  .hero-copy {
    width: min(660px, 76%);
  }

  .hero h1 {
    font-size: 78px;
  }

  .promise-grid,
  .journey-track {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promise-item:nth-child(2),
  .journey-step:nth-child(2) {
    border-inline-end: 0;
  }

  .promise-item:last-child {
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
  }

  .journey-step:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }

  .method-layout,
  .levels-layout {
    grid-template-columns: 1fr;
    gap: 52px;
  }

  .method-intro {
    max-width: 720px;
  }
}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 74px;
  }

  .shell {
    width: min(100% - 30px, 1180px);
  }

  .header-inner {
    min-height: 70px;
    gap: 14px;
  }

  .header-actions {
    gap: 8px;
  }

  .language-switcher {
    grid-template-columns: repeat(3, 29px);
    padding: 2px;
  }

  .language-switcher button {
    width: 29px;
    height: 29px;
    font-size: 10px;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    font-size: 25px;
  }

  .brand-copy b {
    font-size: 19px;
  }

  .brand-copy small {
    margin-top: 0;
  }

  .hero {
    min-height: 760px;
    background-position: 38% center;
  }

  .hero-shade {
    background:
      linear-gradient(180deg, rgba(3, 30, 27, 0.38) 0%, rgba(3, 30, 27, 0.72) 45%, rgba(3, 30, 27, 0.97) 100%),
      linear-gradient(90deg, rgba(3, 30, 27, 0.22), rgba(3, 30, 27, 0.62));
  }

  .hero-inner {
    grid-template-rows: 1fr auto;
    align-items: end;
    padding-top: 108px;
    padding-bottom: 24px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1 {
    font-size: 58px;
  }

  .hero-lead {
    font-size: 26px;
  }

  .hero-description {
    font-size: 18px;
    line-height: 1.75;
  }

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

  .button {
    min-width: 0;
    padding-inline: 16px;
  }

  .hero-proof {
    margin-top: 44px;
  }

  .hero-proof div {
    display: grid;
    gap: 0;
    padding: 18px 10px 4px;
    text-align: center;
  }

  .hero-proof b {
    font-size: 22px;
  }

  .hero-proof span {
    font-size: 10px;
  }

  .promise-grid,
  .journey-track,
  .topic-gallery {
    grid-template-columns: 1fr;
  }

  .promise-item,
  .promise-item:nth-child(2),
  .journey-step,
  .journey-step:nth-child(2) {
    min-height: 0;
    border-inline-end: 0;
  }

  .promise-item + .promise-item,
  .journey-step + .journey-step {
    border-top: 1px solid var(--line);
  }

  .promise-item:last-child {
    grid-column: auto;
  }

  .section,
  .method-section {
    padding: 76px 0;
  }

  .section-heading {
    margin-bottom: 36px;
  }

  .section-heading-row {
    display: block;
  }

  .section-heading h2,
  .method-intro h2,
  .closing-inner h2 {
    font-size: 34px;
  }

  .section-heading > p:last-child,
  .section-heading > div > p:last-child,
  .method-intro > p:nth-of-type(2) {
    font-size: 18px;
  }

  .text-link {
    display: inline-block;
    margin-top: 20px;
  }

  .journey-step {
    min-height: 0;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 18px;
    padding: 28px 8px;
  }

  .journey-step > span {
    margin: 0;
  }

  .topic-card > div {
    padding: 22px;
  }

  .method-layout {
    gap: 40px;
  }

  .level-option {
    grid-template-columns: 56px 1fr;
    gap: 16px;
  }

  .level-code {
    width: 52px;
    height: 52px;
  }

  .level-option strong {
    grid-column: 2;
  }

  .closing-cta {
    min-height: 420px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-brand,
  .footer-links {
    margin-inline: auto;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 410px) {
  .brand-copy small {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
