/* =========================================================================
   HOME · SECTION 1 — HERO BANNER
   ========================================================================= */
#view-home {
  background:
    radial-gradient(900px 480px at 88% -8%, rgba(129, 182, 76, .16), transparent 60%),
    radial-gradient(760px 520px at -12% 22%, rgba(59, 130, 246, .13), transparent 60%),
    radial-gradient(900px 640px at 50% 118%, rgba(139, 92, 246, .12), transparent 60%),
    var(--bg-main);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 84px 40px 70px;
  overflow: hidden;
}

/* Faint gaming grid behind the hero */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg,   transparent 0 47px, rgba(255, 255, 255, .035) 47px 48px),
    repeating-linear-gradient(90deg,  transparent 0 47px, rgba(255, 255, 255, .035) 47px 48px);
  mask-image: radial-gradient(75% 85% at 50% 40%, #000 30%, transparent 100%);
  pointer-events: none;
}

/* Floating decorative shapes */
.hero-deco {
  position: absolute;
  pointer-events: none;
  opacity: .5;
}

.hero-deco svg { width: 100%; height: 100%; }

.deco-1 { width: 54px; top: 10%; left: 42%; filter: drop-shadow(0 0 14px rgba(34, 211, 238, .5)); animation: float-a 9s ease-in-out infinite alternate; }
.deco-2 { width: 44px; bottom: 6%; left: 3%;  z-index: 1; filter: drop-shadow(0 0 14px rgba(139, 92, 246, .5)); animation: float-b 11s ease-in-out infinite alternate; }
.deco-3 { width: 30px; top: 16%; right: 3%;   filter: drop-shadow(0 0 12px rgba(245, 158, 11, .5)); animation: float-a 7s ease-in-out infinite alternate; }

.hero-copy { position: relative; z-index: 2; }

.hero-copy h1 {
  font-size: 3.5rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.06;
  letter-spacing: -1.5px;
}

.grad-text {
  background: linear-gradient(92deg, var(--accent-green-hover), var(--neon-cyan) 55%, var(--neon-magenta) 115%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--accent-green-hover);
  background: rgba(129, 182, 76, .12);
  border: 1px solid rgba(129, 182, 76, .3);
}

.hero-sub {
  margin: 20px 0 30px;
  max-width: 48ch;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
}

.hero-ticks { margin-top: 34px; font-size: 15.5px; font-weight: 700; color: #a8a49e; letter-spacing: .2px; }

/* Hero right column — the interactive showcase graphic */
.hero-showcase { position: relative; display: flex; justify-content: center; }

.showcase-card {
  width: min(100%, 390px);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .02) inset;
  animation: float-card 7s ease-in-out infinite alternate;
}

.showcase-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.showcase-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
}

.user-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent-green);
  box-shadow: 0 0 8px rgba(129, 182, 76, .9);
}

.rating-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 13px;
  border-radius: 999px;
  background: rgba(253, 224, 71, .1);
  border: 1px solid rgba(253, 224, 71, .22);
  font-size: 18px;
  font-weight: 800;
  color: #fde047;
}

.rating-chip svg { width: 19px; height: 19px; }

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 9px;
}

.sc-cell {
  aspect-ratio: 1;
  background: var(--bg-inset);
  border: 1px solid rgba(255, 255, 255, .05);
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-cell svg { width: 74%; height: 74%; }

.sc-blank {
  border: 2px dotted var(--accent-green);
  background: rgba(129, 182, 76, .07);
}

.sc-blank span {
  font-size: 30px;
  font-weight: 800;
  color: var(--accent-green);
  animation: pulse-q 1.8s ease-in-out infinite;
}

.showcase-options {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 14px;
}

.sc-chip {
  width: 54px;
  height: 54px;
  background: var(--bg-inset);
  border: 1px solid rgba(255, 255, 255, .07);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sc-chip svg { width: 70%; height: 70%; }

.sc-chip-correct {
  border: 2px solid var(--accent-green);
  box-shadow: 0 0 16px rgba(129, 182, 76, .45);
}

/* =========================================================================
   HOME · SECTION 2 — THE MATRIX ARCHETYPES SHOWCASE
   ========================================================================= */
.disciplines { max-width: 1120px; margin: 0 auto; padding: 40px 40px 70px; }

.disciplines h2 {
  text-align: center;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -.5px;
}

.section-sub {
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
  margin: 10px 0 36px;
}

.discipline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 22px;
}

.disc-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  transition: transform .2s cubic-bezier(0.4, 0, 0.2, 1), border-color .2s, box-shadow .2s;
}

.disc-card:hover {
  transform: translateY(-6px);
  border-color: rgba(129, 182, 76, .55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45), 0 0 24px rgba(129, 182, 76, .12);
}

.disc-art {
  background: var(--bg-inset);
  border: 1px solid rgba(255, 255, 255, .04);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  justify-content: center;
  margin-bottom: 16px;
}

.disc-art svg { width: 100%; max-width: 190px; height: auto; }

.disc-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 8px; }

.disc-card p { font-size: 13.5px; line-height: 1.6; color: var(--text-muted); flex: 1; }

.disc-link {
  margin-top: 16px;
  align-self: flex-start;
  color: var(--accent-green);
  font-size: 14px;
  font-weight: 800;
  transition: color .15s;
}

.disc-link:hover { color: var(--accent-green-hover); }

