/* ============================================================
   NEW MONEY UNIVERSITY - landing
   Dark theme, single locked red accent.
   Type: Unbounded (display) + Golos Text (body).
   Radius rule: containers 18px, cards 16px, buttons 12px, tags pill.
   Z-scale: 10 nav, 20 mobile menu, 30 sticky bar, 40 grain.
   ============================================================ */

:root {
  --bg: #0b0b0e;
  --bg-soft: #111116;
  --card: #15151b;
  --card-2: #1a1a21;
  --line: #26262e;
  --line-soft: #1e1e25;
  --text: #f4f2ef;
  --muted: #a9a6b0;
  --dim: #7d7a86;
  --red: #e62e39;
  --red-hot: #ff3d48;
  --red-deep: #8f1218;
  --red-text: #ff6b73;
  --red-tint: rgba(230, 46, 57, 0.09);
  --blue: #3d7bff;
  --blue-hot: #5c90ff;
  --blue-deep: #12327e;
  --blue-text: #7da8ff;
  --blue-tint: rgba(61, 123, 255, 0.1);
  --font-display: "Unbounded", "Arial Black", sans-serif;
  --font-body: "Golos Text", "Segoe UI", Roboto, sans-serif;
  --r-container: 18px;
  --r-card: 16px;
  --r-btn: 12px;
  --nav-h: 68px;
  --pad: clamp(1.1rem, 4vw, 2rem);
  --section: clamp(6rem, 13vw, 10.5rem);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16.5px;
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

/* Browser surfaces carry the theme too */
::selection {
  background: var(--red);
  color: #fff;
}

html {
  scrollbar-color: #2e2e37 var(--bg);
  scrollbar-width: thin;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: #2e2e37;
  border-radius: 5px;
  border: 2px solid var(--bg);
}

:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

input {
  caret-color: var(--red);
}

/* Film grain, fixed + inert so it never repaints on scroll */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 40;
  pointer-events: none;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
}

/* ---------- Layout primitives ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: var(--section);
  scroll-margin-top: calc(var(--nav-h) + 12px);
}

.section-head {
  max-width: 640px;
  margin-bottom: clamp(3rem, 7vw, 5rem);
}

.section-head p {
  margin-top: 0.9rem;
  color: var(--muted);
  max-width: 54ch;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.55rem, 4.2vw, 2.5rem);
}

h3 {
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.3;
}

.icon {
  width: 24px;
  height: 24px;
  flex: none;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.6rem;
  border-radius: var(--r-btn);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.18s ease, border-color 0.18s ease;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: linear-gradient(180deg, var(--red-hot), var(--red));
  color: #fff;
  box-shadow: 0 8px 24px -10px rgba(230, 46, 57, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #ff4a54, #f03540);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
}

.btn-ghost:hover {
  border-color: #3a3a44;
  background: rgba(255, 255, 255, 0.05);
  transform: translateY(-1px);
}

.btn-lg {
  padding: 1.05rem 2rem;
  font-size: 1.06rem;
}

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background-color 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}

.nav.is-scrolled {
  background: rgba(11, 11, 14, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  flex-direction: column;
  line-height: 1;
  font-family: var(--font-display);
}

.logo b {
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo b span {
  color: var(--red);
}

.logo small {
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.34em;
  color: var(--dim);
  margin-top: 0.28rem;
}

.nav-links {
  display: none;
  align-items: center;
  gap: 1.7rem;
}

.nav-links a {
  font-size: 0.93rem;
  color: var(--muted);
  transition: color 0.15s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  display: none;
}

.burger {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-btn);
  border: 1px solid var(--line);
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    display: inline-flex;
    padding: 0.62rem 1.2rem;
    font-size: 0.93rem;
  }

  .burger {
    display: none;
  }
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(11, 11, 14, 0.97);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 2rem) var(--pad) 2.5rem;
  gap: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}

.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
}

.mobile-menu a:not(.btn) {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line-soft);
}

.mobile-menu .btn {
  margin-top: 1.6rem;
}

.menu-close {
  position: absolute;
  top: 12px;
  right: var(--pad);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #34343e;
  border-radius: var(--r-btn);
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- Hero (video background) ---------- */
.hero {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding-top: calc(var(--nav-h) + clamp(2rem, 6vh, 4rem));
  padding-bottom: clamp(3.5rem, 8vh, 6rem);
  overflow: hidden;
}

