@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700;800&family=Fira+Code:wght@400;500&family=Syncopate:wght@700&display=swap');

/* --- OBSIDIAN STABLE DESIGN SYSTEM (V3) --- */
:root {
  --bg-obsidian: #000000;
  --bg-dark: #070709;
  --bg-elevated: #0d0d10;
  --bg-card: #09090b;
  
  --primary: 24, 95%, 53%; /* Orange */
  --secondary: 45, 100%, 50%; /* Gold/Amber */
  --success: 142, 71%, 45%;
  --error: 350, 80%, 50%;
  
  --text-main: #ffffff;
  --text-body: #ffffff; /* Pure white text */
  --text-muted: #e4e4e7; /* Light silver/zinc white text */
  --border-color: rgba(255, 255, 255, 0.06);
  
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'Fira Code', monospace;
  
  --ease-premium: cubic-bezier(0.16, 1, 0.3, 1);
  --header-height: 80px;
  
  /* Glass and shadow system */
  --glass-bg: rgba(9, 9, 11, 0.45);
  --card-shadow-color: rgba(0, 0, 0, 0.85);
  --card-bg: rgba(255, 255, 255, 0.012);
  --card-border: rgba(255, 255, 255, 0.035);
  --card-hover-bg: rgba(255, 255, 255, 0.02);
  --card-hover-border: rgba(255, 255, 255, 0.08);
}

body.light-mode {
  --bg-obsidian: #fcfcfd;
  --bg-dark: #f4f4f5;
  --bg-elevated: #e4e4e7;
  --bg-card: #ffffff;
  
  --text-main: #000000;      /* Pure black for high visibility headings */
  --text-body: #09090b;      /* Almost pure black for body paragraph text */
  --text-muted: #27272a;     /* Dark charcoal for labels, subtitles, and badges */
  --border-color: rgba(9, 9, 11, 0.12); /* Slightly darker borders */
  
  /* Glass and shadow system for light mode */
  --glass-bg: rgba(255, 255, 255, 0.75);
  --card-shadow-color: rgba(0, 0, 0, 0.08);
  --card-bg: rgba(9, 9, 11, 0.03);
  --card-border: rgba(9, 9, 11, 0.08);
  --card-hover-bg: rgba(9, 9, 11, 0.06);
  --card-hover-border: rgba(9, 9, 11, 0.15);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-obsidian);
  color: var(--text-main);
  font-family: var(--font-body);
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  overflow-x: hidden;
  background-color: var(--bg-obsidian);
  position: relative;
  min-height: 100vh;
}

/* Scroll margin offset for smooth anchors */
section {
  scroll-margin-top: calc(var(--header-height) + 20px);
}

/* Blueprint canvas grid system (Lightweight backdrop) */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-obsidian);
}
::-webkit-scrollbar-thumb {
  background: #18181b;
  border-radius: 3px;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-main);
}

p {
  color: var(--text-body);
  line-height: 1.7;
  font-weight: 400;
  letter-spacing: -0.01em;
}

.mono-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-muted);
}

