:root {
  --bg: #06080c;
  --bg-elevated: rgba(14, 18, 26, 0.72);
  --bg-card: rgba(18, 24, 34, 0.82);
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef1f6;
  --text-muted: #8b95a8;
  --accent: #0ecb81;
  --accent-glow: rgba(14, 203, 129, 0.35);
  --purple: #8b5cf6;
  --purple-deep: #6d28d9;
  --purple-glow: rgba(139, 92, 246, 0.45);
  --discord: #5865f2;
  --discord-hover: #4752c4;
  --discord-glow: rgba(88, 101, 242, 0.45);
  --yellow: #fcd535;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
  --font: "Inter", system-ui, sans-serif;
  --display: "Syne", "Inter", sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(139, 92, 246, 0.5) var(--bg);
  scrollbar-width: thin;
}

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

*::-webkit-scrollbar-track {
  background: rgba(6, 8, 12, 0.92);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(139, 92, 246, 0.55), rgba(88, 101, 242, 0.42));
  border-radius: 999px;
  border: 2px solid rgba(6, 8, 12, 0.9);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.72), rgba(114, 137, 218, 0.58));
}

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

::selection {
  background: rgba(139, 92, 246, 0.35);
  color: #fff;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 50% at 20% 0%, rgba(139, 92, 246, 0.18), transparent 55%),
    radial-gradient(ellipse 60% 40% at 85% 15%, rgba(88, 101, 242, 0.12), transparent 50%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(14, 203, 129, 0.08), transparent 45%);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-text-size-adjust: 100%;
}

/* Form controls — match dark glass aesthetic */
input,
textarea,
select,
button {
  font: inherit;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]),
textarea,
select {
  color: var(--text);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="file"]):focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: rgba(139, 92, 246, 0.45);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.15);
}

input[type="checkbox"],
input[type="radio"] {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0;
  accent-color: var(--purple);
  cursor: pointer;
}

input[type="range"] {
  accent-color: var(--purple);
  cursor: pointer;
}

fieldset {
  margin: 0;
  padding: 1rem 1.15rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(18, 24, 34, 0.5);
}

legend {
  padding: 0 0.35rem;
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#motion-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.gradient-orbs {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

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

.orb-a {
  width: 42vw;
  height: 42vw;
  top: -10%;
  left: -8%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.42), transparent 70%);
}

.orb-b {
  width: 36vw;
  height: 36vw;
  bottom: -12%;
  right: -6%;
  background: radial-gradient(circle, rgba(88, 101, 242, 0.38), transparent 70%);
  animation-delay: -4s;
}

.orb-c {
  width: 28vw;
  height: 28vw;
  top: 40%;
  left: 55%;
  background: radial-gradient(circle, rgba(109, 40, 217, 0.28), transparent 70%);
  animation-delay: -8s;
}

.orb-d {
  width: 32vw;
  height: 32vw;
  top: 55%;
  left: 10%;
  background: radial-gradient(circle, rgba(14, 203, 129, 0.15), transparent 70%);
  animation-delay: -6s;
  animation-duration: 16s;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(4vw, -3vh) scale(1.08); }
  50% { transform: translate(-3vw, 4vh) scale(0.94); }
  75% { transform: translate(2vw, 2vh) scale(1.04); }
}

.site-header,
.mobile-nav,
main,
.site-footer {
  position: relative;
  z-index: 1;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--header-h);
  padding: env(safe-area-inset-top, 0) max(1rem, env(safe-area-inset-right)) 0 max(1rem, env(safe-area-inset-left));
  backdrop-filter: blur(16px);
  background: linear-gradient(180deg, rgba(6, 8, 12, 0.88), rgba(6, 8, 12, 0.65));
  border-bottom: 1px solid rgba(139, 92, 246, 0.15);
}

.site-nav {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  width: min(760px, calc(100vw - 2rem));
  column-gap: clamp(1.25rem, 3vw, 2.5rem);
}

