/* ============================================================
   IndexFit — Design System
   Dark, premium, prismatic. Modern layout paradigms.
   ============================================================ */

:root {
  /* Core palette */
  --bg: #050506;
  --bg-elev: #0c0c0f;
  --bg-card: rgba(255, 255, 255, 0.025);
  --bg-card-hover: rgba(255, 255, 255, 0.045);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text: #f4f4f6;
  --text-muted: #a0a0ab;
  --text-dim: #6b6b76;

  /* Prismatic accents (sampled from the iF logo + mesh gradients) */
  --iris-violet: #b14bff;
  --iris-magenta: #ff4d8d;
  --iris-amber: #ffae3c;
  --iris-green: #3ddc84;
  --iris-cyan: #21d4fd;
  --iris-blue: #3b6dff;

  --prism: linear-gradient(
    100deg,
    #b14bff 0%,
    #ff4d8d 22%,
    #ffae3c 44%,
    #3ddc84 64%,
    #21d4fd 84%,
    #3b6dff 100%
  );

  /* Layout */
  --maxw: 1180px;
  --radius-sm: 12px;
  --radius: 20px;
  --radius-lg: 28px;
  --radius-xl: 36px;

  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
    "Helvetica Neue", Arial, sans-serif;

  --shadow-soft: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  --shadow-glow: 0 0 60px -10px rgba(177, 75, 255, 0.35);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Ambient prismatic glow that sits behind everything */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 15% 0%, rgba(177, 75, 255, 0.18), transparent 70%),
    radial-gradient(50% 50% at 90% 10%, rgba(33, 212, 253, 0.14), transparent 70%),
    radial-gradient(70% 60% at 50% 120%, rgba(255, 77, 141, 0.12), transparent 70%);
  pointer-events: none;
}

/* Subtle film grain / noise overlay */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: 0.035;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

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

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 100px;
  background: var(--bg-card);
}

.eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--prism);
  box-shadow: 0 0 10px rgba(177, 75, 255, 0.8);
}

.prism-text {
  background: var(--prism);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

section {
  position: relative;
  padding: 110px 0;
}

.section-head {
  max-width: 680px;
  margin: 0 auto 64px;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 4.5vw, 3.25rem);
  margin: 20px 0 18px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 1.08rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 0.97rem;
  font-weight: 600;
  padding: 13px 24px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease,
    border-color 0.25s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--text);
  color: #0a0a0c;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -12px rgba(255, 255, 255, 0.4);
}

.btn-prism {
  background: var(--prism);
  background-size: 200% 200%;
  color: #0a0a0c;
  animation: prism-shift 8s ease infinite;
}
.btn-prism:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

