/* ==========================================================================
   ZAPFINITY.SI — MASTER DESIGN SYSTEM & STYLESHEET
   The Superintelligence (SI) Shift & Autonomous Agent Masterclass
   ========================================================================== */

:root {
  /* Surface & Dark Void Hierarchy */
  --bg-void: #040407;
  --bg-deep: #08090f;
  --bg-surface: #0e1019;
  --bg-card: rgba(14, 16, 25, 0.72);
  --bg-card-hover: rgba(20, 23, 36, 0.82);

  /* Border & Specular Highlights */
  --line-dim: rgba(255, 255, 255, 0.06);
  --line-mid: rgba(255, 255, 255, 0.12);
  --line-bright: rgba(255, 255, 255, 0.22);
  --border-specular: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(229, 183, 75, 0.35) 50%, rgba(255, 255, 255, 0.05) 100%);

  /* High-Contrast Typography */
  --text-pure: #ffffff;
  --text-main: #f1f3f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Gold Luxury Scale (Warm Amber & Specular Metallics) */
  --gold: #e5b74b;
  --gold-light: #f5d788;
  --gold-dark: #b38228;
  --gold-glow: rgba(229, 183, 75, 0.22);
  --gold-surface: rgba(229, 183, 75, 0.09);
  --gold-border: rgba(229, 183, 75, 0.32);

  /* Semantic Telemetry Accents */
  --cyan-mcp: #38bdf8;
  --emerald-live: #10b981;
  --purple-reason: #a855f7;
  --rose-alert: #f43f5e;

  /* Layout & Geometry */
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --radius-pill: 9999px;
  --container-max: 1200px;
  --section-py: clamp(80px, 9vw, 140px);

  /* Fonts */
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", var(--font-sans);
  --font-mono: "JetBrains Mono", "SF Mono", Consolas, monospace;
}

/* Base Reset & Smoothness */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  color-scheme: dark;
}
body {
  background-color: var(--bg-void);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  position: relative;
}

img, svg {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
ul, ol {
  list-style: none;
}

/* Accessibility Focus States */
*:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.skip {
  position: absolute;
  left: -9999px;
  background: var(--gold);
  color: #000;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  z-index: 9999;
}
.skip:focus {
  left: 16px;
  top: 16px;
}

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

/* Dynamic Background & Mesh */
.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(1100px 600px at 80% -10%, rgba(229, 183, 75, 0.08), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgba(168, 85, 247, 0.05), transparent 60%),
    radial-gradient(1000px 700px at 50% 100%, rgba(229, 183, 75, 0.05), transparent 70%),
    var(--bg-void);
}
.bg__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 40%, transparent 85%);
}
.bg__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.6;
  animation: floatOrb 22s infinite alternate ease-in-out;
}
.bg__glow--1 { width: 600px; height: 600px; background: rgba(229, 183, 75, 0.18); top: -150px; left: 55%; }
.bg__glow--2 { width: 550px; height: 550px; background: rgba(168, 85, 247, 0.12); top: 35%; left: -12%; animation-delay: -7s; }
.bg__glow--3 { width: 700px; height: 700px; background: rgba(229, 183, 75, 0.12); bottom: -200px; right: 10%; animation-delay: -14s; }

@keyframes floatOrb {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(30px, -40px, 0) scale(1.06); }
  100% { transform: translate3d(-30px, 30px, 0) scale(0.96); }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 32px;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  background: rgba(4, 4, 7, 0.72);
  border-bottom: 1px solid var(--line-dim);
  transition: all 0.3s ease;
}
.nav.is-scrolled {
  background: rgba(4, 4, 7, 0.88);
  border-bottom-color: var(--line-mid);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}
.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.nav__brand-col {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.nav__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--text-pure);
}
.nav__domain {
  color: var(--gold);
  font-weight: 800;
}
.nav__tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-light);
  opacity: 0.85;
}
.logo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), filter 0.3s ease;
  filter: drop-shadow(0 4px 14px rgba(229, 183, 75, 0.25));
}
.nav__brand:hover .logo {
  transform: rotate(-6deg) scale(1.06);
}
.logo--lg {
  width: 68px;
  height: 68px;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
}
.nav__links a {
  position: relative;
  transition: color 0.2s ease;
  padding: 4px 0;
}
.nav__links a:hover,
.nav__links a.active {
  color: var(--text-pure);
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nav__links a:hover::after,
.nav__links a.active::after {
  transform: scaleX(1);
}

.nav__burger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dim);
  border-radius: var(--radius-sm);
  color: var(--text-main);
}
.nav__burger span {
  display: block;
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: all 0.25s ease;
}

