/* ==========================================================================
   MENA.ME — Section Styles
   Products | Comparison | Pricing
   Dark brutalist. Sharp edges. Outcome-native.
   ========================================================================== */

/* ==========================================================================
   PRODUCTS SECTION
   ========================================================================== */

.products {
  padding-block: var(--space-2xl);
  position: relative;
  overflow: hidden;
}

/* Subtle grid lines background */
.products::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, var(--surface-border) 1px, transparent 1px),
    linear-gradient(var(--surface-border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.15;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 80% 50% at 50% 50%, black 0%, transparent 70%);
}

.products h2 {
  margin-bottom: var(--space-lg);
  position: relative;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
}

/* Product Card — Stark, brutalist */
.products .product-card {
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  transition:
    transform 0.4s var(--ease-out-expo),
    border-color 0.3s ease,
    box-shadow 0.4s var(--ease-out-expo);
}

.products .product-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px var(--accent),
    0 0 40px var(--accent-muted);
}

/* Icon Area — Stark symbols */
.product-card__icon {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border-bottom: 1px solid var(--surface-border);
  font-size: 3rem;
  color: var(--text-muted);
  transition:
    background 0.3s ease,
    color 0.3s ease;
  position: relative;
  overflow: hidden;
}

/* Icon glow on hover */
.product-card__icon::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--accent-muted) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.products .product-card:hover .product-card__icon {
  background: var(--surface-elevated);
  color: var(--accent);
}

.products .product-card:hover .product-card__icon::after {
  opacity: 1;
}

/* Product Content */
.product-card__content {
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* Product Name with TM */
.product-card__name {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-xs);
  line-height: 1.2;
}

.product-card__name .tm {
  font-size: 0.5em;
  vertical-align: super;
  font-weight: 400;
  color: var(--text-secondary);
  margin-left: 0.1em;
}

/* Tagline */
.product-card__tagline {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: var(--space-sm);
}

/* Description (if present) */
.product-card__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: auto;
}

/* Quote */
.product-card__quote {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 0.9375rem;
  color: var(--accent);
  padding-top: var(--space-sm);
  border-top: 1px solid var(--surface-border);
  margin-top: var(--space-md);
}

/* Learn More Link */
.product-card__link {
  display: inline-flex;
  align-items: center;
  gap: 0.75em;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  padding-top: var(--space-md);
  margin-top: auto;
  transition:
    color 0.2s ease,
    gap 0.3s var(--ease-out-expo);
  position: relative;
}

.product-card__link::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.3s var(--ease-out-expo);
}

.product-card__link::after {
  content: '→';
  display: inline-block;
  transition: transform 0.3s var(--ease-out-expo);
}

.products .product-card:hover .product-card__link {
  color: var(--accent);
  gap: 1em;
}

.products .product-card:hover .product-card__link::before {
  width: 100%;
}

.products .product-card:hover .product-card__link::after {
  transform: translateX(4px);
}


/* ==========================================================================
   COMPARISON SECTION
   ========================================================================== */

.comparison {
  padding-block: var(--space-2xl);
  background: var(--surface);
  position: relative;
}

.comparison h2 {
  margin-bottom: var(--space-sm);
}

/* Section intro */
.comparison__intro {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-lg);
}

/* Table Container */
.comparison__table-wrap {
  position: relative;
  overflow-x: auto;
  margin-inline: calc(var(--container-padding) * -1);
  padding-inline: var(--container-padding);
}

/* The Table */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  min-width: 600px;
}

/* VS Divider column */
.comparison-table .col-vs {
  width: 60px;
  text-align: center;
}

/* Header */
.comparison-table thead {
  position: sticky;
  top: 0;
  z-index: 10;
}

.comparison-table thead tr {
  background: var(--surface);
}

.comparison-table th {
  padding: 1.5rem 1.25rem;
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  border-bottom: 2px solid var(--surface-border);
}

/* Traditional XaaS column header — muted, feels old */
.comparison-table th:first-child {
  color: var(--text-muted);
  background: var(--surface);
}

/* VS header */
.comparison-table th.col-vs {
  color: var(--text-muted);
  font-size: 0.625rem;
  padding-inline: 0.5rem;
}

/* MENA column header — accent, alive */
.comparison-table th:last-child {
  color: var(--accent);
  background: linear-gradient(90deg, transparent 0%, var(--accent-muted) 100%);
  position: relative;
}

.comparison-table th:last-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
}

/* Table Body */
.comparison-table td {
  padding: 1.25rem;
  border-bottom: 1px solid var(--surface-border);
  vertical-align: middle;
  transition: background 0.2s ease;
}

/* Traditional XaaS cells — muted, feels old */
.comparison-table td:first-child {
  color: var(--text-secondary);
  font-weight: 400;
  position: relative;
}

/* Strikethrough effect for old way */
.comparison-table td:first-child::after {
  content: '';
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  top: 50%;
  height: 1px;
  background: var(--text-muted);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out-expo);
  opacity: 0.5;
}

.comparison-table tr:hover td:first-child::after {
  transform: scaleX(1);
}

/* VS column */
.comparison-table td.col-vs {
  text-align: center;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  padding-inline: 0.5rem;
  position: relative;
}

.comparison-table td.col-vs::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--surface-border) 30%,
    var(--surface-border) 70%,
    transparent 100%
  );
}

/* MENA column — accent, alive */
.comparison-table td:last-child {
  color: var(--accent);
  font-weight: 600;
  background: var(--accent-muted);
  position: relative;
}

.comparison-table td:last-child::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--accent);
}

/* Alternating rows — subtle */
.comparison-table tbody tr:nth-child(odd) td:first-child,
.comparison-table tbody tr:nth-child(odd) td.col-vs {
  background: rgba(255, 255, 255, 0.01);
}