@keyframes prism-shift {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.btn-ghost {
  background: var(--bg-card);
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

/* App Store badge button */
.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px 12px 18px;
  border-radius: 16px;
  background: #fff;
  color: #0a0a0c;
  transition: transform 0.2s ease, box-shadow 0.25s ease;
}
.appstore-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px -14px rgba(255, 255, 255, 0.45);
}
.appstore-btn svg {
  width: 28px;
  height: 28px;
}
.appstore-btn .as-label {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-align: left;
}
.appstore-btn .as-small {
  font-size: 0.66rem;
  font-weight: 500;
  opacity: 0.7;
}
.appstore-btn .as-big {
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(8, 8, 10, 0.7);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-weight: 600;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.brand img {
  height: 30px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(180, 180, 255, 0.4));
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}
.nav-links a:hover {
  color: var(--text);
}
.nav-cta {
  display: flex;
  align-items: center;
  gap: 14px;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 180px 0 90px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  max-width: 120vw;
  background: radial-gradient(
    circle at 50% 40%,
    rgba(177, 75, 255, 0.28),
    rgba(33, 212, 253, 0.12) 45%,
    transparent 70%
  );
  filter: blur(30px);
  z-index: -1;
  pointer-events: none;
}
.hero h1 {
  font-size: clamp(2.7rem, 7vw, 5.4rem);
  line-height: 1.02;
  margin: 26px auto 24px;
  max-width: 14ch;
}
.hero p.lead {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 38px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.hero-sub {
  margin-top: 22px;
  font-size: 0.88rem;
  color: var(--text-dim);
  display: flex;
  gap: 10px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}
.stars {
  color: var(--iris-amber);
  letter-spacing: 2px;
}

/* Hero device / showcase */
.hero-showcase {
  margin-top: 72px;
  position: relative;
  display: flex;
  justify-content: center;
}
.phone {
  width: 300px;
  max-width: 78vw;
  aspect-ratio: 9 / 19.5;
  border-radius: 44px;
  padding: 12px;
  background: linear-gradient(160deg, #1a1a20, #050506);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-soft), 0 0 90px -20px rgba(177, 75, 255, 0.4);
  position: relative;
  z-index: 2;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 33px;
  overflow: hidden;
  position: relative;
  background: #0a0a0c;
  display: flex;
  flex-direction: column;
}
.phone-notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 24px;
  background: #000;
  border-radius: 100px;
  z-index: 5;
}

/* In-phone fantasy card mock */
.mock {
  padding: 50px 18px 18px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background:
    radial-gradient(80% 50% at 50% 0%, rgba(177, 75, 255, 0.2), transparent),
    #0a0a0c;
}
.mock-greeting {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.mock-card {
  border-radius: 18px;
  padding: 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
}
.mock-card.prism-card {
  background: var(--prism);
  background-size: 200% 200%;
  animation: prism-shift 8s ease infinite;
  color: #0a0a0c;
  border: none;
}
.mock-card .mc-label {
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.85;
}
.mock-card .mc-points {
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 2px;
}
.mock-card .mc-sub {
  font-size: 0.68rem;
  opacity: 0.8;
  margin-top: 2px;
}
.mock-row {
  display: flex;
  gap: 10px;
}
.mock-row .mock-card {
  flex: 1;
}
.mc-stat {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-top: 4px;
}
.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 46px;
  margin-top: 10px;
}
.mock-bars span {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: rgba(255, 255, 255, 0.6);
}

/* Floating accent cards beside the phone */
.float-card {
  position: absolute;
  z-index: 3;
  border-radius: 16px;
  padding: 13px 16px;
  background: rgba(14, 14, 18, 0.8);
  border: 1px solid var(--border-strong);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 0.85rem;
  animation: floaty 5s ease-in-out infinite;
}
.float-card .fc-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}
.float-card .fc-title {
  font-weight: 600;
  font-size: 0.85rem;
}
.float-card .fc-sub {
  font-size: 0.72rem;
  color: var(--text-dim);
}
.float-1 {
  top: 70px;
  left: max(2%, calc(50% - 320px));
  animation-delay: 0s;
}
.float-2 {
  bottom: 120px;
  right: max(2%, calc(50% - 320px));
  animation-delay: 1.5s;
}
.float-3 {
  bottom: 30px;
  left: max(4%, calc(50% - 280px));
  animation-delay: 0.8s;
}
@keyframes floaty {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  padding: 38px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex;
  gap: 60px;
  width: max-content;
  animation: scroll-x 32s linear infinite;
}
.marquee-track span {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 60px;
  white-space: nowrap;
}
.marquee-track span::after {
  content: "✦";
  color: var(--iris-violet);
  font-size: 0.9rem;
}
@keyframes scroll-x {
  to {
    transform: translateX(-50%);
  }
}

/* ============================================================
   STATS
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.stat {
  text-align: center;
  padding: 38px 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.stat .num {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}
.stat .label {
  color: var(--text-muted);
  font-size: 0.92rem;
  margin-top: 6px;
}

/* ============================================================
   FEATURES (bento)
   ============================================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
}
.feature {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease, background 0.3s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
}
.feature::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  top: -90px;
  right: -90px;
  background: var(--prism);
  filter: blur(60px);
  opacity: 0.14;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.feature:hover::after {
  opacity: 0.28;
}
.feature .f-icon {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  margin-bottom: 20px;
}
.feature h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.feature p {
  color: var(--text-muted);
  font-size: 0.97rem;
}
.col-4 {
  grid-column: span 4;
}
.col-3 {
  grid-column: span 3;
}
.col-2 {
  grid-column: span 2;
}

/* feature variant with prismatic backdrop image */
.feature.feature-hero {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
}
.feature.feature-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(5, 5, 6, 0.1) 0%,
    rgba(5, 5, 6, 0.65) 60%,
    rgba(5, 5, 6, 0.92) 100%
  );
}
.feature.feature-hero > * {
  position: relative;
  z-index: 1;
}

