/* EduSpace — base.css : tokens, reset, nav, buttons, footer, utilities */

/* Tokens live in base.css, which every page loads first.
   This file previously carried a second copy of the whole palette, which is
   why retinting the site used to require editing three stylesheets. */


*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
}
body {
  margin: 0;
  background: var(--surface);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  padding-top: 5.75rem;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--text);
}
p {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
img,
svg {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}
strong {
  font-weight: 600;
}
em {
  font-style: normal;
}

h1 {
  font-size: var(--fs-hero);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.035em;
}
h2 {
  font-size: var(--fs-h2);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-top: var(--space-4);
}
h3 {
  font-size: var(--fs-h3);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
h4 {
  font-family: var(--font-ui);
  font-size: var(--fs-small);
  font-weight: 700;
}
h1 em,
h2 em {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.container {
  width: min(1200px, 100% - (var(--gutter) * 2));
  margin-inline: auto;
}
/* Element selector (0,0,2) so any section class can override without !important */
main > section {
  padding-block: var(--section-pad);
}
.section-lead {
  max-width: 62ch;
  margin-top: var(--space-4);
  font-size: var(--fs-lead);
  color: var(--text-muted);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-ui);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cobalt);
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: currentColor;
  opacity: 0.55;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.72rem;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface-alt);
  font-family: var(--font-ui);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
}
.diag-label {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.4rem;
}

/* ---- Buttons ---- */
.btn {
  --btn-y: 0;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.4rem;
  border-radius: var(--r-pill);
  font-family: var(--font-ui);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  transform: translate3d(0, var(--btn-y), 0);
  transition:
    transform var(--t-mid) var(--ease),
    box-shadow var(--t-mid) var(--ease),
    border-color var(--t-mid) var(--ease),
    color var(--t-mid) var(--ease);
}
.btn-primary {
  color: var(--white);
  background: var(--grad-action);
  background-size: 180% 180%;
  background-position: 0% 50%;
  box-shadow: var(--sh-md);
  transition:
    transform var(--t-mid) var(--ease),
    box-shadow var(--t-mid) var(--ease),
    background-position var(--t-slow) var(--ease);
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.42) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  transition: transform var(--t-slow) var(--ease);
}
.btn-primary:hover {
  --btn-y: -2px;
  background-position: 100% 50%;
  box-shadow: var(--sh-lg);
}
.btn-primary:hover::after {
  transform: translateX(120%);
}
.btn-ghost {
  color: var(--navy);
  background: var(--glass-bg);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.btn-ghost:hover {
  --btn-y: -2px;
  color: var(--cobalt);
  border-color: var(--azure);
  box-shadow: var(--sh-sm);
}
.btn:active {
  --btn-y: 0;
}
.btn:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
}

/* ---- Navigation ---- */
.site-header {
  position: fixed;
  inset: 0.85rem 0 auto;
  z-index: var(--z-nav);
  padding-inline: var(--gutter);
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  width: min(1200px, 100%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: 0.6rem 0.7rem 0.6rem 1.15rem;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  background: var(--glass-bg);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--sh-nav);
  transition:
    background-color var(--t-mid) var(--ease),
    box-shadow var(--t-mid) var(--ease);
}
.site-header.is-scrolled .nav {
  background: var(--glass-solid);
  box-shadow: 0 14px 40px -18px rgba(26, 100, 190, 0.34);
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-size: 1.06rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.nav-logo .mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--grad-action);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 700;
  box-shadow: 0 4px 12px -4px rgba(26, 100, 190, 0.6);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-inline: auto;
}
.nav-links a {
  position: relative;
  display: block;
  padding: 0.5rem 0.85rem;
  border-radius: var(--r-pill);
  font-family: var(--font-ui);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate);
  transition:
    color var(--t-fast) var(--ease),
    background-color var(--t-fast) var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.28rem;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--grad-text);
  transform: translateX(-50%);
  transition: width var(--t-mid) var(--ease);
}
.nav-links a:hover {
  color: var(--navy);
  background: rgba(248, 250, 252, 0.9);
}
.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 18px;
}
.nav-links a[aria-current="page"] {
  color: var(--cobalt);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.nav-actions .btn {
  padding: 0.6rem 1.1rem;
  font-size: 0.88rem;
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 0.6rem;
  border-radius: var(--r-sm);
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: var(--navy);
  transition:
    transform var(--t-mid) var(--ease),
    opacity var(--t-fast) var(--ease);
}
.site-header.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.site-header.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}
.site-header.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* ---- Footer ---- */
.site-footer {
  padding-block: var(--space-8) var(--space-5);
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: var(--space-6) var(--space-5);
}
.footer-brand {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--navy);
  margin-bottom: var(--space-3);
}
.footer-col p {
  max-width: 34ch;
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.footer-col h4 {
  margin-bottom: var(--space-4);
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: var(--fs-micro);
}
.footer-col li + li {
  margin-top: 0.55rem;
}
.footer-col a {
  font-size: var(--fs-small);
  color: var(--text-muted);
  transition: color var(--t-fast) var(--ease);
}
.footer-col a:hover {
  color: var(--cobalt);
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
  font-size: var(--fs-micro);
  color: var(--text-muted);
}

/* ---- Reveal + utilities ---- */
/* .reveal is defined once, in base.css — one motion system for the site. */


/* ---- Scrollbar ---- */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--azure) var(--soft-white);
}
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--soft-white);
}
::-webkit-scrollbar-thumb {
  border: 3px solid var(--soft-white);
  border-radius: var(--r-pill);
  background: var(--cobalt);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--azure);
}
::selection {
  background: rgba(61, 191, 248, 0.25);
  color: var(--navy);
}