/* Crossfading slideshow: each slide fades in for 1.5s, holds ~5s, fades out
   while the next one enters. Negative delay keeps slide 1 visible at load. */
.hero-slides {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: hero-slide 25s linear infinite;
  animation-delay: calc(var(--s, 0) * 5s - 5s);
  will-change: opacity, transform;
}

@keyframes hero-slide {
  0% {
    opacity: 0;
    transform: scale(1.02);
  }

  6% {
    opacity: 1;
  }

  20% {
    opacity: 1;
  }

  26% {
    opacity: 0;
    transform: scale(1.09);
  }

  100% {
    opacity: 0;
    transform: scale(1.02);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slides img {
    animation: none;
  }

  .hero-slides img:first-child {
    opacity: 1;
    transform: none;
  }
}

/* Scrim keeps type readable over the video and fades it into the page bg */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(46% 40% at 88% 82%, rgba(61, 123, 255, 0.14), transparent 65%),
    radial-gradient(90% 80% at 50% 42%, rgba(11, 11, 14, 0.38), rgba(11, 11, 14, 0.82)),
    linear-gradient(180deg, rgba(11, 11, 14, 0.55) 0%, rgba(11, 11, 14, 0.12) 34%, rgba(11, 11, 14, 0.16) 68%, var(--bg) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin-inline: auto;
}

.hero h1 {
  font-size: clamp(1.9rem, 5.4vw, 3.35rem);
  letter-spacing: -0.015em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85), 0 10px 48px rgba(0, 0, 0, 0.65);
}

.hero h1 .accent {
  color: var(--red);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85), 0 0 38px rgba(230, 46, 57, 0.5);
}

.hero-sub {
  margin-top: 1.5rem;
  margin-inline: auto;
  color: #cfccd4;
  font-size: clamp(1rem, 1.6vw, 1.16rem);
  max-width: 52ch;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.8);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.4rem;
}

.hero .btn-ghost {
  background: rgba(11, 11, 14, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Rotating student stories: slow continuous track, pauses on hover */
.stories {
  position: relative;
  overflow: hidden;
  margin-inline: calc(var(--pad) * -1);
  padding-inline: var(--pad);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}

.stories-track {
  display: flex;
  width: max-content;
}

.stories-group {
  display: flex;
  gap: 1.1rem;
  padding-right: 1.1rem;
}

@media (prefers-reduced-motion: no-preference) {
  .stories-track {
    animation: stories-roll 95s linear infinite;
    will-change: transform;
  }

  .stories:hover .stories-track {
    animation-play-state: paused;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stories {
    overflow-x: auto;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

@keyframes stories-roll {
  from {
    transform: translateX(0);
  }

  to {
    transform: translateX(-50%);
  }
}

.story-card {
  width: min(360px, 78vw);
  flex: none;
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 0.9rem 0.9rem 1.3rem;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
  transition: border-color 0.2s ease;
}

.story-card:hover {
  border-color: rgba(230, 46, 57, 0.4);
}

.story-img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
}

.story-body {
  padding: 1rem 0.5rem 0;
}

.story-body p {
  font-size: 0.93rem;
  line-height: 1.5;
  color: var(--muted);
}

.story-who {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-top: 0.9rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line-soft);
}

.story-who b {
  font-size: 0.93rem;
  font-weight: 600;
}

.story-who small {
  color: var(--dim);
  font-size: 0.8rem;
}

/* Community feed cards (mock content, marked in HTML) */
.feed {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 900px) {
  .feed {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    align-items: start;
  }

  .feed-card:nth-child(2) {
    margin-top: 1.8rem;
  }
}

.feed-card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 1.2rem 1.3rem;
  box-shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.8);
}

.feed-top {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.65rem;
}

.avatar {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
}

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

.review .avatar,
.feed-bottom .avatar {
  width: 44px;
  height: 44px;
}

/* Overlapping member faces above the final CTA */
.avatar-stack {
  display: flex;
  justify-content: center;
  margin-bottom: 1.6rem;
}

.avatar-stack .avatar {
  width: 46px;
  height: 46px;
  border: 2px solid var(--bg-soft);
}

.avatar-stack .avatar + .avatar {
  margin-left: -12px;
}

.avatar.a1 {
  background: linear-gradient(135deg, #e62e39, #7a1d3f);
}

.avatar.a2 {
  background: linear-gradient(135deg, #3d7bff, #142a66);
}

.avatar.a3 {
  background: linear-gradient(135deg, #ff5c50, #99202a);
}

.avatar.a4 {
  background: linear-gradient(135deg, #5c90ff, #1c2d5e);
}

.avatar.a5 {
  background: linear-gradient(135deg, #c22738, #33131a);
}

.feed-name {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.25;
}

.feed-name small {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--dim);
}

.tag {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--red-text);
  background: var(--red-tint);
  border: 1px solid rgba(230, 46, 57, 0.25);
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
}

.feed-card p {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--muted);
}

.result-num {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.55rem;
}

.num-money {
  color: #45c96d;
}

.num-plain {
  color: var(--text);
}

.feed-bottom {
  margin-top: 1.1rem;
  margin-bottom: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line-soft);
}

/* ---------- AI revolution manifesto ---------- */
.ai-manifesto {
  position: relative;
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  background: var(--bg-soft);
}

.ai-manifesto::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(70% 90% at 15% 0%, rgba(230, 46, 57, 0.13), transparent 60%),
    radial-gradient(50% 70% at 95% 100%, rgba(230, 46, 57, 0.07), transparent 60%);
}

.ai-manifesto .container {
  position: relative;
}

.ai-statement {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.7rem, 5.2vw, 3.2rem);
  line-height: 1.16;
  letter-spacing: -0.01em;
  max-width: 21ch;
  text-wrap: balance;
}