/* Mobile Drawer Menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 73px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(4, 4, 7, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 32px 24px;
  flex-direction: column;
  gap: 18px;
  z-index: 99;
  border-top: 1px solid var(--line-dim);
}
.mobile-menu.is-open {
  display: flex;
  animation: fadeIn 0.3s ease;
}
.mobile-menu a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  padding: 10px 0;
  border-bottom: 1px solid var(--line-dim);
}
.mobile-menu a:hover,
.mobile-menu a.active {
  color: var(--gold);
}

@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__cta { display: none; }
}

/* ==========================================================================
   BUTTONS & MICRO-BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 11px 22px;
  border-radius: var(--radius-pill);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}
.btn--gold {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  color: #050508;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(229, 183, 75, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.3);
}
.btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(229, 183, 75, 0.45);
  filter: brightness(1.05);
}
.btn--ghost {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-pure);
  border: 1px solid var(--line-mid);
  backdrop-filter: blur(10px);
}
.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--line-bright);
  transform: translateY(-2px);
}
.btn--lg {
  padding: 14px 28px;
  font-size: 1.05rem;
}
.btn--sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}
.btn__badge {
  display: inline-block;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 215, 0, 0.4);
  border-radius: var(--radius-pill);
  padding: 2px 7px;
  font-size: 0.7rem;
  font-weight: 700;
  margin-left: 6px;
  color: #fff;
}

/* ==========================================================================
   OPTICAL GLASS CARDS & 3D SYSTEM
   ========================================================================== */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid var(--line-dim);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.glass-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    700px circle at var(--mouse-x, 0) var(--mouse-y, 0),
    rgba(229, 183, 75, 0.1),
    transparent 45%
  );
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.glass-card:hover::before {
  opacity: 1;
}
.glass-card:hover {
  border-color: rgba(229, 183, 75, 0.35);
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.7),
    0 0 45px rgba(229, 183, 75, 0.12),
    inset 0 1px 0 rgba(229, 183, 75, 0.25);
}
.glass-card > * {
  position: relative;
  z-index: 1;
}

.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

/* Scroll Progress Line */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  width: 0%;
  z-index: 1000;
  box-shadow: 0 0 12px var(--gold);
  transition: width 0.1s ease-out;
}

/* Gradient Text */
.grad {
  background: linear-gradient(135deg, #ffffff 10%, var(--gold-light) 50%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Section Headings */
.section-head {
  text-align: center;
  max-width: 820px;
  margin: 0 auto clamp(40px, 6vw, 70px);
}
.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  background: var(--gold-surface);
  border: 1px solid var(--gold-border);
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}
.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-pure);
  margin-bottom: 18px;
}
.section-head .lede {
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  padding: clamp(60px, 8vw, 100px) 0 40px;
  text-align: center;
  position: relative;
}
.hero__inner {
  max-width: 940px;
  margin: 0 auto;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line-mid);
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.pill__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
.pill__dot--pulse {
  background: var(--emerald-live) !important;
  box-shadow: 0 0 10px var(--emerald-live);
  animation: pulse-green 2s infinite !important;
}
@keyframes pulse-green {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.pill__prefix {
  background: var(--gold-surface);
  color: var(--gold);
  border: 1px solid var(--gold-border);
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.2vw, 4.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--text-pure);
  margin-bottom: 24px;
}
.hero__sub {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 780px;
  margin: 0 auto 36px;
}
.hero__sub strong {
  color: var(--text-pure);
}
.hero__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.hero__proof {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 650px;
  margin: 0 auto;
  padding: 24px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-dim);
  border-radius: var(--radius-md);
}
.proof__num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
}
.proof__lbl {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 4px;
  font-weight: 500;
}

/* ==========================================================================
   AGENT SWARM SIMULATOR COCKPIT
   ========================================================================== */