/* =========================================================================
   HOME · SECTIONS 3–4 — PLAY VS BOTS / TRAIN & LEARN TEASERS
   Same two-column shape for both: copy + CTA on one side, a small
   animated preview strip on the other. The strip is decorative only
   (aria-hidden) — the button is the one real way in.
   ========================================================================= */
.home-feature {
  max-width: 1120px;
  margin: 0 auto;
  padding: 30px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
}
.home-feature-reverse { flex-direction: row-reverse; }

.home-feature-copy { flex: 1 1 360px; min-width: 280px; }
.home-feature-copy h2 { font-size: 1.9rem; font-weight: 800; letter-spacing: -.5px; }
.home-feature-copy p {
  text-align: left;
  margin: 12px 0 22px;
  max-width: 52ch;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

/* ----- Bot ladder strip: real roster faces, climbing left to right ----- */
.bot-ladder-strip {
  flex: 1 1 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.bot-ladder-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 68px;
  padding: 12px 4px;
  background: var(--bg-card);
  border: 2px solid color-mix(in srgb, var(--node-color) 55%, var(--line));
  border-radius: 16px;
  box-shadow: 0 0 18px color-mix(in srgb, var(--node-color) 25%, transparent);
}
.bot-ladder-final { animation: bot-ladder-final-pulse 1.6s ease-in-out infinite; }
@keyframes bot-ladder-final-pulse {
  0%, 100% { box-shadow: 0 0 18px color-mix(in srgb, var(--node-color) 25%, transparent); }
  50%      { box-shadow: 0 0 30px color-mix(in srgb, var(--node-color) 55%, transparent); }
}
.bot-ladder-face { font-size: 26px; }
.bot-ladder-rating { font-size: 12px; font-weight: 800; color: var(--node-color); }
.bot-ladder-arrow { color: var(--text-muted); font-size: 16px; }

/* ----- Train & Learn path strip: the shapes echo each unit's own icon
   (see css/train.css .unit-art-*) so this reads as the same journey. ----- */
.train-path-strip {
  flex: 1 1 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.train-path-node {
  width: 64px; height: 64px;
  background: var(--bg-card);
  border: 2px solid color-mix(in srgb, var(--node-color) 55%, var(--line));
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 18px color-mix(in srgb, var(--node-color) 25%, transparent);
  animation: unit-icon-breathe 2.8s ease-in-out infinite;
}
.train-path-node svg { width: 60%; height: 60%; }
.train-path-final {
  animation: unit-icon-boss-pulse 1s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 10px rgba(239, 68, 68, .85));
}
.train-path-arrow { color: var(--text-muted); font-size: 16px; }

/* ----- The live bots demo board on the homepage — same card the real
   Bots page uses (bots.css), just given its own width here since it's
   no longer inside that page's two-column .bots-layout. flex-basis:100%
   forces it onto its own row below the copy + ladder strip above. ----- */
.home-bots-live {
  flex-basis: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: 34px;
}
.home-bots-live .bots-demo-card { width: 100%; max-width: 420px; }
.home-bots-get-started { font-size: 17px; padding: 15px 40px; }

@media (max-width: 720px) {
  .home-feature, .home-feature-reverse { flex-direction: column; text-align: center; }
  .home-feature-copy p { margin-left: auto; margin-right: auto; text-align: center; }
}

/* =========================================================================
   HOME · SECTION 5 — THE VAULT TEASER
   ========================================================================= */
.vault { max-width: 1120px; margin: 0 auto; padding: 10px 40px 70px; }

/* Neon border trick: the solid dark panel paints in the padding-box,
   the animated gradient paints in the border-box — so only the 2px
   border ring shows the neon, while box-shadows supply the outer bloom. */
.vault-banner {
  border: 2px solid transparent;
  border-radius: 20px;
  padding: 60px 44px;
  text-align: center;
  background:
    radial-gradient(circle at 16% 18%, rgba(34, 211, 238, .13), transparent 46%) padding-box,
    radial-gradient(circle at 84% 82%, rgba(217, 70, 239, .13), transparent 46%) padding-box,
    linear-gradient(#151310, #151310) padding-box,
    linear-gradient(120deg, var(--neon-cyan), #8b5cf6, var(--neon-magenta), var(--neon-cyan)) border-box;
  background-size: 100% 100%, 100% 100%, 100% 100%, 300% 100%;
  animation: vault-glow 6s linear infinite;
  box-shadow:
    0 0 34px rgba(139, 92, 246, .30),
    0 0 80px rgba(34, 211, 238, .14);
}

.vault-title {
  font-size: 2.3rem;
  font-weight: 800;
  letter-spacing: -.5px;
  background: linear-gradient(90deg, var(--neon-cyan), #a78bfa 55%, var(--neon-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 32px rgba(139, 92, 246, .35);
}

.vault-sub {
  max-width: 62ch;
  margin: 16px auto 30px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
}

.vault-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 30px;
  border-radius: 10px;
  background: #262421;
  border: 1px solid #4b4844;
  color: #8f8b86;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .3px;
  cursor: not-allowed;
}

.vault-btn svg { width: 18px; height: 18px; }

.vault-soon { color: #6f6c67; font-weight: 600; }

.home-footer {
  text-align: center;
  color: #6f6c67;
  font-size: 12.5px;
  padding: 26px 20px 34px;
}