.ai-statement .accent {
  color: var(--red);
}

.ai-sub {
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.1rem);
  max-width: 52ch;
}

.ai-type {
  position: relative;
  display: inline-block;
  min-width: 13ch;
  padding-right: 10px;
  color: var(--red-text);
  font-weight: 600;
  white-space: nowrap;
  text-shadow: 0 0 22px rgba(230, 46, 57, 0.45);
  transition: opacity 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

/* the word dissolves out before the next one types in */
.ai-type.is-out {
  opacity: 0;
  filter: blur(7px);
  transform: translateY(-5px);
}

/* soft-pulsing caret */
.ai-type::after {
  content: "";
  position: absolute;
  right: 2px;
  top: 8%;
  width: 2px;
  height: 84%;
  border-radius: 2px;
  background: var(--red-text);
  box-shadow: 0 0 10px rgba(230, 46, 57, 0.8);
}

@media (prefers-reduced-motion: no-preference) {
  .ai-type::after {
    animation: ai-caret 1.1s ease-in-out infinite;
  }
}

@keyframes ai-caret {
  0%, 100% {
    opacity: 1;
  }

  50% {
    opacity: 0.15;
  }
}

.ai-points {
  display: grid;
  gap: 2.8rem;
  margin-top: clamp(3.5rem, 8vw, 6rem);
}

@media (min-width: 900px) {
  .ai-points {
    grid-template-columns: repeat(3, 1fr);
    gap: 3.5rem;
  }
}

.ai-point {
  border-top: 1px solid rgba(230, 46, 57, 0.45);
  padding-top: 1.4rem;
}

.ai-point h3 {
  font-size: 1.02rem;
  font-weight: 700;
}

.ai-point p {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.96rem;
}

.ai-cta {
  margin-top: clamp(3rem, 7vw, 5rem);
}

/* ---------- Community core: "ТЫ" reactor (ported from x-site) ---------- */
.community-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .community-grid {
    grid-template-columns: 6fr 6fr;
    gap: 4rem;
  }
}

.community-lead {
  margin-top: 1.1rem;
  color: var(--muted);
  max-width: 50ch;
}

.community-points {
  margin-top: 2rem;
  display: grid;
  gap: 0.9rem;
}

.community-points li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.97rem;
  line-height: 1.55;
}

.community-points b {
  color: var(--text);
  font-weight: 600;
}

.community-points .icon {
  width: 20px;
  height: 20px;
  flex: none;
  margin-top: 0.2rem;
  color: var(--red);
}

.reactor-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}