.simulator-wrapper {
  margin-top: clamp(40px, 6vw, 70px);
  max-width: 1040px;
  width: 100%;
}
.simulator-panel {
  padding: clamp(18px, 3vw, 32px);
  background: rgba(10, 12, 18, 0.82);
  border: 1px solid rgba(229, 183, 75, 0.2);
  border-top: 1px solid rgba(229, 183, 75, 0.45);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.75), 0 0 60px rgba(229, 183, 75, 0.08);
}
.sim-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line-dim);
  flex-wrap: wrap;
  gap: 12px;
}
.sim-header__left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.term-dots {
  display: flex;
  gap: 6px;
}
.tdot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.tdot.red { background: #ff5f56; }
.tdot.yellow { background: #ffbd2e; }
.tdot.green { background: #27c93f; }
.sim-title {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sim-badge {
  background: var(--gold-surface);
  color: var(--gold);
  border: 1px solid var(--gold-border);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}
.sim-header__status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--emerald-live);
}
.status-indicator.live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-live);
  box-shadow: 0 0 8px var(--emerald-live);
  animation: pulse-green 2s infinite;
}

.sim-scenarios {
  display: flex;
  gap: 10px;
  margin: 18px 0;
  flex-wrap: wrap;
}
.sim-tab {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dim);
  border-radius: var(--radius-sm);
  padding: 9px 16px;
  color: var(--text-muted);
  font-family: var(--font-display);
  font-size: 0.88rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.sim-tab:hover {
  border-color: var(--gold-border);
  color: var(--text-pure);
  background: var(--gold-surface);
}
.sim-tab.active {
  background: var(--gold-surface);
  border-color: var(--gold);
  color: var(--gold);
  font-weight: 600;
  box-shadow: 0 0 20px rgba(229, 183, 75, 0.16);
}

.swarm-flow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-md);
  border: 1px solid var(--line-dim);
  margin-bottom: 18px;
  overflow-x: auto;
  gap: 12px;
}
.swarm-node {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-dim);
  border-radius: 10px;
  transition: all 0.3s ease;
  min-width: 155px;
  flex: 1;
}
.swarm-node.active {
  border-color: var(--gold);
  background: var(--gold-surface);
  box-shadow: 0 0 25px rgba(229, 183, 75, 0.18);
}
.swarm-node__icon { font-size: 1.3rem; }
.swarm-node__meta { text-align: left; }
.swarm-node__role {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-pure);
}
.swarm-node.active .swarm-node__role { color: var(--gold); }
.swarm-node__desc { font-size: 0.68rem; color: var(--text-dim); }
.swarm-arrow { color: rgba(255, 255, 255, 0.2); font-weight: 800; font-size: 1.1rem; }

.sim-console {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  min-height: 270px;
}
@media (max-width: 840px) {
  .sim-console { grid-template-columns: 1fr; }
}
.sim-console__logs {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--line-dim);
  border-radius: var(--radius-md);
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.7;
  color: #a1a1aa;
  max-height: 270px;
  overflow-y: auto;
  text-align: left;
}
.sim-console__logs p { margin-bottom: 8px; animation: fadeIn 0.3s ease forwards; }
.sim-console__logs .log-time { color: var(--text-dim); margin-right: 8px; }
.sim-console__logs .log-agent { color: var(--gold); font-weight: 600; margin-right: 6px; }
.sim-console__logs .log-tool { color: var(--cyan-mcp); }
.sim-console__logs .log-success { color: var(--emerald-live); font-weight: 600; }

.sim-console__result {
  background: rgba(14, 16, 25, 0.9);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  text-align: left;
}
.sim-result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-dim);
}
.sim-result-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 0.06em;
}
.sim-speed {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--emerald-live);
}
.sim-result-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.artifact-card {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line-dim);
  border-radius: 10px;
  padding: 16px;
  animation: fadeIn 0.4s ease forwards;
}
.artifact-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-pure);
  margin-bottom: 8px;
}
.artifact-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
}
.artifact-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.artifact-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 7px;
  border-radius: 4px;
  background: var(--gold-surface);
  color: var(--gold);
  border: 1px solid var(--gold-border);
}

.sim-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 16px;
  margin-top: 16px;
  border-top: 1px solid var(--line-dim);
  flex-wrap: wrap;
  gap: 12px;
}
.sim-stats {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
}
.sim-stats strong { color: var(--text-pure); }
.sim-stat-sep { color: rgba(255, 255, 255, 0.2); }

