:root {
  --bg-main: #ffffff;
  --bg-muted: #f8f9fa;
  --bg-dark: #0f1d33;
  --surface: #ffffff;
  --text-main: #1e293b;
  --text-soft: #475569;
  --line: #e2e8f0;
  --gradient: linear-gradient(90deg, #06b6d4 0%, #22c55e 100%);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 14px;
  --radius-sm: 999px;
  --container: 1140px;

  --bxp-accent: #06b6d4;
  --dxp-accent: #f59e0b;
  --axp-accent: #a78bfa;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text-main);
  font-family: "Manrope", sans-serif;
  line-height: 1.6;
}

p { line-height: 1.68; letter-spacing: 0.014em; }

.top-gradient {
  height: 5px;
  width: 100%;
  background: var(--gradient);
}

.container {
  width: min(var(--container), 92%);
  margin: 0 auto;
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.93);
  backdrop-filter: blur(10px);
}

.nav-wrap {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-text { display: flex; flex-direction: column; line-height: 1.1; }

.brand-mark {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-sub {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  align-items: center;
}

.nav-links a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.15s;
}

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

/* ── BUTTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.15s;
  border: none;
  white-space: nowrap;
}

.btn:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-solid {
  background: var(--gradient);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: rgba(255,255,255,0.85);
  border: 1.5px solid rgba(255,255,255,0.35);
}

.btn-outline:hover { background: rgba(255,255,255,0.08); }

.btn-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  align-items: center;
}

/* ── SECTIONS ── */
.section-dark { background: var(--bg-dark); color: #fff; }
.section-light { background: var(--bg-muted); }
.section-white { background: var(--bg-main); }

section { padding: 5rem 0; }

.eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 0.75rem;
}

.heading-accent {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
}

.section-intro {
  font-size: 1.05rem;
  color: var(--text-soft);
  max-width: 640px;
  margin: 0 0 3rem;
}

.section-dark .section-intro { color: rgba(255,255,255,0.65); }

/* ── HERO ── */
.hero { padding: 6rem 0 5rem; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.kinetic-title {
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  margin: 0 0 1.25rem;
}

.kinetic-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  animation: word-in 0.55s ease forwards;
  animation-delay: var(--word-delay, 0ms);
}

@keyframes word-in {
  to { opacity: 1; transform: none; }
}

.hero .lead {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  margin: 0 0 2rem;
  max-width: 520px;
}

/* ── HERO VISUAL ── */
.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.xp-orbit {
  position: relative;
  width: 340px;
  height: 340px;
}

.xp-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.xp-center-label {
  font-size: 1.6rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.xp-center-sub {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.xp-badge {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.05);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  backdrop-filter: blur(8px);
  animation: float 4s ease-in-out infinite;
}

.bxp-badge { top: 5%; left: 50%; transform: translateX(-50%); border-color: rgba(6,182,212,0.4); animation-delay: 0s; }
.dxp-badge { bottom: 10%; left: 4%; animation-delay: 1.3s; border-color: rgba(245,158,11,0.4); }
.axp-badge { bottom: 10%; right: 4%; animation-delay: 0.65s; border-color: rgba(167,139,250,0.4); }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.bxp-badge { animation: float-center 4s ease-in-out infinite; }

@keyframes float-center {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(-8px); }
}

.badge-mark {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.bxp-badge .badge-mark { color: var(--bxp-accent); }
.dxp-badge .badge-mark { color: var(--dxp-accent); }
.axp-badge .badge-mark { color: var(--axp-accent); }

.badge-name {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255,255,255,0.55);
  white-space: nowrap;
}

/* orbit ring */
.xp-orbit::before {
  content: '';
  position: absolute;
  inset: 20px;
  border-radius: 50%;
  border: 1px dashed rgba(255,255,255,0.1);
  animation: spin 30s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── PHILOSOPHY PILLARS ── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.pillar-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: box-shadow 0.2s, transform 0.2s;
}

.pillar-card:hover {
  box-shadow: var(--shadow-soft);
  transform: translateY(-2px);
}

.pillar-icon {
  width: 40px;
  height: 40px;
  color: var(--bxp-accent);
  margin-bottom: 1rem;
}

.pillar-icon svg { width: 100%; height: 100%; }

.pillar-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.pillar-card p {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin: 0;
}

/* ── PROGRAM CARDS ── */
.program-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.program-card {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  background: var(--surface);
  transition: box-shadow 0.25s, transform 0.25s;
  position: relative;
  overflow: hidden;
}

.program-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
}

