/*! دَرِّسْ landing — white canvas · navy blue · charcoal */
:root {
  --navy: #0B1B33;
  --navy-2: #143056;
  --accent: #2F6FE0;
  --accent-2: #1E54B8;
  --accent-soft: #8BAAD9;
  --gray: #3A4454;
  --gray-2: #5B6575;
  --gray-3: #7A8494;
  --ink: #0B1B33;
  --muted: #5B6575;
  --line: rgba(58, 68, 84, 0.12);
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-elev: #ffffff;
  --shadow-sm: 0 2px 10px rgba(11, 27, 51, 0.05);
  --shadow: 0 12px 36px rgba(11, 27, 51, 0.08);
  --shadow-lg: 0 24px 60px rgba(11, 27, 51, 0.12);
  --radius: 18px;
  --radius-lg: 26px;
  --font: "Cairo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --nav-h: 72px;
  --sticky-auth: 0px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #07111f;
  --bg-soft: #0b1b33;
  --bg-elev: #10243f;
  --ink: #f3f6fb;
  --muted: #9aa6b8;
  --gray: #1c2738;
  --gray-2: #8b96a8;
  --gray-3: #a7b1c0;
  --line: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.25);
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 28px 64px rgba(0, 0, 0, 0.45);
  --accent: #5b8ff0;
  --accent-2: #3d74d8;
  --accent-soft: #9bb6e0;
  color-scheme: dark;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: calc(var(--sticky-auth) + var(--safe-b));
}

body.landing-guest { --sticky-auth: 72px; }
body.nav-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, select { font: inherit; }
.d-none { display: none !important; }

.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 46px;
  padding: 0.7rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid transparent;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  text-decoration: none !important;
  white-space: nowrap;
}

.btn:hover { color: inherit; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: linear-gradient(135deg, #4a86ea 0%, var(--accent) 48%, var(--accent-2) 100%);
  color: #fff !important;
  box-shadow: 0 12px 28px rgba(47, 111, 224, 0.28);
}

.btn-primary:hover {
  filter: brightness(1.04);
  box-shadow: 0 16px 34px rgba(47, 111, 224, 0.36);
}

.btn-outline {
  background: var(--bg-elev);
  border-color: var(--line);
  color: var(--ink) !important;
  box-shadow: var(--shadow-sm);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent) !important;
}

.btn-ghost {
  background: transparent;
  color: var(--gray-2) !important;
}

.btn-ghost:hover {
  background: var(--bg-soft);
  color: var(--accent) !important;
}

.btn-sm {
  min-height: 40px;
  padding: 0.5rem 1.05rem;
  font-size: 0.9rem;
}

.btn-cta {
  min-height: 52px;
  padding-inline: 1.6rem;
  font-size: 1.02rem;
}

/* —— Nav —— */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: var(--safe-t);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

[data-theme="dark"] .site-nav {
  background: rgba(7, 17, 31, 0.88);
}

.site-nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none !important;
  color: var(--ink) !important;
  flex-shrink: 0;
}

.brand-mark {
  width: 40px;
  height: 40px;
  display: block;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.logo-word {
  font-weight: 800;
  font-size: 1.45rem;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--navy);
}

[data-theme="dark"] .logo-word { color: #fff; }

.nav-links {
  display: none;
  list-style: none;
  margin: 0 auto;
  padding: 0;
  gap: 0.1rem;
}

.nav-links a {
  display: block;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none !important;
}

.nav-links a:hover {
  color: var(--accent);
  background: rgba(47, 111, 224, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-inline-start: auto;
}

.nav-auth { display: none; gap: 0.4rem; align-items: center; }

.country-picker select {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--gray-2);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 7.5rem;
  box-shadow: var(--shadow-sm);
}

.theme-toggle,
.nav-toggle {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-elev);
  color: var(--gray-2);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.theme-toggle:hover,
.nav-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.nav-toggle svg { width: 20px; height: 20px; }

.nav-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  padding: 0.75rem 0 1.1rem;
}

.nav-panel.is-open { display: block; }

.nav-panel a {
  display: block;
  padding: 0.75rem 0;
  font-weight: 700;
  border-bottom: 1px solid var(--line);
  text-decoration: none !important;
}