.nav-side {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.nav-side-start {
  justify-content: flex-end;
}

.nav-side-end {
  justify-content: flex-start;
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  text-decoration: none;
  justify-self: center;
}

.brand-logo {
  display: block;
  height: 34px;
  width: auto;
  max-width: min(130px, 36vw);
  object-fit: contain;
  opacity: 0.92;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  transition: color 0.2s;
  text-align: center;
  white-space: nowrap;
}

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

.nav-discord {
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: var(--discord);
  color: #fff !important;
  box-shadow: 0 0 24px var(--discord-glow);
}

.nav-discord:hover {
  background: var(--discord-hover);
}

.menu-toggle {
  display: none;
  position: absolute;
  right: max(1rem, env(safe-area-inset-right));
  top: 50%;
  transform: translateY(-50%);
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 0.5rem;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto 0;
  z-index: 19;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: rgba(6, 8, 12, 0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1rem;
  color: var(--text);
  text-decoration: none;
  text-align: center;
  border-radius: var(--radius-sm);
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.04);
}

.mobile-nav-cta {
  background: linear-gradient(135deg, #5865f2, #7289da) !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 8px 24px var(--discord-glow);
}

.mobile-nav-cta:hover {
  background: linear-gradient(135deg, #4752c4, #5865f2) !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  border: 1px solid transparent;
}

.btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.btn-discord {
  background: linear-gradient(135deg, #5865f2, #7289da);
  color: #fff;
  box-shadow: 0 8px 32px var(--discord-glow);
}

.btn-discord:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--discord-glow);
}

.btn-xl {
  padding: 1rem 1.75rem;
  font-size: 1.05rem;
}

.btn-ghost {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.btn-book {
  color: #fff;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.9), rgba(109, 40, 217, 0.85));
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 8px 32px var(--purple-glow);
}

.btn-book:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(139, 92, 246, 0.55);
}

.btn.pulse {
  animation: pulse-glow 2.8s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 8px 32px var(--discord-glow); }
  50% { box-shadow: 0 8px 48px rgba(88, 101, 242, 0.65); }
}

/* Hero */
.hero {
  min-height: auto;
  display: flex;
  align-items: center;
  padding: 3rem 1.25rem 2.5rem;
}

#resources {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

#learn {
  scroll-margin-top: calc(var(--header-h) + 1rem);
}

.hero-inner {
  width: min(920px, 100%);
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1.25rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(139, 92, 246, 0.35);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.15), rgba(88, 101, 242, 0.1));
  color: var(--purple);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-family: var(--display);
  font-size: clamp(2.5rem, 7vw, 4.75rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 0%, #b8c2d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  margin: 0 0 1.5rem;
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--text-muted);
}

.hero-sub {
  margin: 0 0 2rem;
  font-family: var(--display);
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  line-height: 1.25;
  font-weight: 700;
}

.hero-sub span {
  color: var(--purple);
}

.hero-sub span:last-of-type {
  color: var(--accent);
}

.hero-cta-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  max-width: 920px;
  margin: 0 auto 1rem;
  text-align: left;
}

.hero-cta-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 1.35rem;
  border-radius: calc(var(--radius) + 2px);
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(10px);
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.cta-card-bg {
  position: absolute;
  right: -10px;
  bottom: -14px;
  width: 108px;
  height: 108px;
  opacity: 0.55;
  pointer-events: none;
  user-select: none;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.cta-card-icon {
  position: relative;
  z-index: 1;
  width: 42px;
  height: 42px;
  margin-bottom: 0.15rem;
  flex-shrink: 0;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.25));
  transition: transform 0.25s ease;
}

.cta-card-body {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.hero-cta-card:hover {
  transform: translateY(-3px);
}

.hero-cta-card:hover .cta-card-bg {
  transform: scale(1.06) translate(-4px, -4px);
  opacity: 0.72;
}

.hero-cta-card:hover .cta-card-icon {
  transform: translateY(-2px) scale(1.04);
}

.hero-cta-card strong {
  font-family: var(--display);
  font-size: 1.05rem;
  line-height: 1.25;
}

.cta-title-short {
  display: none;
}

.hero-cta-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.hero-cta-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.hero-cta-card--discord {
  background: linear-gradient(160deg, rgba(88, 101, 242, 0.28), rgba(88, 101, 242, 0.12));
  border-color: rgba(88, 101, 242, 0.45);
  box-shadow: 0 10px 36px rgba(88, 101, 242, 0.2);
}

.hero-cta-card--discord:hover {
  border-color: rgba(114, 137, 218, 0.65);
  box-shadow: 0 14px 44px rgba(88, 101, 242, 0.35);
}

.hero-cta-card--discord .hero-cta-label {
  color: #a5b4fc;
}

.hero-cta-card--book {
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.22), rgba(109, 40, 217, 0.1));
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 10px 36px rgba(139, 92, 246, 0.15);
}