/* ==========================================================================
   MARQUEE
   ========================================================================== */
.marquee {
  width: 100%;
  overflow: hidden;
  padding: 28px 0;
  border-top: 1px solid var(--line-dim);
  border-bottom: 1px solid var(--line-dim);
  background: rgba(255, 255, 255, 0.012);
  margin: 40px 0;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: scrollMarquee 35s linear infinite;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.marquee:hover .marquee__track {
  animation-play-state: paused;
}
.marquee__track span {
  display: inline-block;
}
@keyframes scrollMarquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================================================
   AGENT READINESS DIAGNOSTIC WIDGET
   ========================================================================== */
.audit-section {
  padding: var(--section-py) 0;
  position: relative;
}
.audit-widget {
  max-width: 820px;
  margin: 0 auto;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gold-border);
}
.audit-progress { margin-bottom: 24px; }
.audit-progress__bar {
  height: 5px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: var(--radius-pill);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px var(--gold-glow);
}
.audit-progress__label {
  text-align: right;
  font-size: 0.78rem;
  color: var(--text-dim);
  margin-top: 8px;
  font-family: var(--font-mono);
}
.audit-step { display: none; }
.audit-step.active { display: block; animation: fadeIn 0.4s ease forwards; }
.audit-step__title {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 700;
  margin-bottom: 24px;
  color: var(--text-pure);
  line-height: 1.35;
}
.audit-options { display: flex; flex-direction: column; gap: 12px; }
.audit-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line-dim);
  border-radius: var(--radius-md);
  text-align: left;
  color: var(--text-main);
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
}
.audit-option:hover {
  background: var(--gold-surface);
  border-color: var(--gold-border);
  transform: translateX(4px);
  color: var(--text-pure);
}
.audit-option__bullet {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--gold);
  flex-shrink: 0;
}

.audit-result { display: none; padding: 10px 0; text-align: center; }
.audit-result.active { display: block; animation: fadeIn 0.5s ease forwards; }
.audit-result__badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold);
  background: var(--gold-surface);
  border: 1px solid var(--gold-border);
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 24px;
}
.audit-score-circle {
  width: 140px;
  height: 140px;
  margin: 0 auto 20px;
  border-radius: 50%;
  border: 3px solid var(--gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  box-shadow: 0 0 35px var(--gold-glow);
}
.audit-score-num {
  font-family: var(--font-display);
  font-size: 2.7rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.audit-score-label {
  font-size: 0.65rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 4px;
}
.audit-diagnosis h4 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 8px;
  color: var(--text-pure);
}
.audit-diagnosis p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 24px;
  line-height: 1.6;
}
.audit-recommendations {
  text-align: left;
  background: rgba(0, 0, 0, 0.4);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 28px;
  border: 1px solid var(--line-dim);
}
.rec-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold);
  margin-bottom: 12px;
}
.rec-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rec-list li {
  font-size: 0.9rem;
  color: var(--text-main);
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.rec-list li span.rec-icon {
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}
.audit-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   CURRICULUM & MODULE CARDS
   ========================================================================== */
.course {
  padding: var(--section-py) 0;
}
.course__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 48px;
}
.modcard {
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.modcard__top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.modcard__step {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.modcard__tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--line-dim);
}
.modcard__tag--gold {
  background: var(--gold-surface);
  color: var(--gold);
  border-color: var(--gold-border);
}
.modcard h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 12px;
  line-height: 1.3;
}
.modcard p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.modcard__deliverable {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line-dim);
  font-size: 0.84rem;
  color: var(--text-muted);
}
.modcard__deliverable strong {
  color: var(--gold);
}
.modcard--accent {
  border-color: var(--gold-border);
  background: linear-gradient(180deg, rgba(229, 183, 75, 0.08) 0%, rgba(14, 16, 25, 0.75) 100%);
}