.gradient-title {
  background: linear-gradient(135deg, #ffffff 40%, #f97316 75%, #facc15 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- LAYOUTS & CONTAINERS --- */
.section-classic {
  padding: 8rem 3rem;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

@media(max-width: 768px) {
  .section-classic {
    padding: 5rem 1.5rem;
  }
}

.grid-showcase-split {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5rem;
  align-items: center;
}

@media(max-width: 991px) {
  .grid-showcase-split {
    grid-template-columns: 1fr;
    gap: 3.5rem;
  }
}

/* --- HEADER & NAVIGATION (STABLE) --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: all 0.4s var(--ease-premium);
  display: flex;
  align-items: center;
}

header.scrolled {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
}

.nav-container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media(max-width: 768px) {
  .nav-container {
    padding: 0 1.5rem;
  }
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  font-family: 'Syncopate', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.18em;
}

.logo-icon {
  width: 28px;
  height: 28px;
}

.logo-svg {
  width: 100%;
  height: 100%;
}

nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  gap: 1.25rem;
}

/* --- ORIGIN BUTTON NATIVE COMPONENT --- */
.origin-btn {
  position: relative;
  display: inline-flex;
  height: 38px;
  padding: 0 1.35rem;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 9999px; /* Rounded pill switch */
  cursor: pointer;
  text-decoration: none;
  border: 1px solid var(--border-color);
  background: var(--bg-card);
  color: var(--text-main);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: -0.015em;
  transition: border-color 0.3s var(--ease-premium), color 0.3s var(--ease-premium);
  user-select: none;
}

.origin-btn-fill {
  position: absolute;
  border-radius: 50%;
  background: var(--text-main);
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
  z-index: 1;
}

.origin-btn-text {
  position: relative;
  z-index: 2;
  transition: color 0.3s var(--ease-premium);
}

/* Hover and active states */
.origin-btn:hover {
  border-color: var(--text-main);
  color: var(--bg-obsidian) !important;
}

.origin-btn:hover .origin-btn-text {
  color: var(--bg-obsidian) !important;
}

.origin-btn:hover .origin-btn-fill {
  transform: translate(-50%, -50%) scale(1);
}

/* Light mode specifics for Origin Button text readability */
body.light-mode .origin-btn:hover .origin-btn-text {
  color: #ffffff !important;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

/* Mobile Nav Toggle */
.menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  cursor: pointer;
  z-index: 200;
}

/* Responsive navigation adjustments */
@media (max-width: 991px) {
  nav {
    display: none;
  }
  .menu-btn {
    display: block;
  }
  .nav-right .btn {
    display: none;
  }
}

/* Mobile overlay drawer style */
.mobile-nav-active nav {
  display: block;
}

.mobile-nav-active nav ul {
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0;
  background: var(--bg-obsidian);
  z-index: 150;
  padding: 8rem 2rem;
  gap: 2rem;
  animation: slideIn 0.3s var(--ease-premium);
}

.mobile-nav-active nav ul li a {
  font-size: 1.5rem;
  font-family: var(--font-display);
  font-weight: 700;
}

@keyframes slideIn {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

/* --- BUTTONS & BADGES --- */
.btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.75rem 1.5rem;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  text-decoration: none;
  transition: all 0.3s var(--ease-premium);
  position: relative;
}

.btn-primary {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
}

.btn-primary:hover {
  background: transparent;
  color: #ffffff;
}

.btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-glow {
  background: #ffffff;
  color: #000000;
  border: 1px solid #ffffff;
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.08);
}

.btn-glow:hover {
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.2);
}

.badge-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0;
  border: none;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 1.5rem;
  background: transparent;
}

/* --- HERO SECTION --- */
.hero-obsidian {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: calc(var(--header-height) + 1.8rem) 2rem 2.5rem;
  position: relative;
  z-index: 10;
  background: transparent;
}

.hero-obsidian h1 {
  font-size: clamp(2.6rem, 6.8vw, 4.9rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  max-width: 920px;
  line-height: 1.15;
}

.hero-obsidian p.lead-luxury {
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  max-width: 720px;
  margin-bottom: 2.75rem;
  color: var(--text-body);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}

@media(max-width: 580px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  .hero-actions .btn {
    width: 100%;
  }
}

/* --- SEQUENTIAL PRODUCT SHOWCASE FLOW (V3) --- */
.showcase-text-col h2 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  margin-bottom: 1.5rem;
}

