/* --- DESIGN TOKENS --- 
   The core palette and aesthetic variables for the Ethical Compass "Native OS" design system.
*/
:root {
  --color-midnight: #05070a; /* Darker, more premium black */
  --color-deep-blue: #0a0f1a;
  --color-electric-blue: #3b82f6; /* More refined blue */
  --color-electric-blue-glow: rgba(59, 130, 246, 0.2);
  --color-ubuntu-orange: #e95420; /* Humanistic / Ubuntu Orange */
  --color-ubuntu-orange-glow: rgba(233, 84, 32, 0.2);
  --color-border: rgba(255, 255, 255, 0.05);
  --color-border-bright: rgba(255, 255, 255, 0.1);
  --color-text-bright: #ffffff;
  --color-text-muted: #64748b;
  --font-main: 'Inter', system-ui, -apple-system, sans-serif;
  --radius-sm: 4px; /* Sharper corners for elegance */
  --radius-md: 8px;
  --transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);

  /* Gradient Aesthetics */
  --gradient-primary: linear-gradient(90deg, var(--color-electric-blue), var(--color-ubuntu-orange));
  --gradient-subtle: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(233, 84, 32, 0.1));
  --gradient-border: linear-gradient(to right, var(--color-electric-blue), var(--color-ubuntu-orange));
  --gradient-text: linear-gradient(to right, var(--color-electric-blue), var(--color-ubuntu-orange));

  /* Feedback Colors */
  --color-positive: #10b981; /* Premium Green */
  --color-negative: #ef4444; /* Premium Red */
}

/* --- THEME OVERRIDES --- 
   Light mode support via .light-mode class. 
*/
body.light-mode {
  --color-midnight: #fcfcfc; /* Elegant Off-White */
  --color-deep-blue: #f8f9fa;
  --color-text-bright: #05070a;
  --color-text-muted: #475569;
  --color-border: rgba(0, 0, 0, 0.05);
  --color-border-bright: rgba(0, 0, 0, 0.1);
  --color-electric-blue-glow: rgba(59, 130, 246, 0.1);
  --color-ubuntu-orange-glow: rgba(233, 84, 32, 0.1);
  --gradient-subtle: linear-gradient(135deg, rgba(59, 130, 246, 0.05), rgba(233, 84, 32, 0.05));
}

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

/* --- RESET & CORE STYLES --- */
body {
  background-color: var(--color-midnight);
  color: var(--color-text-bright);
  font-family: var(--font-main);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color 0.5s ease, color 0.5s ease;
}

/* --- TYPOGRAPHY REFINEMENT --- 
   Focus on weight 300-500 for a consultancy-grade, institutional feel.
*/
h1, h2, h3, h4 {
  font-weight: 500; /* Lighter weight for elegance */
  letter-spacing: -0.03em;
  color: var(--color-text-bright);
}

h1 { 
  font-size: clamp(2.5rem, 8vw, 4rem); 
  line-height: 1.1; 
}
h2 { 
  font-size: clamp(1.8rem, 5vw, 2.5rem); 
}
h4 { font-size: 1.1rem; color: var(--color-text-bright); }

p {
  font-weight: 300;
  color: var(--color-text-muted);
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-transform: none !important;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.accent-text { color: var(--color-electric-blue); }
.orange-text { color: var(--color-ubuntu-orange); }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem 2rem;
}

.header-badges {
  display: flex; 
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.hero-title {
  max-width: 800px;
}

.hero-subtitle {
  margin-top: 2rem; 
  max-width: 600px;
  font-size: 1.1rem;
}

/* Elegant Section Titles */
.section-title {
  margin-bottom: 5rem;
  max-width: 600px;
}



.section-title h2 {
  margin-bottom: 1rem;
}

.section-title p {
  font-size: 1.1rem;
}

/* --- BLUEPRINT / DIAGRAM CARDS --- 
   Glassmorphic containers with responsive hover interactions.
*/
.diagram-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 3rem;
  position: relative;
  transition: var(--transition);
  background: transparent;
  background-clip: padding-box;
}

.diagram-card:hover {
  border-color: transparent;
  background: radial-gradient(circle at top left, rgba(255,255,255,0.02), transparent);
}

