/*! دَرِّسْ landing — brand system (navy + teal + Cairo) */
:root {
  --navy: #0D1B2A;
  --navy-2: #1B263B;
  --teal: #00BFA6;
  --mint: #A8E6CF;
  --sky: #E6F0FF;
  --cloud: #F7F9FB;
  --ink: #0D1B2A;
  --ink-2: #1B263B;
  --muted: #5A6B7D;
  --line: rgba(13, 27, 42, 0.1);
  --bg: var(--cloud);
  --bg-elev: #ffffff;
  --bg-muted: var(--sky);
  --shadow: 0 14px 40px rgba(13, 27, 42, 0.1);
  --radius: 16px;
  --radius-lg: 24px;
  --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: #08111c;
  --bg-elev: #122033;
  --bg-muted: #1B263B;
  --ink: #F7F9FB;
  --ink-2: #E6F0FF;
  --muted: #9BB0C4;
  --line: rgba(230, 240, 255, 0.12);
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.4);
  --cloud: #08111c;
  --sky: #122033;
  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(--teal); }
button, select { font: inherit; }
.d-none { display: none !important; }

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

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 44px;
  padding: 0.7rem 1.35rem;
  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, #00d4b8 0%, var(--teal) 45%, #009e8a 100%);
  background-size: 160% 160%;
  color: var(--navy) !important;
  box-shadow: 0 10px 28px rgba(0, 191, 166, 0.28);
  animation: btn-glow 4.5s ease-in-out infinite;
}

@keyframes btn-glow {
  0%, 100% { background-position: 0% 50%; box-shadow: 0 10px 28px rgba(0, 191, 166, 0.28); }
  50% { background-position: 100% 50%; box-shadow: 0 14px 34px rgba(0, 191, 166, 0.42); }
}

.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 14px 36px rgba(0, 191, 166, 0.4);
}

.btn-outline {
  background: transparent;
  border-color: color-mix(in srgb, var(--ink) 22%, transparent);
  color: var(--ink) !important;
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal) !important;
  background: color-mix(in srgb, var(--teal) 8%, transparent);
}

.btn-ghost {
  background: transparent;
  color: var(--ink) !important;
  border-color: transparent;
}
.btn-ghost:hover {
  background: color-mix(in srgb, var(--teal) 10%, transparent);
  color: var(--teal) !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: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px rgba(13, 27, 42, 0.06);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
}

.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;
}

.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: #ffffff; }

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

.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;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  color: var(--teal);
  background: color-mix(in srgb, var(--teal) 8%, transparent);
}

.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(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 7.5rem;
}

.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(--ink);
  cursor: pointer;
}

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

.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;
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 1.75rem 0 2.25rem;
  background:
    radial-gradient(900px 520px at 92% 8%, rgba(0, 191, 166, 0.28), transparent 55%),
    radial-gradient(700px 420px at 0% 90%, rgba(168, 230, 207, 0.42), transparent 52%),
    radial-gradient(500px 300px at 55% 0%, rgba(230, 240, 255, 0.7), transparent 60%),
    linear-gradient(165deg, #eef6ff 0%, var(--cloud) 42%, #ffffff 100%);
}

@media (min-width: 960px) {
  .hero {
    min-height: calc(100svh - var(--nav-h));
    padding: 2.25rem 0 3rem;
  }
}

[data-theme="dark"] .hero {
  background:
    radial-gradient(900px 520px at 90% 5%, rgba(0, 191, 166, 0.32), transparent 52%),
    radial-gradient(700px 420px at 5% 95%, rgba(0, 191, 166, 0.12), transparent 55%),
    radial-gradient(480px 280px at 50% 0%, rgba(27, 38, 59, 0.9), transparent 60%),
    linear-gradient(165deg, #071018 0%, #0D1B2A 52%, #122033 100%);
}

.hero-atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.55;
  animation: orb-drift 12s ease-in-out infinite alternate;
}

.hero-orb--a {
  width: 320px;
  height: 320px;
  background: var(--teal);
  top: -80px;
  inset-inline-end: 4%;
  opacity: 0.22;
}

.hero-orb--b {
  width: 240px;
  height: 240px;
  background: var(--mint);
  bottom: 0;
  inset-inline-start: 2%;
  opacity: 0.4;
  animation-delay: -4s;
}

.hero-orb--c {
  width: 160px;
  height: 160px;
  background: #7dd3fc;
  top: 42%;
  inset-inline-start: 38%;
  opacity: 0.18;
  animation-delay: -7s;
  animation-duration: 16s;
}

[data-theme="dark"] .hero-orb--c {
  background: var(--teal);
  opacity: 0.12;
}

