/* =========================
   product-ui.css
   UI layer for product, how-it-works, use-cases
   Mirrors index.html typography, header, footer
   ========================= */

body {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
}

/* ---- HERO ---- */
.page-hero {
  padding: 96px 0 72px;
}

.page-hero h1 {
  font-size: clamp(42px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 800;
}

.page-hero p {
  margin-top: 16px;
  font-size: 18px;
  max-width: 1280px;
  color: var(--text-sub);
}

/* ---- SECTIONS ---- */
.section {
  padding: 72px 0;
  width: 100%;
  align-items: center;
}

.section-alt {
  padding: 72px 0;
  /* background: rgba(15, 23, 42, 0.35); */
}

/* ---- GRIDS ---- */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}

/* ---- CARDS ---- */
.card {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.96);
}

.card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
}

.card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-sub);
}

/* ---- LISTS ---- */
.feature-list {
  margin-top: 16px;
}

.feature-list li {
  margin-bottom: 8px;
  color: var(--text-sub);
}

/* ===============================
   Feature blocks (Product page)
   =============================== */

.feature-block {
  margin-bottom: 88px;
}

.feature-header {
  max-width: 1280px;
  margin-bottom: 40px;
}

.feature-header h2 {
  margin-bottom: 12px;
}

.feature-header p {
  font-size: 17px;
  color: var(--text-sub);
}

/* Cards */
.feature-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.96);
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.emphasis-card {
  background: radial-gradient(
      circle at 0 0,
      rgba(56, 189, 248, 0.18),
      transparent 55%
    ),
    rgba(15, 23, 42, 0.96);
}

/* Wide card for policy-as-code */
.wide-card {
  max-width: 1280px;
}

/* Feature lists */
.feature-points {
  list-style: none;
  padding: 0;
  margin: 0;
}

.feature-points li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  color: var(--text-sub);
}

.feature-points li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--accent);
}

/* Grid tuning */
.feature-grid {
  row-gap: 32px;
}

/* =================================================
   ADVANCED PRODUCT VISUAL PATTERNS
   ================================================= */

/* ---------- SECTION DIVIDER ---------- */
.section-divider {
  height: 1px;
  background: linear-gradient(
    to right,
    transparent,
    rgba(148, 163, 184, 0.35),
    transparent
  );
  margin: 72px 0;
}

/* ---------- POLICY RAILS ---------- */
.policy-rails {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-top: 48px;
}

.policy-rail {
  padding-left: 24px;
  border-left: 3px solid rgba(56, 189, 248, 0.6);
}

.policy-rail h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.policy-rail ul {
  list-style: none;
  padding: 0;
}

.policy-rail li {
  margin-bottom: 10px;
  color: var(--text-sub);
}

/* ---------- FLOW DIAGRAM ---------- */
.flow-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.flow-step {
  position: relative;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.flow-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -22px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--accent);
  font-size: 22px;
}

.flow-step h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.flow-step p {
  font-size: 14px;
  color: var(--text-sub);
}

/* ---------- CAPABILITY BAND ---------- */
.capability-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.capability {
  padding-top: 20px;
  border-top: 2px solid rgba(56, 189, 248, 0.6);
}

.capability h4 {
  font-size: 16px;
  margin-bottom: 8px;
}

.capability p {
  font-size: 14px;
  color: var(--text-sub);
}

/* =================================================
   HOW-IT-WORKS - VISUAL SYSTEM
   ================================================= */

/* ---- Architecture lanes ---- */
.arch-lanes {
  display: inline-flex;
  flex-direction: column;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  margin-top: 56px;
}

.arch-box {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.arch-center {
  padding: 28px 20px;
  border-radius: var(--radius-lg);
  background: radial-gradient(
      circle at top,
      rgba(56, 189, 248, 0.25),
      transparent 60%
    ),
    rgba(15, 23, 42, 0.98);
  border: 1px solid rgba(56, 189, 248, 0.6);
  text-align: center;
  font-weight: 600;
}

/* ---- Decision pipeline ---- */
.decision-pipeline {
  margin-top: 56px;
  width: 100%;
}

.pipeline-step {
  display: flex;
  gap: 24px;
  padding: 20px 0;
  border-left: 2px solid rgba(148, 163, 184, 0.35);
  padding-left: 32px;
}

.pipeline-step:not(:last-child) {
  margin-bottom: 12px;
}

.pipeline-step::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: -38px;
  margin-top: 6px;
}