.showcase-features-list {
  list-style: none;
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.showcase-feature-item {
  display: flex;
  gap: 1rem;
}

.feature-item-icon {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.8rem;
  margin-top: 0.2rem;
}

.feature-item-content h4 {
  font-size: 1.05rem;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.feature-item-content p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Visual panels framing */
.showcase-visual-col {
  width: 100%;
  position: relative;
}

.visual-panel-wrapper {
  background: rgba(9, 9, 11, 0.7);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  width: 100%;
  height: 380px;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  position: relative;
  /* Premium dot-grid editor background */
  background-image: radial-gradient(rgba(249, 115, 22, 0.05) 1px, transparent 1px);
  background-size: 20px 20px;
  
  /* Force dark-mode variables inside panel wrapper to guarantee text contrast in light mode */
  --text-main: #ffffff;
  --text-body: #e4e4e7;
  --text-muted: #a1a1aa;
  --border-color: rgba(255, 255, 255, 0.08);
}

/* SVG APIs connections map */
.stage-grid-map {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 50%, rgba(249, 115, 22, 0.06), transparent 70%);
}

.svg-connectors {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.connector-line {
  stroke: rgba(255, 255, 255, 0.04);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
  fill: none;
}

.connector-line-active {
  stroke: rgba(249, 115, 22, 0.6);
  stroke-width: 2;
  stroke-dasharray: 6 4;
  animation: flowDashes 18s linear infinite;
  fill: none;
  filter: drop-shadow(0 0 6px #f97316);
}

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

.integration-node {
  position: absolute;
  padding: 0.65rem 1.1rem;
  background: rgba(13, 13, 17, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: 10;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  letter-spacing: 0.03em;
}

.integration-node:hover {
  transform: translateY(-2px);
  background: rgba(20, 20, 25, 0.95);
}

.integration-node svg {
  width: 15px;
  height: 15px;
}

/* Color-coded neon node borders and glows */
.node-left-1 { 
  top: 20%; left: 8%; 
  border-color: rgba(239, 68, 68, 0.25); /* Gmail Red */
  box-shadow: 0 8px 24px rgba(239, 68, 68, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.node-left-1 svg { color: #ef4444; }

.node-left-2 { 
  bottom: 20%; left: 8%; 
  border-color: rgba(99, 102, 241, 0.25); /* Stripe Indigo */
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.node-left-2 svg { color: #6366f1; }

.node-right-1 { 
  top: 20%; right: 8%; 
  border-color: rgba(249, 115, 22, 0.25); /* HubSpot Orange */
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.node-right-1 svg { color: #f97316; }

.node-right-2 { 
  bottom: 20%; right: 8%; 
  border-color: rgba(34, 197, 94, 0.25); /* Slack Green */
  box-shadow: 0 8px 24px rgba(34, 197, 94, 0.05), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.node-right-2 svg { color: #22c55e; }

.node-center {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 1.5px solid rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.03);
  padding: 0.85rem 1.6rem;
  box-shadow: 0 0 25px rgba(249, 115, 22, 0.15), inset 0 0 15px rgba(249, 115, 22, 0.05);
  font-family: 'Syncopate', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  color: #ffffff;
}

.node-center:hover {
  transform: translate(-50%, -52%);
  box-shadow: 0 0 35px rgba(249, 115, 22, 0.25), inset 0 0 15px rgba(249, 115, 22, 0.1);
  border-color: rgba(249, 115, 22, 0.7);
}

/* AI Qualification Console */
.stage-ai-console {
  display: grid;
  grid-template-columns: 210px 1fr;
  height: 100%;
  background: #09090b;
}

@media(max-width: 580px) {
  .stage-ai-console {
    grid-template-columns: 1fr;
  }
}

.ai-console-sidebar {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ai-console-sidebar .mono-label {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.58rem;
  letter-spacing: 0.15em;
  margin-bottom: 0.5rem;
}

.sidebar-item {
  font-size: 0.78rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sidebar-item::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.sidebar-item.active {
  color: #ffffff;
  background: rgba(249, 115, 22, 0.05);
  border-color: rgba(249, 115, 22, 0.15);
}

.sidebar-item.active::before {
  background: #f97316;
  box-shadow: 0 0 8px #f97316;
  animation: pulse 1.5s infinite;
}

.ai-console-main {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  background: #060608;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  line-height: 1.6;
  justify-content: flex-start;
  position: relative;
}

.ai-console-main::after {
  content: "";
  position: absolute;
  bottom: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at 100% 100%, rgba(249, 115, 22, 0.05), transparent 70%);
  pointer-events: none;
}

.ai-user-prompt {
  color: #a1a1aa;
  margin-bottom: 1.25rem;
  border-left: 2px solid #f97316;
  padding-left: 0.75rem;
  font-size: 0.8rem;
}

.ai-assistant-response {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1.25rem;
  border-radius: 8px;
  min-height: 180px;
  color: #e4e4e7;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8);
}

.cursor-blink {
  display: inline-block;
  width: 6px;
  height: 14px;
  background: #f97316;
  margin-left: 3px;
  animation: blink 0.8s infinite;
  box-shadow: 0 0 8px #f97316;
}

@keyframes blink { 50% { opacity: 0; } }

/* Supervision Metric Control */
.stage-control-panel {
  padding: 1.75rem;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 1.5rem;
  height: 100%;
  align-items: center;
  background: #09090b;
}

@media(max-width: 580px) {
  .stage-control-panel {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

.cp-metric-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.cp-metric-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
}

.cp-metric-card:nth-child(2)::before {
  background: #f97316;
}

.cp-metric-val {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 800;
  margin-top: 0.3rem;
  letter-spacing: -0.01em;
}

.cp-right-status {
  background: #060608;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  height: 290px;
  justify-content: flex-start;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.8);
}

.status-dot-active {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
  margin-right: 0.5rem;
}

.logs-stream {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  height: 130px;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* --- FULLSCREEN WORKSPACE SIMULATOR (SANDBOX) --- */
#sandbox {
  padding-top: 3.5rem;
  padding-bottom: 2rem;
}

#sandbox .section-title-wrapper {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 1.75rem;
}

#sandbox .section-title-wrapper h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.section-title-wrapper {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 4rem;
}

.section-title-wrapper h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

.sandbox-widescreen {
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 30px 60px var(--card-shadow-color);
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 440px;
  overflow: hidden;
}

@media(max-width: 900px) {
  .sandbox-widescreen {
    grid-template-columns: 1fr;
  }
}

.sandbox-nav-sidebar {
  background: rgba(0, 0, 0, 0.4);
  border-right: 1px solid var(--border-color);
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media(max-width: 900px) {
  .sandbox-nav-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    flex-direction: row;
    overflow-x: auto;
    padding: 1rem;
  }
}

.sandbox-option {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  text-align: left;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-body);
}

@media(max-width: 900px) {
  .sandbox-option {
    padding: 0.6rem 1rem;
    flex-shrink: 0;
  }
}

.sandbox-option:hover {
  background: var(--card-hover-bg);
}

.sandbox-option.active {
  background: var(--card-hover-bg);
  border-color: var(--card-hover-border);
  color: var(--text-main);
}

.sandbox-option-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-body);
}

.sandbox-option.active .sandbox-option-icon {
  color: var(--text-main);
}

.sandbox-option-details h4 {
  font-size: 0.9rem;
  font-weight: 600;
  font-family: var(--font-body);
}

.sandbox-workspace {
  padding: 1.75rem 2rem;
  background: transparent;
  display: flex;
  flex-direction: column;
}

@media(max-width: 580px) {
  .sandbox-workspace {
    padding: 1.25rem;
  }
}

.sandbox-tab-content {
  display: none;
  flex-grow: 1;
}

.sandbox-tab-content.active {
  display: flex;
  flex-direction: column;
}

.sandbox-form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-bottom: 1.15rem;
}

@media(max-width: 580px) {
  .sandbox-form-row {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}

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

.form-group label {
  font-size: 0.72rem;
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
}

.form-group input, .form-group select {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.65rem 0.85rem;
  border-radius: 4px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.88rem;
  transition: all 0.3s ease;
}

.form-group input:focus, .form-group select:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
}

.sandbox-actions {
  margin-top: 0.75rem;
}

/* Logs and DB simulations V3 styling */
.sandbox-execution-panel {
  margin-top: 1.25rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  overflow: hidden;
}

.exec-header {
  background: rgba(255, 255, 255, 0.01);
  padding: 0.5rem 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.exec-body {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  min-height: 90px;
  max-height: 155px;
  overflow-y: auto;
  color: var(--text-body);
  white-space: pre-wrap;
  word-break: break-all;
}

.exec-line {
  margin-bottom: 0.4rem;
}

.crm-simulation {
  margin-top: 2rem;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 1.25rem;
}

.crm-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.crm-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

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

@media(max-width: 580px) {
  .crm-row {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
}

.crm-col {
  background: rgba(255, 255, 255, 0.01);
  border: 1px dashed rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 0.75rem;
  min-height: 100px;
}

.crm-col-header {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.crm-card {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  padding: 0.6rem;
  font-size: 0.75rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
}

.crm-card h5 {
  font-size: 0.8rem;
  margin-bottom: 0.2rem;
}

.crm-card-detail {
  color: var(--text-muted);
}

/* --- DIAGNOSTIC TERMINAL --- */
#terminal {
  padding-top: 3.5rem;
  padding-bottom: 2rem;
}

#terminal .section-title-wrapper {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 1.75rem;
}

#terminal .section-title-wrapper h2 {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  margin-bottom: 0.5rem;
}

.terminal-immersive-frame {
  width: 100%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  box-shadow: 0 40px 100px var(--card-shadow-color);
  overflow: hidden;
  min-height: 400px;
  display: flex;
  flex-direction: column;
}

.terminal-header-classic {
  height: 42px;
  background: rgba(255, 255, 255, 0.01);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  justify-content: space-between;
}

.terminal-viewport {
  padding: 1.75rem 2.25rem;
  flex-grow: 1;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  line-height: 1.7;
}

@media(max-width: 580px) {
  .terminal-viewport {
    padding: 1.25rem;
  }
}

.terminal-input-prompt {
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.terminal-step {
  display: none;
}

.terminal-step.active {
  display: block;
}

.terminal-options-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

@media(max-width: 580px) {
  .terminal-options-grid {
    grid-template-columns: 1fr;
  }
}

.terminal-btn {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  color: var(--text-body);
  padding: 1rem;
  font-family: var(--font-mono);
  text-align: left;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.terminal-btn:hover {
  background: var(--card-hover-bg);
  border-color: var(--card-hover-border);
  color: var(--text-main);
}

.terminal-number-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 1.4rem;
  width: 100%;
  max-width: 280px;
  padding: 0.4rem 0;
  margin-bottom: 1.5rem;
}

.terminal-number-input:focus {
  outline: none;
  border-bottom-color: var(--text-main);
}

.terminal-nav {
  margin-top: 1.25rem;
  display: flex;
  gap: 1rem;
}

.terminal-result-block {
  border: 1px dashed rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.01);
  border-radius: 6px;
  padding: 1rem;
  margin-bottom: 1rem;
}

.result-metric {
  font-weight: 700;
  color: #fff;
}

/* --- STRATEGIC PACKAGES (V4) --- */
#pricing {
  padding-top: 2.5rem;
  padding-bottom: 1.5rem;
}

#pricing .section-title-wrapper {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 1.15rem;
}

#pricing .section-title-wrapper h2 {
  font-size: clamp(1.8rem, 4vw, 2.3rem);
  margin-bottom: 0.35rem;
}

#pricing .section-title-wrapper p {
  font-size: 0.85rem;
  max-width: 640px;
  line-height: 1.45;
}

.pricing-strategic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 1.25rem;
  width: 100%;
  align-items: stretch;
}

@media(max-width: 1100px) {
  .pricing-strategic-grid {
    gap: 1.15rem;
  }
}

@media(max-width: 991px) {
  .pricing-strategic-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 2rem auto 0;
    gap: 2rem;
  }
  
  .pricing-strategic-card.dominant {
    transform: none !important;
  }
}

.pricing-strategic-card {
  display: flex;
  flex-direction: column;
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  padding: 1.25rem 1.45rem;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 10px 30px -15px var(--card-shadow-color);
}

.pricing-strategic-card:hover {
  transform: translateY(-5px);
  background: var(--card-hover-bg);
  border-color: var(--card-hover-border);
  box-shadow: 0 15px 40px -10px var(--card-shadow-color);
}

/* Dominant Plan */
.pricing-strategic-card.dominant {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(249, 115, 22, 0.3);
  box-shadow: 0 15px 45px -10px rgba(249, 115, 22, 0.12), inset 0 0 15px rgba(249, 115, 22, 0.02);
  transform: scale(1.03);
  z-index: 2;
}

.pricing-strategic-card.dominant:hover {
  transform: scale(1.05) translateY(-3px);
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 20px 50px -5px rgba(249, 115, 22, 0.22);
}

.dominant-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.35rem 1rem;
  border-radius: 50px;
  letter-spacing: 0.06em;
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.35);
}

