/* ============================================================
   SHARED REUSABLE COMPONENTS — header.css
   Used across all pages for structural consistency.
   Individual page classes override colour / size as needed.
   ============================================================ */

/* ── Page Hero (base) ──
   Apply alongside page-specific class, e.g. class="tech-hero page-hero"
   Provides: padding, h1 display typography, h1 em accent, p weight/line-height
   Override: background, color, p font-size, p max-width per page ── */
.page-hero {
  padding: 2.5rem 2.5rem 4rem;
}
.page-hero h1 {
  font-family: var(--display);
  font-size: clamp(52px, 7vw, 96px);
  line-height: 0.95;
  letter-spacing: 2px;
  margin-bottom: 1.5rem;
}
.page-hero h1 em { color: var(--accent); font-style: normal; }
.page-hero p {
  font-size: 17px;
  font-weight: 300;
  line-height: 1.6;
}
@media (max-width: 768px) {
  .page-hero { padding: 2rem 1.25rem 3rem; }
}

/* ── Card Base ──
   Shared structural style for sim-card, value-card, feature-card.
   Override: background, border-style per block ── */
.card-base {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem;
}
.card-base h4 {
  font-family: var(--display);
  font-size: 22px;
  margin-bottom: 0.6rem;
  letter-spacing: 0.5px;
}
.card-base p {
  font-size: 14px;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.65;
}

/* ── Mono Label ──
   Tiny uppercase mono tag used in cards, details, sim-role, cd-label etc.
   Override: color, margin per context ── */
.mono-label {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.8rem;
  display: block;
}

/* Hero */
.hero {
  background: var(--ink);
  color: #fff;
  padding: 2.5rem 2.5rem 5rem;
  position: relative;
  overflow: hidden;
}
.hero-layout {
  position: relative;
  z-index: 1;
}
.hero-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: start;
  position: relative;
  z-index: 1;
}
.hero-title {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.hero-content { min-width: 0; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
	0deg,
	transparent,
	transparent 39px,
	rgba(255,255,255,0.03) 39px,
	rgba(255,255,255,0.03) 40px
  );
  pointer-events: none;
}
.hero-eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
.hero h1 {
  font-family: var(--display);
  font-size: clamp(72px, 10vw, 130px);
  line-height: 0.92;
  letter-spacing: 2px;
  max-width: 900px;
  margin: 0;
  position: relative;
  z-index: 1;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-sub {
  font-size: 18px;
  color: #a8a8a8;
  max-width: 560px;
  margin: 2rem 0 3rem;
  font-weight: 300;
  position: relative;
  z-index: 1;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: rgba(255,255,255,0.08);
  margin-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
}
.hero-stat { padding: 2rem 2.5rem; background: var(--ink); }
.hero-stat .num {
  font-family: var(--display);
  font-size: 52px;
  color: var(--accent);
  line-height: 1;
}
.hero-stat .label {
  font-size: 13px;
  color: #777;
  font-family: var(--mono);
  letter-spacing: 1px;
  margin-top: 4px;
}
.hero-slider {
  position: relative;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255,255,255,0.03);
  width: 100%;
  aspect-ratio: 16 / 10;
  min-height: 396px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.35);
}
.hero-slides {
  position: absolute;
  inset: 0;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
/* Individual image optimizations */
.hero-slide:nth-child(1) img { object-fit: cover; object-position: center; }
.hero-slide:nth-child(2) img { object-fit: cover; object-position: center; }
.hero-slide:nth-child(3) img { object-fit: cover; object-position: center; }
.hero-slide:nth-child(4) img { object-fit: contain; object-position: center; }
.hero-slide:nth-child(5) img { object-fit: contain; object-position: center; }
.hero-slide:nth-child(6) img { object-fit: contain; object-position: center; }
.hero-dots {
  position: absolute;
  left: 0; right: 0; bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  z-index: 2;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,0.45);
  padding: 0;
  cursor: pointer;
}
.hero-dot.active { background: var(--accent); }