.reactor {
  position: relative;
  --s: clamp(300px, 36vw, 460px);
  width: min(var(--s), 100%);
  aspect-ratio: 1;
  container-type: size;
  --rscale: 1;
}

.rx-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  --rd: calc(var(--rdo) * var(--rscale) * 1cqmin);
  width: var(--rd);
  height: var(--rd);
  margin: calc(var(--rd) / -2) 0 0 calc(var(--rd) / -2);
  border-radius: 50%;
  border: 1px dashed rgba(230, 46, 57, 0.16);
  pointer-events: none;
}

.rx-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 54cqmin;
  height: 54cqmin;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 46, 57, 0.2), transparent 66%);
  filter: blur(8px);
  pointer-events: none;
  animation: rxGlow 4.6s ease-in-out infinite;
}

.rx-orbit {
  position: absolute;
  inset: 0;
  animation-name: rxSpin;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

.rx-o1 {
  --ro: 32;
}

.rx-o2 {
  --ro: 44;
}

.rx-o3 {
  --ro: 55;
}

.rx-ray {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  --r: calc(var(--ro) * var(--rscale) * 1cqmin);
  transform: rotate(var(--a));
}

.rx-pulse {
  position: absolute;
  left: 0;
  top: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 9px 1px rgba(230, 46, 57, 0.9);
  transform: translate(calc(var(--r) - 50%), -50%);
  animation: rxFlow 2.6s ease-in var(--pd, 0s) infinite;
}

@keyframes rxFlow {
  0% {
    transform: translate(calc(var(--r) - 50%), -50%);
    opacity: 0;
  }

  14% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translate(-50%, -50%);
    opacity: 0;
  }
}

.rx-node {
  position: absolute;
  left: var(--r);
  top: 0;
  transform: translate(-50%, -50%) rotate(calc(-1 * var(--a)));
}

.rx-node-in {
  display: inline-block;
  white-space: nowrap;
  border-radius: 999px;
  animation-name: rxSpin;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

/* ring 1: real student faces */
.rx-o1 .rx-node-in {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(230, 46, 57, 0.6);
  box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.8), 0 0 14px -4px rgba(230, 46, 57, 0.5);
}

.rx-o1 .rx-node-in img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ring 2: what the community gives */
.rx-o2 .rx-node-in {
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 11px;
  color: #fff;
  background: linear-gradient(180deg, var(--red-hot), var(--red));
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 5px 14px -8px rgba(0, 0, 0, 0.7), 0 0 14px -4px rgba(230, 46, 57, 0.6);
}

/* ring 3: directions, faint depth */
.rx-o3 .rx-node-in {
  font-size: 10px;
  font-weight: 500;
  padding: 4px 9px;
  color: var(--dim);
  background: rgba(18, 18, 23, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.rx-core {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(30 * var(--rscale) * 1cqmin);
  height: calc(30 * var(--rscale) * 1cqmin);
  transform: translate(-50%, -50%);
}

.rx-core-halo {
  position: absolute;
  inset: -45%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230, 46, 57, 0.35), transparent 60%);
  filter: blur(6px);
  animation: rxGlow 4.6s ease-in-out infinite;
}

.rx-core-sweep {
  position: absolute;
  inset: -14%;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, rgba(230, 46, 57, 0) 185deg, rgba(230, 46, 57, 0.95) 320deg, transparent 360deg);
  -webkit-mask: radial-gradient(closest-side, transparent 58%, #000 61%, #000 97%, transparent 100%);
  mask: radial-gradient(closest-side, transparent 58%, #000 61%, #000 97%, transparent 100%);
  animation: rxSpin 3s linear infinite;
}

.rx-core-sweep-2 {
  background: conic-gradient(from 180deg, transparent 0deg, rgba(255, 255, 255, 0) 230deg, rgba(255, 226, 228, 0.6) 330deg, transparent 360deg);
  animation: rxSpin 5s linear infinite reverse;
  opacity: 0.6;
}

.rx-core-orb {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-align: center;
  background: radial-gradient(circle at 50% 34%, rgba(230, 46, 57, 0.55), rgba(230, 46, 57, 0.2) 62%, rgba(230, 46, 57, 0.06));
  border: 1.5px solid rgba(230, 46, 57, 0.75);
  box-shadow: 0 0 48px -2px rgba(230, 46, 57, 0.6), inset 0 0 30px -6px rgba(230, 46, 57, 0.85);
  animation: rxPulse 4.6s ease-in-out infinite;
}

.rx-core-label {
  color: #ffe3e5;
  font-family: var(--font-display);
  font-size: clamp(14px, 5cqmin, 22px);
  font-weight: 700;
  line-height: 1.08;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.85), 0 10px 48px rgba(0, 0, 0, 0.65), 0 0 38px rgba(230, 46, 57, 0.5);
}

