/* ─── LLM Crate · "soft pastel · light" theme ───────────────────────────────
   Design language shared with the convoTelemetry (CNVT) sister page:
   restrained HSL tokens, clean line-icons in pastel chips, tight type. */
:root {
  color-scheme: light;
  --background: 28 44% 97%;          /* warm cream */
  --surface:    30 50% 98.5%;        /* near-white warm */
  --card:        0  0% 100%;         /* white */
  --foreground: 216 56% 11%;         /* near-black slate (LMCR ink) */
  --muted:          270 32% 96%;     /* faint lavender wash */
  --muted-foreground: 220 12% 44%;   /* slate gray */
  --border:     270 30% 90%;         /* soft lavender border */

  --primary:        336 84% 64%;     /* pink / magenta */
  --primary-foreground: 0 0% 100%;
  --ring:           336 84% 70%;

  /* pastel accent palette (kept close to LMCR's original hues) */
  --pink:     338 92% 73%;
  --rose:     352 96% 78%;
  --lavender: 262 80% 76%;
  --cyan:     208 86% 66%;           /* LMCR blue */
  --emerald:  168 52% 52%;           /* LMCR green/mint */
  --amber:     30 96% 64%;           /* LMCR amber/peach */

  --radius: 1rem;
  --shadow-card: 0 1px 2px hsl(240 12% 50% / 0.05), 0 18px 44px -30px hsl(262 60% 50% / 0.3);
  --shadow-lift: 0 24px 56px -28px hsl(var(--primary) / 0.45);

  --font-sans: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  background: hsl(var(--background));
  color: hsl(var(--foreground));
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* soft fixed pastel washes behind everything (replaces the busy gradient) */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -2;
  background:
    radial-gradient(48rem 38rem at 10% -6%,  hsl(26 96% 84% / 0.50), transparent 55%),
    radial-gradient(52rem 42rem at 100% 2%,  hsl(338 92% 88% / 0.46), transparent 55%),
    radial-gradient(58rem 48rem at 96% 102%, hsl(208 90% 88% / 0.50), transparent 55%),
    radial-gradient(52rem 48rem at 0% 104%,  hsl(262 80% 90% / 0.46), transparent 55%);
}

::selection { background: hsl(var(--primary) / 0.22); }

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container { max-width: 1180px; margin: 0 auto; }

