/* ==========================================================================
   Section head with trailing link — "See all X" pattern
   ========================================================================== */

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
}

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--cyan);
  transition: color 0.2s ease, gap 0.2s ease;
}
.link-arrow:hover { color: var(--paper); gap: 10px; }

/* ==========================================================================
   Shared section rhythm
   ========================================================================== */

.section-lg { padding: var(--space-7) 0; }
.section-md { padding: var(--space-6) 0; }

/* ==========================================================================
   Timeline — real company history, vertical rail
   ========================================================================== */

.timeline { position: relative; }

.timeline-rail {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding-left: 32px;
}

.timeline-rail::before {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--hairline);
}

.timeline-rail::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 6px;
  width: 1px;
  height: 0%;
  background: var(--aurora);
  transition: height 1.2s var(--ease-out);
}

.timeline-rail.in-view::after { height: var(--fill, 0%); }

.timeline-entry { position: relative; padding-bottom: var(--space-4); }
.timeline-entry:last-child { padding-bottom: 0; }

.timeline-dot {
  position: absolute;
  left: -32px;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--ink);
  border: 1px solid var(--hairline);
  transition: border-color 0.4s ease, background 0.4s ease, box-shadow 0.4s ease;
}

.timeline-entry.in-view .timeline-dot {
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 12px 2px rgba(95,212,216,0.5);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
  margin-bottom: 8px;
}

.timeline-entry h3 { font-size: 20px; margin-bottom: 8px; }
.timeline-entry p { font-size: 15px; line-height: 1.6; color: var(--paper-dim); max-width: 520px; }

/* ==========================================================================
   Products — asymmetric, not cards-in-a-grid
   ========================================================================== */

.product-feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--hairline);
}

.product-feature:last-child { border-bottom: 1px solid var(--hairline); }

@media (min-width: 900px) {
  .product-feature { grid-template-columns: 0.4fr 0.6fr; gap: var(--space-4); align-items: center; }
}

.product-feature-media {
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  background: linear-gradient(150deg, var(--graphite), var(--ink-raised));
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-feature-media .badge-corner {
  position: absolute;
  top: 16px;
  left: 16px;
}

.product-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: rgba(0,0,0,0.3);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver);
}

.product-status.live { color: var(--cyan); border-color: var(--cyan-dim); }
.product-status .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.product-feature-body h3 { font-size: clamp(24px, 2.8vw, 34px); margin-bottom: 12px; }
.product-feature-body .tagline { color: var(--cyan); font-weight: 500; font-size: 15px; margin-bottom: 14px; }
.product-feature-body p.desc { font-size: 15px; line-height: 1.65; color: var(--paper-dim); max-width: 520px; margin-bottom: 20px; }

.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tag-pill { font-size: 12px; padding: 5px 12px; border: 1px solid var(--hairline); border-radius: 999px; color: var(--silver); }

.feature-list-inline {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  margin-bottom: 24px;
}
.feature-list-inline li {
  font-size: 13px;
  color: var(--paper-dim);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.feature-list-inline li::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--cyan);
  flex-shrink: 0;
  transform: translateY(-2px);
}

/* ==========================================================================
   Technology Architecture — stacked layer diagram
   ========================================================================== */

.architecture { padding: var(--space-7) 0; }

.arch-stack {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.arch-layer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  background: var(--graphite);
  border: 1px solid var(--hairline);
  transition: background 0.3s ease, transform 0.3s var(--ease-out);
}

.arch-layer:first-child { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.arch-layer:last-child { border-radius: 0 0 var(--radius-md) var(--radius-md); }

.arch-layer:hover { background: var(--graphite-2); transform: translateX(6px); }

.arch-layer-name { font-size: 16px; font-weight: 600; color: var(--paper); }
.arch-layer-detail { font-family: var(--font-mono); font-size: 12px; color: var(--silver-dim); }

/* ==========================================================================
   Global Presence — map-flavored, no literal cliché globe required
   ========================================================================== */

.presence { padding: var(--space-7) 0; }

.presence-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  align-items: center;
}

@media (min-width: 900px) {
  .presence-grid { grid-template-columns: 1fr 1fr; }
}

.presence-map {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg);
  border: 1px solid var(--hairline);
  background: var(--graphite);
  position: relative;
  overflow: hidden;
}