.bxp-card::before { background: linear-gradient(90deg, #06b6d4, #22c55e); }
.dxp-card::before { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.axp-card::before { background: linear-gradient(90deg, #a78bfa, #ec4899); }

.program-card:hover {
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
  transform: translateY(-3px);
}

.program-card-header { display: flex; flex-direction: column; gap: 0.25rem; }

.program-badge-wrap {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.program-mark {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.bxp-mark { color: var(--bxp-accent); }
.dxp-mark { color: var(--dxp-accent); }
.axp-mark { color: var(--axp-accent); }

.program-full-name {
  font-size: 0.85rem;
  font-weight: 700;
  margin: 0;
  color: var(--text-main);
}

.program-tech {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-soft);
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.program-tagline {
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.35;
}

.program-desc {
  font-size: 0.9rem;
  color: var(--text-soft);
  margin: 0;
}

.program-stages {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.stage-pill {
  background: var(--bg-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
}

.stage-arrow {
  color: var(--text-soft);
  font-size: 0.8rem;
}

.program-highlights {
  margin: 0;
  padding-left: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.program-highlights li {
  font-size: 0.875rem;
  color: var(--text-soft);
}

.program-stats {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.pstat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.pstat strong {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text-main);
}

.pstat span {
  font-size: 0.72rem;
  color: var(--text-soft);
  font-weight: 600;
}

.program-cta { margin-top: auto; align-self: flex-start; }

/* ── XP MODEL ── */
.model-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 0;
  align-items: start;
  margin-bottom: 4rem;
}

.model-step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.model-step-num {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.6rem;
}

.model-step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
}

.model-step p {
  font-size: 0.875rem;
  color: var(--text-soft);
  margin: 0;
}

.model-connector {
  width: 2rem;
  height: 2px;
  background: var(--gradient);
  margin-top: 2.5rem;
  align-self: start;
  flex-shrink: 0;
}

/* ── COMPARISON TABLE ── */
.comparison-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.comparison-table th {
  font-weight: 700;
  background: var(--bg-muted);
  color: var(--text-main);
}

.comparison-table td { color: var(--text-soft); }
.comparison-table td:first-child { font-weight: 600; color: var(--text-main); }
.comparison-table tr:last-child td { border-bottom: none; }
.comparison-table tr:hover td { background: var(--bg-muted); }

/* ── TRUST STRIP ── */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 2rem;
}

.trust-strip span {
  background: var(--bg-muted);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.4rem 1rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

/* ── FINAL CTA ── */
.final-cta {
  background: var(--bg-dark);
  color: #fff;
  padding: 5rem 0;
}

.final-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 3rem;
  flex-wrap: wrap;
}

.final-cta h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
}

.final-cta .lead {
  color: rgba(255,255,255,0.65);
  margin: 0;
  max-width: 480px;
}

/* ── FOOTER ── */
.site-footer {
  background: #060f1e;
  color: rgba(255,255,255,0.5);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand-logo {
  height: 32px;
  width: auto;
  opacity: 0.7;
  filter: brightness(0) invert(1);
}

.footer-inner p {
  font-size: 0.8rem;
  margin: 0;
}

.footer-programs {
  display: flex;
  gap: 1.5rem;
}

.footer-programs a {
  font-size: 0.8rem;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-programs a:hover { color: #fff; }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-visual { display: none; }

  .pillars-grid { grid-template-columns: repeat(2, 1fr); }

  .program-cards { grid-template-columns: 1fr; }

  .model-flow {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .model-connector {
    width: 2px;
    height: 2rem;
    margin: 0 auto;
  }

  .nav-links { display: none; }

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

  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 600px) {
  .pillars-grid { grid-template-columns: 1fr; }
  section { padding: 3.5rem 0; }
}

@media (prefers-reduced-motion: reduce) {
  .kinetic-title span,
  .xp-badge,
  .xp-orbit::before,
  .reveal { animation: none; transition: none; opacity: 1; transform: none; }
}
