@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --bg-dark: #0A0A0B;          /* Onyx */
  --card-bg: rgba(22, 22, 26, 0.85); /* Carbon + glassmorphism */
  --surface-bg: #1F1F24;       /* Graphite */
  --accent-gold: #D4AF37;      /* Champagne Gold */
  --accent-gold-light: #F4D77A;/* Gold Light */
  --text-primary: #E8E8EA;     /* Platinum */
  --text-secondary: #A0A0AA;   /* Muted Zinc */
  --text-dark: #0A0A0B;
  --border-gold: rgba(212, 175, 55, 0.2);
  --border-gold-active: rgba(212, 175, 55, 0.6);
  --glow-gold: 0 0 25px rgba(212, 175, 55, 0.25);
  --glow-gold-strong: 0 0 35px rgba(212, 175, 55, 0.45);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Space Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  width: 100%;
}

body {
  overflow-x: hidden;
  position: relative;
}

/* Background Gradients/Glows */
body::before {
  content: '';
  position: absolute;
  top: 5%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.08) 0%, rgba(10, 10, 11, 0) 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(80px);
}

body::after {
  content: '';
  position: absolute;
  bottom: 20%;
  left: -10%;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(244, 215, 122, 0.06) 0%, rgba(10, 10, 11, 0) 70%);
  z-index: -1;
  pointer-events: none;
  filter: blur(100px);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
  background: var(--surface-bg);
  border: 2px solid var(--bg-dark);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-gold);
}

/* Typography elements */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.25;
  max-width: 100%;
  overflow-wrap: break-word;
  word-wrap: break-word;
}
h1 {
  font-size: 3.5rem;
  font-weight: 700;
}

h2 {
  font-size: 2.25rem;
  position: relative;
  margin-bottom: 2rem;
  display: inline-block;
}

h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-gold), transparent);
  margin-top: 0.5rem;
}

p {
  color: var(--text-secondary);
  margin-bottom: 1rem;
}

a {
  color: var(--accent-gold-light);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--accent-gold);
}

/* Header & Navigation */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  background: rgba(10, 10, 11, 0.75);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.25rem 2rem;
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  border-radius: 50%;
  border: 1.5px solid var(--border-gold);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.2);
  transition: var(--transition);
}

.logo-link:hover .logo-img {
  border-color: var(--accent-gold);
  box-shadow: var(--glow-gold);
  transform: rotate(5deg) scale(1.05);
}

.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--text-primary);
  letter-spacing: -0.03em;
}

.logo-text span {
  color: var(--accent-gold);
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
}

nav ul li a {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  position: relative;
  padding: 0.25rem 0;
}

nav ul li a:hover, nav ul li a.active {
  color: var(--accent-gold);
}

nav ul li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--accent-gold);
  transition: var(--transition);
}

nav ul li a:hover::after, nav ul li a.active::after {
  width: 100%;
}

.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
  color: var(--text-dark);
  border: none;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-gold-strong);
  color: var(--text-dark);
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-gold);
}

.btn-secondary:hover {
  background: rgba(212, 175, 55, 0.05);
  border-color: var(--accent-gold);
  transform: translateY(-2px);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 2rem 4rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 4rem;
  align-items: center;
  width: 100%;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tagline-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid var(--border-gold);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  width: fit-content;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-gold-light);
  text-transform: uppercase;
}

.tagline-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
  animation: pulse 1.5s infinite alternate;
}

.hero-title {
  margin-bottom: 0.5rem;
}

.hero-title span {
  background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 1.2rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-top: 1rem;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.px-monogram-container {
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22, 22, 26, 0.9) 0%, rgba(10, 10, 11, 0.9) 100%);
  border: 1px solid var(--border-gold);
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: var(--glow-gold);
  animation: float 6s ease-in-out infinite;
  overflow: hidden;
}

.px-monogram-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  transition: var(--transition);
}

.px-monogram-container:hover .px-monogram-img {
  transform: scale(1.05);
}

/* Glassmorphism Cards */
.card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  padding: 2rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-gold-active);
  transform: translateY(-4px);
  box-shadow: var(--glow-gold);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.03),
    transparent
  );
  transition: 0.5s;
}

.card:hover::before {
  left: 100%;
}