.comparison-table tbody tr:nth-child(odd) td:last-child {
  background: rgba(255, 61, 0, 0.08);
}

/* Row hover */
.comparison-table tbody tr:hover td:first-child,
.comparison-table tbody tr:hover td.col-vs {
  background: rgba(255, 255, 255, 0.03);
}

.comparison-table tbody tr:hover td:last-child {
  background: rgba(255, 61, 0, 0.15);
}

/* Snark line */
.comparison-snark {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: var(--space-lg);
  padding-left: var(--space-md);
  border-left: 2px solid var(--accent);
  font-style: italic;
}


/* ==========================================================================
   PRICING SECTION
   ========================================================================== */

.pricing {
  padding-block: var(--space-2xl);
  background: var(--surface-elevated);
  position: relative;
}

/* Glow accent behind */
.pricing::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--accent-muted) 0%, transparent 60%);
  opacity: 0.3;
  pointer-events: none;
}

.pricing h2 {
  margin-bottom: var(--space-md);
  position: relative;
}

/* Philosophy Card */
.pricing-card {
  max-width: 800px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--surface-border);
  position: relative;
  overflow: hidden;
}

/* Accent border top */
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
}

/* Accent border left */
.pricing-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
}

.pricing-card__content {
  padding: var(--space-lg);
}

/* Headline — NO SUBSCRIPTIONS */
.pricing-headline {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: var(--space-md);
}

/* Model list */
.pricing-model {
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
  padding-left: var(--space-md);
  border-left: 1px solid var(--surface-border);
}

.pricing-model li {
  position: relative;
  padding-left: 1.5em;
}

.pricing-model li::before {
  content: '//';
  position: absolute;
  left: 0;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.75em;
}

/* Example box */
.pricing-example {
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  padding: var(--space-md);
  margin-bottom: var(--space-lg);
  position: relative;
}

.pricing-example::before {
  content: 'Example';
  position: absolute;
  top: 0;
  left: var(--space-md);
  transform: translateY(-50%);
  background: var(--surface);
  padding: 0.25em 0.75em;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.pricing-example p {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--accent);
  line-height: 1.6;
}

.pricing-example strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Quote */
.pricing-quote {
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
  position: relative;
  padding-left: var(--space-md);
}

.pricing-quote::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}

/* Subtext */
.pricing-subtext {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: var(--space-sm);
  padding-left: var(--space-md);
}


/* ==========================================================================
   REVEAL INTEGRATION
   ========================================================================== */

/* Products grid items stagger */
.products-grid.reveal-group .product-card {
  opacity: 0;
  transform: translateY(40px);
  transition:
    opacity 0.6s var(--ease-out-expo),
    transform 0.6s var(--ease-out-expo);
}

.products-grid.reveal-group .product-card:nth-child(1) { transition-delay: 0ms; }
.products-grid.reveal-group .product-card:nth-child(2) { transition-delay: 100ms; }
.products-grid.reveal-group .product-card:nth-child(3) { transition-delay: 200ms; }

.products-grid.reveal-group.revealed .product-card {
  opacity: 1;
  transform: translateY(0);
}

/* Comparison table rows stagger */
.comparison-table.reveal tbody tr {
  opacity: 0;
  transform: translateX(-20px);
  transition:
    opacity 0.4s var(--ease-out-expo),
    transform 0.4s var(--ease-out-expo);
}

.comparison-table.reveal tbody tr:nth-child(1) { transition-delay: 0ms; }
.comparison-table.reveal tbody tr:nth-child(2) { transition-delay: 50ms; }
.comparison-table.reveal tbody tr:nth-child(3) { transition-delay: 100ms; }
.comparison-table.reveal tbody tr:nth-child(4) { transition-delay: 150ms; }
.comparison-table.reveal tbody tr:nth-child(5) { transition-delay: 200ms; }
.comparison-table.reveal tbody tr:nth-child(6) { transition-delay: 250ms; }

.comparison-table.reveal.revealed tbody tr {
  opacity: 1;
  transform: translateX(0);
}

/* Pricing card reveal */
.pricing-card.reveal {
  opacity: 0;
  transform: scale(0.98);
  transition:
    opacity 0.6s var(--ease-out-expo),
    transform 0.6s var(--ease-out-expo);
}

.pricing-card.reveal.revealed {
  opacity: 1;
  transform: scale(1);
}


/* ==========================================================================
   RESPONSIVE ADJUSTMENTS
   ========================================================================== */

@media (max-width: 768px) {
  /* Comparison table mobile */
  .comparison-table th,
  .comparison-table td {
    padding: 1rem 0.75rem;
    font-size: 0.875rem;
  }

  .comparison-table th.col-vs,
  .comparison-table td.col-vs {
    display: none;
  }

  /* Pricing card mobile */
  .pricing-card__content {
    padding: var(--space-md);
  }

  .pricing-model {
    padding-left: var(--space-sm);
  }
}


/* ==========================================================================
   DEMO SECTION — Scroll-Snap Narrative
   ========================================================================== */

.demo {
  padding: 0;
  position: relative;
}

.demo-intro {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--space-xl) var(--container-padding);
  max-width: var(--container-max);
  margin: 0 auto;
}

.demo-intro h2 {
  font-size: clamp(2.5rem, 6vw, 5rem);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-md);
  font-weight: 800;
}

.demo-scenario {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 55ch;
  line-height: 1.7;
}

.demo-scenario strong {
  color: var(--accent);
  font-weight: 600;
}

/* Demo Scenes Container */
.demo-scenes {
  position: relative;
}

/* Individual Scene */
.scene {
  min-height: 80vh;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  padding: var(--space-xl) var(--container-padding);
  max-width: var(--container-max);
  margin: 0 auto;
  position: relative;
}