.hero-beam {
  position: absolute;
  width: 55%;
  height: 2px;
  top: 28%;
  inset-inline-end: -5%;
  background: linear-gradient(90deg, transparent, rgba(0, 191, 166, 0.55), transparent);
  transform: rotate(-18deg);
  animation: beam-sweep 7s ease-in-out infinite;
  opacity: 0.7;
}

@keyframes beam-sweep {
  0%, 100% { opacity: 0.25; transform: rotate(-18deg) translateX(0); }
  50% { opacity: 0.85; transform: rotate(-18deg) translateX(-4%); }
}

.hero-grid-fade {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(13, 27, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(13, 27, 42, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at 50% 40%, black 20%, transparent 70%);
  opacity: 0.5;
}

[data-theme="dark"] .hero-grid-fade {
  background-image:
    linear-gradient(rgba(230, 240, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230, 240, 255, 0.04) 1px, transparent 1px);
}

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

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

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

.hero-brand {
  margin: 0 0 0.35rem;
  font-size: clamp(3.4rem, 9vw, 6.2rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0.01em;
  color: var(--navy);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

[data-theme="dark"] .hero-brand {
  color: #ffffff;
  text-shadow: 0 8px 40px rgba(0, 191, 166, 0.25);
}

.hero-slogan {
  margin: 0 0 1.1rem;
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.hero-slogan span {
  background: linear-gradient(110deg, #009e8a 0%, #00bfa6 35%, #5eead4 55%, #00bfa6 75%, #009e8a 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: slogan-shine 5s linear infinite;
}

[data-theme="dark"] .hero-slogan span {
  background: linear-gradient(110deg, #00bfa6 0%, #a8e6cf 40%, #e6f0ff 55%, #00bfa6 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
}

@keyframes slogan-shine {
  to { background-position: 220% center; }
}

.hero-lead {
  margin: 0 0 1.35rem;
  max-width: 36rem;
  font-size: clamp(0.98rem, 1.6vw, 1.12rem);
  color: var(--muted);
  font-weight: 600;
  line-height: 1.6;
}

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

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

.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 300px;
}

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

.hero-stage-glow {
  position: absolute;
  width: min(460px, 92%);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 191, 166, 0.34), transparent 68%);
  filter: blur(10px);
  animation: pulse-glow 5s ease-in-out infinite;
}

.hero-orbit {
  position: absolute;
  width: min(380px, 86%);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(0, 191, 166, 0.28);
  animation: au-spin 22s linear infinite;
  pointer-events: none;
}

.hero-orbit--slow {
  width: min(300px, 72%);
  border-style: solid;
  border-color: rgba(168, 230, 207, 0.18);
  animation-duration: 34s;
  animation-direction: reverse;
}

.hero-illu {
  width: min(400px, 96%);
  height: auto;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 28px 50px rgba(13, 27, 42, 0.28));
  animation: rise-in 1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.hi-ring { transform-origin: 210px 210px; animation: au-spin 28s linear infinite; }
.hi-ring--rev { animation-direction: reverse; animation-duration: 40s; }
.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; }

@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); }
}

.hero-chip {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.8rem;
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg-elev) 88%, transparent);
  backdrop-filter: blur(12px);
  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: 0;
  bottom: 6%;
  gap: 0.7rem;
  padding: 0.65rem 0.9rem;
  animation-delay: -0.5s;
}

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

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

.hero-chip__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
  animation: live-dot 1.6s ease-out infinite;
}

@keyframes live-dot {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 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: color-mix(in srgb, var(--teal) 20%, transparent);
}

.hero-progress-ring circle:last-child {
  stroke: var(--teal);
  stroke-linecap: round;
  stroke-dasharray: var(--p) 100;
  animation: ring-draw 1.4s cubic-bezier(0.22, 1, 0.36, 1) 0.4s both;
}

@keyframes ring-draw {
  from { stroke-dasharray: 0 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(--mint); }

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

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

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

@keyframes pulse-glow {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.05); }
}

@keyframes orb-drift {
  from { transform: translate(0, 0); }
  to { transform: translate(-18px, 14px); }
}

/* —— Sections —— */
.section {
  padding: 2.75rem 0;
}

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

.section--mission { padding-top: 0.35rem; }

.section--features {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 280px at 10% 0%, rgba(0, 191, 166, 0.12), transparent 60%),
    radial-gradient(500px 240px at 90% 100%, rgba(168, 230, 207, 0.18), transparent 55%),
    color-mix(in srgb, var(--sky) 55%, transparent);
}

[data-theme="dark"] .section--features {
  background:
    radial-gradient(600px 280px at 10% 0%, rgba(0, 191, 166, 0.14), transparent 60%),
    radial-gradient(500px 240px at 90% 100%, rgba(0, 191, 166, 0.08), transparent 55%),
    color-mix(in srgb, var(--navy-2) 50%, transparent);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.35rem;
}

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

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

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