@keyframes rxSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rxGlow {
  0%, 100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

@keyframes rxPulse {
  0%, 100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }
}

@media (max-width: 560px) {
  .reactor {
    --rscale: 0.82;
  }

  .rx-hide-sm {
    display: none;
  }

  .rx-core {
    width: calc(24 * var(--rscale) * 1cqmin);
    height: calc(24 * var(--rscale) * 1cqmin);
  }

  .rx-o1 .rx-node-in {
    width: 36px;
    height: 36px;
  }

  .rx-o2 .rx-node-in {
    font-size: 10px;
    padding: 3px 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rx-orbit,
  .rx-node-in,
  .rx-glow,
  .rx-core-halo,
  .rx-core-sweep,
  .rx-core-orb {
    animation: none;
  }

  .rx-pulse {
    animation: none;
    opacity: 0;
  }

  .rx-core-sweep {
    opacity: 0.5;
  }
}

@media (min-width: 560px) {
  .course-card .course-top {
    position: absolute;
    top: 1.35rem;
    right: 1.35rem;
    display: flex;
    gap: 6px;
    margin-bottom: 0;
    z-index: 1;
  }
}

/* Service chips: logo + full name, wrap when tight */
.course-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 0.4rem;
}

.tool-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #0d0d0f;
  border: 1px solid var(--line);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.tool-chip svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: rgba(255, 255, 255, 0.85);
  color: rgba(255, 255, 255, 0.85);
}

.course-card:hover .tool-chip {
  border-color: rgba(230, 46, 57, 0.45);
  color: var(--text);
}

/* ---------- Courses mosaic ---------- */
.courses {
  background: var(--bg-soft);
  border-block: 1px solid var(--line-soft);
}

.course-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 768px) {
  .course-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .course-card {
    grid-column: span 2;
  }

  .course-card.is-featured {
    grid-column: 1 / -1;
  }

  .course-card.is-wide {
    grid-column: span 3;
  }
}

.course-card.is-featured {
  padding: clamp(1.6rem, 3vw, 2.2rem);
}

.course-card.is-featured .course-img {
  width: 104px;
  height: 104px;
}

.course-card.is-featured h3 {
  font-size: clamp(1.25rem, 2.4vw, 1.55rem);
}

.course-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.course-card > p {
  color: var(--muted);
  font-size: 0.96rem;
  max-width: 58ch;
}

/* Small square thumbs: the image is an accent, not the hero of the card */
.course-img,
.step-img {
  width: 84px;
  height: 84px;
  flex: none;
  object-fit: cover;
  border-radius: 10px;
}

.course-head {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.course-head .course-top {
  margin-bottom: 0.5rem;
}

.skills-label {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.course-skills {
  display: grid;
  gap: 0.5rem;
}

.course-skills li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--muted);
}

.course-skills .icon {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 0.14rem;
  color: var(--red);
}


.course-card:hover {
  border-color: rgba(230, 46, 57, 0.4);
  transform: translateY(-3px);
}

.course-card.is-featured {
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(230, 46, 57, 0.14), transparent 55%),
    var(--card);
  border-color: rgba(230, 46, 57, 0.35);
}



.course-top {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.course-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--r-btn);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--red-text);
}

.course-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
}

.course-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.pill {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.26rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
}

.pill-hot {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
}

.course-card.is-soon {
  min-height: 0;
  opacity: 0.75;
}

.course-card.is-soon:hover {
  transform: none;
  border-color: var(--line);
}

.course-card.is-soon .course-icon {
  color: var(--dim);
}

/* ---------- Steps: three-card journey ---------- */
.steps-grid {
  display: grid;
  gap: 0.6rem;
  align-items: stretch;
}

