:root {
  --bg: #070b14;
  --panel: #0e1422;
  --line: #1e2a40;
  --text: #e8eefc;
  --dim: #9aa8c2;
  --accent: #38a8f8;
  --bright: #67e8f9;
  --pale: #e6fbff;
  --deep: #6366f1;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

h1, h2, h3, nav, .chips, footer {
  font-family: "Exo 2", system-ui, sans-serif;
}

code, pre {
  font-family: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  font-size: .9em;
}

p code {
  color: var(--bright);
  background: rgba(56, 168, 248, .1);
  padding: .05em .35em;
  border-radius: 4px;
}

/* ---- hero: live waterfall behind the pitch ---- */

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.fade {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 52%, rgba(7, 11, 20, .82) 0%, rgba(7, 11, 20, .35) 70%, transparent 100%),
    linear-gradient(180deg, rgba(7, 11, 20, .55) 0%, transparent 18%, transparent 60%, var(--bg) 100%);
}

nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 3vw, 2rem);
  padding: 1rem clamp(1rem, 4vw, 2.5rem);
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .04em;
}

nav a {
  color: var(--dim);
  text-decoration: none;
  transition: color .15s;
}

nav a:hover, nav a:focus-visible { color: var(--bright); }

.brand {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin-right: auto;
  color: var(--text);
  font-weight: 700;
  font-size: 1.1rem;
}

.pitch {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .9rem;
  padding: 2rem 1rem 12vh;
  text-align: center;
}

.logo {
  width: clamp(84px, 16vmin, 130px);
  height: auto;
  filter: drop-shadow(0 0 26px rgba(56, 168, 248, .45));
}

.wordmark {
  font-weight: 700;
  font-size: clamp(3rem, 13vw, 7rem);
  line-height: 1.2;
  padding-bottom: .12em;      /* room for the g's descender inside the clipped gradient */
  letter-spacing: 0;
  background: linear-gradient(180deg, var(--pale) 0%, var(--bright) 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(56, 168, 248, .35));
}

.wordmark span { letter-spacing: .06em; }

.tagline {
  max-width: 34ch;
  font-size: clamp(1.15rem, 3.2vw, 1.6rem);
  line-height: 1.35;
  color: var(--text);
}

.sub {
  max-width: 52ch;
  color: var(--dim);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5rem;
  margin-top: .6rem;
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .05em;
}

.chips span {
  padding: .25rem .7rem;
  border: 1px solid rgba(56, 168, 248, .45);
  border-radius: 999px;
  color: var(--bright);
  background: rgba(7, 11, 20, .6);
}

/* ---- sections ---- */

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 4vw, 2rem);
}

section { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }

section + section { border-top: 1px solid var(--line); }

h2 {
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 1.6rem;
}

h2::before {
  content: "";
  display: inline-block;
  width: .55em;
  height: .55em;
  margin-right: .55em;
  background: linear-gradient(180deg, var(--bright), var(--accent));
  box-shadow: 0 0 14px rgba(56, 168, 248, .7);
}

section p { color: var(--dim); }
section p + p { margin-top: .9rem; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 1rem;
}

article {
  padding: 1.2rem 1.25rem 1.3rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 6px;
}

h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin-bottom: .45rem;
  color: var(--text);
}

article p { font-size: .95rem; line-height: 1.55; }

/* ---- pipeline flow ---- */

.flow {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.6rem;
}

.flow li {
  position: relative;
  padding: 1rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.flow li + li::before {
  content: "";
  position: absolute;
  left: -1.6rem;
  top: 50%;
  width: 1.6rem;
  height: 2px;
  background: linear-gradient(90deg, var(--deep), var(--bright));
}

.flow b {
  display: block;
  font-family: "Exo 2", system-ui, sans-serif;
  font-size: 1.1rem;
  margin-bottom: .3rem;
}

.flow span { display: block; color: var(--dim); font-size: .88rem; line-height: 1.5; }

.flow .core {
  border-color: var(--accent);
  box-shadow: 0 0 28px rgba(56, 168, 248, .22), inset 0 0 22px rgba(56, 168, 248, .08);
}

.flow .core b { color: var(--bright); font-family: "JetBrains Mono", ui-monospace, monospace; }

/* ---- code ---- */

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.2rem, 4vw, 2.5rem);
  align-items: start;
}

pre {
  padding: 1.1rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--line);
  border-left: 2px solid var(--accent);
  border-radius: 6px;
  overflow-x: auto;
  line-height: 1.55;
  color: var(--text);
}

pre .k { color: var(--accent); }
pre .n { color: var(--bright); }
pre .s { color: #a5b4fc; }
pre .m { color: var(--pale); }

footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: 2rem 1rem 2.5rem;
  border-top: 1px solid var(--line);
  color: var(--dim);
  font-weight: 500;
  letter-spacing: .06em;
}

@media (max-width: 820px) {
  .flow { grid-template-columns: 1fr; }
  .flow li + li::before {
    left: 1.6rem;
    top: -1.6rem;
    width: 2px;
    height: 1.6rem;
    background: linear-gradient(180deg, var(--deep), var(--bright));
  }
  .split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  nav a:not(.brand) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