.hero-cta-card--book:hover {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow: 0 14px 44px rgba(139, 92, 246, 0.28);
}

.hero-cta-card--book .hero-cta-label {
  color: #c4b5fd;
}

.hero-cta-card--free {
  background: linear-gradient(160deg, rgba(14, 203, 129, 0.16), rgba(14, 203, 129, 0.06));
  border-color: rgba(14, 203, 129, 0.35);
  box-shadow: 0 10px 36px rgba(14, 203, 129, 0.12);
}

.hero-cta-card--free:hover {
  border-color: rgba(14, 203, 129, 0.55);
  box-shadow: 0 14px 44px rgba(14, 203, 129, 0.22);
}

.hero-cta-card--free .hero-cta-label {
  color: var(--accent);
}

.hero-learn-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin: 0.5rem 0 2rem;
  padding: 0.6rem 1.15rem;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #ede9fe;
  text-decoration: none;
  border: 1px solid rgba(139, 92, 246, 0.42);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(88, 101, 242, 0.1));
  box-shadow: 0 4px 22px rgba(139, 92, 246, 0.14);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.hero-learn-link::after {
  content: "→";
  font-size: 1rem;
  line-height: 1;
  opacity: 0.9;
  transition: transform 0.2s;
}

.hero-learn-link:hover {
  color: #fff;
  border-color: rgba(167, 139, 250, 0.55);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.26), rgba(88, 101, 242, 0.16));
  box-shadow: 0 6px 28px rgba(139, 92, 246, 0.22);
  transform: translateY(-1px);
}

.hero-learn-link:hover::after {
  transform: translateX(3px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 3rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 820px;
  margin-inline: auto;
  opacity: 0.92;
}

.stat {
  padding: 1.1rem 1rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.stat strong {
  display: block;
  font-family: var(--display);
  font-size: 1.15rem;
  margin-bottom: 0.25rem;
}

.stat span {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.4;
}

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

.section-label {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-intro {
  margin: 0 0 2.5rem;
  max-width: 720px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.feature-grid {
  list-style: none;
  margin: 0 0 2.5rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-bottom: 1rem;
  border-radius: 10px;
  background: rgba(14, 203, 129, 0.12);
  color: var(--accent);
  font-weight: 700;
}

.feature-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.cta-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(88, 101, 242, 0.12), rgba(14, 203, 129, 0.08));
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.cta-banner h3 {
  margin: 0 0 0.35rem;
  font-family: var(--display);
  font-size: 1.1rem;
}

.cta-banner p {
  margin: 0;
  color: var(--text-muted);
}

.cta-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  flex-shrink: 0;
}

/* Compact link chips (secondary CTAs) */
.link-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  color: var(--text);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.link-chip:hover {
  transform: translateY(-1px);
}

.link-chip-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.95;
}

.link-chip--discord {
  color: #e0e7ff;
  border-color: rgba(88, 101, 242, 0.38);
  background: rgba(88, 101, 242, 0.14);
}

.link-chip--discord:hover {
  border-color: rgba(114, 137, 218, 0.55);
  box-shadow: 0 6px 20px rgba(88, 101, 242, 0.2);
}

.link-chip--book {
  color: #ede9fe;
  border-color: rgba(139, 92, 246, 0.38);
  background: rgba(139, 92, 246, 0.12);
}

.link-chip--book:hover {
  border-color: rgba(167, 139, 250, 0.5);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.18);
}

.link-chip--free {
  color: #d1fae5;
  border-color: rgba(14, 203, 129, 0.35);
  background: rgba(14, 203, 129, 0.1);
}

.link-chip--free:hover {
  border-color: rgba(14, 203, 129, 0.5);
  box-shadow: 0 6px 20px rgba(14, 203, 129, 0.15);
}