.nav-panel-auth {
  display: flex;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

@media (min-width: 920px) {
  .nav-links { display: flex; }
  .nav-auth { display: flex; }
  .nav-toggle { display: none; }
  .nav-panel { display: none !important; }
}

/* —— Hero —— */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg);
  padding: 1.5rem 0 2rem;
}

@media (min-width: 960px) {
  .hero {
    min-height: calc(100svh - var(--nav-h));
    display: flex;
    align-items: center;
    padding: 2rem 0 3rem;
  }
}

.hero-atmosphere { display: none; }

.hero-grid {
  display: grid;
  gap: 1.75rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2.75rem;
  }
}

.hero-copy {
  animation: rise-in 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hero-brand {
  margin: 0 0 0.35rem;
  font-size: clamp(3.2rem, 8vw, 5.6rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--navy);
}

[data-theme="dark"] .hero-brand { color: #fff; }

.hero-slogan {
  margin: 0 0 1rem;
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.hero-lead {
  margin: 0 0 1.4rem;
  max-width: 34rem;
  font-size: clamp(0.98rem, 1.5vw, 1.1rem);
  color: var(--muted);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.hero-visual {
  animation: rise-in 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
  padding: 1rem;
  border-radius: calc(var(--radius-lg) + 8px);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lg);
}

@media (min-width: 960px) {
  .hero-stage { min-height: 420px; }
}

.hero-stage-glow,
.hero-orbit,
.hero-orbit--slow { display: none; }

.hero-illu {
  width: min(380px, 92%);
  height: auto;
  position: relative;
  z-index: 1;
}

.hi-device { transform-origin: 210px 170px; animation: float-y 5.5s ease-in-out infinite; }
.hi-play { transform-origin: 210px 162px; animation: play-pulse 2.4s ease-in-out infinite; }
.hi-float { animation: float-y 4.8s ease-in-out infinite; }
.hi-float--a { animation-delay: -1.4s; }
.hi-float--b { animation-delay: -2.6s; }
.hi-spark { animation: spark 3.2s ease-in-out infinite; }
.hi-spark--2 { animation-delay: -0.8s; }
.hi-spark--3 { animation-delay: -1.6s; }
.hi-spark--4 { animation-delay: -2.2s; }
.hi-ring { transform-origin: 210px 210px; animation: au-spin 28s linear infinite; }
.hi-ring--rev { animation-direction: reverse; animation-duration: 40s; }

.hero-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.6rem 0.85rem;
  border-radius: 16px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  color: var(--ink);
  animation: float-y 4.8s ease-in-out infinite;
}

.hero-chip strong {
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-chip small {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
}

.hero-chip--progress {
  inset-inline-start: 4%;
  bottom: 8%;
  animation-delay: -0.5s;
}

.hero-chip--live {
  top: 8%;
  inset-inline-end: 6%;
  animation-delay: -1.8s;
}

.hero-chip--lab {
  bottom: 18%;
  inset-inline-end: 4%;
  color: var(--accent);
  animation-delay: -2.8s;
}

.hero-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(47, 111, 224, 0.45);
  animation: live-dot 1.6s ease-out infinite;
}

@keyframes live-dot {
  0% { box-shadow: 0 0 0 0 rgba(47, 111, 224, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(47, 111, 224, 0); }
  100% { box-shadow: 0 0 0 0 rgba(47, 111, 224, 0); }
}

.hero-progress-ring {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}

.hero-progress-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.hero-progress-ring circle {
  fill: none;
  stroke-width: 7;
}

.hero-progress-ring circle:first-child {
  stroke: rgba(47, 111, 224, 0.15);
}

.hero-progress-ring circle:last-child {
  stroke: var(--accent);
  stroke-linecap: round;
  stroke-dasharray: var(--p) 100;
}

.hero-progress-ring span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--navy);
}

[data-theme="dark"] .hero-progress-ring span { color: var(--accent-soft); }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

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

@keyframes play-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes spark {
  0%, 100% { opacity: 0.35; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-6px); }
}

@keyframes au-spin {
  to { transform: rotate(360deg); }
}

/* —— Sections —— */
.section {
  padding: 3rem 0;
  background: var(--bg);
}

.section--tight { padding: 2.25rem 0; }

.section--soft {
  background: var(--bg);
}

.section-head {
  max-width: 36rem;
  margin-bottom: 1.5rem;
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
}

