/* AirLLM Studio — airllm.css
   Product layer on top of the Rudra Labs system (styles.css) and the shared product-site parts (site.css).
   One change to the system: the action colour is AirLLM Studio's teal instead of Neel. */

:root {
  --neel: #0e7c76;
  --neel-deep: #0a5f5a;
  --neel-light: #35b5aa;
  --layer: #3e5163;
  --layer-dim: #253546;
  --ink-deep: #0d141b;
}

/* Brand marks ------------------------------------------------------------- */
.gnav__mark { width: 24px; height: 20px; }
.footer__mark { width: 26px; height: 22px; }
.al-mark__layer { fill: currentColor; opacity: 0.42; }
.al-mark__active { fill: var(--neel-light); }

/* Hero -------------------------------------------------------------------- */
.al-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  justify-items: center;
  padding: clamp(4rem, 3rem + 5vw, 7.5rem) var(--gutter) 0;
  background: var(--black);
  text-align: center;
}
.al-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 18rem;
  width: min(110vw, 60rem);
  aspect-ratio: 1;
  translate: -50% -50%;
  background: radial-gradient(closest-side, rgb(53 181 170 / 0.16), transparent);
}
.al-stack {
  display: grid;
  gap: 7px;
  width: clamp(7.5rem, 5.5rem + 8vw, 11rem);
  margin-bottom: clamp(1.75rem, 1.25rem + 2vw, 2.75rem);
}
.al-stack__layer {
  height: clamp(6px, 4px + 0.4vw, 9px);
  border-radius: 99px;
  background: var(--layer-dim);
  animation: al-read 3.2s var(--ease-out) infinite;
}
/* One layer lights up after another, top to bottom, like the reader moving through the model.
   Delays live here, not in style attributes, because the CSP allows no inline styles. */
