/* Lutrin landing page.
   Every color below already exists in the product: the accent, canvas gray,
   ink and muted values are the Slate theme's own tokens — the page moves from
   the editor's world (night) to the deck's world (canvas) as you scroll. */

/* ---------------------------------------------------------------- fonts */
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-400_700.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Fraunces";
  src: url("../fonts/Fraunces-400_700-italic.woff2") format("woff2");
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-400.woff2") format("woff2");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* --------------------------------------------------------------- tokens */
:root {
  --night: #0b1322;
  --night-2: #111d33;
  --line-night: rgba(148, 163, 199, 0.16);
  --dust: #93a5c7;
  --accent: #1d4ed8; /* the theme's exact accent */
  --accent-bright: #5583f7; /* the same blue, lifted for dark ground */
  --canvas: #dee2e6; /* the deck's exact canvas gray */
  --paper: #ffffff;
  --ink: #212529; /* theme ink */
  --muted: #637381; /* theme muted — AA on white only */
  --muted-strong: #525f6d; /* muted darkened to pass AA on --canvas (5.0:1) */
  --line: #ced4da; /* theme border */
  --green: #2e9e77;
  --f-display: "Fraunces", Georgia, serif;
  --f-body: "IBM Plex Sans", -apple-system, "Segoe UI", sans-serif;
  --f-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;
  --wrap: 1140px;
}

/* ----------------------------------------------------------------- base */
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--night);
}
h1,
h2,
h3,
p,
ol,
ul {
  margin: 0;
}
a {
  color: inherit;
}
code,
kbd {
  font-family: var(--f-mono);
  font-size: 0.9em;
}
kbd {
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0 0.35em;
  background: var(--paper);
}
::selection {
  background: var(--accent);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--accent-bright);
  outline-offset: 2px;
  border-radius: 2px;
}
/* on the light half, the lifted blue drops under 3:1 — use the full accent */
.gallery :focus-visible,
.why :focus-visible,
.entries :focus-visible {
  outline-color: var(--accent);
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

h2 {
  font-family: var(--f-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.85rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin-bottom: 0.55em;
}
.eyebrow {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 1.1em;
}
.eyebrow-dark {
  color: var(--accent);
}
.lead {
  max-width: 46em;
  font-size: 1.1rem;
  color: var(--dust);
}
.lead-dark {
  color: var(--muted-strong);
}
.aside {
  max-width: 46em;
  margin-top: 2.6rem;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
  font-size: 0.93rem;
  color: var(--dust);
}
.aside-dark {
  color: var(--muted-strong);
}

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.8em 1.5em;
  border-radius: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.35);
}
.btn-primary:hover {
  background: #2558e0;
}
.btn-ghost {
  color: #fff;
  border: 1px solid var(--line-night);
  background: rgba(17, 29, 51, 0.5);
}
.btn-dark {
  background: var(--ink);
  color: #fff;
}

/* ------------------------------------------------------------------ nav */
.nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(24px, 4vw, 48px);
}
.wordmark {
  font-family: var(--f-display);
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: 1.35rem;
  color: #fff;
  text-decoration: none;
  letter-spacing: -0.01em;
}
.wordmark::after {
  content: "";
  display: inline-block;
  width: 0.45em;
  height: 0.14em;
  margin-left: 0.16em;
  background: var(--accent-bright);
  vertical-align: 0.09em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.2vw, 30px);
  font-family: var(--f-mono);
  font-size: 0.82rem;
}
.nav-links a {
  color: var(--dust);
  text-decoration: none;
}
.nav-links a:hover {
  color: #fff;
}
.nav-gh {
  border: 1px solid var(--line-night);
  border-radius: 6px;
  padding: 0.45em 0.9em;
  color: #fff !important;
}
@media (max-width: 860px) {
  .nav-links a:not(.nav-gh) {
    display: none;
  }
}