@media (min-width: 900px) {
  .steps-grid {
    grid-template-columns: 1fr auto 1fr auto 1fr;
    gap: 0.4rem;
  }
}

.step-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: 1.5rem;
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.step-card:hover {
  border-color: rgba(230, 46, 57, 0.4);
  transform: translateY(-3px);
}

.step-num {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  margin-bottom: 0.45rem;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
}

.step-card h3 {
  font-size: 1.08rem;
  font-weight: 700;
}

.step-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.step-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--dim);
}

.step-link .icon {
  width: 26px;
  height: 26px;
}

@media (min-width: 900px) {
  .step-link .icon {
    transform: rotate(-90deg);
  }
}

/* ---------- Two paths ---------- */
.paths {
  background: var(--bg-soft);
  border-block: 1px solid var(--line-soft);
}

.paths-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 900px) {
  .paths-grid {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }
}

.path-card {
  padding: clamp(1.5rem, 3vw, 2.2rem);
  border-radius: var(--r-container);
  border: 1px solid var(--line-soft);
  background: var(--card);
}

.path-card.is-new {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(230, 46, 57, 0.18), transparent 60%),
    var(--card);
  border-color: rgba(230, 46, 57, 0.38);
}

.path-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
}

/* Old-school university marks, deliberately faded */
.uni-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line-soft);
}

.uni-chip {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--dim);
  background: rgba(255, 255, 255, 0.02);
  filter: grayscale(1);
  opacity: 0.85;
}

.path-card.is-new h3 span {
  color: var(--red);
}

.path-card li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding-block: 0.75rem;
  color: var(--muted);
}

.path-card li + li {
  border-top: 1px solid var(--line-soft);
}

.path-card .icon {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  color: var(--dim);
}

.path-card.is-new li {
  color: var(--text);
}

.path-card.is-new .icon {
  color: var(--red);
}

.reviews-note {
  margin-top: 0.8rem;
  font-size: 0.82rem;
  color: var(--dim);
}

/* ---------- Pricing: three membership tiers ---------- */
.plans-grid {
  display: grid;
  gap: 1.1rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .plans-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
  }

  .plan.is-popular {
    transform: translateY(-1.2rem);
  }
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 3vw, 2.1rem);
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-container);
}

.plan.is-popular {
  border-color: rgba(230, 46, 57, 0.55);
  background:
    radial-gradient(130% 90% at 50% 0%, rgba(230, 46, 57, 0.13), transparent 55%),
    var(--card);
  box-shadow: 0 24px 60px -30px rgba(230, 46, 57, 0.45);
}

.plan.is-elite {
  border-color: rgba(61, 123, 255, 0.4);
  background:
    radial-gradient(140% 110% at 100% 0%, rgba(18, 50, 126, 0.55), transparent 60%),
    linear-gradient(180deg, #131521, #101117);
}

.plan.is-elite .pricing-list .icon {
  color: var(--blue-hot);
}

.plan-badge {
  position: absolute;
  top: -0.75rem;
  left: clamp(1.6rem, 3vw, 2.1rem);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
}

.plan.is-elite .plan-badge {
  background: var(--blue);
  color: #fff;
}

.plan h3 {
  font-size: 1.1rem;
  font-weight: 700;
}

.plan-price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.3rem 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.6vw, 2.2rem);
  font-weight: 700;
  line-height: 1;
  margin-top: 1rem;
}

.plan-price small {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}

.plan .pricing-list {
  flex-grow: 1;
}

.plan .btn {
  width: 100%;
}

.plan-note {
  margin-top: 0.9rem;
  font-size: 0.83rem;
  color: var(--dim);
  text-align: center;
}

.pricing-list {
  margin: 1.6rem 0;
  text-align: left;
}

.pricing-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding-block: 0.7rem;
  color: var(--muted);
}

.pricing-list li + li {
  border-top: 1px solid var(--line-soft);
}

.pricing-list .icon {
  width: 20px;
  height: 20px;
  margin-top: 0.15rem;
  color: var(--red);
}

.pricing-note {
  margin-top: 2rem;
  font-size: 0.85rem;
  color: var(--dim);
  text-align: center;
}

/* ---------- FAQ ---------- */
.faq-list {
  max-width: 980px;
  margin-inline: auto;
  display: grid;
  gap: 0.8rem;
  align-items: start;
}