.section-head h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.45rem, 2.8vw, 1.95rem);
  font-weight: 800;
  color: var(--ink);
  line-height: 1.25;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.98rem;
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
}

/* —— Paths grid (clear 3-up) —— */
.paths-grid {
  display: grid;
  gap: 2rem 1.5rem;
  grid-template-columns: 1fr;
  max-width: 1000px;
  margin-inline: auto;
}

@media (min-width: 760px) {
  .paths-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem 2rem;
    align-items: start;
  }
}

.path-item {
  text-align: center;
  padding: 0 0.5rem;
}

@media (min-width: 760px) {
  .path-item {
    padding: 0 0.75rem;
    border-inline-start: 1px solid var(--line);
  }

  .path-item:first-child {
    border-inline-start: 0;
  }
}

.path-item__art {
  width: min(180px, 70%);
  margin: 0 auto 1rem;
}

.path-item__art svg {
  width: 100%;
  height: auto;
  overflow: visible;
}

.path-item__num {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}

.path-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--ink);
}

.path-item p {
  margin: 0 auto;
  max-width: 18rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.55;
}

/* —— Categories —— */
.cat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1rem;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink) !important;
  text-decoration: none !important;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.cat-chip:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  color: var(--accent) !important;
}

.cat-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: rgba(47, 111, 224, 0.1);
  color: var(--accent);
}

.cat-icon svg { width: 16px; height: 16px; }

/* —— Features split (illustration left · copy right) —— */
.fx-split {
  display: grid;
  gap: 1.5rem;
  align-items: stretch;
  max-width: 980px;
  margin-inline: auto;
  direction: ltr;
}

@media (min-width: 860px) {
  .fx-split {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 2rem;
    min-height: 340px;
  }
}

.fx-split__illu {
  position: relative;
  min-height: 260px;
  border-radius: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  overflow: hidden;
}

.fx-panel {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.fx-panel.is-active {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.fx-panel.is-exit {
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
}

.fx-svg {
  width: min(100%, 320px);
  height: auto;
  max-height: 210px;
  overflow: visible;
}

.fx-svg--lg {
  width: min(100%, 340px);
  max-height: 220px;
}

.fx-split__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  min-height: 220px;
  padding: 0.5rem 0.25rem;
  direction: rtl;
  text-align: start;
}

html[dir="ltr"] .fx-split__copy {
  direction: ltr;
}

.fx-copy {
  position: absolute;
  inset-inline: 0;
  top: 50%;
  transform: translateY(calc(-50% + 12px));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.fx-copy.is-active {
  opacity: 1;
  transform: translateY(-50%);
  pointer-events: auto;
}

.fx-copy.is-exit {
  opacity: 0;
  transform: translateY(calc(-50% - 12px));
}

.fx-copy h3 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.45rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.fx-copy h3::before {
  content: "";
  display: block;
  width: 36px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--accent), var(--gray-3));
  margin-bottom: 0.85rem;
}

.fx-copy p {
  margin: 0;
  max-width: 26rem;
  color: var(--muted);
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1.65;
}

.fx-split__meta {
  margin-top: auto;
  padding-top: 7.5rem;
  display: grid;
  gap: 0.85rem;
}

.fx-progress {
  height: 3px;
  border-radius: 99px;
  background: rgba(58, 68, 84, 0.12);
  overflow: hidden;
}