/* Sections General Layout */
section {
  padding: 6rem 2rem;
  max-width: 1300px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.section-header {
  margin-bottom: 3.5rem;
  text-align: center;
}

.section-desc {
  max-width: 700px;
  margin: 1rem auto 0 auto;
  font-size: 1.1rem;
}

/* Market Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.stat-card {
  text-align: center;
}

.stat-num {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
}

.stat-desc {
  font-size: 0.9rem;
}

/* 6 Pillars CSS Grid */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
}

.pillar-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.pillar-num {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--accent-gold);
  border: 1px solid var(--border-gold);
  width: fit-content;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  margin-bottom: 1rem;
}

.pillar-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
}

.pillar-body {
  font-size: 0.95rem;
  flex-grow: 1;
}

.pillar-impact {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.9rem;
}

.pillar-impact strong {
  color: var(--accent-gold-light);
  font-family: var(--font-mono);
}

.pillar-special {
  border-color: rgba(212, 175, 55, 0.4);
  background: linear-gradient(135deg, rgba(22, 22, 26, 0.95) 0%, rgba(31, 31, 36, 0.75) 100%);
  box-shadow: var(--glow-gold);
}

/* Interactive Flywheel Layout */
.flywheel-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: stretch;
}

.flywheel-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
  align-self: stretch;
}

@media (max-width: 1024px) {
  .flywheel-visual {
    min-height: 400px;
    align-self: auto;
  }
}

.flywheel-svg {
  width: 100%;
  max-width: 440px;
  height: auto;
}

.flywheel-node {
  cursor: pointer;
  transition: var(--transition);
}

.flywheel-node circle {
  fill: #16161A;
  stroke: var(--accent-gold);
  stroke-width: 1.5;
  transition: var(--transition);
}

.flywheel-node text {
  fill: var(--text-primary);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 500;
  text-anchor: middle;
  transition: var(--transition);
  pointer-events: none;
}

.flywheel-node:hover circle, .flywheel-node.active circle {
  fill: var(--accent-gold);
  stroke: var(--accent-gold-light);
  filter: drop-shadow(0 0 6px var(--accent-gold));
}

.flywheel-node:hover text, .flywheel-node.active text {
  fill: var(--text-dark);
  font-weight: 700;
}

.flywheel-link {
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 1.5;
  stroke-dasharray: 4,4;
  fill: none;
  transition: var(--transition);
}

.flywheel-link.flow-lead {
  stroke-dasharray: none;
}

.flywheel-link.active-lead {
  stroke: var(--accent-gold);
  stroke-width: 2.5;
  stroke-dasharray: 6,4;
  animation: dash 30s linear infinite;
  filter: drop-shadow(0 0 4px var(--accent-gold));
}

.flywheel-link.active-rev {
  stroke: #E8E8EA;
  stroke-width: 2.5;
  animation: pulse-line 1.5s infinite ease-in-out;
  filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4));
}

/* Moats Section (Section 4) Interactive Layout */
.moats-interactive-container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 4rem;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .moats-interactive-container {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.moats-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 520px;
  align-self: stretch;
}

@media (max-width: 1024px) {
  .moats-visual {
    min-height: 400px;
    align-self: auto;
  }
}

.moats-svg {
  width: 100%;
  max-width: 440px;
  height: auto;
}

/* Moat Nodes */
.moat-node {
  cursor: pointer;
  transition: var(--transition);
}

.moat-node circle {
  fill: #16161A;
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1.5;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.moat-node text {
  fill: var(--text-primary);
  font-family: var(--font-display);
  font-size: 10px;
  font-weight: 600;
  text-anchor: middle;
  transition: var(--transition);
  pointer-events: none;
}

/* Node glows and styles when active */
.moats-svg.active-moat-service #moat-node-4 circle,
.moats-svg.active-moat-service #moat-node-5 circle {
  fill: var(--accent-gold);
  stroke: var(--accent-gold-light);
  filter: drop-shadow(0 0 8px var(--accent-gold));
}
.moats-svg.active-moat-service #moat-node-4 text,
.moats-svg.active-moat-service #moat-node-5 text {
  fill: var(--text-dark);
  font-weight: 700;
}

.moats-svg.active-moat-talent #moat-node-3 circle,
.moats-svg.active-moat-talent #moat-node-4 circle {
  fill: #00F0FF;
  stroke: #E0FFFF;
  filter: drop-shadow(0 0 8px #00F0FF);
}
.moats-svg.active-moat-talent #moat-node-3 text,
.moats-svg.active-moat-talent #moat-node-4 text {
  fill: var(--text-dark);
  font-weight: 700;
}