/* ----------------------------------------------------------------- hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  background: radial-gradient(1100px 700px at 72% 42%, #12203a 0%, var(--night) 62%);
}
#engine {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 120px 24px 90px;
}
.hero-copy {
  max-width: 34em;
}
.hero h1 {
  font-family: var(--f-display);
  font-optical-sizing: auto;
  font-weight: 620;
  font-size: clamp(2.5rem, 5.6vw, 4.35rem);
  line-height: 1.04;
  letter-spacing: -0.022em;
  color: #fff;
  margin-bottom: 0.4em;
}
.hero h1 em {
  font-style: italic;
  font-weight: 480;
  color: var(--accent-bright);
}
.hero-sub {
  font-size: 1.08rem;
  color: var(--dust);
  max-width: 36em;
  margin-bottom: 2rem;
}
.hero-sub code {
  color: #c9d6f2;
}
.cmd {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  background: rgba(9, 15, 28, 0.82);
  border: 1px solid var(--line-night);
  border-radius: 10px;
  padding: 0.9em 1.2em;
  font-family: var(--f-mono);
  font-size: 0.95rem;
  color: #dbe4f7;
  max-width: 100%;
}
.cmd code::before {
  content: "$ ";
  color: var(--accent-bright);
}
.copy {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--dust);
  background: none;
  border: 1px solid var(--line-night);
  border-radius: 6px;
  padding: 0.35em 0.8em;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
}
.copy:hover {
  color: #fff;
  border-color: var(--dust);
}
.copy.done {
  color: var(--green);
  border-color: var(--green);
}
.hero-meta {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  color: var(--dust);
  margin: 0.9rem 0 2.2rem;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.hero-caption {
  position: absolute;
  z-index: 2;
  left: clamp(24px, 4vw, 48px);
  bottom: 18px;
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--dust);
  margin: 0;
}
@media (max-width: 900px) {
  .hero-inner {
    padding-top: 100px;
  }
  .hero-caption {
    display: none;
  }
}

/* ------------------------------------------------------------- pipeline */
.pipeline {
  background: var(--night);
  padding: clamp(4rem, 8vw, 7rem) 0;
  color: #fff;
}
.pipeline h2 {
  color: #fff;
}
.rail {
  list-style: none;
  padding: 0;
  margin-top: 2.8rem;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  counter-reset: step;
}
.rail li {
  position: relative;
  background: var(--night-2);
  border: 1px solid var(--line-night);
  border-radius: 12px;
  padding: 20px 18px 22px;
}
.rail li + li::before {
  content: "→";
  position: absolute;
  left: -14px;
  top: 24px;
  width: 14px;
  text-align: center;
  color: var(--accent-bright);
  font-family: var(--f-mono);
  font-size: 0.8rem;
}
.rail .step {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  color: var(--accent-bright);
  letter-spacing: 0.12em;
}
.rail h3 {
  font-family: var(--f-mono);
  font-size: 1rem;
  font-weight: 500;
  color: #fff;
  margin: 0.5em 0 0.6em;
}
.rail p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--dust);
}
.rail code {
  color: #c9d6f2;
  font-size: 0.92em;
}
@media (max-width: 1000px) {
  .rail {
    grid-template-columns: repeat(2, 1fr);
  }
  .rail li + li::before {
    content: none;
  }
}
@media (max-width: 560px) {
  .rail {
    grid-template-columns: 1fr;
  }
}

.proof {
  position: relative;
  background: radial-gradient(1000px 640px at 24% 30%, #12203a 0%, var(--night) 62%);
  padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(6rem, 10vw, 9rem);
}
.proof h2 {
  color: #fff;
}
.gallery h2,
.why h2,
.entries h2 {
  color: var(--ink);
}
.proof .lead a {
  color: var(--accent-bright);
}

.tabs {
  display: flex;
  gap: 10px;
  margin: 2.4rem 0 1.4rem;
}
.tab {
  font-family: var(--f-mono);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--dust);
  background: var(--night-2);
  border: 1px solid var(--line-night);
  border-radius: 999px;
  padding: 0.5em 1.3em;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.tab:hover {
  color: #fff;
}
.tab.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.pair {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 26px;
  align-items: start;
}
.editor {
  background: var(--night-2);
  border: 1px solid var(--line-night);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(11, 19, 34, 0.25);
}
.editor-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line-night);
}
.editor-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--line-night);
}
.editor-bar em {
  font-family: var(--f-mono);
  font-style: normal;
  font-size: 0.74rem;
  color: var(--dust);
  margin-left: 8px;
}
.src {
  margin: 0;
  padding: 18px 20px 22px;
  font-family: var(--f-mono);
  font-size: 0.84rem;
  line-height: 1.62;
  color: #c7d2e8;
  overflow-x: auto;
}
.src .k {
  color: var(--accent-bright);
  font-weight: 500;
}
.src .d {
  color: #8ba3d4;
}
.src .up {
  color: var(--green);
}