.al-stack__layer:nth-child(2) { animation-delay: 0.2s; }
.al-stack__layer:nth-child(3) { animation-delay: 0.4s; }
.al-stack__layer:nth-child(4) { animation-delay: 0.6s; }
.al-stack__layer:nth-child(5) { animation-delay: 0.8s; }
.al-stack__layer:nth-child(6) { animation-delay: 1s; }
.al-stack__layer:nth-child(7) { animation-delay: 1.2s; }
.al-stack__layer:nth-child(8) { animation-delay: 1.4s; }
.al-stack__layer:nth-child(9) { animation-delay: 1.6s; }
.al-stack__layer:nth-child(10) { animation-delay: 1.8s; }
@keyframes al-read {
  0%, 18%, 100% { background: var(--layer-dim); transform: scaleX(1); }
  6% { background: var(--neel-light); transform: scaleX(1.18); box-shadow: 0 0 18px rgb(53 181 170 / 0.55); }
}
@media (prefers-reduced-motion: reduce) {
  .al-stack__layer { animation: none; }
  .al-stack__layer:nth-child(7) { background: var(--neel-light); transform: scaleX(1.18); }
}
.al-hero__title {
  padding-bottom: 0.04em;
  font-size: clamp(3.25rem, 1.6rem + 7.2vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  color: var(--white);
}
.al-hero__tagline {
  margin-top: 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.8vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #f5f5f7 20%, var(--neel-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.al-hero__sub {
  max-width: 36rem;
  margin-top: 1rem;
  font-size: clamp(1.0625rem, 0.95rem + 0.5vw, 1.3125rem);
  line-height: 1.45;
  color: #a1a1a6;
}
.al-hero__meta { margin-top: 1.5rem; font-size: var(--step-small); color: #a1a1a6; }
.al-hero__meta a { color: var(--neel-light); }
.al-shot {
  width: min(100%, 68rem);
  margin-top: clamp(3rem, 2rem + 4vw, 5rem);
}
.al-window {
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 0.14);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
  background: var(--ink-deep);
  box-shadow: 0 -10px 80px rgb(53 181 170 / 0.12);
}
.al-window__bar {
  display: flex;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid rgb(255 255 255 / 0.08);
}
.al-window__bar span { width: 11px; height: 11px; border-radius: 50%; background: rgb(255 255 255 / 0.16); }
.al-window img, .al-frame img { display: block; width: 100%; height: auto; }
.al-shot__caption {
  padding: 1.25rem 0 clamp(3rem, 2rem + 3vw, 4.5rem);
  font-size: var(--step-small);
  color: #a1a1a6;
}

/* Layer streaming explainer ------------------------------------------------ */
.al-flow { display: grid; gap: 12px; counter-reset: flow; }
@media (min-width: 735px) { .al-flow { grid-template-columns: repeat(3, 1fr); } }
.al-flow__step {
  counter-increment: flow;
  padding: 2rem 1.75rem;
  border-radius: 18px;
  background: var(--bg);
}
.al-flow__step::before {
  content: counter(flow);
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--neel);
  color: var(--white);
  font-size: var(--step-small);
  font-weight: 600;
}
.al-flow__title { font-size: var(--step-4); font-weight: 600; letter-spacing: -0.02em; }
.al-flow__text { margin-top: 0.5rem; color: var(--text-2); }
.al-rule {
  max-width: 44rem;
  margin: clamp(3rem, 2.5rem + 2vw, 4rem) auto 0;
  text-align: center;
}
.al-rule__formula {
  display: inline-block;
  padding: 0.875rem 1.5rem;
  border-radius: 14px;
  background: var(--bg);
  font-family: var(--font-mono);
  font-size: clamp(0.875rem, 0.8rem + 0.35vw, 1.0625rem);
}
.al-rule__text { margin-top: 1rem; color: var(--text-2); }
.al-fit { display: grid; gap: 12px; margin-top: clamp(3rem, 2.5rem + 2vw, 4rem); }
@media (min-width: 735px) { .al-fit { grid-template-columns: 1fr 1fr; } }
.al-fit__card { padding: 2rem 1.75rem; border-radius: 18px; background: var(--bg); }
.al-fit__card--yes { --dot: #30d158; }
.al-fit__card--no { --dot: #ff9f0a; }
.al-fit__label {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-size: var(--step-4);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.al-fit__label::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--dot); }
.al-fit__text { margin-top: 0.625rem; color: var(--text-2); }

/* Screenshot frame for light sections -------------------------------------- */
.al-frame {
  overflow: hidden;
  max-width: 64rem;
  margin: clamp(2.5rem, 2rem + 2vw, 3.5rem) auto 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 30px 80px rgb(0 0 0 / 0.12);
}

/* API --------------------------------------------------------------------- */
.al-api { display: grid; gap: 12px; max-width: 64rem; margin-inline: auto; }
@media (min-width: 900px) { .al-api { grid-template-columns: 1fr 1fr; } }
.al-api__panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.75rem;
  border-radius: 18px;
  background: #161617;
}
.al-api__label { font-size: var(--step-small); font-weight: 600; color: var(--neel-light); }
.al-api__title { margin-top: 0.25rem; font-size: var(--step-4); font-weight: 600; letter-spacing: -0.02em; color: var(--white); }
.al-api__panel .bv-cmd { margin-top: 1.25rem; flex: 1; }
.al-api__note { max-width: 40rem; margin: 2.5rem auto 0; text-align: center; color: #a1a1a6; }
.al-api__note code { font-family: var(--font-mono); color: #f5f5f7; }

/* Privacy list ------------------------------------------------------------ */
.al-facts { display: grid; gap: 2rem 3rem; max-width: 60rem; margin-inline: auto; }
@media (min-width: 735px) { .al-facts { grid-template-columns: repeat(2, 1fr); } }
.al-fact { padding-top: 1.5rem; border-top: 1px solid var(--line); }
.al-fact__title { font-size: var(--step-4); font-weight: 600; letter-spacing: -0.02em; }
.al-fact__text { margin-top: 0.5rem; color: var(--text-2); }
.al-fact__text code { font-family: var(--font-mono); font-size: 0.92em; }

/* Platform cards ---------------------------------------------------------- */
.al-get { display: grid; gap: 12px; }
@media (min-width: 735px) { .al-get { grid-template-columns: repeat(3, 1fr); } }
.al-get__item {
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem;
  border-radius: 18px;
  background: var(--bg-alt);
}
.al-get__title { font-size: var(--step-4); font-weight: 600; letter-spacing: -0.02em; }
.al-get__distros { margin: 0.25rem 0 1.5rem; font-size: var(--step-small); color: var(--text-2); }
.al-get__actions { display: grid; gap: 0.625rem; margin-top: auto; justify-items: start; }
.al-get__alt { font-size: var(--step-small); }
.al-get__alt .bv-size { margin-left: 0.25rem; color: var(--text-2); }

/* Download page: package variants --------------------------------------- */
.al-variants { display: flex; flex-wrap: wrap; gap: 0.625rem; margin-top: 1.25rem; }
.al-variants .btn { margin: 0; }
.al-pkg-files { display: grid; gap: 1.125rem; }
.al-pkg-file__name { font-size: var(--step-small); font-weight: 600; }
.al-pkg-file .bv-cmd { margin-top: 0.5rem; }
.al-pkg-file .bv-sha { margin-top: 0.5rem; }
.al-callout {
  margin-top: 1.5rem;
  padding: 1.125rem 1.25rem;
  border-left: 3px solid var(--neel);
  border-radius: 0 12px 12px 0;
  background: var(--bg-alt);
  line-height: 1.55;
}
.section--alt .al-callout { background: var(--bg); }
.al-callout code { font-family: var(--font-mono); font-size: 0.92em; }

/* Independent-project notice --------------------------------------------- */
.al-notice {
  max-width: 46rem;
  margin-inline: auto;
  text-align: center;
  font-size: var(--step-small);
  line-height: 1.6;
  color: var(--text-2);
}
.al-notice strong { color: var(--text); }
.footer__notice { max-width: 46rem; font-size: var(--step-fine); color: #86868b; line-height: 1.5; }

/* 404 -------------------------------------------------------------------- */
.al-notfound .al-stack { width: 7rem; margin-bottom: 2.5rem; }

/* The shared hero entrance waits for a logo animation this page doesn't have. */
.al-hero .hero__actions { animation-delay: 0.15s; }
/* Code samples keep their shape; wide lines scroll instead of wrapping. */
.al-api .bv-cmd code { white-space: pre; overflow-wrap: normal; overflow-x: auto; }
.al-callout-wrap { max-width: 60rem; margin: 1.5rem auto 0; }
.al-callout-wrap .al-callout { margin-top: 0; }
.al-pkg-file .bv-step__text { margin-top: 0.375rem; font-size: var(--step-small); }
