:root {
  --bg: #eef1f7;
  --ink: #1f2937;
  --muted: #697586;
  --line: #d4dae6;
  --grid: rgba(31, 41, 55, 0.045);
  --accent: #e8521f;

  /* role palette (mirrors the framework) */
  --pa: #7c3aed;
  --re: #2563eb;
  --em: #0e7490;
  --dp: #c2410c;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Archivo', system-ui, -apple-system, Segoe UI, sans-serif;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* ---------- Background layers ---------- */

.bg-grid,
.bg-framework,
.bg-network,
.bg-vignette {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.bg-grid {
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 26px 26px;
  z-index: 0;
}

.bg-framework {
  background-image: url('../assets/framework-bg.png');
  background-repeat: no-repeat;
  background-position: center;
  background-size: min(1600px, 130%) auto;
  filter: grayscale(1) blur(3px) contrast(0.9) brightness(1.08);
  opacity: 0.10;
  z-index: 1;
  animation: drift 60s ease-in-out infinite alternate;
}

@keyframes drift {
  from { transform: translate(-1.5%, -1%) scale(1.02); }
  to   { transform: translate(1.5%, 1%)   scale(1.04); }
}

.bg-network {
  width: 100%;
  height: 100%;
  z-index: 2;
  opacity: 0.75;
}

.bg-vignette {
  background:
    radial-gradient(ellipse at center,
      rgba(238, 241, 247, 0) 0%,
      rgba(238, 241, 247, 0.55) 55%,
      rgba(238, 241, 247, 0.92) 100%);
  z-index: 3;
}

/* ---------- Hero (centered content stack) ---------- */

.hero {
  position: relative;
  z-index: 4;
  flex: 1 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 24px;
  text-align: center;
  animation: fade-in 1.2s ease both;
  gap: 0;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

.logo {
  width: min(360px, 70vw);
  height: auto;
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.accent-rule {
  width: 56px;
  height: 3px;
  background: var(--accent);
  border: 0;
  border-radius: 2px;
  margin: 28px 0 22px;
  box-shadow: 0 0 0 1px rgba(232, 82, 31, 0.15);
}

.tagline {
  margin: 0;
  font-size: clamp(20px, 3.4vw, 34px);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
  max-width: 22ch;
  line-height: 1.25;
}

/* ---------- Lifecycle tease ---------- */

.lifecycle-tease {
  list-style: none;
  padding: 0;
  margin: 32px 0 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
}

.lifecycle-tease .tease {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 11px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(4px);
  white-space: nowrap;
}

.lifecycle-tease .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  display: inline-block;
  background: var(--ink);
}

.tease-pa .dot { background: var(--pa); }
.tease-re .dot { background: var(--re); }
.tease-em .dot { background: var(--em); }
.tease-dp .dot { background: var(--dp); }

.lifecycle-tease .sep {
  color: var(--muted);
  font-weight: 400;
  user-select: none;
}

/* ---------- Blurb ---------- */

.blurb {
  margin: 0 auto;
  max-width: 56ch;
  font-size: clamp(14px, 1.6vw, 16px);
  line-height: 1.6;
  color: var(--muted);
  font-weight: 400;
}

/* ---------- Peek link ---------- */

.peek-link {
  margin-top: 32px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 2px;
  border-bottom: 1px solid transparent;
  transition: color 0.25s ease, border-color 0.25s ease, gap 0.25s ease;
}

.peek-link span {
  transition: transform 0.25s ease;
  display: inline-block;
}

.peek-link:hover,
.peek-link:focus-visible {
  color: var(--accent);
  border-bottom-color: var(--accent);
  outline: none;
  gap: 10px;
}

.peek-link:hover span,
.peek-link:focus-visible span {
  transform: translateX(2px);
}

/* ---------- Footer (investor link) ---------- */

.hero-footer {
  position: relative;
  z-index: 4;
  flex: 0 0 auto;
  padding: 24px 24px 28px;
  text-align: center;
}

.investor-link {
  display: inline-block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 4px 6px;
  border-bottom: 1px solid transparent;
  opacity: 0.7;
  transition: color 0.2s ease, opacity 0.2s ease, border-color 0.2s ease;
}

.investor-link:hover,
.investor-link:focus-visible {
  color: var(--accent);
  opacity: 1;
  border-bottom-color: var(--accent);
  outline: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 520px) {
  .hero { padding: 40px 18px 20px; }
  .accent-rule { margin: 22px 0 18px; }
  .lifecycle-tease {
    font-size: 11.5px;
    gap: 6px 8px;
  }
  .lifecycle-tease .tease { padding: 4px 9px; }
}

/* ---------- Motion safety ---------- */

@media (prefers-reduced-motion: reduce) {
  .bg-framework { animation: none; }
  .hero { animation: none; }
}