.moats-svg.active-moat-case #moat-node-4 circle,
.moats-svg.active-moat-case #moat-node-1 circle,
.moats-svg.active-moat-case #moat-node-3 circle {
  fill: #FFB000;
  stroke: #FFE4B5;
  filter: drop-shadow(0 0 8px #FFB000);
}
.moats-svg.active-moat-case #moat-node-4 text,
.moats-svg.active-moat-case #moat-node-1 text,
.moats-svg.active-moat-case #moat-node-3 text {
  fill: var(--text-dark);
  font-weight: 700;
}

/* Connecting Flow Lines for Moats */
.moat-link {
  fill: none !important;
  stroke: rgba(255, 255, 255, 0.05);
  stroke-width: 1.5;
  transition: all 0.4s ease;
}

/* Highlight links when active */
.moats-svg.active-moat-service #moat-path-service {
  stroke: var(--accent-gold);
  stroke-width: 3;
  filter: drop-shadow(0 0 6px var(--accent-gold));
}

.moats-svg.active-moat-talent #moat-path-talent {
  stroke: #00F0FF;
  stroke-width: 3;
  filter: drop-shadow(0 0 6px #00F0FF);
}

.moats-svg.active-moat-case #moat-path-case-brand,
.moats-svg.active-moat-case #moat-path-case-comm {
  stroke: #FFB000;
  stroke-width: 3;
  filter: drop-shadow(0 0 6px #FFB000);
}

/* Flowing Particles */
.moat-particle {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.moats-svg.active-moat-service .particle-service {
  opacity: 1;
  visibility: visible;
}

.moats-svg.active-moat-talent .particle-talent {
  opacity: 1;
  visibility: visible;
}

.moats-svg.active-moat-case .particle-case {
  opacity: 1;
  visibility: visible;
}

/* Labels for resource transfer */
.moat-label-g {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.moat-label-g rect {
  fill: rgba(10, 10, 11, 0.95);
  backdrop-filter: blur(4px);
}

.moats-svg.active-moat-service #moat-label-service {
  opacity: 1;
  visibility: visible;
}

.moats-svg.active-moat-talent #moat-label-talent {
  opacity: 1;
  visibility: visible;
}

.moats-svg.active-moat-case #moat-label-case-brand,
.moats-svg.active-moat-case #moat-label-case-comm {
  opacity: 1;
  visibility: visible;
}

/* Moat Details & Selector */
.moats-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.moat-loops-selector {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.moat-loop-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.85rem 1.2rem;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.moat-loop-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
  transform: translateX(4px);
}

.moat-loop-btn#btn-moat-service.active {
  border-color: var(--accent-gold);
  color: var(--accent-gold-light);
  background: rgba(212, 175, 55, 0.08);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.08);
}

.moat-loop-btn#btn-moat-talent.active {
  border-color: #00F0FF;
  color: #E0FFFF;
  background: rgba(0, 240, 255, 0.08);
  box-shadow: 0 0 15px rgba(0, 240, 255, 0.08);
}

.moat-loop-btn#btn-moat-case.active {
  border-color: #FFB000;
  color: #FFE4B5;
  background: rgba(255, 176, 0, 0.08);
  box-shadow: 0 0 15px rgba(255, 176, 0, 0.08);
}

/* Detail Panes */
.moat-pane-detail {
  display: none !important;
  animation: fadeIn 0.4s ease-out forwards;
}

.moat-pane-detail.active {
  display: block !important;
}

.moat-detail-header {
  border-left: 3px solid var(--accent-gold);
  padding-left: 0.75rem;
  margin-bottom: 1.25rem;
}

.moat-type-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  display: inline-block;
  letter-spacing: 0.5px;
}

.moat-flow-text {
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 0.4rem;
  font-family: var(--font-display);
}

.moat-flow-text strong {
  color: var(--text-secondary);
}

.moat-desc-text {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.moat-bullets {
  list-style: none;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.moat-bullets li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.moat-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-gold-light);
  font-weight: 700;
}

#moat-pane-talent .moat-bullets li::before {
  color: #00F0FF;
}

#moat-pane-case .moat-bullets li::before {
  color: #FFB000;
}