/* ---- Accessibility ---- */
:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
  border-radius: 4px;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---- Responsive ---- */
@media (max-width: 980px) {
  body {
    padding-top: 5rem;
  }
  .nav {
    flex-wrap: wrap;
    row-gap: 0;
  }
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }
  .nav-actions {
    display: none;
  }
  .nav-links {
    display: none;
    order: 3;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin: 0;
    padding-top: var(--space-4);
    border-top: 1px solid var(--border);
  }
  .site-header.nav-open .nav-links {
    display: flex;
  }
  .site-header.nav-open .nav-actions {
    display: flex;
    order: 4;
    width: 100%;
    padding-top: var(--space-3);
  }
  .site-header.nav-open .nav-actions .btn {
    flex: 1;
  }
  .nav-links a {
    padding: 0.7rem 0.6rem;
    font-size: 0.95rem;
  }
  .nav-links a::after {
    left: 0.6rem;
    transform: none;
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-col:first-child {
    grid-column: 1/-1;
  }
}
@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .footer-bottom {
    flex-direction: column;
  }
}

/* EduSpace — index.css : hero, how, misconception, features, about, follow, support */

/* ---------- HERO ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 2rem + 6vw, 6.5rem) clamp(4rem, 2rem + 6vw, 7rem);
  background:
    radial-gradient(
      60% 55% at 82% 12%,
      rgba(61, 191, 248, 0.1),
      transparent 62%
    ),
    radial-gradient(55% 50% at 10% 0%, rgba(26, 100, 190, 0.09), transparent 60%),
    var(--white);
}
/* Faint instrument grid — masked so it never competes with text */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(14, 33, 56, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 33, 56, 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(
    75% 65% at 50% 30%,
    #000,
    transparent 78%
  );
  mask-image: radial-gradient(75% 65% at 50% 30%, #000, transparent 78%);
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 1rem + 5vw, 5rem);
  align-items: center;
}
.hero-copy h1 {
  margin-top: var(--space-4);
}
.hero-sub {
  max-width: 52ch;
  margin-top: var(--space-5);
  font-size: var(--fs-lead);
  color: var(--text-muted);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  margin-top: var(--space-7);
  padding-top: var(--space-5);
  border-top: 1px solid var(--border);
}
.hero-stats > div {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  max-width: 30ch;
}
.hero-stats strong {
  font-family: var(--font-display);
  font-size: 2.5rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats span {
  font-size: var(--fs-small);
  color: var(--text-muted);
  line-height: 1.4;
}

/* Orbital ring behind the diagnosis card */
.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 340px;
}




.hero-card {
  position: relative;
  width: min(100%, 420px);
  padding: var(--space-5);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  background: var(--glass-solid);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--sh-lg);
}

.hero-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}
.hero-card-meta {
  font-family: var(--font-ui);
  font-size: var(--fs-micro);
  font-weight: 600;
  color: var(--slate);
}
.hero-card-q {
  margin-top: var(--space-5);
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--navy);
}
/* Student input is TITANIUM, never red — palette has no red, and muting the
   wrong answer keeps all attention on the diagnosis below it. */