/* ============================================================
   HOW IT WORKS / STEPS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: step;
}
.step {
  padding: 34px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  position: relative;
}
.step .s-num {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--iris-violet);
  margin-bottom: 18px;
}
.step h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}
.step p {
  color: var(--text-muted);
  font-size: 0.96rem;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 880px;
  margin: 0 auto;
}
.price-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 38px;
  position: relative;
  overflow: hidden;
}
.price-card.featured {
  border-color: transparent;
  background:
    linear-gradient(var(--bg-elev), var(--bg-elev)) padding-box,
    var(--prism) border-box;
  border: 1.5px solid transparent;
  box-shadow: var(--shadow-glow);
}
.price-card .tier {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.price-tag {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 18px 0 6px;
}
.price-tag .amount {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.price-tag .per {
  color: var(--text-dim);
  font-size: 0.95rem;
}
.price-card .tier-desc {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 24px;
}
.price-badge {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--prism);
  color: #0a0a0c;
}
.feat-list {
  list-style: none;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
.feat-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 0.95rem;
  color: var(--text);
}
.feat-list li .check {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(61, 220, 132, 0.15);
  color: var(--iris-green);
  font-size: 0.7rem;
  margin-top: 2px;
}
.feat-list li.muted {
  color: var(--text-dim);
}
.feat-list li.muted .check {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}
.student-note {
  text-align: center;
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.testi {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 30px;
}
.testi .quote {
  font-size: 1.02rem;
  line-height: 1.55;
  margin-bottom: 22px;
}
.testi .who {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testi .avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--prism);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #0a0a0c;
}
.testi .who .name {
  font-weight: 600;
  font-size: 0.92rem;
}
.testi .who .role {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ============================================================
   CTA
   ============================================================ */
.cta-wrap {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 80px 40px;
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: var(--bg-elev);
}
.cta-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--prism);
  background-size: 200% 200%;
  animation: prism-shift 10s ease infinite;
  opacity: 0.16;
}
.cta-wrap > * {
  position: relative;
  z-index: 1;
}
.cta-wrap h2 {
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  margin-bottom: 18px;
}
.cta-wrap p {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 520px;
  margin: 0 auto 34px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding: 70px 0 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 16px;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}
.footer-col a:hover {
  color: var(--text);
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  color: var(--text-dim);
  font-size: 0.86rem;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   LEGAL / CONTENT PAGES
   ============================================================ */
.legal {
  padding: 150px 0 100px;
}
.legal-inner {
  max-width: 800px;
  margin: 0 auto;
}
.legal h1 {
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  margin-bottom: 12px;
}
.legal .updated {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 50px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--border);
}
.legal h2 {
  font-size: 1.5rem;
  margin: 44px 0 16px;
  scroll-margin-top: 100px;
}
.legal h3 {
  font-size: 1.15rem;
  margin: 28px 0 12px;
  color: var(--text);
}
.legal p,
.legal li {
  color: var(--text-muted);
  font-size: 1.01rem;
  margin-bottom: 14px;
}
.legal ul,
.legal ol {
  padding-left: 24px;
  margin-bottom: 14px;
}
.legal li {
  margin-bottom: 8px;
}
.legal a {
  color: var(--iris-cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.legal strong {
  color: var(--text);
}
.legal .toc {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-bottom: 50px;
}
.legal .toc h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.legal .toc ol {
  margin: 0;
  columns: 2;
  gap: 28px;
}
.legal .toc a {
  color: var(--text-muted);
  text-decoration: none;
}
.legal .toc a:hover {
  color: var(--text);
}

/* Support page specifics */
.support-hero {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}
.support-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 70px;
}
.support-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 32px;
  text-align: center;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.support-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}
.support-card .sc-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.support-card h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.support-card p {
  color: var(--text-muted);
  font-size: 0.93rem;
  margin-bottom: 16px;
}
.support-card a {
  color: var(--iris-cyan);
  font-weight: 600;
  font-size: 0.95rem;
}

/* FAQ accordion */
.faq {
  max-width: 760px;
  margin: 0 auto;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 26px;
  font-weight: 600;
  font-size: 1.03rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--iris-violet);
  font-weight: 400;
  transition: transform 0.25s ease;
}
.faq-item[open] summary::after {
  transform: rotate(45deg);
}
.faq-item .faq-body {
  padding: 0 26px 24px;
  color: var(--text-muted);
  font-size: 0.98rem;
}

/* ============================================================
   ANIMATIONS (reveal on scroll)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
  html {
    scroll-behavior: auto;
  }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps,
  .testi-grid,
  .support-cards {
    grid-template-columns: 1fr;
  }
  .col-4,
  .col-3,
  .col-2 {
    grid-column: span 6;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: span 2;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .legal .toc ol {
    columns: 1;
  }
}

@media (max-width: 680px) {
  section {
    padding: 80px 0;
  }
  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(8, 8, 10, 0.96);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    padding: 10px 24px 20px;
    transform: translateY(-130%);
    transition: transform 0.35s ease;
  }
  .nav-links.open {
    transform: translateY(0);
  }
  .nav-links a {
    padding: 14px 0;
    width: 100%;
    border-bottom: 1px solid var(--border);
  }
  .nav-cta .btn-prism {
    display: none;
  }
  .nav-toggle {
    display: flex;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-brand {
    grid-column: span 1;
  }
  .float-card {
    display: none;
  }
  .hero {
    padding: 140px 0 60px;
  }
}