/* Scene Number */
.scene-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.2em;
  margin-bottom: var(--space-md);
}

/* Scene Header */
.scene-header {
  margin-bottom: var(--space-lg);
}

/* Scene Title */
.scene-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--text-primary);
}

/* Scene Body */
.scene-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Scene Description */
.scene-description {
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 60ch;
}

/* Scene Visual Area */
.scene-visual {
  padding: var(--space-lg);
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  position: relative;
  overflow: hidden;
}

/* Scene Line (Quote) */
.scene-line {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  color: var(--text-primary);
  font-style: italic;
  margin-top: auto;
  padding-top: var(--space-lg);
  padding-left: var(--space-md);
  border-left: 3px solid var(--accent);
  line-height: 1.5;
  max-width: 50ch;
}

/* ==========================================================================
   SCENE 1: Outcome Brief — Input Constraints
   ========================================================================== */

.outcome-constraints {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.constraint {
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--surface-border);
  transition: border-color 0.3s var(--ease-out-expo);
}

.constraint:hover {
  border-color: var(--text-muted);
}

.constraint-label {
  color: var(--text-muted);
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  min-width: 100px;
  flex-shrink: 0;
}

.constraint-value {
  color: var(--text-primary);
}

.constraint-value.highlight {
  color: var(--accent);
  font-weight: 600;
}

.constraint-value.success {
  color: var(--success);
}

/* ==========================================================================
   SCENE 2: DAG Visualization
   ========================================================================== */

.dag-visualization {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.dag-flow {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  align-items: center;
}

.dag-node {
  padding: var(--space-sm) var(--space-md);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
  position: relative;
  transition: all 0.3s var(--ease-out-expo);
}

.dag-node:hover,
.dag-node.active {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 30px var(--accent-muted);
}

.dag-arrow {
  color: var(--text-muted);
  font-family: var(--font-mono);
  padding: 0 var(--space-xs);
}

.dag-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--surface-border);
}

.dag-meta-item {
  font-size: 0.8rem;
}

.dag-meta-label {
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: var(--space-xs);
}

.dag-meta-value {
  color: var(--text-secondary);
}

.dag-meta-value.warning {
  color: var(--warning);
}

/* ==========================================================================
   SCENE 3: Connectors
   ========================================================================== */

.connectors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--space-md);
}

.connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  transition: all 0.3s var(--ease-out-expo);
}

.connector.connected {
  border-color: var(--success);
}

.connector:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
}

.connector-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: var(--text-muted);
  border: 1px solid var(--surface-border);
  background: var(--surface-elevated);
  transition: all 0.3s var(--ease-out-expo);
}

.connector.connected .connector-icon {
  color: var(--success);
  border-color: var(--success);
}

.connector-name {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  text-align: center;
}

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

/* ==========================================================================
   SCENE 4: Early Findings
   ========================================================================== */

.findings-display {
  text-align: left;
}

.findings-stat {
  font-size: clamp(5rem, 12vw, 10rem);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.05em;
  line-height: 0.9;
  margin-bottom: var(--space-xs);
  text-shadow: 0 0 80px var(--accent-muted);
}

.findings-label {
  font-size: clamp(1rem, 2vw, 1.5rem);
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-family: var(--font-mono);
  margin-bottom: var(--space-lg);
}

.evidence-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-md);
  background: var(--success-muted);
  border: 1px solid var(--success);
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.evidence-badge::before {
  content: '✓';
  font-weight: bold;
}

/* ==========================================================================
   SCENE 5: Autonomous Playbooks
   ========================================================================== */

.playbook-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.playbook-item {
  display: grid;
  grid-template-columns: 8px 1fr auto auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  font-size: 0.9rem;
  transition: all 0.3s var(--ease-out-expo);
}

.playbook-item:hover {
  border-color: var(--text-muted);
  transform: translateX(4px);
}

.playbook-status {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 12px var(--success);
  animation: pulse 2s var(--ease-in-out-circ) infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.2); }
}

.playbook-action {
  color: var(--text-primary);
}

.playbook-confidence {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--success);
  padding: 0.25em 0.5em;
  background: var(--success-muted);
}

.playbook-value {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  font-weight: 600;
}

/* ==========================================================================
   SCENE 6: Human Approval
   ========================================================================== */

.approval-ui {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 600px;
}

.approval-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  flex-wrap: wrap;
}

.approval-action {
  color: var(--text-secondary);
  flex: 1;
  min-width: 200px;
}

.approval-buttons {
  display: flex;
  gap: var(--space-sm);
}

.btn-approve,
.btn-reject {
  padding: var(--space-xs) var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  border: 1px solid;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s var(--ease-out-expo);
}

.btn-approve {
  border-color: var(--success);
  color: var(--success);
}

.btn-approve:hover {
  background: var(--success);
  color: var(--surface);
}

.btn-reject {
  border-color: var(--text-muted);
  color: var(--text-muted);
}

.btn-reject:hover {
  border-color: var(--error);
  color: var(--error);
}

.approved-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-xs) var(--space-sm);
  background: var(--success-muted);
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   SCENE 7: Self-Optimization
   ========================================================================== */

.optimization-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
}

@media (max-width: 768px) {
  .optimization-comparison {
    grid-template-columns: 1fr;
  }
}

.optimization-card {
  padding: var(--space-lg);
  border: 1px solid var(--surface-border);
  position: relative;
}

.optimization-card.legacy {
  background: rgba(255, 51, 51, 0.03);
  border-color: rgba(255, 51, 51, 0.3);
}

.optimization-card.mena {
  background: rgba(0, 255, 136, 0.03);
  border-color: var(--success);
}