@media (min-width: 900px) {
  .faq-list {
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
  }
}

.faq-item {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-card);
  overflow: hidden;
  transition: border-color 0.3s ease, background-color 0.3s ease;
}

.faq-item:hover {
  border-color: #34343e;
}

.faq-item[open] {
  border-color: rgba(230, 46, 57, 0.45);
  background:
    radial-gradient(140% 120% at 50% 0%, rgba(230, 46, 57, 0.06), transparent 60%),
    var(--card);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  min-height: 44px;
  transition: color 0.2s ease;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary .icon {
  width: 20px;
  height: 20px;
  color: var(--dim);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), color 0.2s ease;
}

.faq-item summary:hover .icon {
  color: var(--muted);
}

.faq-item[open] summary .icon {
  transform: rotate(180deg);
  color: var(--red);
}

.faq-body {
  overflow: hidden;
}

@media (prefers-reduced-motion: no-preference) {
  .faq-body {
    transition: height 0.36s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .faq-item[open] .faq-body p {
    animation: faq-in 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.08s backwards;
  }
}

.faq-body p {
  padding: 0 1.3rem 1.25rem;
  color: var(--muted);
  max-width: 68ch;
}

@keyframes faq-in {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
}

/* ---------- Final CTA ---------- */
.cta-final {
  position: relative;
  text-align: center;
  overflow: hidden;
  border-block: 1px solid var(--line-soft);
  background: var(--bg-soft);
}

.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(52% 68% at 50% 100%, rgba(230, 46, 57, 0.22), transparent 65%),
    radial-gradient(36% 50% at 8% 0%, rgba(61, 123, 255, 0.1), transparent 60%);
}

.cta-final .container {
  position: relative;
}

.cta-final h2 {
  font-size: clamp(1.8rem, 5.4vw, 3.1rem);
}

.cta-final p {
  margin: 1.1rem auto 2rem;
  color: var(--muted);
  max-width: 46ch;
}

.cta-micro {
  margin-top: 1.1rem;
  font-size: 0.85rem;
  color: var(--dim);
}

/* ---------- Footer ---------- */
.footer {
  padding: 3.5rem 0 2.5rem;
  border-top: 1px solid var(--line-soft);
}

.footer-grid {
  display: grid;
  gap: 2.2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr;
    gap: 2rem;
  }
}

.footer .logo small {
  color: var(--dim);
}

.footer-about {
  margin-top: 1.1rem;
  color: var(--dim);
  font-size: 0.88rem;
  max-width: 40ch;
}

.footer h4 {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 0.9rem;
}

.footer-col a {
  display: block;
  padding-block: 0.32rem;
  color: var(--muted);
  font-size: 0.93rem;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--text);
}

.footer-legal {
  margin-top: 2.8rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1.6rem;
  align-items: center;
  justify-content: space-between;
  color: var(--dim);
  font-size: 0.83rem;
}

.badge-18 {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--muted);
}

/* ---------- Sticky mobile CTA ---------- */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem var(--pad) calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(17, 17, 22, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.sticky-cta.is-visible {
  transform: translateY(0);
}

.sticky-cta .price-mini {
  display: none;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
}

@media (min-width: 460px) {
  .sticky-cta .price-mini {
    display: block;
  }
}


.sticky-cta .price-mini small {
  display: block;
  font-family: var(--font-body);
  font-size: 0.74rem;
  font-weight: 400;
  color: var(--dim);
}

.sticky-cta .btn {
  margin-left: auto;
  flex: 1;
}

@media (min-width: 1024px) {
  .sticky-cta {
    display: none;
  }
}

/* ---------- Reveal animations ---------- */
@media (prefers-reduced-motion: no-preference) {
  html.no-js .reveal,
  html.no-js .hero-copy > *,
  html.no-js .feed-card {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--i, 0) * 90ms);
  }

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

  .hero-copy > * {
    opacity: 0;
    transform: translateY(18px);
    animation: hero-in 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  .hero-copy > *:nth-child(2) {
    animation-delay: 0.12s;
  }

  .hero-copy > *:nth-child(3) {
    animation-delay: 0.24s;
  }

}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

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

  .btn,
  .feature,
  .course-card {
    transition: none;
  }
}