.presence-list { display: flex; flex-direction: column; }

.presence-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-top: 1px solid var(--hairline);
}
.presence-row:last-child { border-bottom: 1px solid var(--hairline); }

.presence-country { font-size: 17px; font-weight: 600; color: var(--paper); }
.presence-status { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); }

/* ==========================================================================
   Roadmap — horizontal phase strip
   ========================================================================== */

.roadmap { padding: var(--space-7) 0; }

.roadmap-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-2);
}

@media (min-width: 900px) {
  .roadmap-strip { grid-template-columns: repeat(4, 1fr); gap: 2px; }
}

.roadmap-phase {
  padding: var(--space-3);
  background: var(--graphite);
  border: 1px solid var(--hairline);
}

.roadmap-phase-label { font-family: var(--font-mono); font-size: 12px; color: var(--cyan); margin-bottom: 14px; }
.roadmap-phase h3 { font-size: 20px; margin-bottom: 10px; }
.roadmap-phase p { font-size: 14px; color: var(--paper-dim); line-height: 1.6; }

@media (min-width: 900px) {
  .roadmap-strip-2 { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   CTA — final conversion moment
   ========================================================================== */

.cta {
  padding: var(--space-7) 0;
  text-align: center;
}

.cta h2 {
  font-size: clamp(32px, 5vw, 64px);
  max-width: 780px;
  margin: 0 auto;
}

.cta p { margin: 24px auto 0; max-width: 480px; }

.cta-actions {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   Founders (About page reuse)
   ========================================================================== */

.founders-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}
@media (min-width: 700px) { .founders-grid { grid-template-columns: 1fr 1fr; } }

/* Shell now comes from .showcase-card / .showcase-card-inner (see
   product-showcase.css) — .founder-card only carries the descendant
   selectors below and the hover-driven photo zoom. */

.founder-photo-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.founder-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
  filter: grayscale(1) contrast(1.08) brightness(0.95);
  mix-blend-mode: luminosity;
  transition: transform 0.7s var(--ease-out);
}

.founder-card:hover .founder-photo { transform: scale(1.045); }

.founder-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(8,9,11,0.92) 100%);
  pointer-events: none;
}

.founder-info { padding: var(--space-3); }

.founder-card h3 { font-size: 20px; margin-bottom: 4px; }
.founder-role { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; color: var(--cyan); margin-bottom: 14px; }
.founder-card p.bio { font-size: 14px; line-height: 1.6; color: var(--paper-dim); }

/* ==========================================================================
   Tilt cards — cursor-reactive spotlight + 3D tilt (About: founder cards,
   Products: capability cards). Driven by --mx/--my/--rx/--ry set in JS;
   degrades to a flat card with zero motion if JS never touches them.
   ========================================================================== */

.tilt-card {
  --mx: 50%;
  --my: 50%;
  --rx: 0deg;
  --ry: 0deg;
  position: relative;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform 0.5s var(--ease-out);
  overflow: hidden;
  will-change: transform;
}

.tilt-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(95,212,216,0.14), transparent 60%);
  transition: opacity 0.4s ease;
  pointer-events: none;
}

.tilt-card:hover::before { opacity: 1; }
.tilt-card > * { position: relative; z-index: 1; }

/* ==========================================================================
   Principles strip — About page, three-card rationale for how the
   company operates (distinct from the homepage's four-discipline grid).
   ========================================================================== */

.principles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  margin-top: var(--space-2);
}

@media (min-width: 800px) {
  .principles-grid { grid-template-columns: repeat(3, 1fr); }
}

.principle-card {
  padding: var(--space-4) var(--space-3);
  background: var(--graphite);
  border: 1px solid var(--hairline-soft);
  transition: background 0.35s ease, transform 0.35s var(--ease-out);
}

.principle-card:hover { background: var(--graphite-2); transform: translateY(-4px); }

.principle-index {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--cyan);
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: var(--space-3);
}

.principle-card h3 { font-size: 19px; margin-bottom: 10px; }
.principle-card p { font-size: 14px; line-height: 1.65; color: var(--paper-dim); }

/* ==========================================================================
   Status strip — small "system is alive" mono readout used on product
   feature cards (Products page). Reuses the dot-pulse keyframe from hero.css.
   ========================================================================== */