.optimization-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-bottom: var(--space-md);
}

.optimization-value {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  margin-bottom: var(--space-sm);
  letter-spacing: -0.03em;
}

.legacy .optimization-value {
  color: var(--error);
  text-decoration: line-through;
  text-decoration-color: var(--error);
}

.mena .optimization-value {
  color: var(--success);
}

.optimization-detail {
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.5;
}

.kill-saas-callout {
  margin-top: var(--space-lg);
  padding: var(--space-md);
  background: var(--accent-muted);
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.kill-saas-callout strong {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.kill-saas-callout span {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* ==========================================================================
   SCENE 8: Outcome Ledger
   ========================================================================== */

.ledger-display {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.ledger-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: var(--space-md);
}

.ledger-item {
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--surface-border);
}

.ledger-value {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--text-primary);
  font-family: var(--font-mono);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.02em;
}

.ledger-value.positive {
  color: var(--success);
}

.ledger-value.muted {
  color: var(--text-secondary);
}

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

.roi-hero {
  display: flex;
  align-items: baseline;
  justify-content: center;
  padding: var(--space-xl);
  background: linear-gradient(135deg, var(--accent-muted) 0%, transparent 60%);
  border: 2px solid var(--accent);
  position: relative;
  overflow: hidden;
}

.roi-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 50%, var(--accent-muted) 0%, transparent 50%);
  pointer-events: none;
}

.roi-value {
  font-size: clamp(6rem, 18vw, 14rem);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.06em;
  line-height: 0.85;
  text-shadow: 0 0 100px var(--accent-muted);
  position: relative;
}

.roi-suffix {
  font-size: 0.3em;
  color: var(--text-secondary);
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-left: 0.1em;
}


/* ==========================================================================
   MANIFESTO SECTION
   ========================================================================== */

.manifesto {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  position: relative;
  overflow: hidden;
  padding: var(--space-xl) var(--container-padding);
}

/* Subtle radial gradient behind */
.manifesto::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  transform: translate(-50%, -50%);
  background: radial-gradient(ellipse 60% 40% at 50% 50%, rgba(255, 61, 0, 0.03) 0%, transparent 70%);
  pointer-events: none;
}

.manifesto .container {
  text-align: center;
  max-width: 900px;
  position: relative;
}

.manifesto h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4em;
  color: var(--text-muted);
  margin-bottom: var(--space-xl);
  font-family: var(--font-mono);
  font-weight: 400;
}

.manifesto-lines {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

.manifesto-line {
  font-size: clamp(1.25rem, 3vw, 2rem);
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.manifesto-close {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.02em;
  text-shadow: 0 0 60px var(--accent-muted);
}


/* ==========================================================================
   CTA SECTION
   ========================================================================== */

.cta,
.cta-section {
  position: relative;
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-xl) var(--container-padding);
  overflow: hidden;
}

/* Light fiber tunnel background */
.cta::before,
.cta-section::before {
  content: '';
  position: absolute;
  inset: -50%;
  background: url('/images/power-core.gif') center center no-repeat;
  background-size: cover;
  opacity: 0.6;
  z-index: -1;
  animation: pulse-bg 4s ease-in-out infinite;
}

@keyframes pulse-bg {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 0.7; transform: scale(1.05); }
}

/* Dark overlay to keep text readable */
.cta::after,
.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, transparent 0%, rgba(10, 10, 11, 0.8) 70%);
  z-index: -1;
}

.cta .container,
.cta-section .container {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.cta-headline {
  font-size: clamp(1.75rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: var(--space-lg);
  color: var(--text-primary);
}

/* INTENSE glowing START button */
#launch-configurator,
.cta-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 20px 60px;
  font-size: 1.25rem;
  background: linear-gradient(135deg, #ff3d00 0%, #ff6b35 100%);
  border: 2px solid #ff3d00;
  border-radius: 8px;
  color: white;
  font-family: var(--font-mono);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-shadow:
    0 0 20px rgba(255, 61, 0, 0.5),
    0 0 40px rgba(255, 61, 0, 0.3),
    inset 0 0 20px rgba(255, 255, 255, 0.1);
}

#launch-configurator:hover,
.cta-button:hover {
  transform: scale(1.05);
  box-shadow:
    0 0 30px rgba(255, 61, 0, 0.7),
    0 0 60px rgba(255, 61, 0, 0.5),
    0 0 100px rgba(255, 61, 0, 0.3),
    inset 0 0 30px rgba(255, 255, 255, 0.2);
  border-color: #ff6b35;
}

/* Animated border glow */
#launch-configurator::before,
.cta-button::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 10px;
  background: linear-gradient(45deg, #ff3d00, #ff6b35, #ffaa00, #ff6b35, #ff3d00);
  background-size: 400% 400%;
  z-index: -1;
  animation: border-glow 3s ease infinite;
  opacity: 0.8;
}

@keyframes border-glow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

#launch-configurator:active,
.cta-button:active {
  transform: scale(1.02);
}

/* Power-up state when near bottom */
#launch-configurator.is-powered,
.cta-button.is-powered {
  animation: power-pulse 1s ease-in-out infinite;
}

#launch-configurator.is-powered::before,
.cta-button.is-powered::before {
  animation: border-glow 1s ease infinite;
  opacity: 1;
}

@keyframes power-pulse {
  0%, 100% {
    transform: scale(1);
    box-shadow:
      0 0 30px rgba(255, 61, 0, 0.7),
      0 0 60px rgba(255, 61, 0, 0.5),
      0 0 100px rgba(255, 61, 0, 0.3);
  }
  50% {
    transform: scale(1.02);
    box-shadow:
      0 0 50px rgba(255, 61, 0, 0.9),
      0 0 100px rgba(255, 61, 0, 0.7),
      0 0 150px rgba(255, 61, 0, 0.5);
  }
}

.cta-subtext {
  margin-top: var(--space-lg);
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
  letter-spacing: 0.02em;
}


/* ==========================================================================
   DEMO SECTION REVEAL ANIMATIONS
   ========================================================================== */

.scene.reveal {
  opacity: 0;
}

.scene.reveal .scene-header,
.scene.reveal .scene-body,
.scene.reveal .scene-line {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

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

.scene.reveal.revealed .scene-body {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 150ms;
}

.scene.reveal.revealed .scene-line {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 300ms;
}

.scene.reveal.revealed {
  opacity: 1;
}


/* ==========================================================================
   RESPONSIVE — DEMO & MANIFESTO
   ========================================================================== */

@media (max-width: 768px) {
  .scene {
    padding: var(--space-lg) var(--space-md);
  }

  .dag-flow {
    flex-direction: column;
    align-items: flex-start;
  }

  .dag-arrow {
    transform: rotate(90deg);
    padding: var(--space-xs) 0;
  }

  .playbook-item {
    grid-template-columns: 8px 1fr;
    gap: var(--space-sm);
  }

  .playbook-confidence,
  .playbook-value {
    grid-column: 2;
  }

  .roi-hero {
    flex-direction: column;
    text-align: center;
    padding: var(--space-lg);
  }

  .roi-suffix {
    margin-left: 0;
    display: block;
    font-size: 0.4em;
    margin-top: var(--space-sm);
  }

  .approval-item {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-sm);
  }

  .approval-action {
    min-width: auto;
  }
}


/* ==========================================================================
   HEADER
   Fixed, minimal, brutalist.
   ========================================================================== */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  transition: color 0.2s var(--ease-out-expo);
}

.logo:hover {
  color: var(--accent);
}


/* ==========================================================================
   HERO SECTION
   Full viewport. Canvas behind. Commanding presence.
   ========================================================================== */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  background: var(--surface);
}