/* Ticker */
.ticker {
  background: var(--accent);
  color: #fff;
  padding: 1.2rem 0;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-inner {
  display: inline-flex;
  gap: 4rem;
  animation: ticker-scroll 30s linear infinite;
}
@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Problem / Solution */
.problem-block {
  background: var(--ink);
  color: #fff;
  padding: 3rem;
  border-radius: 4px;
}
.problem-block h3 {
  font-family: var(--display);
  font-size: 32px;
  color: var(--accent);
  margin-bottom: 1.5rem;
}
.problem-list { display: flex; flex-direction: column; gap: 1rem; }
.problem-list li {
  font-size: 15px;
  color: #ccc;
  padding-left: 1.5rem;
  position: relative;
  font-weight: 300;
}
.problem-list li::before {
  content: '//';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
}
.solution-block {
  background: var(--accent2);
  color: #fff;
  padding: 3rem;
  border-radius: 4px;
}
.solution-block h3 {
  font-family: var(--display);
  font-size: 32px;
  color: #7ec8f0;
  margin-bottom: 1.5rem;
}
.solution-list { display: flex; flex-direction: column; gap: 1rem; }
.solution-list li {
  font-size: 15px;
  color: #d0e8f5;
  padding-left: 1.5rem;
  position: relative;
  font-weight: 300;
}
.solution-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: #7ec8f0;
  font-family: var(--mono);
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
@media (min-width: 1024px) {
  .features-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.feature-card {
  background: var(--card-bg);
  border: 4px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}
.feature-card:hover { border-color: #1a4a6b; transform: translateY(-10px); }
.feature-icon {
  width: 40px; height: 40px;
  background: #fde8d8;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.2rem;
  font-size: 18px;
}
.feature-card h4 {
  font-family: var(--display);
  font-size: 20px;
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
  color: var(--ink);
}
.feature-card p { font-size: 13px; color: var(--muted); font-weight: 300; line-height: 1.6; }

/* Use Cases */
.use-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
.use-item {
  background: var(--card-bg);
  border: 4px solid var(--border);
  border-radius: 6px;
  padding: 2rem;
  transition: border-color 0.2s, transform 0.2s;
}
.use-item:hover { border-color: #1a4a6b; transform: translateY(-10px); }
.use-num { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: 2px; margin-bottom: 0.5rem; }
.use-item h5 { font-family: var(--display); font-size: 20px; margin-bottom: 0.5rem; letter-spacing: 0.5px; color: var(--ink); }
.use-item p { font-size: 13px; color: var(--muted); font-weight: 300; line-height: 1.6; }

@media (min-width: 1024px) {
  .use-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .hero { padding: 4rem 1.25rem 3rem; }
  .hero-head { grid-template-columns: 1fr; }
  .hero-slider { aspect-ratio: 4 / 3; min-height: 330px; }
  .hero-stats { grid-template-columns: 1fr; }
  .hero-stat { padding: 1.5rem 1.25rem; }
}

/* ── About page ── */
body[data-page="about"] .about-hero {
  border-bottom: 1px solid var(--border);
  /* padding, h1 typography provided by .page-hero */
}
body[data-page="about"] .about-hero p { font-size: 18px; color: var(--muted); max-width: 600px; }
body[data-page="about"] .mission-block {
  background: var(--ink);
  color: #fff;
  padding: 5rem 2.5rem;
}
body[data-page="about"] .mission-block p {
  font-family: var(--display);
  font-size: clamp(28px, 4vw, 52px);
  max-width: 860px;
  line-height: 1.05;
  letter-spacing: 1px;
}
body[data-page="about"] .mission-block p em { color: var(--accent); font-style: normal; }
body[data-page="about"] .story-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
  margin-top: 3rem;
}
body[data-page="about"] .story-sidebar h3 {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.5px;
  margin-bottom: 1rem;
}
body[data-page="about"] .story-sidebar p { font-size: 14px; color: var(--muted); font-weight: 300; line-height: 1.7; }
body[data-page="about"] .story-main p {
  font-size: 16px;
  color: #444;
  font-weight: 300;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
body[data-page="about"] .story-main p:last-child { margin-bottom: 0; }
body[data-page="about"] .values-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
/* value-card uses .card-base for structure; accent border overrides */
body[data-page="about"] .value-card {
  border-top: 3px solid var(--accent);
  padding-top: 1.5rem;
}
body[data-page="about"] .value-card h4 { font-family: var(--display); font-size: 24px; margin-bottom: 0.6rem; letter-spacing: 0.5px; }
body[data-page="about"] .value-card p { font-size: 14px; color: var(--muted); font-weight: 300; line-height: 1.7; }
body[data-page="about"] .status-banner {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem 2.5rem;
  margin: 0 2.5rem 2rem;
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
  align-items: center;
}
body[data-page="about"] .status-item { display: flex; flex-direction: column; gap: 4px; }
body[data-page="about"] .status-label { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 2px; text-transform: uppercase; }
body[data-page="about"] .status-value { font-size: 15px; font-weight: 500; }
body[data-page="about"] .status-badge {
  background: #e8f5e9;
  color: #2e7d32;
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 2px;
  letter-spacing: 1px;
  text-transform: uppercase;
  align-self: flex-start;
}

/* ── Technology page ── */
body[data-page="technology"] .tech-hero {
  background: var(--ink);
  color: #fff;
  position: relative;
  overflow: hidden;
  /* padding, h1 typography provided by .page-hero */
}
body[data-page="technology"] .tech-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 39px,
    rgba(255,255,255,0.03) 39px,
    rgba(255,255,255,0.03) 40px
  );
  pointer-events: none;
}
body[data-page="technology"] .tech-hero .section-label,
body[data-page="technology"] .tech-hero h1,
body[data-page="technology"] .tech-hero p {
  position: relative;
  z-index: 1;
}
body[data-page="technology"] .tech-hero h1 { color: #fff; }
body[data-page="technology"] .tech-hero p { color: #a8a8a8; max-width: 560px; font-size: 18px; font-weight: 300; margin-top: 1.5rem; }
body[data-page="technology"] .layers { padding: 0 2.5rem 5rem; }
body[data-page="technology"] .tech-layer {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 3rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
body[data-page="technology"] .tech-layer:last-child { border-bottom: none; }
body[data-page="technology"] .layer-num {
  font-family: var(--display);
  font-size: 90px;
  color: var(--border);
  line-height: 1;
}
body[data-page="technology"] .layer-content h3 {
  font-family: var(--display);
  font-size: 36px;
  margin-bottom: 0.8rem;
  letter-spacing: 0.5px;
}
body[data-page="technology"] .layer-content p {
  font-size: 15px;
  color: var(--muted);
  font-weight: 300;
  max-width: 700px;
  margin-bottom: 1.5rem;
  line-height: 1.75;
}
body[data-page="technology"] .pipeline-section {
  background: var(--ink);
  padding: 4rem 2.5rem;
}
body[data-page="technology"] .pipeline-section h2 {
  font-family: var(--display);
  font-size: 36px;
  color: #fff;
  margin-bottom: 0.5rem;
  letter-spacing: 1px;
}
body[data-page="technology"] .pipeline-section .sub {
  font-family: var(--mono);
  font-size: 12px;
  color: #666;
  letter-spacing: 2px;
  margin-bottom: 3rem;
}
body[data-page="technology"] .flow-track {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0;
  position: relative;
}
body[data-page="technology"] .flow-step { display: flex; flex-direction: column; align-items: center; position: relative; }
body[data-page="technology"] .flow-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -10px; top: 14px;
  color: var(--accent);
  font-size: 16px;
  z-index: 1;
}
body[data-page="technology"] .flow-dot {
  width: 44px; height: 44px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: #fff;
  margin-bottom: 0.8rem;
  flex-shrink: 0;
}
body[data-page="technology"] .flow-label {
  font-size: 11px;
  color: #888;
  font-family: var(--mono);
  letter-spacing: 0.5px;
  text-align: center;
  line-height: 1.4;
}
body[data-page="technology"] .sim-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}
/* sim-card uses .card-base for structure */
body[data-page="technology"] .sim-card .sim-role {
  /* uses .mono-label for base; color already accent */
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 0.8rem;
}
body[data-page="technology"] .sim-card h4 { font-family: var(--display); font-size: 22px; margin-bottom: 0.6rem; letter-spacing: 0.5px; }
body[data-page="technology"] .sim-card p { font-size: 14px; color: var(--muted); font-weight: 300; line-height: 1.65; }

/* ── Product page ── */
body[data-page="product"] .product-hero {
  background: var(--accent2);
  color: #fff;
  /* padding, h1 typography provided by .page-hero */
}
body[data-page="product"] .product-hero p { color: #b0d4e8; max-width: 560px; }
body[data-page="product"] .products { padding: 4rem 2.5rem 5rem; display: flex; flex-direction: column; gap: 2rem; }
body[data-page="product"] .product-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
body[data-page="product"] .product-card-header {
  background: var(--ink);
  color: #fff;
  padding: 2rem 2.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}
body[data-page="product"] .pcn { font-family: var(--display); font-size: 56px; color: var(--accent); line-height: 1; min-width: 80px; }
body[data-page="product"] .product-card-header h3 { font-family: var(--display); font-size: 30px; letter-spacing: 0.5px; margin-bottom: 4px; }
body[data-page="product"] .product-card-header .pck { font-family: var(--mono); font-size: 12px; color: #777; letter-spacing: 1.5px; }
body[data-page="product"] .product-card-body { padding: 2.5rem; }
body[data-page="product"] .spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
body[data-page="product"] .spec-item { border-left: 2px solid var(--accent); padding-left: 1rem; }
body[data-page="product"] .spec-item .sk { font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; margin-bottom: 3px; }
body[data-page="product"] .spec-item .sv { font-size: 15px; font-weight: 500; }
body[data-page="product"] .product-card-body > p { font-size: 15px; color: var(--muted); font-weight: 300; max-width: 740px; margin-bottom: 2rem; line-height: 1.75; }
body[data-page="product"] .sw-table { width: 100%; border-collapse: collapse; margin-top: 1.5rem; }
body[data-page="product"] .sw-table th {
  font-family: var(--mono); font-size: 11px; letter-spacing: 2px; color: var(--muted);
  text-transform: uppercase; text-align: left;
  padding: 0.6rem 1rem 0.6rem 0;
  border-bottom: 1px solid var(--border);
}
body[data-page="product"] .sw-table td {
  font-size: 14px; padding: 0.8rem 1rem 0.8rem 0;
  border-bottom: 1px solid var(--border); vertical-align: top;
}
body[data-page="product"] .sw-table td:first-child { font-weight: 500; white-space: nowrap; }
body[data-page="product"] .sw-table td:last-child { color: var(--muted); font-weight: 300; }
body[data-page="product"] .sw-table tr:last-child td { border-bottom: none; }
body[data-page="product"] .cta-strip {
  background: var(--accent);
  color: #fff;
  padding: 4rem 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
body[data-page="product"] .cta-strip h2 { font-family: var(--display); font-size: clamp(32px, 4vw, 52px); letter-spacing: 1px; line-height: 1.0; max-width: 600px; }
body[data-page="product"] .btn-white {
  background: #fff;
  color: var(--accent);
  padding: 14px 32px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.2s;
  text-decoration: none;
  display: inline-block;
}
body[data-page="product"] .btn-white:hover { opacity: 0.9; }

@media (max-width: 768px) {
  body[data-page="about"] .mission-block { padding: 4rem 1.25rem; }
  body[data-page="about"] .story-grid { grid-template-columns: 1fr; gap: 2rem; }
  body[data-page="about"] .status-banner { margin: 0 1.25rem 2rem; padding: 1.5rem; gap: 1.5rem; }

  body[data-page="technology"] .layers { padding: 0 1.25rem 3.5rem; }
  body[data-page="technology"] .tech-layer { grid-template-columns: 1fr; gap: 0; }
  body[data-page="technology"] .layer-num { font-size: 60px; margin-bottom: 0.5rem; }
  body[data-page="technology"] .flow-track { grid-template-columns: repeat(4, 1fr); row-gap: 2rem; }
  body[data-page="technology"] .pipeline-section { padding: 3rem 1.25rem; }

  body[data-page="product"] .products { padding: 3rem 1.25rem; }
  body[data-page="product"] .product-card-header { flex-direction: column; align-items: flex-start; gap: 0.8rem; }
  body[data-page="product"] .product-card-body { padding: 1.5rem; }
  body[data-page="product"] .cta-strip { padding: 3rem 1.25rem; }
}

@media (max-width: 480px) {
  body[data-page="technology"] .flow-track { grid-template-columns: repeat(2, 1fr); }
  body[data-page="technology"] .flow-step:not(:last-child)::after { display: none; }
}