.status-strip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--silver);
  margin-bottom: var(--space-3);
  padding: 8px 14px 8px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: rgba(255,255,255,0.02);
}

.status-strip .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px 1px rgba(95,212,216,0.6);
  animation: dot-pulse 2.2s ease-in-out infinite;
  flex-shrink: 0;
}

.status-strip strong { color: var(--paper); font-weight: 600; }

/* mini live counters attached to a product feature */
.product-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
  max-width: 420px;
  margin-bottom: var(--space-3);
}

.product-stat { border-left: 1px solid var(--hairline); padding-left: 12px; }
.product-stat .ledger-value { font-size: clamp(20px, 2.4vw, 28px); }
.product-stat-label { font-size: 11px; color: var(--silver-dim); margin-top: 4px; letter-spacing: 0.02em; }

/* ==========================================================================
   Product explorer — reuses the .eco-item / .eco-detail-panel click
   behaviour already wired up in site.js (initEcosystemExplorer targets
   any instance of these classes in the document), restyled for a
   roadmap-flavoured look with a completion meter per phase.
   ========================================================================== */

.product-explorer {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
  margin-top: var(--space-2);
}

@media (min-width: 900px) {
  .product-explorer { grid-template-columns: 0.85fr 1.15fr; }
}

.product-explorer .eco-list { display: flex; flex-direction: column; gap: 2px; }

.product-explorer .eco-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border: 1px solid var(--hairline-soft);
  cursor: pointer;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.product-explorer .eco-item:hover { background: rgba(255,255,255,0.03); }
.product-explorer .eco-item.active { background: var(--graphite); border-color: var(--hairline); }
.product-explorer .eco-item.active .eco-item-title { color: var(--paper); }

.product-explorer .eco-item-num { font-family: var(--font-mono); font-size: 12px; color: var(--silver-dim); margin-right: 14px; }
.product-explorer .eco-item-title { font-size: 15px; font-weight: 500; color: var(--paper-dim); flex: 1; }
.product-explorer .eco-item-arrow { width: 16px; height: 16px; color: var(--silver-dim); transition: transform 0.3s var(--ease-out), color 0.3s ease; }
.product-explorer .eco-item.active .eco-item-arrow { color: var(--cyan); transform: translateX(3px); }

.product-explorer .eco-detail { position: relative; }
.product-explorer .eco-detail-panel {
  display: none;
  padding: var(--space-4);
  background: var(--graphite);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
}
.product-explorer .eco-detail-panel.active { display: block; }

.phase-meter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 16px 0 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--silver-dim);
  letter-spacing: 0.05em;
}

.phase-meter {
  height: 4px;
  border-radius: 999px;
  background: var(--hairline);
  overflow: hidden;
  margin-bottom: var(--space-3);
}

.phase-meter-fill {
  height: 100%;
  background: var(--aurora);
  border-radius: 999px;
  width: 0%;
  transition: width 1.2s var(--ease-out);
}

.product-explorer .eco-detail-panel.active .phase-meter-fill { width: var(--fill, 0%); }

.phase-feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 20px;
  margin-top: var(--space-3);
}
.phase-feature-list li { font-size: 13px; color: var(--paper-dim); display: flex; align-items: baseline; gap: 8px; }
.phase-feature-list li::before {
  content: ""; width: 4px; height: 4px; border-radius: 50%;
  background: var(--violet); flex-shrink: 0; transform: translateY(-2px);
}

/* ==========================================================================
   Feature comparison matrix — Products page, capability × platform grid
   ========================================================================== */

.matrix-scroll { overflow-x: auto; margin-top: var(--space-2); }

.feature-matrix {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 14px;
}

.feature-matrix th, .feature-matrix td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--hairline-soft);
  text-align: left;
}

.feature-matrix thead th {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--silver-dim);
  font-weight: 500;
  border-bottom: 1px solid var(--hairline);
}

.feature-matrix tbody th {
  color: var(--paper-dim);
  font-weight: 400;
}

.feature-matrix td { text-align: center; }
.feature-matrix tbody tr:hover { background: rgba(255,255,255,0.02); }

.matrix-check { color: var(--cyan); }
.matrix-check.partial { color: var(--silver); opacity: 0.7; }
.matrix-dash { color: var(--silver-dim); }