.flywheel-details {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.detail-pane {
  display: none;
  animation: fadeIn 0.4s ease-out forwards;
}

.detail-pane.active {
  display: block;
}

.detail-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.detail-icon {
  width: 40px;
  height: 40px;
  border-radius: 6px;
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  font-weight: 700;
}

.flow-legend {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  gap: 1.5rem;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.legend-line {
  width: 24px;
  height: 3px;
  border-radius: 2px;
}

.legend-line.lead {
  background: var(--accent-gold);
  box-shadow: 0 0 5px var(--accent-gold);
}

.legend-line.revenue {
  background: var(--text-primary);
  box-shadow: 0 0 5px rgba(255,255,255,0.4);
}

/* Tabs UI */
.tabs-container {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.tab-btn:hover {
  color: var(--text-primary);
}

.tab-btn.active {
  color: var(--accent-gold);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
}

.tab-pane {
  display: none;
  animation: fadeIn 0.5s ease-out forwards;
}

.tab-pane.active {
  display: block;
}

/* Interactive Calculator Styles */
.calc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: flex-start;
}

.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.input-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.input-label-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.input-label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text-primary);
}

.input-value {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--accent-gold);
  font-size: 1.1rem;
}

/* Custom Gold Sliders */
input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 3px;
  outline: none;
  transition: var(--transition);
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-gold);
  cursor: pointer;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.4);
  transition: var(--transition);
}

input[type="range"]::-webkit-slider-thumb:hover {
  background: var(--accent-gold-light);
  transform: scale(1.2);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.6);
}

.calc-results {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.pricing-progression {
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.03);
  font-size: 0.9rem;
}

.pricing-progression p {
  margin-bottom: 0.5rem;
}

.pricing-progression strong {
  color: var(--accent-gold-light);
  font-family: var(--font-mono);
}

.result-card {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.res-box {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 1rem;
  text-align: center;
}

.res-box.total-box {
  grid-column: span 3;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, rgba(22, 22, 26, 0.9) 100%);
  border-color: rgba(212, 175, 55, 0.25);
  box-shadow: var(--glow-gold);
}

.res-val {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  margin-bottom: 0.25rem;
}

.res-box.total-box .res-val {
  font-size: 2.25rem;
}

.res-lbl {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

/* Charts / Financial Model Simulator */
.chart-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.scenarios-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.scenario-btn {
  flex: 1;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 0.75rem;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
  color: var(--text-secondary);
  transition: var(--transition);
}

.scenario-btn:hover {
  background: rgba(255,255,255,0.05);
}

.scenario-btn.active {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.05);
}

.chart-visual {
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  height: 260px;
  padding: 2rem 1rem 0 1rem;
  background: rgba(255,255,255,0.01);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.03);
  position: relative;
}

.chart-axis {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.chart-bar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  width: 20%;
  height: 100%;
  justify-content: flex-end;
}

.chart-bar-value {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent-gold-light);
  font-weight: 600;
}

.chart-bar {
  width: 100%;
  background: linear-gradient(to top, var(--accent-gold) 0%, var(--accent-gold-light) 100%);
  border-radius: 4px 4px 0 0;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.15);
  transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  height: 0%; /* JS controlled */
}

.chart-bar-label {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* AI Audit Sandbox Tool Styles */
.sandbox-container {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 3rem;
  align-items: flex-start;
}

.sandbox-form-card {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-group input, .form-group select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  padding: 0.85rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-body);
  outline: none;
  transition: var(--transition);
}

.form-group input:focus, .form-group select:focus {
  border-color: var(--accent-gold);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.1);
}

/* Terminal simulator styling */
.terminal-card {
  background: #0E0E11;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  height: 480px;
  display: flex;
  flex-direction: column;
}