.fx-progress__bar {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.fx-progress__bar.is-running {
  animation: fx-progress-run linear forwards;
}

@keyframes fx-progress-run {
  from { width: 0%; }
  to { width: 100%; }
}

.fx-dots {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.fx-dot-btn {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(58, 68, 84, 0.28);
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}

.fx-dot-btn.is-active {
  width: 22px;
  background: var(--accent);
}

.fx-dot-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 859px) {
  .fx-split__copy {
    min-height: 0;
    padding: 0.25rem 0 0;
  }

  .fx-copy {
    position: relative;
    inset: auto;
    top: auto;
    transform: none;
    opacity: 0;
    height: 0;
    overflow: hidden;
    margin: 0;
  }

  .fx-copy.is-active {
    opacity: 1;
    height: auto;
    overflow: visible;
    transform: none;
  }

  .fx-copy.is-exit {
    opacity: 0;
    height: 0;
    transform: none;
  }

  .fx-split__meta {
    padding-top: 1.25rem;
  }
}

.fx-play { transform-origin: 160px 88px; animation: play-pulse 2.4s ease-in-out infinite; }
.fx-bar { transform-origin: left center; animation: fx-bar-grow 2.8s ease-in-out infinite; }
.fx-bar--2 { animation-delay: 0.35s; }
.fx-bar--3 { animation-delay: 0.7s; }
.fx-check { animation: fx-pop 3.2s ease-in-out infinite; }
.fx-check--late { animation-delay: 0.55s; }
.fx-check--late2 { animation-delay: 1.1s; }
.fx-check-mark {
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
  animation: fx-draw 3.2s ease-in-out infinite;
}
.fx-qrow { animation: fx-fade-row 3.2s ease-in-out infinite; }
.fx-qrow--2 { animation-delay: 0.4s; }
.fx-qrow--3 { animation-delay: 0.8s; }
.fx-ring { animation: fx-ring 3.5s ease-in-out infinite; }
.fx-pct { animation: fx-pct-glow 3.5s ease-in-out infinite; }
.fx-avatar { animation: float-y 4s ease-in-out infinite; }
.fx-avatar--2 { animation-delay: -1.2s; }
.fx-avatar--3 { animation-delay: -2.1s; }
.fx-badge { animation: fx-pop 2.8s ease-in-out infinite; }
.fx-flask { transform-origin: 160px 150px; animation: fx-sway 4.5s ease-in-out infinite; }
.fx-liquid { animation: fx-liquid 3.2s ease-in-out infinite; }
.fx-bubble { animation: fx-rise 2.8s ease-in-out infinite; }
.fx-bubble--2 { animation-delay: -0.7s; }
.fx-bubble--3 { animation-delay: -1.4s; }
.fx-coin { animation: fx-coin 2.8s ease-in-out infinite; }
.fx-coin--2 { animation-delay: -0.9s; }
.fx-wallet { animation: float-y 5s ease-in-out infinite; }

@keyframes fx-bar-grow {
  0%, 100% { transform: scaleX(0.55); opacity: 0.55; }
  50% { transform: scaleX(1); opacity: 1; }
}

@keyframes fx-pop {
  0%, 70%, 100% { transform: scale(1); }
  80% { transform: scale(1.18); }
}

@keyframes fx-draw {
  0%, 15% { stroke-dashoffset: 16; }
  35%, 70% { stroke-dashoffset: 0; }
  85%, 100% { stroke-dashoffset: 16; }
}

@keyframes fx-fade-row {
  0%, 100% { opacity: 0.45; }
  40%, 60% { opacity: 1; }
}

@keyframes fx-ring {
  0%, 100% { stroke-dashoffset: 100; }
  50% { stroke-dashoffset: 45; }
}

@keyframes fx-pct-glow {
  0%, 100% { opacity: 0.75; }
  50% { opacity: 1; }
}

@keyframes fx-sway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2.5deg); }
}

@keyframes fx-liquid {
  0%, 100% { transform: translateY(0); opacity: 0.45; }
  50% { transform: translateY(-3px); opacity: 0.7; }
}

@keyframes fx-rise {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(-10px); opacity: 1; }
}

@keyframes fx-coin {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-7px) scale(1.06); }
}

@media (prefers-reduced-motion: reduce) {
  .fx-panel, .fx-copy { transition: none; }
  .fx-progress__bar.is-running { animation: none; width: 100%; }
  .fx-play, .fx-bar, .fx-check, .fx-check-mark, .fx-qrow,
  .fx-ring, .fx-pct, .fx-avatar, .fx-badge, .fx-flask,
  .fx-liquid, .fx-bubble, .fx-coin, .fx-wallet {
    animation: none !important;
  }
}

/* —— Courses —— */
.courses-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

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

@media (min-width: 980px) {
  .courses-grid { grid-template-columns: repeat(3, 1fr); }
}

.course-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.course-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.course-image {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-soft);
}

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.course-badge {
  position: absolute;
  inset-inline-start: 0.75rem;
  bottom: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(11, 27, 51, 0.82);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
}

.course-content { padding: 1rem 1.05rem 1.15rem; }

.course-title {
  margin: 0 0 0.35rem;
  font-size: 1.02rem;
  font-weight: 800;
  line-height: 1.35;
}