#asg-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-top: 64px; /* Account for fixed header */
}

.hero-text {
  max-width: 900px;
}

.hero-line {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-hero);
  line-height: 0.9;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.hero-line--accent {
  color: var(--accent);
  text-shadow: 0 0 80px var(--accent-muted);
}

.tagline {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  margin-top: var(--space-sm);
  max-width: 50ch;
}

/* Primary button variant for hero */
.btn--primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75em;
  padding: 1em 2em;
  margin-top: var(--space-lg);
  background: var(--accent);
  color: var(--surface);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s var(--ease-out-expo),
    box-shadow 0.3s var(--ease-out-expo);
}

.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transform: translateX(-100%);
  transition: transform 0.5s var(--ease-out-expo);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow:
    0 0 0 1px var(--accent),
    0 20px 40px -10px var(--accent-muted),
    0 0 60px var(--accent-muted);
}

.btn--primary:hover::before {
  transform: translateX(100%);
}

.btn--primary:active {
  transform: translateY(0);
}

/* Scroll indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: var(--space-lg);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
  z-index: 1;
}

.scroll-text {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
  animation: scrollPulse 2s var(--ease-in-out-circ) infinite;
}

@keyframes scrollPulse {
  0%, 100% {
    opacity: 1;
    transform: scaleY(1);
  }
  50% {
    opacity: 0.5;
    transform: scaleY(0.6);
  }
}


/* ==========================================================================
   THESIS SECTION
   Two-column contrast. Problem vs. Answer.
   ========================================================================== */

.thesis {
  padding-block: var(--space-2xl);
  background: var(--surface-elevated);
  position: relative;
}

.section-header {
  margin-bottom: var(--space-xl);
}

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-sm);
}

.section-header h2 {
  font-size: var(--text-4xl);
  color: var(--text-primary);
  max-width: 20ch;
}

.thesis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-xl);
}

@media (max-width: 768px) {
  .thesis-grid {
    grid-template-columns: 1fr;
  }
}

.thesis-column {
  padding: var(--space-lg);
  border: 1px solid var(--surface-border);
  background: var(--surface);
}

.thesis-column--problem {
  border-color: rgba(255, 51, 51, 0.3);
}

.thesis-column--answer {
  border-color: var(--success);
  background: rgba(0, 255, 136, 0.02);
}

.thesis-column-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.thesis-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.thesis-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.thesis-icon {
  flex-shrink: 0;
  font-size: 0.875rem;
  color: var(--error);
  opacity: 0.7;
}

.thesis-icon--success {
  color: var(--success);
  opacity: 1;
}

.thesis-list--positive li {
  color: var(--text-primary);
}

.thesis-verdict {
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--surface-border);
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--error);
  text-transform: uppercase;
}

/* OaaS Definition Block */
.thesis-oaas {
  padding: var(--space-lg);
  background: var(--surface);
  border: 2px solid var(--accent);
  margin-bottom: var(--space-lg);
  position: relative;
}

.thesis-oaas::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100%;
  background: linear-gradient(135deg, var(--accent-muted) 0%, transparent 50%);
  pointer-events: none;
}

.oaas-definition {
  position: relative;
  border: none;
  padding: 0;
  margin: 0 0 var(--space-md) 0;
}

.oaas-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-xs);
}

.oaas-term {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: -0.01em;
}

.oaas-description {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
  position: relative;
}

.oaas-description strong {
  color: var(--accent);
}

.thesis-snark {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
  padding-left: var(--space-md);
  border-left: 2px solid var(--accent);
}


/* ==========================================================================
   HOW IT WORKS / ASO STACK
   Layered architecture diagram. Technical depth.
   ========================================================================== */

.how-it-works {
  padding-block: var(--space-2xl);
  background: var(--surface);
  position: relative;
}