.card-header-block {
  margin-bottom: 1rem;
}

.package-meta {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
  display: block;
}

.pricing-strategic-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}

.package-problem {
  font-size: 0.76rem;
  color: var(--text-body);
  line-height: 1.35;
}

.price-display-block {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.85rem;
}

.price-val {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.price-type {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* Outcome Pill */
.outcome-pill {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.65rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 4px;
  font-size: 0.72rem;
  color: var(--text-main);
  margin-bottom: 0.85rem;
}

.dominant-pill {
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #000 !important;
  border: none;
}

.outcome-icon {
  font-size: 0.9rem;
}

.package-impact-desc {
  font-size: 0.76rem;
  color: var(--text-body);
  line-height: 1.4;
  margin-bottom: 0.85rem;
}

.pricing-features-minimal {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.pricing-features-minimal li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.76rem;
  color: var(--text-body);
  line-height: 1.35;
}

.pricing-features-minimal li svg {
  color: #facc15;
  flex-shrink: 0;
  margin-top: 2px;
}

.pricing-strategic-card.dominant .pricing-features-minimal li svg {
  color: #27c93f;
}

.btn-glow {
  box-shadow: 0 4px 15px rgba(249, 115, 22, 0.15);
}
.btn-glow:hover {
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.35);
}

/* --- FOOTER --- */
footer.obsidian-footer {
  border-top: 1px solid var(--border-color);
  padding: 6rem 3rem 3rem;
  position: relative;
  z-index: 10;
}

@media(max-width: 768px) {
  footer.obsidian-footer {
    padding: 4rem 1.5rem 2rem;
  }
}

.footer-obsidian-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 4rem;
  max-width: 1400px;
  margin: 0 auto;
}