.course-title a { text-decoration: none !important; color: var(--ink) !important; }
.course-title a:hover { color: var(--accent) !important; }

.course-instructor {
  margin: 0 0 0.65rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.course-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  color: var(--gray-2);
  font-size: 0.82rem;
  font-weight: 700;
}

.course-info span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.course-info svg { width: 15px; height: 15px; }

.courses-more {
  display: flex;
  justify-content: center;
  margin-top: 1.75rem;
}

/* —— CTA —— */
.cta-band {
  text-align: center;
  padding: clamp(2rem, 4vw, 3rem) 1.35rem;
  border-radius: calc(var(--radius-lg) + 6px);
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: auto -10% -40% 40%;
  height: 70%;
  background: radial-gradient(circle, rgba(47, 111, 224, 0.35), transparent 65%);
  pointer-events: none;
}

.cta-brand {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 4vw, 2.7rem);
  font-weight: 800;
  color: var(--accent-soft);
  position: relative;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  color: #fff;
  position: relative;
}

.cta-band > p {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: rgba(243, 246, 251, 0.75);
  font-weight: 600;
  position: relative;
}

.cta-band .btn-outline {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff !important;
  background: transparent;
  box-shadow: none;
}

.cta-band .btn-outline:hover {
  border-color: #fff;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08);
}

.cta-band .hero-ctas {
  justify-content: center;
  position: relative;
}

/* —— Ad —— */
.ad-strip { padding: 1.5rem 0 0; background: var(--bg); }

.ad-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  text-decoration: none !important;
}

.ad-card img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
}

.ad-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.9rem 1.1rem;
}

.ad-copy strong { font-weight: 800; }
.ad-copy span { color: var(--muted); font-size: 0.9rem; }

/* —— Footer —— */
.site-footer {
  padding: 2.75rem 0 1.5rem;
  background: var(--navy);
  color: rgba(243, 246, 251, 0.75);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  margin-bottom: 2rem;
}

@media (min-width: 760px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.logo--footer .logo-word { color: #fff; }

.footer-brand p {
  margin: 0.85rem 0 0;
  max-width: 22rem;
  font-weight: 600;
  font-size: 0.95rem;
}

.footer-col h4 {
  margin: 0 0 0.85rem;
  color: #fff;
  font-size: 1rem;
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.footer-links a {
  color: rgba(243, 246, 251, 0.72);
  font-weight: 600;
  text-decoration: none !important;
}

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

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  font-weight: 600;
}

.footer-bottom a { color: var(--accent-soft); }

/* —— Sticky auth —— */
.landing-sticky-auth {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  padding: 0.75rem 1rem calc(0.75rem + var(--safe-b));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 28px rgba(11, 27, 51, 0.08);
}

[data-theme="dark"] .landing-sticky-auth {
  background: rgba(7, 17, 31, 0.94);
}

@media (min-width: 920px) {
  .landing-sticky-auth { display: none; }
  body.landing-guest { --sticky-auth: 0px; }
}

.landing-sticky-auth__btn {
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none !important;
}

.landing-sticky-auth__btn--login {
  border: 1.5px solid var(--line);
  color: var(--gray-2) !important;
  background: var(--bg-elev);
}

.landing-sticky-auth__btn--join {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff !important;
  box-shadow: 0 8px 20px rgba(47, 111, 224, 0.28);
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s cubic-bezier(0.22, 1, 0.36, 1), transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--d, 0) * 60ms);
}

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

@media (max-width: 719px) {
  .wrap { width: min(1120px, calc(100% - 1.25rem)); }
  .hero-brand { font-size: clamp(2.5rem, 13vw, 3.4rem); }
  .hero-ctas .btn { flex: 1 1 auto; min-width: min(100%, 9.5rem); }
}

/* Legacy instructors (if present) */
.instructors-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.75rem;
  align-items: center;
}

.instructors-track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0.25rem;
}

.instructors-track::-webkit-scrollbar { display: none; }

.instructor-card {
  flex: 0 0 min(260px, 78vw);
  scroll-snap-align: start;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.carousel-nav {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--bg-elev);
  color: var(--ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.carousel-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.carousel-nav svg { width: 18px; height: 18px; }

@media (max-width: 719px) {
  .carousel-nav { display: none; }
  .instructors-row { grid-template-columns: 1fr; }
}