.section-lead {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  margin-top: var(--space-xs);
  max-width: 50ch;
}

/* ASO Stack Layers */
.aso-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.aso-layer {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-md);
  align-items: center;
  padding: var(--space-md) var(--space-lg);
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  border-bottom: none;
  position: relative;
  transition:
    background 0.3s var(--ease-out-expo),
    border-color 0.3s ease;
}

.aso-layer:last-child {
  border-bottom: 1px solid var(--surface-border);
}

.aso-layer:hover {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--text-muted);
}

.aso-layer--core {
  background: var(--accent-muted);
  border-color: var(--accent);
}

.aso-layer--core:hover {
  background: rgba(255, 61, 0, 0.12);
}

.aso-layer-marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--surface);
  border: 1px solid var(--surface-border);
}

.aso-layer--core .aso-layer-marker {
  background: var(--accent);
  border-color: var(--accent);
}

.aso-layer-number {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.aso-layer--core .aso-layer-number {
  color: var(--surface);
}

.aso-layer-content {
  flex: 1;
}

.aso-layer-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: var(--space-xs);
}

.aso-layer--core .aso-layer-title {
  color: var(--accent);
}

.aso-layer-desc {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-secondary);
  letter-spacing: 0.02em;
}

.aso-layer-connector {
  width: 24px;
  height: 24px;
  position: relative;
}

.aso-layer-connector::before {
  content: '↓';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-muted);
}

.aso-layer:last-child .aso-layer-connector {
  display: none;
}

/* ASG Properties */
.asg-properties {
  padding: var(--space-lg);
  background: var(--surface-elevated);
  border: 1px solid var(--surface-border);
  margin-bottom: var(--space-lg);
}

.asg-properties-title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
}

.asg-definition {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
  max-width: 70ch;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--space-md);
}

.property-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  transition: border-color 0.3s ease;
}

.property-item:hover {
  border-color: var(--accent);
}

.property-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.property-value {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

.section-snark {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-secondary);
  font-style: italic;
  padding-left: var(--space-md);
  border-left: 2px solid var(--accent);
}

.section-snark strong {
  color: var(--accent);
}


/* ==========================================================================
   FOOTER
   Minimal. Confident. Final word.
   ========================================================================== */

.footer {
  padding-top: var(--space-xl);
  padding-bottom: var(--space-sm);
  background: var(--surface);
  border-top: 1px solid var(--surface-border);
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-primary);
}

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

.footer-legal {
  font-size: 0.8125rem;
  color: var(--text-muted);
}


/* ==========================================================================
   RESPONSIVE — HEADER, HERO, THESIS, HOW IT WORKS
   ========================================================================== */

@media (max-width: 768px) {
  .nav {
    height: 56px;
  }

  .logo {
    font-size: 1.25rem;
  }

  .hero-content {
    padding-top: 56px;
  }

  .hero-line {
    font-size: clamp(3rem, 15vw, 6rem);
  }

  .hero-scroll-indicator {
    bottom: var(--space-md);
  }

  .aso-layer {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
    padding: var(--space-md);
  }

  .aso-layer-marker {
    width: 36px;
    height: 36px;
  }

  .aso-layer-connector {
    display: none;
  }

  .thesis-oaas {
    padding: var(--space-md);
  }

  .oaas-term {
    font-size: var(--text-2xl);
  }
}


/* ==========================================================================
   WORKFLOW HERO — Immersive Full-Screen Experience
   Premium. Alive. Brutalist dark with accent #ff3d00.
   ========================================================================== */

.workflow-hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(255, 61, 0, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 60%, rgba(255, 61, 0, 0.05) 0%, transparent 50%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-elevated) 100%);
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
  padding: var(--space-2xl) var(--container-padding);
}

/* Subtle noise texture overlay */
.workflow-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  pointer-events: none;
}

/* Grid lines background */
.workflow-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(90deg, var(--surface-border) 1px, transparent 1px),
    linear-gradient(var(--surface-border) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.08;
  pointer-events: none;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 0%, transparent 70%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 0%, transparent 70%);
}


/* ==========================================================================
   WORKFLOW HERO CONTENT — Two-Column Grid
   ========================================================================== */

.workflow-hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
  position: relative;
  z-index: 1;
}

@media (max-width: 1024px) {
  .workflow-hero__content {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
    text-align: center;
  }
}


/* ==========================================================================
   WORKFLOW VISUAL — Animated Orbital System
   ========================================================================== */

.workflow-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Central node — glowing core */
.flow-node {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 600;
  transition: all 0.4s var(--ease-out-expo);
  z-index: 1;
}

.flow-node--core {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  font-size: 0.875rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow:
    0 0 60px var(--accent-muted),
    inset 0 0 30px var(--accent-muted);
  animation: glow-pulse 3s var(--ease-in-out-circ) infinite;
  z-index: 10;
}

.flow-node--hexagon {
  width: 60px;
  height: 60px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  font-size: 0.75rem;
  background: var(--surface-elevated);
  border: none;
  box-shadow: 0 0 20px var(--accent-muted);
}

.flow-node--hexagon::before {
  content: '';
  position: absolute;
  inset: -2px;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  background: linear-gradient(135deg, var(--accent) 0%, transparent 60%);
  z-index: 0;
}

.flow-node--hexagon > * {
  position: relative;
  z-index: 1;
}

.flow-node:hover {
  transform: scale(1.1);
  box-shadow:
    0 0 80px var(--accent-muted),
    0 0 40px var(--accent-muted);
}

/* Orbital rings */
.orbit {
  position: absolute;
  border: 1px solid var(--surface-border);
  border-radius: 50%;
  opacity: 0.6;
}

