/* CORE Landing Page — CatapalloVR brand (same token system as SPAR/ARRIVE) */
@import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400;1,500&display=swap');

:root {
  /* Brand */
  --innovation: #23B6FF;
  --royal: #6853FD;
  --deep: #2B1E8F;
  --ignite: #004CD2;
  --pink: #FE2285;
  --magenta: #D50261;
  --tail-end: #AF23FF;

  /* Dark surfaces (hero + framework) */
  --bg-0: #0B0830;
  --bg-1: #15104A;
  --bg-2: #1A1466;
  --surface: rgba(255,255,255,0.04);
  --surface-2: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.10);
  --border-strong: rgba(255,255,255,0.18);
  --fg: #FFFFFF;
  --fg-muted: #E5E7EB;
  --fg-dim: #B7B9D4;
  --fg-faint: #7E80A6;

  /* Light surfaces (why / library / pricing) */
  --ink: #0A0822;
  --slate: #3C3960;
  --line: #E8E6F2;
  --soft: #F6F5FB;

  --font: 'Barlow', system-ui, sans-serif;
  --maxw: 1240px;
  --pad-x: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--soft);
  color: var(--slate);
  font-family: var(--font);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad-x); }
section { padding: clamp(72px, 11vw, 140px) 0; position: relative; }
section.tight { padding: clamp(48px, 7vw, 84px) 0; }

h1, h2, h3, h4 { font-family: var(--font); font-weight: 600; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.05; color: #fff; }
h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.08; color: var(--ink); }
h3 { font-size: 20px; line-height: 1.25; }
p { margin: 0; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--pink);
}
.eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--pink); }
.eyebrow.center { justify-content: center; }
.eyebrow.center::before { display: none; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 10px;
  font-family: var(--font); font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--pink); color: #fff; box-shadow: 0 8px 24px rgba(254,34,133,0.35), inset 0 1px 0 rgba(255,255,255,0.2); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 32px rgba(254,34,133,0.5); }