.course__who {
  max-width: 820px;
  margin: 0 auto 56px;
  padding: 36px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-dim);
  border-radius: var(--radius-lg);
}
.course__who h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 20px;
  text-align: center;
}
.course__who ul {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.course__who li {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.course__who li strong {
  color: var(--text-pure);
}

/* ==========================================================================
   COMPARISON TABLE
   ========================================================================== */
.comparison-table {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.comparison-table__col {
  padding: 32px 24px;
  border-radius: var(--radius-lg);
}
.comparison-table__header {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--text-pure);
}
.comparison-table__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.comparison-table__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.comparison-table__col--bad .comparison-table__list svg {
  color: var(--rose-alert);
  flex-shrink: 0;
  margin-top: 3px;
}
.comparison-table__col--good {
  border-color: var(--gold-border);
  background: linear-gradient(180deg, rgba(229, 183, 75, 0.08) 0%, rgba(14, 16, 25, 0.8) 100%);
}
.comparison-table__col--good .comparison-table__header {
  color: var(--gold);
}
.comparison-table__col--good .comparison-table__list svg {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 3px;
}

/* ==========================================================================
   PILLARS & ABOUT
   ========================================================================== */
.pillars {
  padding: var(--section-py) 0;
}
.pillars__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.pcard {
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
}
.pcard__icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--gold-surface);
  border: 1px solid var(--gold-border);
  color: var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}
.pcard__icon svg { width: 26px; height: 26px; }
.pcard h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 14px;
}
.pcard p {
  font-size: 0.94rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.about {
  padding: var(--section-py) 0;
  border-top: 1px solid var(--line-dim);
}
.about__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 56px;
  align-items: center;
}
@media (max-width: 900px) {
  .about__inner { grid-template-columns: 1fr; gap: 36px; }
}
.about__text h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.8vw, 2.8rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-pure);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.about__text p {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}
.about__text strong { color: var(--text-pure); }
.about__text blockquote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--gold);
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin-top: 28px;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.stat {
  padding: 28px 20px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line-dim);
  border-radius: var(--radius-md);
  text-align: center;
}
.stat__num {
  font-family: var(--font-display);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
}
.stat__lbl {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 6px;
  font-weight: 600;
}

/* ==========================================================================
   MULTI-VARIABLE ROI MATRIX
   ========================================================================== */
.roi-section {
  padding: var(--section-py) 0;
  border-top: 1px solid var(--line-dim);
}
.roi-widget {
  max-width: 900px;
  margin: 0 auto;
  padding: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}
@media (max-width: 820px) {
  .roi-widget { grid-template-columns: 1fr; gap: 32px; }
}
.roi-control-group { margin-bottom: 24px; }
.roi-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text-main);
}
.grad-val {
  color: var(--gold);
  font-weight: 700;
  font-family: var(--font-mono);
}
.roi-widget input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  outline: none;
}
.roi-widget input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  background: var(--gold);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 16px var(--gold);
  transition: transform 0.2s;
}
.roi-widget input[type=range]::-webkit-slider-thumb:hover {
  transform: scale(1.25);
}

.roi-outputs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.roi-box {
  background: rgba(0, 0, 0, 0.4);
  padding: 18px 24px;
  border-radius: var(--radius-md);
  border: 1px solid var(--line-dim);
}
.roi-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.roi-value {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-pure);
}
.roi-value .small {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-dim);
}
.roi-box--highlight {
  background: var(--gold-surface) !important;
  border-color: var(--gold-border) !important;
  box-shadow: 0 10px 35px rgba(229, 183, 75, 0.12) !important;
}

/* ==========================================================================
   WAITLIST & COHORT URGENCY
   ========================================================================== */
.waitlist {
  padding: var(--section-py) 0;
}
.waitlist__card {
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 60px);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
  border-color: var(--gold-border);
}
@media (max-width: 820px) {
  .waitlist__card { grid-template-columns: 1fr; gap: 36px; }
}
.waitlist__copy h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-pure);
  margin-bottom: 14px;
}
.waitlist__copy p {
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}
.cohort-counter {
  margin: 20px 0 24px;
  background: rgba(0, 0, 0, 0.45);
  padding: 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--gold-border);
}
.cohort-counter__bar {
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
  margin-bottom: 8px;
}
.cohort-counter__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: var(--radius-pill);
  box-shadow: 0 0 12px var(--gold);
}
.cohort-counter__meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: var(--font-display);
}
.cohort-counter__meta strong { color: var(--gold); }
.cohort-counter__urgent { color: var(--rose-alert); font-weight: 700; }

.checks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.checks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-main);
  line-height: 1.4;
}
.checks li::before {
  content: "✓";
  color: var(--gold);
  font-weight: 800;
  flex-shrink: 0;
}