.diagram-card::before,
.matrix-item::before,
.pricing-card::before {
  /**
   * Native OS Border Trick: 
   * Uses -webkit-mask to create a gradient border that only appears on the edge.
   * This prevents background-clip: border-box from bleeding through.
   */
  content: '';
  position: absolute;
  top: -1px; left: -1px; right: -1px; bottom: -1px;
  border-radius: inherit;
  padding: 1.5px; /* Slightly thicker to prevent rounding issues */
  background: var(--gradient-border);
  z-index: 10;
  -webkit-mask: 
     linear-gradient(#fff 0 0) content-box, 
     linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
}

.diagram-card:hover::before,
.matrix-item:hover::before,
.pricing-card:hover::before {
  opacity: 1;
}

body:not(.light-mode) .diagram-card:hover {
  background: radial-gradient(circle at top left, rgba(255,255,255,0.03), transparent);
}

/* --- SVG DIAGRAM UTILITIES --- 
   Styles for interactive SVG components and path animations.
*/
.svg-diagram {
  width: 100%;
  height: auto;
  overflow: visible;
}

.connector-active {
  stroke: var(--color-electric-blue);
  stroke-dasharray: 4 4;
  fill: none;
  animation: dash 20s linear infinite;
  filter: drop-shadow(0 0 5px var(--color-electric-blue-glow));
}

/* Static connector line representing institutional pathways */
.connector {
  stroke: var(--color-border);
  stroke-width: 1px;
  fill: none;
}

.node {
  fill: var(--color-electric-blue);
  stroke: var(--color-electric-blue-glow);
  stroke-width: 1px;
  transition: var(--transition);
}

.node-active {
  stroke: var(--color-electric-blue);
  fill: var(--color-electric-blue);
  animation: nodePulse 2s ease-in-out infinite;
}

/* Pulse effect for active nodes in the governance loop */
@keyframes nodePulse {
  0% { r: 10; opacity: 1; }
  50% { r: 12; opacity: 0.7; }
  100% { r: 10; opacity: 1; }
}

.svg-text {
  fill: var(--color-text-bright);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

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

/* Hero Diagram Specifics */
.hero-diagram-container {
  position: relative;
  height: clamp(300px, 50vh, 500px);
  margin-top: 4rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* --- COMPARISON TABLE REFINEMENT --- 
   Zebra-striped table with institutional typography and custom checkmarks.
*/
.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: 2rem;
}

.elegant-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 600px;
  background: transparent;
}

.elegant-table thead tr {
  background: var(--color-bg-alt);
}

.elegant-table th {
  text-align: left;
  padding: 1.5rem;
  border-bottom: 2px solid var(--color-border-bright);
  font-weight: 500;
  color: var(--color-text-bright);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.elegant-table th:not(:last-child) {
  border-right: 1px solid var(--color-border);
}

.elegant-table tbody tr {
  transition: background 0.3s ease;
}

.elegant-table tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}

.elegant-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.04);
}

.elegant-table td {
  padding: 1.5rem;
  border-bottom: 1px solid var(--color-border);
  font-weight: 300;
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.elegant-table td:not(:last-child) {
  border-right: 1px solid var(--color-border);
}

.precision-check {
  position: relative;
  color: var(--color-text-bright) !important;
  font-weight: 500 !important;
}

.precision-check::before {
  content: "✓";
  font-family: 'Cursive', cursive, serif;
  margin-right: 0.75rem;
  color: var(--color-electric-blue);
  font-size: 1.2rem;
  font-weight: 700;
  display: inline-block;
  transform: rotate(-5deg);
}

.orange-check {
  position: relative;
  color: var(--color-text-bright) !important;
  font-weight: 500 !important;
}

.orange-check::before {
  content: "✓";
  font-family: 'Cursive', cursive, serif;
  margin-right: 0.75rem;
  color: var(--color-ubuntu-orange);
  font-size: 1.2rem;
  font-weight: 700;
  display: inline-block;
  transform: rotate(-5deg);
}

/* --- MATRIX STYLES --- 
   Grid-based capability display with subtle hover states.
*/
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.matrix-item {
  background-color: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  position: relative;
  transition: var(--transition);
  background-clip: padding-box;
}

body.light-mode .matrix-item {
  background-color: rgba(0, 0, 0, 0.02);
}

.matrix-item:hover {
  background: var(--gradient-subtle);
}

.matrix-item-desc {
  margin-top: 1rem;
}

/* Badge Styles */
.elegant-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid var(--color-electric-blue);
  color: var(--color-electric-blue);
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.orange-badge {
  border-color: var(--color-ubuntu-orange); 
  color: var(--color-ubuntu-orange);
}

.blue-badge {
  border-color: var(--color-electric-blue);
  color: var(--color-electric-blue);
}

/* --- CALCULATOR STYLES --- 
   Analytical tool for estimating failure prevention ROI.
*/
.calculator-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

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

.input-group label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  display: flex;
  justify-content: space-between;
}