@media(max-width: 900px) {
  .footer-obsidian-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

.footer-identity {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-identity p {
  font-size: 0.9rem;
  max-width: 320px;
}

.footer-column h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.footer-column ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-column ul li a {
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.3s ease;
}

.footer-column ul li a:hover {
  color: #fff;
}

.footer-obsidian-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border-color);
  margin: 5rem auto 0;
  padding-top: 2rem;
  max-width: 1400px;
}

@media(max-width: 580px) {
  .footer-obsidian-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* --- SCROLL REVEAL (STABLE) --- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-premium), 
              transform 0.8s var(--ease-premium);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* --- INTRO SCREEN OVERLAY --- */
#intro-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: #000000;
  z-index: 99999;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), 
              visibility 1s cubic-bezier(0.16, 1, 0.3, 1);
}

#intro-overlay.fade-out {
  opacity: 0;
  visibility: hidden;
}

#intro-canvas {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.intro-content {
  position: relative;
  z-index: 10;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 600px;
  padding: 2rem;
}

.intro-title {
  font-size: clamp(3rem, 8vw, 5.5rem);
  font-family: var(--font-display);
  letter-spacing: 0.15em;
  margin: 0;
  font-weight: 800;
  background: linear-gradient(135deg, #ffffff 40%, #f97316 75%, #facc15 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: introPulse 3s infinite ease-in-out;
}

.intro-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  color: var(--text-body);
  letter-spacing: 0.05em;
  font-weight: 400;
  margin-bottom: 1.5rem;
}