.hero-card-answer.wrong {
  display: inline-block;
  margin-top: var(--space-4);
  padding: 0.45rem 0.85rem;
  border: 1px dashed var(--titanium);
  border-radius: var(--r-sm);
  background: var(--soft-white);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--slate);
}
.hero-card-diagnosis {
  display: flex;
  gap: 0.65rem;
  margin-top: var(--space-5);
  padding: var(--space-4);
  border: 1px solid rgba(61, 191, 248, 0.28);
  border-left: 3px solid var(--cyan);
  border-radius: var(--r-md);
  background: rgba(61, 191, 248, 0.055);
  font-size: var(--fs-small);
  line-height: 1.55;
  color: var(--navy);
}
.diag-dot {
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 0.42rem;
  border-radius: 50%;
  background: var(--accent);
}


/* ---------- HOW IT WORKS ---------- */
.how {
  background: var(--surface-alt);
  border-block: 1px solid var(--border);
}
.flip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-7);
}
/* ---------- Flip cards ----------
   A card turning over, not a page transition: a single slow rotateY about
   a shared vanishing point, with the faces held flat against each other.
   The perspective lives on .flip-grid (base.css) so the whole row turns
   toward the same point. */
.flip-card {
  min-height: 250px;
  cursor: pointer;
  /* Own perspective as a fallback when a card is used outside .flip-grid. */
  perspective: var(--perspective);
}
.flip-card:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 4px;
  border-radius: var(--r-lg);
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 250px;
  transform-style: preserve-3d;
  /* Slower than a normal transition — a physical object has mass. */
  transition: transform var(--t-flip) var(--ease);
}
.flip-card.is-flipped .flip-card-inner {
  transform: rotateY(180deg);
}
/* Hover-flip only where hovering is a real gesture. On touch the tap
   handler in index.js drives .is-flipped instead, so a card can never get
   stuck mid-turn by a lingering :hover. */
@media (hover: hover) and (pointer: fine) {
  .flip-card:hover .flip-card-inner,
  .flip-card:focus-within .flip-card-inner {
    transform: rotateY(180deg);
  }
  .flip-card:hover .flip-card-front,
  .flip-card:focus-within .flip-card-front {
    box-shadow: var(--sh-md);
  }
}
.flip-card-face {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden; /* long copy is clipped by the card, never the page */
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  /* Keeps both faces on their own compositor layer so the turn cannot
     flicker where they cross. */
  transform: translateZ(0);
  will-change: transform;
}
.flip-card-front {
  background: var(--white);
  box-shadow: var(--sh-sm);
}
.flip-card-front p {
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.flip-card-front h3 {
  margin-top: auto;
}
.flip-card-back {
  transform: rotateY(180deg) translateZ(1px);
  justify-content: center;
  background: var(--grad-action);
  border-color: transparent;
  color: var(--white);
  box-shadow: var(--sh-md);
}
.flip-card-back p {
  font-size: var(--fs-small);
  color: rgba(255, 255, 255, 0.94);
}

/* ---------- SIGNATURE: same answer, different reasons ---------- */
.misconception {
  position: relative;
  overflow: hidden;
  background: var(--grad-deep);
  color: var(--white);
}
.misconception::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(
    50% 45% at 50% 0%,
    rgba(61, 191, 248, 0.16),
    transparent 68%
  );
}
.misconception > .container {
  position: relative;
}
.misconception h2 {
  color: var(--white);
}
.misconception .eyebrow {
  color: var(--cyan);
}
.misconception .section-lead {
  color: rgba(248, 250, 252, 0.72);
}
.misconception .diag-label {
  color: var(--titanium);
}

.compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--space-5);
  align-items: stretch;
  margin-top: var(--space-7);
}
.compare-card {
  padding: var(--space-5);
  border: 1px solid var(--glass-dark-border);
  border-radius: var(--r-xl);
  background: var(--glass-dark);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition:
    transform var(--t-mid) var(--ease),
    border-color var(--t-mid) var(--ease);
}
.compare-card:hover {
  transform: translateY(-4px);
  border-color: rgba(61, 191, 248, 0.36);
}
.compare-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.compare-head strong {
  display: block;
  font-family: var(--font-ui);
  font-size: 1rem;
}
.compare-head span {
  font-size: var(--fs-micro);
  color: var(--titanium);
}
.avatar {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--grad-action);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}
.avatar.alt {
  background: linear-gradient(140deg, var(--azure), var(--cyan));
  color: var(--navy);
}
.compare-q {
  margin-top: var(--space-5);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}