.input-group label span {
  color: var(--color-text-bright);
  font-weight: 500;
}

input[type="range"] {
  width: 100%;
  -webkit-appearance: none;
  background: var(--color-border);
  height: 2px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: var(--color-electric-blue);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px var(--color-electric-blue-glow);
}

input[type="range"]::-moz-range-thumb {
  width: 12px;
  height: 12px;
  background: var(--color-electric-blue);
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 10px var(--color-electric-blue-glow);
}

.calc-results {
  background: transparent;
  border: 1px solid var(--color-border-bright);
  padding: 3rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.roi-value {
  font-size: 4rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 1rem 0;
}

.result-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  text-transform: none;
}

/* Ecosystem Grid */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.card-desc {
  margin-top: 1rem;
  font-size: 0.875rem;
}

.orange-glow {
  border-color: var(--color-ubuntu-orange-glow);
}

/* Sector List Styles */
.sector-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

.sector-item {
  display: flex;
  gap: 1.5rem;
  align-items: flex-start;
}

.sector-bullet {
  width: 8px;
  height: 8px;
  background: var(--color-electric-blue);
  margin-top: 0.5rem;
  flex-shrink: 0;
}

.orange-bullet {
  background: var(--color-ubuntu-orange);
}

/* Governance Layout */
.governance-layout {
  display: flex; 
  justify-content: space-between; 
  align-items: flex-start; 
  gap: 4rem;
}

.governance-diagram {
  flex: 1;
}

.governance-info {
  flex: 1;
  padding-top: 2rem;
}

.info-item {
  margin-bottom: 2rem;
}

.info-item h4 {
  margin-bottom: 0.5rem;
}

/* Personnel Grid */
.personnel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}

.person-name {
  font-size: 1.5rem;
  margin-bottom: 0.25rem;
}

.person-title-electric {
  color: var(--color-electric-blue);
  font-weight: 500;
  font-size: 0.875rem;
}

.person-title-orange {
  color: var(--color-ubuntu-orange);
  font-weight: 500;
  font-size: 0.875rem;
}

/* --- PRICING SECTION STYLES --- 
   Service tier display with institutional focus and highlighting.
*/
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  align-items: stretch;
}

.pricing-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 3rem;
  background: transparent;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  background: var(--color-midnight);
  background-clip: padding-box;
}

.pricing-card:hover {
  transform: translateY(-5px);
}

.pricing-card.highlighted {
  border-color: transparent;
}

.pricing-card.highlighted::before {
  opacity: 1;
}

/* Removed explicit white text color to revert to theme defaults */

.pricing-header h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.pricing-header p {
  font-size: 0.875rem;
  margin-bottom: 2rem;
}

.pricing-price {
  margin-bottom: 2.5rem;
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.pricing-price .currency {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text-bright);
}

.pricing-price .amount {
  font-size: 3.5rem;
  font-weight: 700;
  color: var(--color-text-bright);
}

.pricing-price .period {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

/* Impact Section Styles */
.impact-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.impact-content {
  display: flex;
  flex-direction: column;
}

.testimonial {
  position: relative;
  padding-top: 2rem;
}

.quote-icon {
  width: 2.5rem;
  height: 2.5rem;
  color: var(--color-ubuntu-orange);
  opacity: 0.2;
  margin-bottom: 1rem;
}

.quote-text {
  font-size: 1.25rem;
  font-style: italic;
  line-height: 1.6;
  color: var(--color-text-bright);
  margin-bottom: 2rem;
  font-weight: 300;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.author-avatar img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: 2px solid var(--color-border-bright);
}

.author-name {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-text-bright);
}

.author-role {
  font-size: 0.875rem;
  color: var(--color-text-muted);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--color-border);
}

.stat-item {
  padding: 3rem;
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text-bright);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-arrow {
  color: var(--color-ubuntu-orange);
  font-size: 1.5rem;
}

.stat-desc {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* --- FAQ STYLES --- 
   Accordion-based interaction for institutional knowledge base.
*/
.faq-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
}