.form__label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 10px;
}
.form__row {
  display: flex;
  gap: 10px;
  margin-bottom: 12px;
}
@media (max-width: 500px) {
  .form__row { flex-direction: column; }
}
.form__input {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line-mid);
  border-radius: var(--radius-pill);
  padding: 14px 20px;
  color: var(--text-pure);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s ease;
}
.form__input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 16px var(--gold-glow);
}
.form__hint {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.45;
}

/* ==========================================================================
   FAQ & ACCORDION
   ========================================================================== */
.faq {
  padding: var(--section-py) 0;
}
.faq__list {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq__item {
  border-radius: var(--radius-md);
  padding: 24px 28px;
  transition: all 0.25s ease;
}
.faq__item summary {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-pure);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  list-style: none;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__plus {
  width: 14px;
  height: 14px;
  position: relative;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.faq__plus::before, .faq__plus::after {
  content: "";
  position: absolute;
  background: var(--gold);
  border-radius: 2px;
}
.faq__plus::before { top: 6px; left: 0; width: 14px; height: 2px; }
.faq__plus::after { top: 0; left: 6px; width: 2px; height: 14px; transition: transform 0.25s ease; }
.faq__item[open] .faq__plus::after { transform: rotate(90deg); opacity: 0; }
.faq__item[open] .faq__plus { transform: rotate(90deg); }
.faq__item p {
  margin-top: 16px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ==========================================================================
   FINAL CTA & FOOTER
   ========================================================================== */
.final {
  padding: var(--section-py) 0;
  text-align: center;
}
.final__inner {
  max-width: 780px;
  margin: 0 auto;
}
.final__inner h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text-pure);
  margin-bottom: 32px;
  letter-spacing: -0.03em;
}

.footer {
  border-top: 1px solid var(--line-dim);
  background: rgba(4, 4, 7, 0.95);
  padding: 64px 0 32px;
}
.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.footer__brand {
  max-width: 360px;
}
.footer__tagline {
  font-size: 0.88rem;
  color: var(--text-dim);
  line-height: 1.5;
  margin-top: 12px;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}
.footer__links a:hover { color: var(--gold); }
.footer__social {
  display: flex;
  gap: 14px;
}
.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s ease;
}
.footer__social a:hover {
  color: var(--gold);
  border-color: var(--gold-border);
  transform: translateY(-2px);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid var(--line-dim);
  font-size: 0.82rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 12px;
}

/* ==========================================================================
   SUBPAGE ARCHITECTURE & DEDICATED APP STYLES
   ========================================================================== */

/* Universal Subpage Page Header */
.page-header {
  padding: clamp(60px, 8vw, 110px) 0 40px;
  text-align: center;
  position: relative;
}
.page-header__inner {
  max-width: 860px;
  margin: 0 auto;
}
.page-header__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
  color: var(--text-pure);
  margin-bottom: 20px;
}
.page-header__sub {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  line-height: 1.65;
}

/* 1. Full-Screen Sandbox Styles (/simulator.html) */
.sandbox-app {
  padding-bottom: var(--section-py);
}
.sandbox-cockpit {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 1024px) {
  .sandbox-cockpit { grid-template-columns: 1fr; }
}
.sandbox-sidebar {
  padding: 24px;
}
.sandbox-sidebar h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 16px;
  color: var(--text-pure);
}
.control-block {
  margin-bottom: 22px;
}
.control-block label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.select-dark, .input-dark, .textarea-dark {
  width: 100%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line-mid);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-pure);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  outline: none;
}
.select-dark:focus, .input-dark:focus, .textarea-dark:focus {
  border-color: var(--gold);
}
.tool-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tool-chip-toggle {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line-dim);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}
.tool-chip-toggle.active {
  background: var(--gold-surface);
  border-color: var(--gold);
  color: var(--gold);
}

.sandbox-main {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sandbox-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line-dim);
}
.sandbox-telemetry {
  display: flex;
  gap: 16px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
}
.sandbox-telemetry span strong {
  color: var(--gold);
}

/* 2. Comprehensive Diagnostic App Styles (/audit.html) */
.audit-app-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 960px) {
  .audit-app-grid { grid-template-columns: 1fr; }
}
.audit-panel {
  padding: clamp(24px, 4vw, 40px);
}
.radar-meters {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}
.radar-meter-item {
  background: rgba(0, 0, 0, 0.3);
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-dim);
}
.meter-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 6px;
}
.meter-header span:last-child {
  color: var(--gold);
  font-family: var(--font-mono);
}
.meter-bar {
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.meter-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  border-radius: var(--radius-pill);
  transition: width 0.5s ease;
}