/* Mission */
.mission {
  display: grid;
  gap: 1.35rem;
  padding: 1.4rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, color-mix(in srgb, var(--teal) 8%, var(--bg-elev)), var(--bg-elev));
  box-shadow: 0 10px 28px rgba(13, 27, 42, 0.05);
}

[data-theme="dark"] .mission {
  background: linear-gradient(135deg, color-mix(in srgb, var(--teal) 12%, var(--bg-elev)), var(--bg-elev));
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

@media (min-width: 880px) {
  .mission {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 1.75rem;
    padding: 1.65rem 1.65rem;
    align-items: center;
  }
}

.mission__eyebrow {
  margin: 0 0 0.4rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

.mission__copy h2 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  font-weight: 800;
  line-height: 1.3;
  color: var(--ink);
}

.mission__copy > p {
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
  line-height: 1.6;
}

.mission__pillars {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.65rem;
}

.mission__pillars li {
  padding: 0.8rem 0.9rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--bg-elev);
}

.mission__pillars strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  margin-bottom: 0.15rem;
  color: var(--ink);
}

.mission__pillars span {
  display: block;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.45;
}

/* Audience paths */
.paths-row {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .paths-row { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
}

.path-card {
  position: relative;
  padding: 1.15rem 1.1rem 1.25rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(160deg, color-mix(in srgb, var(--teal) 7%, var(--bg-elev)), var(--bg-elev));
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.25s ease;
}

.path-card::before {
  content: "";
  position: absolute;
  inset-inline-end: -20%;
  top: -30%;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 191, 166, 0.18), transparent 70%);
  pointer-events: none;
  transition: transform 0.35s ease;
}

.path-card:hover {
  border-color: color-mix(in srgb, var(--teal) 50%, var(--line));
  transform: translateY(-5px);
  box-shadow: 0 18px 40px rgba(0, 191, 166, 0.14);
}

.path-card:hover::before { transform: scale(1.25); }

.path-card__num {
  position: absolute;
  top: 0.85rem;
  inset-inline-end: 1rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: color-mix(in srgb, var(--teal) 70%, var(--muted));
}

.path-card__art {
  width: 100%;
  max-width: 140px;
  margin-bottom: 0.65rem;
  color: var(--teal);
}

.path-card__art svg { width: 100%; height: auto; display: block; }

.path-art-float { animation: float-y 3.8s ease-in-out infinite; }

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

.path-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.55;
}

.path-card__icon { display: none; }

/* Features */
.features-row {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

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

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

.feature {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.9rem;
  align-items: start;
  padding: 1.05rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.feature--glow:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--teal) 40%, var(--line));
  box-shadow: 0 14px 32px rgba(0, 191, 166, 0.12);
}

.feature__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(0, 191, 166, 0.22), rgba(168, 230, 207, 0.12));
  color: var(--teal);
  grid-row: span 2;
  position: relative;
  overflow: hidden;
}

.feature__icon::after {
  content: "";
  position: absolute;
  inset: -40%;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35), transparent 70%);
  transform: translateX(-120%);
}

.feature--glow:hover .feature__icon::after {
  animation: icon-sheen 0.85s ease;
}

@keyframes icon-sheen {
  to { transform: translateX(120%); }
}

.feature__icon svg { width: 20px; height: 20px; position: relative; z-index: 1; }

.feature h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  color: var(--ink);
  align-self: end;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
  line-height: 1.5;
  grid-column: 2;
}

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

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  border-radius: 999px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.9rem;
  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(--teal);
  box-shadow: 0 8px 24px rgba(0, 191, 166, 0.12);
  transform: translateY(-2px);
  color: var(--teal) !important;
}

[data-theme="dark"] .cat-chip:hover { color: var(--mint) !important; }

.cat-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--teal) 14%, transparent);
  color: var(--teal);
}

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

/* Legacy values */
.values-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

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

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

.value {
  padding: 1.15rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elev);
}

.value-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 0.7rem;
  background: color-mix(in srgb, var(--teal) 12%, transparent);
  color: var(--teal);
}

.value-icon svg { width: 22px; height: 22px; }

.value h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.value p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

/* 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: 0 8px 24px rgba(13, 27, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

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

.course-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.course-card:hover .course-image img { transform: scale(1.04); }

.course-badge {
  position: absolute;
  top: 0.75rem;
  inset-inline-start: 0.75rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--navy) 78%, transparent);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

.course-content { padding: 1rem 1.1rem 1.2rem; }

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

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

.course-title a:hover { color: var(--teal) !important; }

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

.course-info {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

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

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

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

/* Instructors */
.instructors-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

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

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