.link-chip--neutral {
  color: var(--text-muted);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
}

.link-chip--neutral:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.link-chip--md {
  padding: 0.6rem 1rem;
  font-size: 0.86rem;
}

.link-chip--md .link-chip-icon {
  width: 20px;
  height: 20px;
}

.link-chip--sm {
  padding: 0.38rem 0.7rem;
  font-size: 0.74rem;
}

.link-chip--sm .link-chip-icon {
  width: 15px;
  height: 15px;
}

/* Resources */
.resources-section--prominent {
  padding-top: 2.5rem;
  padding-bottom: 3.5rem;
}

.resources-section--prominent .section-intro {
  margin-bottom: 2rem;
}

/* Learn */
.learn-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 3rem;
  padding: 2rem;
  border-radius: calc(var(--radius) + 6px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.learn-block.reverse {
  direction: rtl;
}

.learn-block.reverse > * {
  direction: ltr;
}

.learn-copy h3 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-size: 1.5rem;
}

.learn-copy p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.learn-copy ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--text-muted);
}

.learn-copy li + li {
  margin-top: 0.55rem;
}

.learn-copy em {
  color: var(--text);
  font-style: normal;
  font-weight: 600;
}

.learn-visual {
  min-height: 0;
  padding: 0;
  background: transparent;
  border: none;
}

.learn-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--radius) + 2px);
  border: 1px solid rgba(139, 92, 246, 0.25);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35), 0 0 32px rgba(139, 92, 246, 0.12);
  object-fit: cover;
}

.flow-diagram,
.oi-chart {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--border);
}

.flow-node {
  padding: 0.75rem 1.25rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
}

.flow-node.public {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.flow-node.hidden {
  background: rgba(14, 203, 129, 0.12);
  border: 1px solid rgba(14, 203, 129, 0.35);
  color: var(--accent);
}

.flow-arrow {
  margin: 0.75rem 0;
  color: var(--text-muted);
  font-size: 1.25rem;
}

.flow-caption {
  margin-top: 1rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.oi-chart {
  flex-direction: row;
  align-items: flex-end;
  gap: 0.65rem;
  position: relative;
  padding-bottom: 2.5rem;
}

.oi-bar {
  width: 28px;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, rgba(139, 149, 168, 0.5), rgba(139, 149, 168, 0.15));
  animation: bar-rise 1.2s ease-out both;
}

.oi-bar.active {
  background: linear-gradient(180deg, var(--accent), rgba(14, 203, 129, 0.25));
  box-shadow: 0 0 20px var(--accent-glow);
}

.oi-label {
  position: absolute;
  bottom: 0.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

@keyframes bar-rise {
  from { transform: scaleY(0); transform-origin: bottom; }
  to { transform: scaleY(1); transform-origin: bottom; }
}

/* Resources */
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.resource-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-card);
  border: 1px solid var(--border);
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.resource-card .cta-card-bg {
  opacity: 0.48;
}

.resource-card .cta-card-icon {
  margin-bottom: 0.35rem;
}

.resource-card .cta-card-body {
  flex: 1;
}

.resource-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.resource-card:hover .cta-card-bg {
  transform: scale(1.05) translate(-3px, -3px);
  opacity: 0.65;
}

.resource-card:hover .cta-card-icon {
  transform: translateY(-2px) scale(1.03);
}

.resource-card.primary {
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.22), rgba(88, 101, 242, 0.14), rgba(14, 203, 129, 0.06));
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 12px 40px rgba(88, 101, 242, 0.12);
}

.resource-card--book {
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.18), rgba(109, 40, 217, 0.08));
  border-color: rgba(139, 92, 246, 0.35);
}

.resource-card--book .resource-tag {
  color: #c4b5fd;
}

.resource-card--free {
  background: linear-gradient(160deg, rgba(14, 203, 129, 0.14), rgba(14, 203, 129, 0.05));
  border-color: rgba(14, 203, 129, 0.32);
}

.resource-card--free .resource-tag {
  color: var(--accent);
}

.resource-tag {
  display: inline-block;
  margin-bottom: 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.resource-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}