/* 3. Syllabus & Blueprint Deep Styles (/curriculum.html) */
.curriculum-app {
  padding-bottom: var(--section-py);
}
.module-accordion-item {
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.module-accordion-head {
  padding: 24px 32px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s ease;
}
.module-accordion-head:hover {
  background: rgba(255, 255, 255, 0.02);
}
.mod-head-left {
  display: flex;
  align-items: center;
  gap: 20px;
}
.mod-num-pill {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--gold);
}
.mod-title-group h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 4px;
}
.mod-title-group p {
  font-size: 0.88rem;
  color: var(--text-dim);
}
.module-accordion-body {
  padding: 0 32px 32px;
  border-top: 1px solid var(--line-dim);
  padding-top: 24px;
}
.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}
.lesson-card {
  padding: 16px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-dim);
}
.lesson-card__num {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  margin-bottom: 6px;
}
.lesson-card__title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-main);
  margin-bottom: 6px;
}
.lesson-card__desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.blueprint-download-box {
  background: var(--gold-surface);
  border: 1px dashed var(--gold-border);
  padding: 16px 20px;
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.blueprint-download-box span {
  font-size: 0.88rem;
  color: var(--text-pure);
}

/* 4. Manifesto Editorial Styles (/manifesto.html) */
.manifesto-article {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px var(--section-py);
}
.prose {
  font-size: 1.15rem;
  line-height: 1.8;
  color: var(--text-main);
}
.prose p {
  margin-bottom: 28px;
}
.prose h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text-pure);
  margin: 56px 0 20px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.prose h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--gold-light);
  margin: 40px 0 16px;
}
.prose blockquote {
  font-family: var(--font-display);
  font-size: 1.4rem;
  line-height: 1.5;
  color: var(--gold);
  border-left: 3px solid var(--gold);
  padding-left: 28px;
  margin: 40px 0;
  font-style: italic;
}
.prose .callout-box {
  background: rgba(14, 16, 25, 0.85);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin: 36px 0;
}
.prose .callout-box h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--gold);
  margin-bottom: 12px;
}
.thesis-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}
@media (max-width: 640px) {
  .thesis-grid { grid-template-columns: 1fr; }
}
.thesis-card {
  padding: 22px;
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line-dim);
}
.thesis-card.highlight {
  border-color: var(--gold-border);
  background: var(--gold-surface);
}
.thesis-card h5 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 8px;
}
.thesis-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0;
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   AI TO SI EVOLUTION TIMELINE COMPONENT
   ========================================================================== */
.timeline-container {
  max-width: 1100px;
  margin: 56px auto 0;
  padding: 32px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line-dim);
  border-radius: var(--radius-lg);
}
.timeline-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
  margin-top: 24px;
}
@media (max-width: 860px) {
  .timeline-track { grid-template-columns: 1fr; gap: 24px; }
}
.timeline-step {
  display: flex;
  flex-direction: column;
  position: relative;
  padding-top: 20px;
  border-top: 2px solid var(--line-mid);
  transition: all 0.25s ease;
}
.timeline-step.highlight {
  border-top-color: var(--gold);
}
.timeline-dot {
  position: absolute;
  top: -7px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--text-dim);
  border: 2px solid var(--bg-void);
  transition: all 0.25s ease;
}
.timeline-step:hover .timeline-dot,
.timeline-dot.active {
  background: var(--gold);
  box-shadow: 0 0 12px var(--gold);
  transform: scale(1.3);
}
.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 6px;
}
.timeline-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-pure);
  margin-bottom: 8px;
}
.timeline-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ==========================================================================
   TERMINAL CLI DRAWER (Ctrl+K) & SOUND TOGGLE
   ========================================================================== */
.terminal-launcher-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(14, 16, 25, 0.88);
  border: 1px solid var(--gold-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 15px var(--gold-glow);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
}
.terminal-launcher-btn:hover {
  transform: translateY(-3px) scale(1.04);
  background: var(--gold-surface);
  color: var(--text-pure);
  border-color: var(--gold);
}