.orbit--1 {
  width: 180px;
  height: 180px;
  border-style: dashed;
  animation: orbit-rotate 20s linear infinite;
}

.orbit--2 {
  width: 280px;
  height: 280px;
  animation: orbit-rotate 30s linear infinite reverse;
}

.orbit--3 {
  width: 380px;
  height: 380px;
  border-style: dotted;
  animation: orbit-rotate 40s linear infinite;
}

/* Nodes positioned on orbits */
.orbit__node {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 20px var(--accent);
  animation: flow-pulse 2s var(--ease-in-out-circ) infinite;
}

.orbit--1 .orbit__node { top: -6px; left: 50%; transform: translateX(-50%); }
.orbit--2 .orbit__node { bottom: -6px; left: 50%; transform: translateX(-50%); animation-delay: 0.5s; }
.orbit--3 .orbit__node { top: 50%; right: -6px; transform: translateY(-50%); animation-delay: 1s; }

/* SVG connector paths — inline between nodes */
.flow-connector {
  position: relative;
  width: 60px;
  height: 24px;
  flex-shrink: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.flow-connector svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.flow-connector path,
.flow-connector line {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 8 4;
  stroke-linecap: round;
  opacity: 0.6;
  animation: dash-flow 2s linear infinite;
}

.flow-connector polygon,
.flow-connector .connector-arrow {
  fill: var(--accent);
  opacity: 0.6;
  stroke: none;
}

/* Orbit Rings Container */
.orbit-rings {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
}

/* Flow Diagram Container */
.flow-diagram {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-md);
  width: 100%;
  height: 100%;
  z-index: 5;
}

/* Flow Node Icon */
.flow-node-icon {
  font-size: 2rem;
  line-height: 1;
  color: var(--accent);
  transition: transform 0.3s var(--ease-out-expo);
}

.flow-node:hover .flow-node-icon {
  transform: scale(1.15);
}

/* Flow Node Label */
.flow-node-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-primary);
  margin-top: var(--space-xs);
  text-align: center;
}

/* Flow Node Sublabel */
.flow-node-sublabel {
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 2px;
  text-align: center;
}

/* Connector Line (SVG) */
.connector-line {
  stroke: var(--accent);
  stroke-width: 2;
  stroke-dasharray: 6 4;
  stroke-linecap: round;
  fill: none;
  opacity: 0.4;
  animation: dash-flow 1.5s linear infinite;
}

.connector-line--solid {
  stroke-dasharray: none;
  opacity: 0.6;
}

/* Connector Arrow (SVG) */
.connector-arrow {
  fill: var(--accent);
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.connector-arrow--stroke {
  fill: none;
  stroke: var(--accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* ==========================================================================
   WORKFLOW CONTEXT — Text Content Area
   ========================================================================== */

.workflow-context {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.workflow-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--text-primary);
  text-transform: uppercase;
}

.workflow-title span {
  display: block;
  color: var(--accent);
  text-shadow: 0 0 60px var(--accent-muted);
}

.workflow-subtitle {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--text-secondary);
  letter-spacing: 0.05em;
  line-height: 1.7;
  max-width: 45ch;
}

@media (max-width: 1024px) {
  .workflow-subtitle {
    margin: 0 auto;
  }
}

/* Stats Grid */
.workflow-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-sm);
}

@media (max-width: 640px) {
  .workflow-stats {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
}

.stat-card {
  padding: var(--space-md);
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-left: 3px solid var(--accent);
  position: relative;
  overflow: visible;
  transition: all 0.3s var(--ease-out-expo);
}

.stat-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-muted) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 15px 40px -15px rgba(0, 0, 0, 0.5);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-value {
  font-family: var(--font-display);
  font-size: clamp(3rem, 5vw, 5rem);
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  letter-spacing: -0.03em;
  position: relative;
  z-index: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-top: var(--space-xs);
  position: relative;
  z-index: 1;
}


/* ==========================================================================
   WORKFLOW HERO ANIMATIONS
   ========================================================================== */

@keyframes orbit-rotate {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes flow-pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(0.95);
  }
}

@keyframes dash-flow {
  from {
    stroke-dashoffset: 24;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes glow-pulse {
  0%, 100% {
    box-shadow:
      0 0 60px var(--accent-muted),
      inset 0 0 30px var(--accent-muted);
  }
  50% {
    box-shadow:
      0 0 100px var(--accent-muted),
      0 0 60px var(--accent-muted),
      inset 0 0 40px var(--accent-muted);
  }
}


/* ==========================================================================
   WORKFLOW HERO RESPONSIVE
   ========================================================================== */

@media (max-width: 1024px) {
  .workflow-hero {
    padding: var(--space-xl) var(--container-padding);
  }

  .workflow-visual {
    max-width: 350px;
    order: -1;
  }

  .orbit--3 {
    display: none;
  }

  .flow-node--core {
    width: 80px;
    height: 80px;
    font-size: 0.75rem;
  }

  .orbit--1 {
    width: 150px;
    height: 150px;
  }

  .orbit--2 {
    width: 240px;
    height: 240px;
  }
}

@media (max-width: 768px) {
  .workflow-hero {
    min-height: auto;
    padding: var(--space-lg) var(--container-padding);
  }

  .workflow-visual {
    max-width: 280px;
  }

  .workflow-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
}

@media (max-width: 480px) {
  .stat-card {
    padding: var(--space-sm);
  }

  .stat-value {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}


/* ==========================================================================
   SCREENSHOT STRIP
   ========================================================================== */

.screenshots-section {
  padding: var(--space-2xl) 0;
  background: linear-gradient(180deg, var(--surface) 0%, rgba(15, 15, 16, 1) 100%);
  overflow: hidden;
}

.screenshots-header {
  text-align: center;
  margin-bottom: var(--space-xl);
  padding: 0 var(--space-md);
}

.screenshots-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  color: var(--text-primary);
  margin-top: var(--space-sm);
}

.screenshots-strip {
  display: flex;
  gap: 24px;
  padding: 0 var(--space-lg);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.screenshots-strip::-webkit-scrollbar {
  display: none;
}

.screenshot-card {
  flex-shrink: 0;
  width: 280px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.screenshot-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--surface-border);
  background: var(--surface-elevated);
  transition: all 0.3s ease;
}

.screenshot-card:hover .screenshot-frame {
  border-color: var(--accent);
  box-shadow: 0 0 30px rgba(255, 61, 0, 0.15);
  transform: translateY(-4px);
}

.screenshot-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
}

/* Mock UI inside frames */
.screenshot-mock {
  aspect-ratio: 4/3;
  display: flex;
  flex-direction: column;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--surface-border);
}