.instructor-card {
  flex: 0 0 min(220px, 72vw);
  scroll-snap-align: start;
  text-align: center;
  padding: 1.35rem 1rem;
  border-radius: var(--radius-lg);
  background: var(--bg-elev);
  border: 1px solid var(--line);
}

.instructor-card.skeleton {
  min-height: 220px;
  background: linear-gradient(90deg, var(--bg-muted), var(--bg-elev), var(--bg-muted));
  background-size: 200% 100%;
}

.instructor-avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid color-mix(in srgb, var(--teal) 35%, transparent);
}

.instructor-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.instructor-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
}

.instructor-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.9rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.instructor-meta svg { width: 15px; height: 15px; }

.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;
  transition: border-color 0.15s ease, color 0.15s ease;
}

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

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

/* CTA band */
.cta-band {
  text-align: center;
  padding: clamp(1.75rem, 4vw, 2.75rem) 1.25rem;
  border-radius: calc(var(--radius-lg) + 4px);
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(0, 191, 166, 0.22), transparent 60%),
    linear-gradient(145deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
  box-shadow: var(--shadow);
}

.cta-brand {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 800;
  color: var(--mint);
}

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

.cta-band > p {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: rgba(230, 240, 255, 0.78);
  font-weight: 600;
}

.cta-band .btn-outline {
  border-color: rgba(230, 240, 255, 0.35);
  color: #fff !important;
}

.cta-band .btn-outline:hover {
  border-color: var(--mint);
  color: var(--mint) !important;
  background: rgba(168, 230, 207, 0.08);
}

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

/* Ad strip */
.ad-strip { padding: 1.5rem 0 0; }

.ad-card {
  display: block;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--bg-elev);
  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.5rem 0 1.5rem;
  background: var(--navy);
  color: rgba(230, 240, 255, 0.78);
}

.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: 28rem;
  font-weight: 600;
  font-size: 0.95rem;
}

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

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

.footer-links a {
  color: rgba(230, 240, 255, 0.72);
  font-weight: 600;
  text-decoration: none !important;
}

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

.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(230, 240, 255, 0.12);
  font-size: 0.9rem;
  font-weight: 600;
}

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

/* 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: color-mix(in srgb, var(--bg-elev) 92%, transparent);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}

@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(--ink) !important;
}

.landing-sticky-auth__btn--join {
  background: var(--teal);
  color: var(--navy) !important;
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px) scale(0.985);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--d, 0) * 70ms);
}

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

/* —— Mobile polish —— */
@media (max-width: 719px) {
  .wrap { width: min(1160px, calc(100% - 1.25rem)); }

  .section { padding: 2.1rem 0; }
  .section--tight { padding: 1.75rem 0; }

  .hero-brand { font-size: clamp(2.6rem, 14vw, 3.6rem); }
  .hero-slogan { margin-bottom: 0.75rem; letter-spacing: 0.04em; }
  .hero-ctas { gap: 0.55rem; }
  .hero-ctas .btn { flex: 1 1 auto; min-width: min(100%, 9.5rem); }

  .hero-progress {
    inset-inline-start: 0;
    bottom: 0;
    max-width: calc(100% - 0.5rem);
  }

  .hero-chip--live,
  .hero-chip--lab { display: none; }

  .hero-chip--progress {
    inset-inline-start: 2%;
    bottom: 2%;
    max-width: 92%;
  }

  .hero-orbit { display: none; }

  .path-card { padding: 1.1rem 1rem 1.15rem; }

  .carousel-nav { display: none; }
  .instructors-row { grid-template-columns: 1fr; }
  .instructor-card { flex-basis: min(200px, 78vw); padding: 1.1rem 0.85rem; }

  .cta-band .hero-ctas .btn { width: 100%; }
  .nav-panel a { font-size: 1rem; }
}

@media (max-width: 380px) {
  .logo-word { font-size: 1.25rem; }
  .brand-mark { width: 34px; height: 34px; }
  .btn-sm { padding-inline: 0.85rem; }
}

/* Dark mode surfaces */
[data-theme="dark"] .path-card,
[data-theme="dark"] .feature,
[data-theme="dark"] .course-card,
[data-theme="dark"] .instructor-card,
[data-theme="dark"] .cat-chip,
[data-theme="dark"] .mission__pillars li {
  background: var(--bg-elev);
  border-color: var(--line);
}

[data-theme="dark"] .theme-toggle,
[data-theme="dark"] .nav-toggle,
[data-theme="dark"] .carousel-nav {
  background: var(--bg-elev);
  border-color: var(--line);
  color: var(--ink-2);
}

[data-theme="dark"] .landing-sticky-auth {
  background: color-mix(in srgb, var(--bg-elev) 94%, transparent);
}

[data-theme="dark"] .site-nav.is-scrolled {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}