/* shared restrained gradient accent (3 stops, not a rainbow) */
.glow-text {
  background: linear-gradient(100deg, hsl(var(--pink)) 0%, hsl(var(--primary)) 48%, hsl(var(--lavender)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ─── Header / nav ────────────────────────────────────────────────────── */
.site-header {
  align-items: center;
  backdrop-filter: blur(14px);
  background: hsl(var(--background) / 0.72);
  border-bottom: 1px solid hsl(var(--border) / 0.7);
  display: grid;
  gap: 18px;
  grid-template-columns: auto 1fr auto;
  min-height: 66px;
  padding: 0 clamp(18px, 4vw, 58px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 700;
  gap: 11px;
  letter-spacing: -0.01em;
}

.brand-mark {
  border-radius: 11px;
  display: inline-flex;
  height: 36px;
  overflow: hidden;
  width: 36px;
}

.brand-mark img { height: 100%; width: 100%; object-fit: cover; }

.nav-links {
  align-items: center;
  display: flex;
  gap: 4px;
  justify-content: center;
}

.nav-links a {
  border-radius: 8px;
  color: hsl(var(--muted-foreground));
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 12px;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav-links a:hover {
  background: hsl(var(--muted));
  color: hsl(var(--foreground));
}

.nav-actions { display: flex; align-items: center; gap: 10px; }

/* ─── Buttons ─────────────────────────────────────────────────────────── */
.button {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 0.8rem;
  cursor: pointer;
  display: inline-flex;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  gap: 8px;
  height: 44px;
  justify-content: center;
  line-height: 1;
  padding: 0 20px;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    transform 0.12s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.button svg { width: 17px; height: 17px; flex: none; }

.button-lg { height: 50px; padding: 0 26px; font-size: 1rem; }

.button-primary {
  background: linear-gradient(100deg, hsl(var(--pink)), hsl(var(--primary)) 55%, hsl(var(--lavender)));
  color: hsl(var(--primary-foreground));
  box-shadow: 0 10px 28px -10px hsl(var(--primary) / 0.55);
}

.button-primary:hover {
  filter: brightness(1.04) saturate(1.04);
  transform: translateY(-1px);
  box-shadow: 0 16px 38px -12px hsl(var(--primary) / 0.62);
}

.button-secondary {
  background: hsl(var(--card));
  border-color: hsl(var(--border));
  color: hsl(var(--foreground));
  box-shadow: 0 1px 2px hsl(240 12% 50% / 0.06);
}

.button-secondary:hover {
  background: hsl(var(--muted));
  border-color: hsl(var(--primary) / 0.4);
  transform: translateY(-1px);
}

.button:active { transform: translateY(1px); }

/* ─── Pastel icon chips (the de-tackifier: real icons, not the logo) ───── */
.icon-chip {
  align-items: center;
  background: hsl(var(--primary) / 0.14);
  border: 1px solid hsl(var(--primary) / 0.22);
  border-radius: 14px;
  color: hsl(216 34% 18%);
  display: inline-flex;
  flex: none;
  height: 50px;
  justify-content: center;
  width: 50px;
}

.icon-chip svg { width: 23px; height: 23px; }
.icon-chip.c-cyan    { background: hsl(var(--cyan)    / 0.18); border-color: hsl(var(--cyan)    / 0.3); }
.icon-chip.c-emerald { background: hsl(var(--emerald) / 0.2);  border-color: hsl(var(--emerald) / 0.32); }
.icon-chip.c-amber   { background: hsl(var(--amber)   / 0.22); border-color: hsl(var(--amber)   / 0.34); }
.icon-chip.c-lavender{ background: hsl(var(--lavender)/ 0.2);  border-color: hsl(var(--lavender)/ 0.34); }
.icon-chip.c-pink    { background: hsl(var(--pink)    / 0.18); border-color: hsl(var(--pink)    / 0.3); }

/* ─── Typography ──────────────────────────────────────────────────────── */
h1, h2, h3, p { margin-top: 0; }

h1 {
  color: hsl(var(--foreground));
  font-size: clamp(3rem, 6.4vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 14px;
}

h2 {
  color: hsl(var(--foreground));
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 16px;
}

h3 {
  color: hsl(var(--foreground));
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 8px;
}

.eyebrow {
  color: hsl(var(--primary));
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

/* ─── Hero (cinematic background video) ───────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: clamp(560px, 90svh, 900px);
  padding: clamp(72px, 11vh, 132px) clamp(20px, 5vw, 48px);
  /* warm-dark fallback shown behind the video and before it loads (no black flash) */
  background: linear-gradient(160deg, #241a2e 0%, #15101d 55%, #1d1524 100%);
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
}

.hero-video.loaded { opacity: 1; }

/* scrim: dark enough for white text, fading to cream at the bottom so the
   hero melts into the light body instead of ending on a hard seam */
.hero-video-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(120% 80% at 50% 42%, rgba(18, 13, 24, 0.5) 0%, transparent 60%),
    linear-gradient(
      180deg,
      rgba(18, 13, 24, 0.76) 0%,
      rgba(18, 13, 24, 0.55) 44%,
      rgba(18, 13, 24, 0.78) 82%,
      hsl(var(--background)) 100%
    );
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.38);
}

.hero h1 { color: #fff; margin-bottom: 12px; }
.hero .eyebrow { color: #fff; opacity: 0.92; }

.hero-mantra {
  font-family: var(--font-mono);
  font-size: clamp(0.92rem, 1.5vw, 1.08rem);
  font-weight: 600;
  letter-spacing: 0.16em;
  margin-bottom: 18px;
  text-transform: uppercase;
}

.hero-copy {
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  margin: 0 auto;
  max-width: 580px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 30px 0 28px;
}

/* secondary CTA becomes a glass button over the video */
.hero .button-secondary {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  backdrop-filter: blur(6px);
}

.hero .button-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.46);
}

/* trust bar — glass over the video */
.hero-proof {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  box-shadow: 0 16px 44px -22px rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: inline-flex;
  flex-wrap: wrap;
  gap: 14px 26px;
  justify-content: center;
  padding: 16px 22px;
}

.hero-proof span {
  align-items: center;
  color: rgba(255, 255, 255, 0.82);
  display: inline-flex;
  font-size: 0.84rem;
  gap: 10px;
  text-shadow: none;
}

.hero-proof svg {
  width: 26px;
  height: 26px;
  flex: none;
  color: hsl(var(--pink));
  stroke-width: 1.7;
}

.hero-proof strong {
  color: #fff;
  display: block;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.25;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video { display: none; }
  /* poster frame carries the hero when motion is disabled */
  .hero {
    background-image:
      linear-gradient(180deg, rgba(18, 13, 24, 0.62), rgba(18, 13, 24, 0.78)),
      url("assets/llm-crate-bg-poster.jpg");
    background-size: cover;
    background-position: center;
  }
}

/* ─── Metrics strip ───────────────────────────────────────────────────── */
.metrics-strip {
  background: hsl(0 0% 100% / 0.5);
  border-top: 1px solid hsl(var(--border) / 0.8);
  border-bottom: 1px solid hsl(var(--border) / 0.8);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.metric {
  border-right: 1px solid hsl(var(--border) / 0.7);
  display: grid;
  gap: 6px;
  padding: 28px clamp(20px, 4vw, 58px);
}

.metric:last-child { border-right: 0; }

.metric-value {
  color: hsl(var(--foreground));
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.metric-label { color: hsl(var(--muted-foreground)); font-size: 0.95rem; max-width: 340px; }

/* ─── Sections ────────────────────────────────────────────────────────── */
.section { padding: clamp(64px, 8vw, 104px) clamp(20px, 5vw, 78px); }
.section-tight { padding-top: clamp(34px, 5vw, 64px); }

.section-heading { margin: 0 auto 40px; max-width: 940px; }

.section-heading > p:not(.eyebrow) {
  color: hsl(var(--muted-foreground));
  font-size: 1.06rem;
  max-width: 760px;
}

.section-heading.split {
  align-items: end;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1.3fr) minmax(260px, 0.7fr);
  max-width: 1180px;
}

/* ─── Cards ───────────────────────────────────────────────────────────── */
.card-grid { display: grid; gap: 18px; margin: 0 auto; max-width: 1180px; }
.card-grid.three { grid-template-columns: repeat(3, 1fr); }
.card-grid.six { grid-template-columns: repeat(6, 1fr); }

.card,
.mini-card,
.cta-panel,
.faq-list details {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-card);
}

.card {
  padding: 26px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.card:hover {
  border-color: hsl(var(--primary) / 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.card h3 { margin-bottom: 8px; }
.card p { color: hsl(var(--muted-foreground)); font-size: 0.95rem; margin-bottom: 0; }
.card-icon { margin-bottom: 18px; }

.mini-card {
  align-items: center;
  display: grid;
  gap: 12px;
  justify-items: center;
  padding: 22px 12px;
  text-align: center;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card:hover {
  border-color: hsl(var(--primary) / 0.4);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lift);
}

.mini-card span { font-size: 0.92rem; font-weight: 600; }
.mini-card .icon-chip { width: 44px; height: 44px; border-radius: 12px; }
.mini-card .icon-chip svg { width: 21px; height: 21px; }

/* ─── Video ───────────────────────────────────────────────────────────── */
.video-section {
  background: hsl(var(--surface) / 0.6);
  border-top: 1px solid hsl(var(--border) / 0.7);
  border-bottom: 1px solid hsl(var(--border) / 0.7);
}

.video-frame {
  aspect-ratio: 16 / 9;
  background: hsl(var(--surface));
  border: 1px solid hsl(var(--border));
  border-radius: 16px;
  box-shadow: 0 40px 90px -45px hsl(var(--primary) / 0.5);
  margin: 0 auto;
  max-width: 940px;
  overflow: hidden;
}

.video-frame iframe { border: 0; display: block; height: 100%; width: 100%; }

/* ─── Outcomes ────────────────────────────────────────────────────────── */
.outcome-list {
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow-card);
  margin: 0 auto;
  max-width: 940px;
  overflow: hidden;
}

.outcome {
  align-items: center;
  border-bottom: 1px solid hsl(var(--border));
  display: grid;
  gap: 22px;
  grid-template-columns: 56px 1fr;
  padding: 22px 24px;
}

.outcome:last-child { border-bottom: 0; }

.outcome span {
  color: hsl(var(--primary));
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
}

.outcome p { color: hsl(var(--foreground) / 0.85); margin-bottom: 0; }

/* ─── CTA panel + links ───────────────────────────────────────────────── */
.cta-panel {
  background:
    radial-gradient(40rem 20rem at 78% -20%, hsl(var(--primary) / 0.14), transparent),
    hsl(var(--card));
  border-color: hsl(var(--primary) / 0.28);
  margin: 0 auto;
  max-width: 1040px;
  padding: clamp(30px, 5vw, 54px);
}

.cta-panel > p:not(.eyebrow) { color: hsl(var(--muted-foreground)); max-width: 680px; }

.link-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
}

.link-card {
  align-items: center;
  background: hsl(var(--card));
  border: 1px solid hsl(var(--border));
  border-radius: var(--radius);
  box-shadow: 0 1px 2px hsl(240 12% 50% / 0.05);
  display: flex;
  gap: 14px;
  padding: 18px;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.link-card:hover {
  border-color: hsl(var(--primary) / 0.4);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lift);
}

.link-card.primary {
  background: linear-gradient(135deg, hsl(var(--pink) / 0.12), hsl(var(--cyan) / 0.12));
  border-color: hsl(var(--primary) / 0.3);
}

.link-card .icon-chip { width: 44px; height: 44px; border-radius: 12px; }
.link-card .icon-chip svg { width: 21px; height: 21px; }
.link-card span { display: grid; gap: 3px; }
.link-card strong { font-weight: 700; }
.link-card small { color: hsl(var(--muted-foreground)); font-size: 0.84rem; }

/* ─── FAQ ─────────────────────────────────────────────────────────────── */
.faq-list { display: grid; gap: 12px; margin: 0 auto; max-width: 820px; }
.faq-list details { padding: 18px 22px; }
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  color: hsl(var(--muted-foreground));
  float: right;
  font-weight: 500;
  transition: transform 0.2s ease, color 0.2s ease;
}
.faq-list details[open] summary::after { transform: rotate(45deg); color: hsl(var(--primary)); }
.faq-list p { color: hsl(var(--muted-foreground)); font-size: 0.95rem; margin: 12px 0 0; }

/* ─── Footer ──────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid hsl(var(--border));
  color: hsl(var(--muted-foreground));
  display: flex;
  flex-wrap: wrap;
  font-size: 0.88rem;
  gap: 12px;
  justify-content: space-between;
  padding: 32px clamp(20px, 5vw, 78px);
}

/* ─── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .site-header { grid-template-columns: auto auto; }
  .nav-links { display: none; }
  .metrics-strip,
  .card-grid.three,
  .section-heading.split,
  .link-grid { grid-template-columns: 1fr; }
  .card-grid.six { grid-template-columns: repeat(3, 1fr); }
  .metric { border-right: 0; border-bottom: 1px solid hsl(var(--border) / 0.7); }
  .metric:last-child { border-bottom: 0; }
}

@media (max-width: 640px) {
  .site-header { min-height: 60px; padding: 10px 16px; }
  .nav-actions .button { height: 40px; padding: 0 14px; }
  .hero { min-height: clamp(480px, 82svh, 760px); padding: 56px 18px 64px; }
  .card-grid.six { grid-template-columns: repeat(2, 1fr); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .button-lg { width: 100%; }
  .outcome { grid-template-columns: 1fr; gap: 8px; }
}