.faq-accordions {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-trigger {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.5rem 0;
  color: var(--color-text-bright);
  font-family: var(--font-main);
  font-size: 1.125rem;
  font-weight: 500;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: var(--transition);
}

.faq-trigger svg {
  width: 1.25rem;
  height: 1.25rem;
  transition: transform 0.3s ease;
}

.faq-trigger.active {
  color: var(--color-ubuntu-orange);
}

.faq-trigger.active svg {
  transform: rotate(180deg);
}

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.faq-content.active {
  max-height: 1000px;
  opacity: 1;
  padding-bottom: 2rem;
}

.faq-content p {
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.faq-content ul {
  list-style: none;
  padding: 0;
}

.faq-content li {
  margin-bottom: 1rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.faq-content li strong {
  color: var(--color-text-bright);
}

/* --- FORENSIC IMPACT BLOCK --- 
   Consolidated section for expert testimonials and operational indices.
*/
.institutional-impact-block {
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
}

.testimonial-lead {
  margin-top: 2rem;
  padding: 2rem;
  border-left: 2px solid var(--color-ubuntu-orange);
  background: rgba(255, 98, 0, 0.03);
}

.quote-icon-small {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--color-ubuntu-orange);
  margin-bottom: 1rem;
}

.quote-text-small {
  font-size: 1.125rem;
  font-style: italic;
  color: var(--color-text-bright);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.author-info-small {
  font-size: 0.875rem;
}

.author-name {
  font-weight: 700;
  color: var(--color-text-bright);
}

.author-role {
  color: var(--color-text-muted);
}

/* By the Numbers Styles */
.numbers-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  align-items: flex-start;
}

.number-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  position: relative;
}

.number-item.featured .number-value {
  font-size: 4rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.number-item.featured::after {
  content: '';
  position: absolute;
  right: -1rem;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: var(--color-border);
}

.number-value {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-text-bright);
  display: flex;
  align-items: flex-end;
  gap: 0.25rem;
  height: 4.5rem; /* Consistent height to align descriptions */
}

.number-arrow {
  font-size: 1.5rem;
}

.number-arrow.up {
  color: var(--color-positive);
}

.number-arrow.down {
  color: var(--color-negative);
}

.number-label {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Testimonial Section */
.testimonial-section {
  max-width: 800px;
  margin: 0 auto;
}

/* Bio Accordion Styles */
.bio-accordion {
  margin-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
}

.bio-trigger {
  background: none;
  border: none;
  color: var(--color-electric-blue);
  font-family: var(--font-main);
  font-size: 0.875rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  padding: 0;
  transition: var(--transition);
}

.bio-trigger svg {
  width: 1rem;
  height: 1rem;
  transition: transform 0.3s ease;
}

.bio-trigger.active svg {
  transform: rotate(180deg);
}

.bio-trigger:hover {
  color: var(--color-ubuntu-orange);
}

.bio-content {
  max-height: 0;
  overflow: hidden;
  transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
}

.bio-content.active {
  max-height: 500px;
  opacity: 1;
  margin-top: 1rem;
}

.bio-content p {
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  color: var(--color-text-muted);
}

.pricing-features {
  list-style: none;
  padding: 0;
  margin: 0 0 3rem 0;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  font-weight: 300;
}

.pricing-features li svg {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--color-electric-blue);
}

.pricing-card.highlighted .pricing-features li svg {
  color: white;
}

.pricing-btn {
  width: 100%;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--color-border-bright);
  color: var(--color-text-bright);
  font-family: var(--font-main);
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border-radius: var(--radius-md);
}

.pricing-btn:hover {
  background: var(--color-border-bright);
  border-color: var(--color-electric-blue);
}

.pricing-btn.highlighted-btn {
  background: var(--color-electric-blue);
  border: 1px solid var(--color-electric-blue);
  color: white;
}

.pricing-btn.highlighted-btn:hover {
  background: transparent;
  color: var(--color-electric-blue);
}

.best-value {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: white;
}

/* Lens Sandbox Styles */
.sandbox-container {
  border: 1px solid var(--color-border);
  padding: 4rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
  background: transparent;
}