.slidebox {
  position: relative;
  display: block;
  aspect-ratio: 1280 / 720;
  overflow: hidden;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: 0 14px 40px rgba(11, 19, 34, 0.18);
}
.slidebox iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 1330px;
  height: 728px;
  border: 0;
  transform-origin: 0 0;
  pointer-events: none;
  background: var(--paper);
}
.pair-caption {
  margin-top: 1rem;
  font-size: 0.9rem;
  color: var(--dust);
  max-width: 40em;
}
@media (max-width: 960px) {
  .pair {
    grid-template-columns: 1fr;
  }
}

/* ---------------------------------------- the light world begins here */
.gallery {
  position: relative;
  background: var(--canvas);
  border-radius: 26px 26px 0 0;
  margin-top: -52px;
  padding: clamp(4rem, 7vw, 6rem) 0 clamp(4rem, 7vw, 6rem);
}
.cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  max-width: 1360px;
  margin: 3rem auto 0;
  padding: 0 24px;
}
.col {
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.col:nth-child(2) {
  margin-top: 56px;
}
.card {
  display: block;
  text-decoration: none;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 10px 6px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 44px rgba(11, 19, 34, 0.16);
}
.card .slidebox {
  box-shadow: none;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.card-label {
  display: block;
  padding: 10px 6px 6px;
  font-family: var(--f-mono);
  font-size: 0.76rem;
  color: var(--muted);
}
.card-label code {
  color: var(--accent);
}
@media (max-width: 900px) {
  .cols {
    grid-template-columns: 1fr 1fr;
  }
  .col:nth-child(3) {
    display: none;
  }
}
@media (max-width: 600px) {
  .cols {
    grid-template-columns: 1fr;
  }
  .col:nth-child(2) {
    margin-top: 0;
  }
  .col:nth-child(3) {
    display: flex;
  }
}
.deck-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-top: 3.2rem;
}
.deck-ctas .aside {
  flex-basis: 100%;
  margin-top: 1.6rem;
}

/* ------------------------------------------------------- why + entries */
.why,
.entries {
  background: var(--canvas);
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}
.why {
  border-top: 1px solid var(--line);
}
.grid3,
.grid4 {
  display: grid;
  gap: 20px;
  margin-top: 2.6rem;
}
.grid3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid4 {
  grid-template-columns: repeat(4, 1fr);
}
.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px 24px 26px;
}
.panel h3 {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.6em;
}
.panel p {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--muted);
}
.panel code {
  color: var(--accent);
}
@media (max-width: 1000px) {
  .grid4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .grid3 {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 560px) {
  .grid4 {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------- footer */
.footer {
  background: var(--night);
  border-top: 1px solid var(--line-night);
  padding: 3.5rem 0 2.5rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 32px;
}
.footer-tag {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 1.02rem;
  color: var(--dust);
  margin-top: 0.7rem;
}
.footer-links {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px 40px;
  font-family: var(--f-mono);
  font-size: 0.85rem;
  align-content: start;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--accent-bright);
}
.footer-fine {
  margin-top: 2.6rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line-night);
  font-size: 0.8rem;
  color: var(--dust);
}
.footer-fine code {
  color: #c9d6f2;
}
.footer-fine p {
  margin: 0.3em 0;
}

/* -------------------------------------------------------------- motion */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}
.col {
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .btn,
  .card {
    transition: none;
  }
}