.sound-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-dim);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}
.sound-toggle-btn:hover {
  color: var(--gold);
  border-color: var(--gold-border);
}

/* Terminal Modal Overlay */
.cli-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(12px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cli-modal.is-open {
  display: flex;
  animation: fadeIn 0.2s ease forwards;
}
.cli-drawer {
  width: 100%;
  max-width: 760px;
  background: rgba(10, 12, 18, 0.96);
  border: 1px solid var(--gold-border);
  border-radius: var(--radius-md);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 50px var(--gold-glow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: 80vh;
}
.cli-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid var(--line-dim);
}
.cli-header-title {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 10px;
}
.cli-close-btn {
  color: var(--text-dim);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
}
.cli-close-btn:hover { color: #fff; }
.cli-body {
  padding: 18px;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: #a1a1aa;
  overflow-y: auto;
  max-height: 480px;
}
.cli-output-line {
  margin-bottom: 6px;
}
.cli-input-form {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--line-dim);
}
.cli-prompt-label {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--gold);
  margin-right: 10px;
  white-space: nowrap;
}
.cli-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-pure);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* ==========================================================================
   GLOBAL SWARM TELEMETRY TICKER
   ========================================================================== */
.global-ticker {
  background: rgba(4, 4, 7, 0.98);
  border-bottom: 1px solid var(--line-dim);
  padding: 6px 0;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-dim);
  z-index: 101;
  position: relative;
}
.global-ticker__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.ticker-left {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ticker-label {
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.05em;
}
.ticker-text {
  color: var(--text-main);
  animation: fadeIn 0.3s ease;
}
.ticker-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ticker-right strong {
  color: var(--gold);
}
.ticker-sep {
  color: rgba(255, 255, 255, 0.2);
}
@media (max-width: 768px) {
  .ticker-right { display: none; }
}

/* Studio Canvas Nodes */
.studio-node {
  transition: all 0.25s ease;
}
.studio-node.running {
  border-color: var(--gold) !important;
  box-shadow: 0 0 25px var(--gold-glow);
  transform: translateX(4px);
}

/* ==========================================================================
   BREADCRUMBS & BUTTON SPECULAR SHEEN
   ========================================================================== */
.breadcrumbs {
  margin-bottom: 20px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.breadcrumbs ol {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.breadcrumbs a {
  color: var(--text-dim);
  transition: color 0.2s ease;
}
.breadcrumbs a:hover {
  color: var(--gold);
}
.breadcrumbs span[aria-current="page"] {
  color: var(--gold);
  font-weight: 600;
}
.breadcrumb-sep {
  color: rgba(255, 255, 255, 0.2);
}

/* Button Specular Light Sweep */
.btn--gold {
  position: relative;
  overflow: hidden;
}
.btn--gold::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 80%
  );
  transform: rotate(25deg) translateY(-120%);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.btn--gold:hover::after {
  transform: rotate(25deg) translateY(120%);
}

/* Layout Containment for 60fps Scrolling */
.course__grid, .pillars__grid, .comparison-table {
  contain: layout style;
}

/* ==========================================================================
   DOUBLE-BEZEL (DOPPELRAND) & BUTTON-IN-BUTTON TOKENS
   ========================================================================== */
.doppel-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  padding: 6px;
  border-radius: 20px;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.doppel-card:hover {
  border-color: rgba(212, 160, 23, 0.25);
  box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.7), 0 0 20px rgba(212, 160, 23, 0.08);
}

.doppel-inner {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 24px;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.12);
}

/* Button-in-Button Trailing Icon Bubble */
.btn__bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.18);
  margin-left: 8px;
  font-size: 0.85rem;
  transition: transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), background-color 0.2s ease;
}

.btn--gold:hover .btn__bubble {
  transform: translateX(3px) translateY(-1px) scale(1.08);
  background: rgba(0, 0, 0, 0.28);
}

.btn:active {
  transform: scale(0.975) translateY(1px);
}

/* Framework Filter Buttons */
.filter-btn {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-muted);
  border: 1px solid var(--line-dim);
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.filter-btn:hover {
  color: var(--text-pure);
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
}

.filter-btn--active {
  background: rgba(212, 160, 23, 0.15);
  color: var(--gold);
  border-color: rgba(212, 160, 23, 0.4);
  font-weight: 600;
}