.wrong-answer {
  color: var(--titanium);
  text-decoration: underline;
  text-decoration-style: dashed;
  text-underline-offset: 5px;
  text-decoration-color: rgba(195, 204, 218, 0.6);
}
.compare-diagnosis,
.compare-next {
  margin-top: var(--space-5);
}
.compare-diagnosis {
  padding-left: var(--space-4);
  border-left: 2px solid var(--cyan);
}
.compare-diagnosis p {
  font-size: var(--fs-small);
  color: rgba(248, 250, 252, 0.92);
}
.compare-next p {
  font-size: var(--fs-small);
  color: var(--titanium);
}

/* The fork: one identical input, two diverging paths */
.compare-divider {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  font-family: var(--font-ui);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--titanium);
}
.compare-divider::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(
    to bottom,
    transparent,
    rgba(61, 191, 248, 0.5),
    transparent
  );
}
.compare-divider span {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(61, 191, 248, 0.34);
  background: rgba(4, 40, 126, 0.85);
}

/* ---------- FEATURES ---------- */
.feature-list {
  margin-top: var(--space-7);
  border-top: 1px solid var(--border);
}
.feature-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-5);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--border);
  transition: background-color var(--t-mid) var(--ease);
}
.feature-row:hover {
  background: var(--surface-alt);
}
.feature-row p {
  margin-top: 0.4rem;
  max-width: 66ch;
  font-size: var(--fs-small);
  color: var(--text-muted);
}
/* These four are parallel, not sequential — so the index stays a quiet
   tick mark, not a decorative gradient numeral. */
.feature-num {
  font-family: var(--font-ui);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.14em;
  /* was --titanium (#c3ccda): 1.38:1 on the page background, unreadable */
  color: var(--text-muted);
  padding-top: 0.45rem;
  min-width: 2ch;
  transition: color var(--t-fast) var(--ease);
}
.feature-row:hover .feature-num {
  color: var(--cobalt);
}

/* ---------- ABOUT ---------- */
.about {
  background: var(--surface-alt);
  border-block: 1px solid var(--border);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(2.5rem, 1rem + 4vw, 4.5rem);
}
.about-grid p {
  margin-top: var(--space-5);
  max-width: 46ch;
  color: var(--text-muted);
}
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-5);
}
.member-card {
  padding: var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--sh-sm);
  transition:
    transform var(--t-mid) var(--ease),
    box-shadow var(--t-mid) var(--ease);
}
.member-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}
.member-card strong {
  display: block;
  margin-top: var(--space-3);
  font-family: var(--font-ui);
  font-size: 0.92rem;
}
.member-card span {
  font-size: var(--fs-micro);
  color: var(--text-muted);
}
.member-avatar {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--grad-action);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
}

/* ---------- FOLLOW ---------- */
.follow {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
main > .follow {
  padding-block: var(--space-7);
}
.follow-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}
.follow h3 {
  font-size: 1.25rem;
  font-weight: 500;
}
.social-row {
  display: flex;
  gap: 0.6rem;
}
.social-row a {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate);
  transition:
    transform var(--t-mid) var(--ease),
    color var(--t-fast) var(--ease),
    border-color var(--t-fast) var(--ease);
}
.social-row a:hover {
  transform: translateY(-3px);
  color: var(--cobalt);
  border-color: var(--azure);
}

/* ---------- SUPPORT ---------- */
.support {
  background: var(--surface-alt);
}
.support-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.support-card {
  padding: var(--space-5);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--white);
  box-shadow: var(--sh-sm);
  transition:
    transform var(--t-mid) var(--ease),
    box-shadow var(--t-mid) var(--ease);
}
.support-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-md);
}
.support-card a {
  font-family: var(--font-ui);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--navy);
  transition: color var(--t-fast) var(--ease);
}
.support-card a:hover {
  color: var(--cobalt);
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1080px) {
  .flip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    order: -1;
    min-height: 0;
  }
  .hero-visual::before,
  .hero-visual::after {
    display: none;
  }
  .hero-card {
    animation: none;
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
  .compare-grid {
    grid-template-columns: 1fr;
  }
  .compare-divider {
    width: auto;
    height: 56px;
  }
  .compare-divider::before {
    top: 50%;
    left: 0;
    right: 0;
    bottom: auto;
    width: auto;
    height: 1px;
    background: linear-gradient(
      to right,
      transparent,
      rgba(61, 191, 248, 0.5),
      transparent
    );
  }
}
@media (max-width: 640px) {
  .flip-grid {
    grid-template-columns: 1fr;
  }
  .flip-card,
  .flip-card-inner {
    min-height: 200px;
  }
  .hero-stats {
    gap: var(--space-4);
  }
  .feature-row {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
}