.btn-ghost { background: #fff; border-color: var(--deep); color: var(--deep); }
.btn-ghost:hover { background: var(--deep); color: #fff; }
.btn-lg { padding: 18px 30px; font-size: 17px; border-radius: 12px; }

/* ── Nav ─────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  background: rgba(11,8,48,0.72);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; color: #fff; }
.brand img { height: 30px; width: auto; }
.brand-text { display: flex; align-items: center; gap: 8px; font-size: 15px; letter-spacing: 0.02em; }
.brand-text .divider { width: 1px; height: 16px; background: rgba(255,255,255,0.25); }
.brand-text .product { color: var(--innovation); font-weight: 600; letter-spacing: 0.16em; font-size: 12px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a:not(.btn) { font-size: 14px; font-weight: 500; color: var(--fg-muted); transition: color .18s ease; }
.nav-links a:not(.btn):hover { color: #fff; }
.nav-links .btn { padding: 10px 20px; font-size: 13.5px; }
@media (max-width: 900px) { .nav-links a:not(.btn) { display: none; } }

/* ── Backgrounds (dark hero + framework only) ───────────── */
.bg-field, .bg-grain { display: none; } /* activated only within dark sections below */

.hero, .rings-section {
  background: var(--bg-0);
  color: #fff;
}
.hero {
  background-image:
    radial-gradient(ellipse 80% 60% at 80% -10%, rgba(35,182,255,0.30) 0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 10% 30%, rgba(104,83,253,0.28) 0%, transparent 60%),
    linear-gradient(160deg, #0B0830 0%, #1a0d5e 100%),
    url('assets/hero-bg.png');
  background-size: cover, cover, cover, cover;
  background-position: center;
  padding: clamp(64px, 9vw, 110px) 0 clamp(80px, 11vw, 130px);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: clamp(28px, 4vw, 64px); align-items: center;
}
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 .accent {
  background: linear-gradient(90deg, var(--innovation) 0%, var(--tail-end) 55%, var(--pink) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-sub { margin-top: 24px; font-size: clamp(16px, 1.4vw, 18px); color: rgba(255,255,255,0.82); max-width: 540px; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-cta .btn-ghost { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.35); color: #fff; }
.hero-cta .btn-ghost:hover { background: rgba(255,255,255,0.16); }
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 24px; margin-top: 34px; padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.14);
}
.hero-meta-item { font-size: 13px; color: rgba(255,255,255,0.78); }
.hero-meta-item strong { color: #fff; font-weight: 600; }
.hero-right { position: relative; display: flex; justify-content: center; }
.mascot-float {
  width: min(360px, 80%);
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.45));
  animation: mascotFloat 7s ease-in-out infinite;
}
@keyframes mascotFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

/* ── Founding / trust strip ──────────────────────────────── */
.founding { padding: 40px 0; background: var(--soft); border-bottom: 1px solid var(--line); }
.founding-inner { display: flex; align-items: center; gap: clamp(24px,5vw,64px); flex-wrap: wrap; }
.founding-label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--slate); font-weight: 600; flex-shrink: 0; }
.founding-track { flex: 1; display: flex; align-items: center; gap: 18px; row-gap: 12px; flex-wrap: wrap; }
.logo-slot {
  flex-shrink: 0; height: 44px; padding: 0 16px; display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid var(--line); border-radius: 8px; font-size: 12.5px; font-weight: 600; color: var(--slate);
  background: #fff; white-space: nowrap;
}

/* ── Section headers ─────────────────────────────────────── */
.sec-head { max-width: 720px; margin-bottom: clamp(40px,5vw,60px); }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.sec-head h2 { margin-top: 14px; }
.sec-head p { margin-top: 16px; font-size: clamp(15.5px,1.2vw,17px); color: var(--slate); max-width: 600px; }
.sec-head.center p { margin-left: auto; margin-right: auto; }
.rings-section .sec-head h2 { color: #fff; }
.rings-section .sec-head p { color: rgba(255,255,255,0.8); }

/* ── Why cards ───────────────────────────────────────────── */
.three { display: grid; grid-template-columns: repeat(3,1fr); gap: clamp(20px,2vw,28px); }
@media (max-width: 900px) { .three { grid-template-columns: 1fr; } }
.benefit {
  padding: 32px 28px; border-radius: 16px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(43,30,143,0.06), 0 12px 32px rgba(43,30,143,0.08);
}
.benefit .num { font-size: 12.5px; font-weight: 600; color: var(--pink); letter-spacing: 0.14em; margin-bottom: 20px; display: inline-block; }
.benefit h3 { color: var(--ink); margin-bottom: 12px; }
.benefit p { font-size: 15px; color: var(--slate); }

.feature { padding: 32px 28px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(43,30,143,0.06), 0 12px 32px rgba(43,30,143,0.08); }
.icon-wrap {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
  background: linear-gradient(135deg, var(--innovation), var(--royal)); color: #fff; font-weight: 700;
}
.feature h3 { color: var(--ink); margin-bottom: 10px; }
.feature p { font-size: 15px; color: var(--slate); }

/* ── Framework tabs (C-O-R-E) ───────────────────────────── */
.core-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 36px; }
.core-tab {
  padding: 10px 18px; border-radius: 999px; font-family: var(--font); font-weight: 600; font-size: 13.5px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--border-strong); color: rgba(255,255,255,0.7);
  cursor: pointer; transition: all .2s ease;
}
.core-tab:hover { background: rgba(255,255,255,0.1); color: #fff; }
.core-tab.is-active { background: linear-gradient(90deg, var(--innovation), var(--tail-end)); color: #fff; border-color: transparent; }
.core-panel { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .core-panel { grid-template-columns: 1fr; } }
.core-panel-shot {
  position: relative; border-radius: 18px; overflow: hidden; aspect-ratio: 16/10;
  border: 1px solid var(--border-strong); box-shadow: 0 30px 70px rgba(0,0,0,0.4);
}
.core-panel-shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .4s ease; }
.core-panel-shot img.is-active { opacity: 1; }
.core-panel-text p { font-size: 17px; line-height: 1.7; color: rgba(255,255,255,0.88); display: none; }
.core-panel-text p.is-active { display: block; }

/* ── Pricing ─────────────────────────────────────────────── */
.pricing-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; }
@media (max-width: 980px) { .pricing-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .pricing-4 { grid-template-columns: 1fr; } }
.plan {
  padding: 28px 24px; border-radius: 16px; background: #fff; border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(43,30,143,0.06), 0 12px 32px rgba(43,30,143,0.08);
  display: flex; flex-direction: column; gap: 16px; position: relative;
}
.plan.featured { border-color: var(--pink); background: linear-gradient(180deg, rgba(254,34,133,0.06) 0%, rgba(104,83,253,0.05) 100%); box-shadow: 0 24px 60px rgba(254,34,133,0.16); }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--pink); color: #fff; font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px;
}
.plan-name { font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--innovation); font-weight: 700; }
.plan-tag { font-style: italic; font-size: 14px; color: var(--slate); margin-top: 4px; }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price .amt { font-size: clamp(28px,2.6vw,34px); font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.plan-price .per { font-size: 13px; color: var(--slate); }
.plan-divider { height: 1px; background: var(--line); }
.plan-users { font-size: 12px; font-weight: 600; color: var(--slate); }
.plan .btn { margin-top: auto; }

/* ── Closing CTA ─────────────────────────────────────────── */
.closing {
  padding: clamp(56px,8vw,100px); border-radius: 28px; text-align: center;
  background: radial-gradient(ellipse at top, rgba(254,34,133,0.22) 0%, transparent 60%),
              radial-gradient(ellipse at bottom, rgba(35,182,255,0.20) 0%, transparent 60%),
              linear-gradient(180deg, #1A1466 0%, #0E0A35 100%);
  border: 1px solid var(--border-strong); color: #fff;
}
.closing h2 { color: #fff; max-width: 18ch; margin: 0 auto; }
.closing p { margin: 20px auto 0; max-width: 520px; color: var(--fg-muted); font-size: 16px; }
.closing-cta-row { margin-top: 34px; display: inline-flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.closing .btn-ghost { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.35); color: #fff; }
.closing .btn-ghost:hover { background: rgba(255,255,255,0.16); }

/* ── Footer ──────────────────────────────────────────────── */
footer { background: #0A0822; padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-inner .brand img { height: 28px; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13.5px; color: rgba(255,255,255,0.65); }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 12.5px; color: rgba(255,255,255,0.4); }

/* ── Reveal animation ────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }

/* ── REHEARSE additions ──────────────────────────────────── */
.core-tab.is-disabled { opacity: 0.4; cursor: not-allowed; }
.core-tab.is-disabled:hover { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.7); }

/* Try It Live cards */
.two-up { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 820px; margin: 0 auto; }
@media (max-width: 700px) { .two-up { grid-template-columns: 1fr; } }
.try-card {
  display: block; padding: 30px 28px; border-radius: 16px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(43,30,143,0.06), 0 12px 32px rgba(43,30,143,0.08);
  transition: transform .2s ease, box-shadow .2s ease;
}
.try-card:hover { transform: translateY(-4px); box-shadow: 0 20px 50px rgba(43,30,143,0.14); }
.try-card-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--innovation); margin-bottom: 10px; }
.try-card h3 { color: var(--ink); margin-bottom: 10px; }
.try-card p { color: var(--pink); font-weight: 600; font-size: 14px; }

/* Single flat-fee pricing card */
.single-plan {
  max-width: 520px; margin: 0 auto; text-align: center;
  padding: 44px 40px; border-radius: 20px; background: #fff;
  border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(43,30,143,0.06), 0 20px 50px rgba(43,30,143,0.1);
}
.single-plan .plan-name { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--innovation); font-weight: 700; }
.single-plan .plan-price { display: flex; align-items: baseline; justify-content: center; gap: 10px; margin-top: 14px; }
.single-plan .plan-price .amt { font-size: clamp(44px,5vw,56px); font-weight: 700; color: var(--ink); }
.single-plan .plan-price .per { font-size: 14px; color: var(--slate); }
.single-plan .plan-divider { height: 1px; background: var(--line); margin: 24px 0; }
.plan-list { list-style: none; padding: 0; margin: 0 0 30px 0; text-align: left; display: grid; gap: 12px; }
.plan-list li { font-size: 14.5px; color: var(--slate); padding-left: 26px; position: relative; }
.plan-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--innovation); font-weight: 700;
}

/* ── Products dropdown (cross-page nav) ───────────────────── */
.nav-dd { position: relative; display: inline-flex; align-items: center; }
.nav-dd > span {
  font-size: 14px; font-weight: 500; color: var(--fg-muted); cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; transition: color .18s ease;
}
.nav-dd:hover > span, .nav-dd:focus-within > span { color: #fff; }
.nav-dd-menu {
  position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%);
  background: #15104A; border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 8px; min-width: 170px; display: none; flex-direction: column; gap: 2px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45); z-index: 60;
}
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { display: flex; }
.nav-dd-menu a { padding: 9px 12px; border-radius: 8px; font-size: 13.5px; color: var(--fg-muted); }
.nav-dd-menu a:hover { background: rgba(255,255,255,0.08); color: #fff; }
@media (max-width: 900px) { .nav-dd { display: none; } }

/* ── Real logo cards (trust strip) ────────────────────────── */
.logo-card {
  flex-shrink: 0; height: 52px; padding: 8px 20px;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
}
.logo-card img { max-height: 100%; width: auto; display: block; filter: grayscale(1); opacity: 0.75; transition: filter .2s ease, opacity .2s ease; }
.logo-card:hover img { filter: grayscale(0); opacity: 1; }
