:root {
  --navy: #0c1f3d;
  --blue: #1e5a9e;
  --cyan: #2d9cdb;
  --sky: #5eb3f6;
  --paper: #f4f2ec;
  --paper-dark: #e8e4db;
  --metal: #c8d4e0;
  --text: #1a2b42;
  --muted: #5a6b82;
  --glow: rgba(45, 156, 219, 0.35);
  --radius: 14px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Cascadia Code", "Consolas", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--paper);
  line-height: 1.65;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
}

.container {
  width: min(1100px, 92vw);
  margin-inline: auto;
}

/* ── Nav ── */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(244, 242, 236, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--paper-dark);
}

.site-nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  gap: 1rem;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
}

.brand-lockup img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.brand-lockup span {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.88rem;
  font-weight: 600;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--blue);
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 72vh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(12, 31, 61, 0.55) 0%, rgba(12, 31, 61, 0.82) 100%),
    url("assets/hero.png") center / cover no-repeat;
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 4rem 1rem 3rem;
  max-width: 720px;
}

.hero-logo {
  width: min(280px, 70vw);
  margin: 0 auto 1.5rem;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 800;
  letter-spacing: 0.06em;
  margin: 0 0 0.5rem;
  text-transform: uppercase;
}

.hero .tagline {
  font-size: 1.05rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.hero p.lead {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 2rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  box-shadow: 0 8px 28px var(--glow);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

/* ── Sections ── */
section {
  padding: 4.5rem 0;
}

section:nth-child(even) {
  background: #fff;
}

.section-label {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.5rem;
}

h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  color: var(--navy);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.prose {
  max-width: 68ch;
  color: var(--muted);
  font-size: 1.05rem;
}

.prose strong {
  color: var(--text);
}

/* ── Three Lenses ── */
.lens-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.lens-card {
  background: #fff;
  border: 1px solid var(--paper-dark);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(12, 31, 61, 0.06);
  transition: transform 0.25s, box-shadow 0.25s;
}

section:nth-child(even) .lens-card {
  background: var(--paper);
}

.lens-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(12, 31, 61, 0.1);
}

.lens-icon {
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
}

.lens-card h3 {
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-size: 1.25rem;
}

.lens-card .lens-sub {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}

.lens-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.lens-card ul {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ── Diagrams ── */
.diagram-wrap {
  margin-top: 2.5rem;
  padding: 2rem;
  background: var(--navy);
  border-radius: var(--radius);
  color: #e8eef5;
  overflow-x: auto;
}

.diagram-wrap h3 {
  margin: 0 0 1.25rem;
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--sky);
}

.diagram-light {
  background: #fff;
  border: 1px solid var(--paper-dark);
  color: var(--text);
}

.diagram-light h3 {
  color: var(--blue);
}

/* Pipeline SVG */
.pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.pipe-node {
  background: rgba(45, 156, 219, 0.15);
  border: 1px solid var(--cyan);
  border-radius: 8px;
  padding: 0.6rem 1rem;
  text-align: center;
  min-width: 110px;
}

.pipe-node.highlight {
  background: var(--cyan);
  color: var(--navy);
  font-weight: 700;
}

.pipe-arrow {
  color: var(--sky);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.diagram-light .pipe-node {
  background: #eef6fc;
  border-color: var(--blue);
  color: var(--navy);
}

.diagram-light .pipe-node.highlight {
  background: var(--blue);
  color: #fff;
}

.diagram-light .pipe-arrow {
  color: var(--blue);
}

/* Loop diagram */
.loops {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.loop-chip {
  border: 2px solid var(--sky);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.loop-chip span {
  display: block;
  font-size: 0.65rem;
  opacity: 0.75;
  font-weight: 400;
}

.loop-chip.messy {
  border-color: #f59e0b;
  opacity: 0.85;
}

.diagram-light .loop-chip {
  border-color: var(--blue);
  color: var(--navy);
}

/* Accessibility matrix */
.matrix {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.matrix th,
.matrix td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.matrix th {
  color: var(--sky);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diagram-light .matrix th,
.diagram-light .matrix td {
  border-color: var(--paper-dark);
}

.diagram-light .matrix th {
  color: var(--blue);
}

/* ── Origin story ── */
.origin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin-top: 2rem;
}

.origin-grid img {
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(12, 31, 61, 0.12);
}

.timeline {
  margin-top: 2rem;
  border-left: 3px solid var(--cyan);
  padding-left: 1.5rem;
}

.timeline-item {
  margin-bottom: 1.5rem;
  position: relative;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.85rem;
  top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--cyan);
  border: 2px solid #fff;
}

.timeline-item strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.timeline-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ── CTA ── */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, #163a6e 100%);
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  max-width: 50ch;
  margin: 0 auto 1.75rem;
  opacity: 0.9;
}

.cta-band .domain {
  font-family: var(--mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sky);
  margin-bottom: 1.5rem;
}

/* ── Footer ── */
.site-footer {
  padding: 2rem 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--paper-dark);
}

.site-footer strong {
  color: var(--navy);
}

.gemini-inside-wrap {
  margin-top: 1.75rem;
  text-align: center;
}

.gemini-inside-badge {
  width: 120px;
  height: auto;
  margin-inline: auto;
  /* PNG is transparent — no background, no filters */
}

.gemini-inside-footer {
  width: 96px;
  height: auto;
  margin: 0 auto 1rem;
  opacity: 0.92;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .origin-grid {
    grid-template-columns: 1fr;
  }

  .pipe-arrow {
    transform: rotate(90deg);
  }
}