.resource-card p {
  margin: 0 0 1rem;
  flex: 1;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.resource-link {
  color: var(--text);
  font-weight: 600;
  font-size: 0.88rem;
}

.resources-section--prominent .resource-card {
  padding: 1.65rem;
}

.resources-section--prominent .resource-card h3 {
  font-size: 1.2rem;
}

.resources-section--prominent .resource-link {
  font-size: 0.95rem;
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding-bottom: 4.5rem;
}

.final-cta h2 {
  margin-bottom: 0.5rem;
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
}

.final-cta p {
  margin: 0 0 1.25rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.final-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
  background: rgba(0, 0, 0, 0.35);
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  margin: 0 0 1rem;
}

.footer-logo {
  display: block;
  height: 28px;
  width: auto;
  max-width: min(120px, 40vw);
  object-fit: contain;
  opacity: 0.55;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.disclaimer {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.65;
  max-width: 920px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
}

.copyright {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .feature-grid,
  .resource-grid,
  .hero-stats {
    grid-template-columns: 1fr;
  }

  .learn-block,
  .learn-block.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .cta-banner {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-banner-actions {
    width: 100%;
  }

  .cta-banner-actions .link-chip {
    flex: 1 1 auto;
    justify-content: center;
    min-width: min(100%, 140px);
  }
}

@media (max-width: 720px) {
  :root {
    --header-h: 64px;
  }

  .site-nav {
    display: flex;
    justify-content: center;
    width: 100%;
  }

  .nav-side {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .brand-logo {
    height: 32px;
    max-width: min(120px, 42vw);
  }

  .hero {
    padding: 0.85rem 0.75rem 1.25rem;
    min-height: auto;
  }

  .eyebrow {
    margin-bottom: 0.55rem;
    padding: 0.3rem 0.7rem;
    font-size: 0.62rem;
  }

  .hero h1 {
    margin-bottom: 0.45rem;
    font-size: clamp(1.55rem, 7.5vw, 2.1rem);
    line-height: 1.05;
  }

  .hero-lead {
    display: none;
  }

  .hero-sub {
    margin-bottom: 0.75rem;
    font-size: clamp(0.92rem, 3.8vw, 1.1rem);
    line-height: 1.3;
  }

  .hero-cta-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.4rem;
    margin-bottom: 0.55rem;
  }

  .hero-cta-card {
    padding: 0.5rem 0.35rem;
    border-radius: var(--radius-sm);
    align-items: center;
    text-align: center;
  }

  .hero-cta-card .cta-card-body {
    align-items: center;
    text-align: center;
    gap: 0.1rem;
    width: 100%;
  }

  .cta-title-full {
    display: none;
  }

  .cta-title-short {
    display: inline;
  }

  .hero-cta-hint {
    display: none;
  }

  .cta-card-bg {
    display: none;
  }

  .cta-card-icon {
    width: 20px;
    height: 20px;
    margin: 0 auto 0.15rem;
  }

  .hero-cta-label {
    font-size: 0.55rem;
    letter-spacing: 0.05em;
  }

  .hero-cta-card strong {
    font-size: 0.62rem;
    line-height: 1.2;
  }

  .hero-learn-link {
    margin: 0.4rem 0 0;
    padding: 0.5rem 0.85rem;
    font-size: 0.76rem;
  }

  .hero-learn-link::after {
    font-size: 0.9rem;
  }

  .hero-stats {
    display: none;
  }

  .resources-section--detail {
    display: none;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }

  .final-cta-actions {
    gap: 0.55rem;
  }

  .btn-xl {
    width: 100%;
  }

  .section {
    padding: 3.5rem 0;
  }

  .learn-block {
    padding: 1.25rem;
  }

  .learn-image {
    border-radius: var(--radius);
  }

  .container {
    width: min(1120px, calc(100% - 1.25rem));
  }

  .mobile-nav a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }

  .disclaimer {
    font-size: 0.72rem;
  }
}

@media (max-width: 380px) {
  .hero-cta-panel {
    gap: 0.3rem;
  }

  .hero-cta-card {
    padding: 0.45rem 0.25rem;
  }

  .hero-cta-card strong {
    font-size: 0.58rem;
  }
}

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

  .orb,
  .btn.pulse,
  .oi-bar {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