/* ---- Integration strip ---- */
.integration-strip {
  margin-top: 56px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: rgba(8, 12, 30, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 14px;
  color: #cbd5f5;
}

/* ---- Signal surface ---- */
.signal-surface {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.signal {
  padding-top: 16px;
  border-top: 2px solid rgba(56, 189, 248, 0.6);
}

.signal h4 {
  font-size: 16px;
  margin-bottom: 6px;
}

.signal p {
  font-size: 14px;
  color: var(--text-sub);
}

/* =================================================
   USE-CASES - SCENARIO VISUAL SYSTEM
   ================================================= */

.usecase-band {
  padding: 56px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
  align-items: center;
  justify-content: center;
  display: inline-flex; 
  flex-direction: row; 
  gap: 16px; 
  max-width: 1200px
}

.usecase-band:last-child {
  border-bottom: none;
}

/* ---- Use-case header ---- */
.usecase-header {
  max-width: 720px;
  margin-bottom: 32px;
}

.usecase-header h2 {
  margin-bottom: 10px;
}

/* ---- Scenario layout ---- */
.scenario-grid {
  /* display: flexbox; */
  flex-direction: column;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

/* ---- Scenario context ---- */
.scenario-context {
  padding-left: 20px;
  border-left: 3px solid rgba(56, 189, 248, 0.6);
}

.scenario-context h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.scenario-context p {
  font-size: 15px;
  color: var(--text-sub);
}

/* ---- Risk ladder ---- */
.risk-ladder {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 12px;
  width: 100%;
}

.risk-step {
  padding: 16px 20px;
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.35);
  font-size: 14px;
  width: 100%;
  color: var(--text-sub);
}

.risk-step strong {
  color: var(--text-main);
}

/* ---- Bottom risk pattern section ---- */
.risk-patterns {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  margin-top: 48px;
}

.risk-pattern {
  padding-top: 16px;
  border-top: 2px solid rgba(56, 189, 248, 0.6);
}

.risk-pattern h4 {
  font-size: 15px;
  margin-bottom: 6px;
}

.risk-pattern p {
  font-size: 14px;
  color: var(--text-sub);
}
/* ===============================
   CONTACT - CENTERED COMPOSITION
   =============================== */

.contact-stage {
  padding: 96px 0 72px;
  text-align: center;
}

.contact-centered {
  max-width: 1200px;
  margin: 0 auto;
}

/* Headline & intro */
.contact-centered h1 {
  margin-bottom: 16px;
}

.contact-centered p {
  font-size: 17px;
  color: var(--text-sub);
  margin-bottom: 40px;
}

/* Form container (visual weight) */
.contact-card {
  padding: 40px;
  border-radius: var(--radius-lg);
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.35);
  text-align: left; /* IMPORTANT: form fields stay readable */
}

/* After-form text */
.contact-next {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  font-size: 14px;
  color: var(--text-sub);
}

.contact-next strong {
  color: var(--text-main);
}

/* 1. Center the entire parent block in the viewport */
.runtime-row {
  display: flex;
  flex-direction: row;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  column-gap: 172px;
  align-items: baseline; /* IMPORTANT: top-align sections */
}

/* 2. Make each section fill available height and center its content */
.runtime-row > section {
  flex: 1;
  display: flex;
  align-items: baseline; /* top-align container inside section */
}

/* 3. Center the container inside each section */
.runtime-row > section > .container {
  width: 100%;
  max-width: none; /* override global container max-width */
  display: flex;
  flex-direction: column;
  align-items: center; /* horizontal centering of content */
  text-align: center;
}

.runtime-row h2 {
  margin-top: 0;
}


/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
  .policy-rails,
  .flow-row,
  .capability-band {
    grid-template-columns: 1fr;
  }

.usecase-band {
  flex-direction: column; 
}


  .flow-step:not(:last-child)::after {
    display: none;
  }

  .arch-lanes,
  .signal-surface {
    grid-template-columns: 1fr;
  }

  .arch-center {
    order: -1;
    width: 100%;
    flex: 1;
  }

  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }

  .feature-block {
    margin-bottom: 64px;
  }

  .scenario-grid,
  .risk-patterns {
    grid-template-columns: 1fr;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .contact-context {
    padding-left: 0;
    border-left: none;
    margin-bottom: 32px;
  }

  .runtime-row {
    flex-direction: column;
    row-gap: 64px;
  }

  /* Ensure sections take full width */
  .runtime-row > section {
    width: 100%;
  }

  /* Restore container max-width for readability */
  .runtime-row > section > .container {
    max-width: 720px;
  }

  .arch-lanes {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 40px;
    width: 100%;
  }

  .arch-box,
  .arch-center {
    width: 100%;
  }

  .decision-pipeline {
    max-width: 100%;
    margin-top: 40px;
  }

  .pipeline-step {
    padding-left: 24px;
  }

  .pipeline-step::before {
    margin-left: -30px;
  }
  .signal-surface {
    gap: 24px;
  }
}

@media (max-width: 600px) {
  .page-hero h1 {
    font-size: 36px;
  }

  .page-hero p {
    font-size: 16px;
  }
}