.sandbox-lenses {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.lens-toggle {
  background: transparent;
  border: 1px solid var(--color-border-bright);
  padding: 1rem 2rem;
  color: var(--color-text-muted);
  font-family: var(--font-main);
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.875rem;
}

.lens-toggle.active {
  border-color: var(--color-electric-blue);
  color: var(--color-electric-blue);
  box-shadow: 0 0 20px var(--color-electric-blue-glow);
}

.sandbox-stream {
  height: 120px;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.stream-node {
  position: absolute;
  width: 20px;
  height: 1px;
  background: var(--color-border);
  transition: all 0.3s ease;
}

.stream-node.risk {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--color-border-bright);
}

.stream-node.active-risk {
  background: var(--color-electric-blue);
  box-shadow: 0 0 15px var(--color-electric-blue);
}

.stream-node.ubuntu-risk {
  background: var(--color-ubuntu-orange);
  box-shadow: 0 0 15px var(--color-ubuntu-orange);
}

.risk-label {
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  white-space: normal;
  text-align: center;
  width: 120px;
  color: var(--color-text-bright);
  opacity: 0;
  transition: all 0.3s ease;
  pointer-events: none;
}

.stream-node.active .risk-label {
  opacity: 1;
  top: -30px;
}

/* Mode Toggle */
.mode-toggle {
  position: fixed;
  top: 2rem;
  right: 2rem;
  width: 2.5rem;
  height: 2.5rem;
  background: transparent;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  cursor: pointer;
  z-index: 1000;
  transition: var(--transition);
  padding: 0;
}

.mode-toggle svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: currentColor;
}

.mode-toggle:hover {
  color: var(--color-electric-blue);
}

/* Footer Styles */
.footer-layout {
  border-top: 1px solid var(--color-border);
  padding-top: 4rem;
  padding-bottom: 4rem;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
}

.card-logs {
  margin-top: 1.5rem;
  height: 80px;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid var(--color-border);
  padding: 0.75rem 0;
  font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
  font-size: 0.65rem;
  color: var(--color-text-muted);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  mask-image: linear-gradient(to bottom, transparent, black 30%);
}

.log-entry {
  margin-bottom: 0.2rem;
  animation: logSlide 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  white-space: nowrap;
}

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

body.light-mode .card-logs {
  background: transparent;
  border-color: var(--color-border);
  color: #475569;
}

.footer-contact {
  text-align: right;
}

.footer-contact a:hover {
  color: var(--color-electric-blue) !important;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .container {
    padding: 4rem 2rem;
  }
  
  .ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .governance-layout {
    gap: 2rem;
  }
}

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

  section {
    margin-top: 5rem !important;
  }

  .section-title {
    margin-bottom: 3rem;
  }

  .matrix-grid {
    grid-template-columns: 1fr;
  }

  .ecosystem-grid {
    grid-template-columns: 1fr;
  }

  .sector-list {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .governance-layout {
    flex-direction: column;
    gap: 3rem;
  }

  .governance-info {
    padding-top: 0;
  }

  .personnel-grid {
    grid-template-columns: 1fr;
  }

  .calculator-container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .sandbox-container {
    padding: 2rem;
  }

  .sandbox-lenses {
    flex-direction: column;
    gap: 1rem;
  }

  .lens-toggle {
    width: 100%;
  }

  .hero-subtitle {
    margin-top: 1.5rem;
  }

  .mode-toggle {
    top: 1rem;
    right: 1.5rem;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    padding: 2.5rem 1.5rem;
  }

  .pricing-price .amount {
    font-size: 3rem;
  }

  .faq-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .numbers-row {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
  }

  .number-item.featured::after {
    display: none;
  }

  .elegant-table {
    min-width: 100%;
  }

  .table-container {
    margin: 0 -1.5rem;
    width: calc(100% + 3rem);
    padding: 0 1.5rem;
  }

  .footer-layout {
    flex-direction: column;
    text-align: left;
    gap: 2rem;
  }

  .footer-contact {
    text-align: left;
  }
}

/* Side Navigation (Scroll-Spy) */
.side-nav {
  position: fixed;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.nav-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--color-border);
  z-index: -1;
}

.nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.nav-dot {
  width: 8px;
  height: 8px;
  background: var(--color-border-bright);
  border-radius: 50%;
  display: block;
  position: relative;
  transition: var(--transition);
  cursor: pointer;
}

.nav-dot:hover {
  background: var(--color-electric-blue);
  transform: scale(1.2);
}

.nav-dot.active {
  background: var(--color-electric-blue);
  box-shadow: 0 0 10px var(--color-electric-blue-glow);
  transform: scale(1.5);
}

.nav-label {
  position: absolute;
  right: 2rem;
  top: 50%;
  transform: translateY(-50%) translateX(10px);
  background: var(--color-deep-blue);
  border: 1px solid var(--color-border);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-sm);
  color: var(--color-text-bright);
  font-size: 0.75rem;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
}

.nav-dot:hover .nav-label {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

@media (max-width: 768px) {
  .side-nav {
    display: none;
  }
}