.mock-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--surface-border);
}

.mock-dot:nth-child(1) { background: #ff5f57; }
.mock-dot:nth-child(2) { background: #ffbd2e; }
.mock-dot:nth-child(3) { background: #28c840; }

.mock-title {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--text-muted);
}

.mock-content {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

/* Dashboard mock */
.screenshot-mock--dashboard .mock-metric {
  text-align: center;
}

.mock-metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--accent);
}

.mock-metric-label {
  font-size: 0.625rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.mock-chart {
  width: 100%;
  height: 40px;
  background: linear-gradient(90deg,
    var(--accent) 0%,
    var(--accent) 30%,
    rgba(255, 61, 0, 0.3) 30%,
    rgba(255, 61, 0, 0.3) 100%
  );
  border-radius: 4px;
  position: relative;
}

.mock-rows {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mock-row {
  height: 8px;
  background: var(--surface-border);
  border-radius: 4px;
}

.mock-row:nth-child(1) { width: 100%; }
.mock-row:nth-child(2) { width: 75%; }
.mock-row:nth-child(3) { width: 60%; }

/* Agent mock */
.mock-agent-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.mock-agent {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface-border);
  border: 2px solid var(--surface-border);
}

.mock-agent--active {
  background: rgba(0, 255, 136, 0.2);
  border-color: #00ff88;
  box-shadow: 0 0 15px rgba(0, 255, 136, 0.3);
  animation: pulse 2s ease-in-out infinite;
}

/* Compliance mock */
.mock-shield {
  width: 50px;
  height: 60px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff6b35 100%);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
}

.mock-badges {
  display: flex;
  gap: 8px;
}

.mock-badge {
  padding: 4px 8px;
  background: rgba(0, 255, 136, 0.15);
  border: 1px solid rgba(0, 255, 136, 0.3);
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  color: #00ff88;
}

/* Cost mock */
.mock-savings {
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: #00ff88;
}

.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 60px;
}

.mock-bar {
  width: 24px;
  height: var(--height);
  background: linear-gradient(180deg, var(--accent) 0%, rgba(255, 61, 0, 0.3) 100%);
  border-radius: 4px 4px 0 0;
}

/* Flow mock */
.mock-nodes {
  display: flex;
  gap: 24px;
}

.mock-node {
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: 6px;
}

.mock-node:nth-child(2) {
  background: #3b82f6;
}

.mock-node:nth-child(3) {
  background: #00ff88;
}

/* Realtime mock */
.mock-pulse {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  animation: pulse 1.5s ease-in-out infinite;
}

.mock-stats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.mock-stat {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
}


/* ==========================================================================
   HERO GLITCH SWAP ANIMATION
   ========================================================================== */

.glitch-swap {
  position: relative;
}

.glitch-swap .headline-text {
  display: inline-block;
  transition: opacity 0.1s ease;
}

/* Glitch effect during transition */
.glitch-swap.is-glitching .headline-text {
  animation: glitch-flicker 0.2s steps(2) infinite;
}

@keyframes glitch-flicker {
  0%, 100% { opacity: 1; transform: translateX(0); }
  25% { opacity: 0.8; transform: translateX(-2px); }
  50% { opacity: 0.9; transform: translateX(2px); }
  75% { opacity: 0.7; transform: translateX(-1px); }
}

/* Scan line overlay during glitch */
.glitch-swap.is-glitching::after {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent 0px,
    transparent 2px,
    rgba(255, 61, 0, 0.1) 2px,
    rgba(255, 61, 0, 0.1) 4px
  );
  animation: scan-down 0.3s linear infinite;
  pointer-events: none;
}

@keyframes scan-down {
  from { transform: translateY(-100%); }
  to { transform: translateY(100%); }
}

/* REPLACED state - different styling */
.glitch-swap.is-replaced .headline-text {
  color: var(--accent);
  text-shadow:
    0 0 20px rgba(255, 61, 0, 0.8),
    0 0 40px rgba(255, 61, 0, 0.5),
    0 0 60px rgba(255, 61, 0, 0.3);
}

/* Split color effect on glitch */
.glitch-swap.is-glitching .word {
  position: relative;
}

.glitch-swap.is-glitching .word::before,
.glitch-swap.is-glitching .word::after {
  content: attr(data-text);
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0.8;
}

.glitch-swap.is-glitching .word::before {
  color: #0ff;
  clip-path: inset(0 0 50% 0);
  animation: glitch-clip-1 0.2s steps(2) infinite;
}

.glitch-swap.is-glitching .word::after {
  color: #f0f;
  clip-path: inset(50% 0 0 0);
  animation: glitch-clip-2 0.2s steps(2) infinite;
}

@keyframes glitch-clip-1 {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(-3px); }
}

@keyframes glitch-clip-2 {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(3px); }
}