@keyframes introPulse {
  0%, 100% { opacity: 0.95; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.02); }
}

#btn-enter {
  cursor: pointer;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  outline: none;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  opacity: 0.8;
  padding: 1.5rem 3rem;
}

#btn-enter:hover {
  opacity: 1;
  letter-spacing: 0.42em;
  text-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
}

#btn-enter:active {
  transform: scale(0.98);
}

/* --- PREMIUM STAR BUTTON STYLING --- */
.btn.star-button-enabled {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  height: 44px;
  padding: 0 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 50px;
  background: #000000;
  border: none;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  text-decoration: none;
  cursor: pointer;
  outline: none;
}

.btn.star-button-enabled::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(249, 115, 22, 0.05); /* Orange hue base shadow */
  z-index: -1;
  opacity: 0.15;
  transition: opacity 0.3s ease;
}

.star-button-light {
  position: absolute;
  aspect-ratio: 1 / 1;
  width: 110px;
  background: radial-gradient(circle at center, #ffffff 10%, rgba(245, 158, 11, 0.8) 40%, transparent 70%); /* White-gold core light */
  offset-path: var(--path);
  offset-distance: 0%;
  animation: star-btn-anim 3s linear infinite;
  pointer-events: none;
  z-index: 1;
}

@keyframes star-btn-anim {
  0% {
    offset-distance: 0%;
  }
  100% {
    offset-distance: 100%;
  }
}

.star-button-border {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  border: 1.5px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  color: #000000; /* Solid black button background mask */
  display: flex;
  align-items: center;
  justify-content: center;
}

.star-button-border svg {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  object-fit: cover;
  opacity: 1;
}

.star-button-text {
  z-index: 10;
  position: relative;
  background: linear-gradient(to top, #ffffff 40%, #d4d4d8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  transition: all 0.3s ease;
}

.star-button-text svg {
  -webkit-text-fill-color: initial;
  color: #ffffff;
  opacity: 0.9;
  transition: color 0.3s ease;
}

/* Hover effects */
.btn.star-button-enabled:hover {
  background: rgba(15, 15, 18, 0.8);
  box-shadow: 0 8px 30px rgba(249, 115, 22, 0.15); /* Orange glowing drop shadow */
  transform: translateY(-1.5px);
}

.btn.star-button-enabled:hover::before {
  opacity: 0.3;
}

.btn.star-button-enabled:hover .star-button-text {
  background: linear-gradient(to top, #ffffff 0%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.btn.star-button-enabled:active {
  transform: translateY(0);
}

/* --- INFINITE LOGO CLOUD --- */
.logo-cloud-container {
  margin-top: 3.25rem;
  width: 100%;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  overflow: hidden;
  opacity: 0.85;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.logo-cloud-container:hover {
  opacity: 0.9;
}

.logo-cloud-title {
  margin-bottom: 1.85rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  text-align: center;
}

.logo-cloud-title .title-line-1 {
  font-family: var(--font-display);
  font-size: 1.62rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.logo-cloud-title .title-line-2 {
  font-family: var(--font-display);
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

/* Mobile responsive sizing */
@media (max-width: 768px) {
  .logo-cloud-title .title-line-1 {
    font-size: 1.25rem;
  }
  .logo-cloud-title .title-line-2 {
    font-size: 1.65rem;
  }
}

.logo-cloud-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.75rem 0;
  display: flex;
  -webkit-mask-image: linear-gradient(to right, transparent, #000000 18%, #000000 82%, transparent);
  mask-image: linear-gradient(to right, transparent, #000000 18%, #000000 82%, transparent);
}

.logo-cloud-track {
  display: flex;
  align-items: center;
  gap: 3.5rem;
  width: max-content;
  animation: logo-scroll-loop 24s linear infinite;
}

.logo-cloud-slider:hover .logo-cloud-track {
  animation-play-state: paused;
}

.logo-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text-main);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.04em;
  white-space: nowrap;
  opacity: 0.9;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.logo-item:hover {
  color: var(--primary);
  opacity: 1;
}

.logo-item svg {
  width: 25px;
  height: 25px;
  fill: currentColor;
  transition: transform 0.3s ease;
}

.logo-item:hover svg {
  transform: scale(1.1);
}

@keyframes logo-scroll-loop {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* --- HIGH-TECH BROWSER MOCKUP & SHELL HEADERS --- */
.mockup-header {
  height: 38px;
  background: rgba(255, 255, 255, 0.015);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1rem;
}

.mockup-dots {
  display: flex;
  gap: 0.35rem;
  align-items: center;
}

.mockup-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  opacity: 0.75;
}
.mockup-dot:nth-child(1) { background: #ff5f56; } /* Mac Close red */
.mockup-dot:nth-child(2) { background: #ffbd2e; } /* Mac Minimize yellow */
.mockup-dot:nth-child(3) { background: #27c93f; } /* Mac Zoom green */

.mockup-url-bar {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 0.25rem 2rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 320px;
  width: 100%;
  margin: 0 auto;
  letter-spacing: 0.02em;
}

.mockup-url-bar svg {
  color: #27c93f; /* Lock icon glowing green */
  opacity: 0.85;
}

.mockup-url-bar span {
  opacity: 0.75;
}

.terminal-shell-path {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 0.25rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  letter-spacing: 0.02em;
}

.terminal-shell-path svg {
  color: var(--secondary);
  opacity: 0.8;
}

/* --- THEME TOGGLE STYLING --- */
.theme-toggle {
  display: inline-flex;
  width: 60px;
  height: 30px;
  padding: 3px;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  background-color: #020204;
  border: 1px solid #1c1917;
  user-select: none;
  align-self: center;
  margin-right: 1.25rem;
}

.theme-toggle .toggle-track {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  position: relative;
}

.theme-toggle .toggle-node {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle .active-node {
  background-color: #1c1917;
  transform: translateX(0);
}

.theme-toggle .inactive-node {
  background-color: transparent;
}

/* Icon states based on dark / light theme */
.theme-toggle .icon-sun,
.theme-toggle .icon-moon-dim {
  display: none;
}

.theme-toggle .icon-moon {
  color: #facc15; /* Glowing gold star/moon theme */
}

.theme-toggle .icon-sun-dim {
  color: #57534e;
}

/* Light mode overrides for elements */
body.light-mode .theme-toggle {
  background-color: #ffffff;
  border-color: #e4e4e7;
}

body.light-mode .theme-toggle .active-node {
  background-color: #e4e4e7;
  transform: translateX(30px);
}

body.light-mode .theme-toggle .inactive-node {
  transform: translateX(-30px);
}

body.light-mode .theme-toggle .icon-moon,
body.light-mode .theme-toggle .icon-sun-dim {
  display: none;
}

body.light-mode .theme-toggle .icon-sun {
  display: flex;
  color: #f97316; /* Glowing orange sun theme */
}

body.light-mode .theme-toggle .icon-moon-dim {
  display: flex;
  color: #71717a;
}

/* Body and canvas properties in light mode */
body.light-mode #particle-canvas {
  filter: invert(1) opacity(0.06);
}

body.light-mode .nav-glow-link {
  --card-color: #ffffff;
  --text-color: var(--text-muted);
}

/* Light mode specific background visual grids */
body.light-mode .terminal-immersive-frame,
body.light-mode .sandbox-widescreen {
  background: var(--glass-bg);
  box-shadow: 0 20px 60px var(--card-shadow-color);
}

body.light-mode .terminal-header-classic {
  background: rgba(0, 0, 0, 0.02);
}

body.light-mode .sandbox-sidebar {
  background: rgba(0, 0, 0, 0.015);
  border-right-color: var(--border-color);
}

body.light-mode .lead-luxury {
  color: #3f3f46;
}

body.light-mode .gradient-title {
  background: linear-gradient(135deg, #09090b 20%, #f97316 75%, #facc15 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

body.light-mode .btn-secondary {
  color: var(--text-main);
  border-color: rgba(9, 9, 11, 0.15);
}

body.light-mode .btn-secondary:hover {
  border-color: rgba(9, 9, 11, 0.4);
  color: var(--text-main);
}

body.light-mode .btn-glow {
  background: #09090b;
  color: #ffffff;
  border-color: #09090b;
}

body.light-mode .btn-glow:hover {
  background: transparent;
  color: #09090b;
}

body.light-mode header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  border-bottom-color: rgba(9, 9, 11, 0.08);
}

body.light-mode .nav-glow-link .glow-content {
  color: var(--text-main);
}

body.light-mode .nav-glow-link:hover .glow-content {
  mix-blend-mode: normal;
  color: #000000 !important;
}

body.light-mode .package-meta-dominant {
  color: #ea580c;
}

/* Specific light mode styling overrides for terminal diagnostic simulator */
body.light-mode .terminal-input-prompt {
  color: #000000 !important;
  font-weight: 600;
}

body.light-mode .terminal-number-input {
  color: #000000 !important;
  border-bottom-color: rgba(9, 9, 11, 0.25) !important;
}

body.light-mode .terminal-number-input::placeholder {
  color: #52525b !important;
  opacity: 0.9 !important;
  font-weight: 500;
}

body.light-mode .terminal-shell-path {
  color: #27272a !important;
  background: rgba(9, 9, 11, 0.04) !important;
  border-color: rgba(9, 9, 11, 0.12) !important;
}

body.light-mode .terminal-shell-path span {
  color: #09090b !important;
  font-weight: 600;
}

body.light-mode .result-metric {
  color: #000000 !important;
}

body.light-mode #res-report-content {
  color: #09090b !important;
}

body.light-mode #res-report-content h3,
body.light-mode #res-report-content h4,
body.light-mode #res-report-content strong {
  color: #000000 !important;
}

body.light-mode #res-report-content p,
body.light-mode #res-report-content li {
  color: #27272a !important;
}

/* --- CONTACT MODAL STYLING --- */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-premium);
}

.contact-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.contact-modal-container {
  /* Dark theme colors mapping (Base UI specification) */
  --ic-background: #111111;
  --ic-foreground: #f6f3ec;
  --ic-primary: #f6f3ec;
  --ic-secondary: #cbc6bb;
  --ic-surface-border: #2a2a25;
  --ic-border: #2b2a25;
  --ic-card: #111111;
  --ic-card-foreground: #f6f3ec;
  --ic-muted: #171716;
  --ic-muted-foreground: #9a958a;
  --ic-accent: #1a1a18;
  --ic-accent-foreground: #f6f3ec;
  --ic-input: #2b2a25;
  --ic-ring: rgba(246,243,236,0.18);
  --ic-destructive: #f87171;
  --ic-paper: #171716;
  --ic-popover-foreground: #f6f3ec;
  --ic-brand: #f97316; /* Map base-ui brand color to brand orange */
  --ic-brand-soft: rgba(249, 115, 22, 0.15);
  --ic-shadow-soft: 0 20px 44px -28px rgba(0,0,0,0.6);

  background: var(--ic-card);
  border: 1px solid var(--ic-border);
  border-radius: 12px;
  width: 100%;
  max-width: 480px;
  padding: 2.25rem 2rem;
  position: relative;
  box-shadow: var(--ic-shadow-soft);
  transform: translateY(20px);
  transition: transform 0.4s var(--ease-premium);
  color: var(--ic-foreground);
}

body.light-mode .contact-modal-container {
  /* Light theme colors mapping (Base UI specification) */
  --ic-background: #ffffff;
  --ic-foreground: #111111;
  --ic-primary: #111111;
  --ic-secondary: #646b75;
  --ic-surface-border: #e9edf2;
  --ic-border: #e3e7ec;
  --ic-card: #ffffff;
  --ic-card-foreground: #111111;
  --ic-muted: #f5f7fa;
  --ic-muted-foreground: #6d7480;
  --ic-accent: #f3f5f8;
  --ic-accent-foreground: #111111;
  --ic-input: #e3e7ec;
  --ic-ring: rgba(17,17,17,0.16);
  --ic-destructive: #dc2626;
  --ic-paper: #fcfcfd;
  --ic-popover-foreground: #111111;
  --ic-brand: #f97316;
  --ic-brand-soft: rgba(249, 115, 22, 0.15);
  --ic-shadow-soft: 0 18px 38px -24px rgba(15,23,42,0.35);
}

.contact-modal-overlay.active .contact-modal-container {
  transform: translateY(0);
}

.contact-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--ic-muted-foreground);
  cursor: pointer;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-modal-close:hover {
  color: var(--ic-foreground);
}

.contact-modal-header {
  margin-bottom: 1.75rem;
}

.contact-modal-header h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--ic-foreground);
}

.contact-modal-header p {
  font-size: 0.8rem;
  color: var(--ic-muted-foreground);
  line-height: 1.5;
}

/* Form layouts */
.contact-form-fields {
  display: flex !important;
  flex-direction: column !important;
  gap: 1.25rem !important;
  width: 100% !important;
  margin-top: 1.5rem;
}

.form-group {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.45rem !important;
  width: 100% !important;
  margin-bottom: 0.5rem;
}

.form-group label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ic-muted-foreground);
  text-align: left;
}

.form-group input,
.form-group textarea {
  background: var(--ic-paper);
  border: 1px solid var(--ic-input);
  border-radius: 6px;
  padding: 0.75rem;
  color: var(--ic-foreground);
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--ic-brand);
  background: var(--ic-background);
  box-shadow: 0 0 0 2px var(--ic-ring);
}

/* Success view */
.contact-success-state {
  text-align: center;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.success-icon-wrapper {
  margin-bottom: 1.25rem;
  animation: scaleUp 0.5s var(--ease-premium);
}

.contact-success-state h4 {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: var(--ic-foreground);
}

.contact-success-state p {
  font-size: 0.85rem;
  color: var(--ic-muted-foreground);
  line-height: 1.5;
}

@keyframes scaleUp {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