.terminal-header {
  background: #16161A;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.term-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.term-dot.red { background-color: #FF5F56; }
.term-dot.yellow { background-color: #FFBD2E; }
.term-dot.green { background-color: #27C93F; }

.terminal-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-left: auto;
  margin-right: auto;
}

.terminal-body {
  padding: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #39FF14; /* Matrix Green default */
  overflow-y: auto;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.term-line {
  line-height: 1.5;
  word-break: break-all;
}

.term-line.system {
  color: var(--text-secondary);
}

.term-line.user-input {
  color: var(--text-primary);
}

.term-line.error {
  color: #FF5F56;
}

/* Dashboard Report Mock PDF styling */
.report-layout {
  display: none;
  flex-direction: column;
  gap: 1.5rem;
  animation: fadeIn 0.6s ease-out forwards;
}

.report-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border-gold);
  padding-bottom: 1rem;
}

.report-score-ring {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  border: 4px solid var(--border-gold);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.report-score-ring.glow {
  border-color: var(--accent-gold);
  box-shadow: var(--glow-gold);
}

.score-num {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold-light);
  line-height: 1;
}

.score-lbl {
  font-size: 0.6rem;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.report-section {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.report-subtitle {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--accent-gold);
  border-left: 3px solid var(--accent-gold);
  padding-left: 0.5rem;
}

.metric-bar-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.metric-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.metric-bar-bg {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.metric-bar-fill {
  height: 100%;
  background: var(--accent-gold);
  border-radius: 3px;
  width: 0%; /* JS controlled */
  transition: width 1s ease-out;
}

.report-recommendations {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.report-recommendations li {
  position: relative;
  padding-left: 1.25rem;
  color: var(--text-secondary);
}

.report-recommendations li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--accent-gold-light);
}

.lead-capture-box {
  margin-top: 1.5rem;
  background: rgba(212, 175, 55, 0.05);
  border: 1px dashed var(--accent-gold);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lead-capture-box p {
  font-size: 0.85rem;
  margin-bottom: 0;
}

.lead-capture-box .form-inline {
  display: flex;
  gap: 0.5rem;
}

.lead-capture-box input {
  flex-grow: 1;
  padding: 0.5rem 0.75rem;
  background: rgba(10, 10, 11, 0.6);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 4px;
  color: var(--text-primary);
  font-size: 0.85rem;
  outline: none;
}

.lead-capture-box input:focus {
  border-color: var(--accent-gold);
}

.lead-capture-box button {
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  white-space: nowrap;
}

/* SOP Grid library styling */
.sop-filter-bar {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.sop-filter-btn {
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(255,255,255,0.05);
  color: var(--text-secondary);
  padding: 0.5rem 1.25rem;
  border-radius: 4px;
  font-family: var(--font-display);
  font-size: 0.9rem;
  cursor: pointer;
  transition: var(--transition);
}

.sop-filter-btn:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text-primary);
}

.sop-filter-btn.active {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: rgba(212, 175, 55, 0.05);
}

.sop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.sop-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.sop-category {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--accent-gold-light);
  margin-bottom: 0.5rem;
}

.sop-title {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.sop-desc {
  font-size: 0.85rem;
  flex-grow: 1;
}

.sop-footer {
  margin-top: 1.25rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}

.sop-link {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* Modal styling for SOP Preview */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(10px);
  z-index: 2000;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

.modal-content {
  background: var(--surface-bg);
  border: 1px solid var(--border-gold);
  border-radius: 12px;
  width: 100%;
  max-width: 800px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: var(--glow-gold-strong);
  position: relative;
  animation: modalSlide 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 1.5rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close-btn:hover {
  color: var(--accent-gold);
}

.modal-body {
  padding: 2.5rem;
}

.modal-category {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.modal-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
}

.sop-flowchart {
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  overflow-x: auto;
  white-space: pre;
  line-height: 1.4;
}

.sop-section-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent-gold-light);
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.sop-steps-list {
  padding-left: 1.25rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.sop-steps-list li {
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.sop-steps-list strong {
  color: var(--text-primary);
}

/* Roadmap timeline styling */
.roadmap-timeline {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.roadmap-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 100%;
  background: linear-gradient(to bottom, var(--accent-gold), transparent);
}

.timeline-item {
  display: flex;
  justify-content: flex-end;
  position: relative;
  width: 50%;
  padding: 1.5rem 3rem 1.5rem 0;
  box-sizing: border-box;
}

.timeline-item:nth-child(even) {
  align-self: flex-end;
  justify-content: flex-start;
  padding: 1.5rem 0 1.5rem 3rem;
  margin-left: 50%;
}

.timeline-dot {
  position: absolute;
  right: -6px;
  top: 2rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent-gold);
  box-shadow: 0 0 8px var(--accent-gold);
  z-index: 10;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -6px;
  right: auto;
}

.timeline-content {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-gold);
  border-radius: 8px;
  padding: 1.5rem;
  width: 100%;
}

.timeline-phase {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent-gold);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.timeline-title {
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
}

.timeline-tasks {
  list-style: none;
  font-size: 0.85rem;
}

.timeline-tasks li {
  position: relative;
  padding-left: 1.25rem;
  margin-bottom: 0.4rem;
  color: var(--text-secondary);
}

.timeline-tasks li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-gold-light);
}

/* Compliance Card styling */
.compliance-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.compliance-card {
  border-left: 3px solid var(--accent-gold);
}

.compliance-icon {
  font-size: 1.5rem;
  color: var(--accent-gold);
  margin-bottom: 1rem;
}

.compliance-title {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.compliance-body {
  font-size: 0.9rem;
}

/* Footer Section styling */
footer {
  background: #050506;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  padding: 4rem 2rem 2rem 2rem;
}

.footer-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-brand p {
  font-size: 0.95rem;
  max-width: 320px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-links-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  color: var(--text-primary);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.footer-links ul a {
  color: var(--text-secondary);
}

.footer-links ul a:hover {
  color: var(--accent-gold);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

/* Animations */
@keyframes pulse {
  0% { transform: scale(1); box-shadow: 0 0 8px var(--accent-gold); }
  100% { transform: scale(1.1); box-shadow: 0 0 16px var(--accent-gold-light); }
}

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

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes modalSlide {
  from { opacity: 0; transform: scale(0.9) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes dash {
  to {
    stroke-dashoffset: -1000;
  }
}

@keyframes pulse-line {
  0% { opacity: 0.4; }
  50% { opacity: 1; }
  100% { opacity: 0.4; }
}

/* Interactive simulated typing */
.typing::after {
  content: '_';
  animation: blink 0.8s infinite;
}

@keyframes blink {
  0%, 100% { opacity: 0; }
  50% { opacity: 1; }
}

/* Notification Overlay Toast styling */
.toast {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--surface-bg);
  border: 1px solid var(--accent-gold);
  border-radius: 6px;
  padding: 1rem 1.5rem;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 0.9rem;
  box-shadow: var(--glow-gold);
  display: none;
  align-items: center;
  gap: 0.75rem;
  z-index: 3000;
  animation: fadeIn 0.3s ease-out forwards;
}

.toast-icon {
  color: var(--accent-gold);
  font-weight: 700;
}

/* Responsive Overrides */
@media (max-width: 1024px) {
  h1 { font-size: 2.75rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-visual { order: -1; margin-bottom: 2rem; }
  .px-monogram-container { width: 240px; height: 240px; }
  .flywheel-container { grid-template-columns: 1fr; gap: 2rem; }
  .calc-grid { grid-template-columns: 1fr; gap: 2rem; }
  .sandbox-container { grid-template-columns: 1fr; gap: 2rem; }
  .roadmap-timeline::before { left: 0; }
  .timeline-item { width: 100%; padding: 1.5rem 0 1.5rem 2rem; }
  .timeline-item:nth-child(even) { margin-left: 0; padding: 1.5rem 0 1.5rem 2rem; }
  .timeline-dot { left: -5px !important; right: auto !important; }
}

@media (max-width: 768px) {
  header {
    padding: 0.85rem 1rem;
  }
  .nav-container {
    gap: 0.5rem;
  }
  .logo-text {
    font-size: 1.3rem;
  }
  .logo-img {
    width: 32px;
    height: 32px;
  }
  .btn-cta {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    gap: 0.25rem;
  }
  nav ul { gap: 1rem; }
  nav ul li a { font-size: 0.85rem; }
  
  .section-header {
    margin-bottom: 2rem;
  }
  .section-desc {
    font-size: 1rem;
  }
  
  .pillars-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .compliance-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .sop-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  
  .footer-top { grid-template-columns: 1fr; gap: 2rem; }
  .result-card { grid-template-columns: 1fr; }
  .res-box.total-box { grid-column: span 1; }
  .lead-capture-box .form-inline { flex-direction: column; }
}

@media (max-width: 480px) {
  .logo-text { display: none; }
  nav ul { gap: 0.75rem; }
  header {
    padding: 0.75rem 0.75rem;
  }
  .logo-text {
    font-size: 1.15rem;
  }
  .logo-img {
    width: 28px;
    height: 28px;
  }
  .btn-cta {
    padding: 0.4rem 0.85rem;
    font-size: 0.8rem;
  }
  
  .hero-actions {
    flex-direction: column;
    gap: 0.75rem;
  }
  .hero-actions .btn-cta {
    width: 100%;
    justify-content: center;
  }
  .px-monogram-container {
    width: 200px;
    height: 200px;
  }
  
  .flywheel-visual {
    min-height: 320px;
  }
  .moats-visual {
    min-height: 320px;
  }
  
  .scenarios-selector {
    flex-direction: column;
    gap: 0.5rem;
  }
  .scenario-btn {
    padding: 0.5rem;
    font-size: 0.85rem;
  }
  .chart-visual {
    height: 200px;
  }
  .chart-bar-wrapper {
    width: 25%;
  }
}


