/* SPDX-License-Identifier: AGPL-3.0-or-later */
:root {
  --bg: #07110f;
  --bg-raised: #0b1714;
  --panel: rgba(15, 31, 27, 0.76);
  --panel-strong: #10231e;
  --line: rgba(180, 225, 205, 0.16);
  --line-bright: rgba(159, 247, 205, 0.35);
  --text: #effbf5;
  --muted: #a8bdb4;
  --green: #74f0b5;
  --green-strong: #a0ffd0;
  --mint-dark: #153d31;
  --blue: #78aef8;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 20px;
  --max-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 300px;
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    var(--bg);
  background-size: 52px 52px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--green-strong);
  outline-offset: 4px;
  border-radius: 4px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #06100d;
  background: var(--green-strong);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.11;
  pointer-events: none;
}

.ambient-one {
  top: -190px;
  right: -140px;
  background: var(--green);
}

.ambient-two {
  bottom: 15%;
  left: -300px;
  background: var(--blue);
}

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(180, 225, 205, 0.1);
  background: rgba(7, 17, 15, 0.8);
  backdrop-filter: blur(18px);
}

.header-inner,
main,
footer {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 760;
  letter-spacing: -0.02em;
}

.brand img {
  display: block;
}

nav {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

nav a:hover {
  color: var(--text);
}

.nav-launch {
  padding: 8px 14px;
  color: var(--green-strong);
  border: 1px solid var(--line-bright);
  border-radius: 999px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(370px, 0.92fr);
  align-items: center;
  gap: clamp(44px, 7vw, 100px);
  min-height: calc(100vh - 72px);
  padding-block: 80px 94px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow,
.kicker {
  margin: 0 0 18px;
  color: var(--green);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
}

.eyebrow span {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--green);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 28px;
  font-size: clamp(3.6rem, 7.4vw, 7rem);
  font-weight: 690;
  letter-spacing: -0.072em;
  line-height: 0.91;
}

h1 em {
  color: var(--green);
  font-style: normal;
}

.hero-summary {
  max-width: 660px;
  margin-bottom: 32px;
  color: #c3d6cd;
  font-size: clamp(1.03rem, 1.65vw, 1.21rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 50px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: 11px;
  font-size: 0.91rem;
  font-weight: 760;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: #06110d;
  background: var(--green);
  box-shadow: 0 10px 30px rgba(67, 224, 158, 0.14);
}

.button-primary:hover {
  background: var(--green-strong);
}

.button-secondary {
  color: #d7ebe2;
  background: rgba(255, 255, 255, 0.025);
  border-color: var(--line);
}

.button-secondary:hover {
  border-color: var(--line-bright);
}

.access-note {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 620px;
  margin-bottom: 0;
  color: #839c91;
  font-size: 0.78rem;
  line-height: 1.55;
}

.lock {
  position: relative;
  flex: 0 0 13px;
  width: 13px;
  height: 10px;
  margin-top: 5px;
  border: 1.5px solid #829e91;
  border-radius: 2px;
}

.lock::before {
  position: absolute;
  width: 7px;
  height: 7px;
  left: 1.5px;
  top: -7px;
  content: "";
  border: 1.5px solid #829e91;
  border-bottom: 0;
  border-radius: 7px 7px 0 0;
}

.workspace-preview {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(16, 35, 30, 0.96), rgba(8, 20, 17, 0.94));
  border: 1px solid var(--line-bright);
  border-radius: 22px;
  box-shadow: var(--shadow);
}

.workspace-preview::before {
  position: absolute;
  inset: 0;
  content: "";
  background: radial-gradient(circle at 80% 0%, rgba(116, 240, 181, 0.09), transparent 45%);
  pointer-events: none;
}

.window-bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding-inline: 16px;
  background: rgba(255, 255, 255, 0.025);
  border-bottom: 1px solid var(--line);
}

.window-bar > span {
  width: 7px;
  height: 7px;
  background: #476158;
  border-radius: 50%;
}

.window-bar > span:first-child {
  background: var(--green);
}

.window-bar p {
  position: absolute;
  left: 50%;
  margin: 0;
  color: #6f897e;
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.preview-body {
  position: relative;
  padding: 22px;
}

.model-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 15px;
  background: rgba(4, 12, 10, 0.48);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.field-label,
.message-label {
  display: block;
  margin-bottom: 2px;
  color: #789087;
  font-size: 0.62rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.model-row strong {
  font-size: 0.9rem;
}

.selector {
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 720;
}

.selector b {
  padding-left: 3px;
}

.conversation {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding-block: 28px 31px;
}

.message {
  min-width: 0;
}

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #07110e;
  background: var(--green);
  border-radius: 9px;
  font-size: 0.77rem;
  font-weight: 850;
}

.message > p:not(.message-label) {
  margin: 7px 0 15px;
  color: #d3e5dc;
  font-size: 0.84rem;
  line-height: 1.65;
}

.tool-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tool-pills span {
  padding: 4px 8px;
  color: #9fb9ad;
  background: rgba(116, 240, 181, 0.055);
  border: 1px solid rgba(116, 240, 181, 0.14);
  border-radius: 6px;
  font-size: 0.62rem;
}

.prompt-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 51px;
  padding: 9px 9px 9px 15px;
  color: #71877e;
  background: rgba(3, 11, 9, 0.7);
  border: 1px solid var(--line);
  border-radius: 13px;
  font-size: 0.78rem;
}

.prompt-box b {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  color: #07110e;
  background: var(--green);
  border-radius: 8px;
}

.section {
  padding-block: clamp(82px, 11vw, 138px);
  border-top: 1px solid rgba(180, 225, 205, 0.1);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(250px, 0.72fr);
  column-gap: 60px;
  align-items: end;
  margin-bottom: 52px;
}

.section-heading .kicker {
  grid-column: 1 / -1;
}

.section-heading h2,
.boundary-card h2,
.final-cta h2 {
  max-width: 720px;
  margin-bottom: 0;
  font-size: clamp(2.15rem, 4.7vw, 4rem);
  font-weight: 650;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.section-heading > p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.97rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.feature-grid article {
  min-height: 260px;
  padding: 28px 26px;
  border-right: 1px solid var(--line);
}

.feature-grid article:last-child {
  border-right: 0;
}

.feature-number {
  display: block;
  margin-bottom: 58px;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
}

.feature-grid h3 {
  margin-bottom: 12px;
  font-size: 1rem;
  letter-spacing: -0.015em;
}

.feature-grid p {
  margin-bottom: 0;
  color: #8fa79c;
  font-size: 0.82rem;
  line-height: 1.7;
}

.section-heading.compact {
  grid-template-columns: 1.2fr minmax(260px, 0.6fr);
}

.quality-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.metric-card {
  min-height: 280px;
  padding: clamp(26px, 4vw, 42px);
  background: linear-gradient(145deg, rgba(16, 35, 30, 0.94), rgba(8, 20, 17, 0.88));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.metric-label {
  display: block;
  min-height: 2.8em;
  margin: 0;
  color: #789087;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin: 28px 0 20px;
  color: var(--green);
  font-size: clamp(3rem, 6vw, 5.4rem);
  font-weight: 650;
  letter-spacing: -0.065em;
  line-height: 0.9;
}

.metric-card p {
  margin: 0;
  color: #9ab1a6;
  font-size: 0.85rem;
  line-height: 1.7;
}

.quality-note {
  max-width: 940px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.7;
}

.quality-note a {
  color: #a9c8b9;
  text-decoration: underline;
  text-decoration-color: rgba(169, 200, 185, 0.42);
  text-underline-offset: 3px;
}

.quality-note a:hover {
  color: var(--green-strong);
}

.host-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.host-card {
  padding: clamp(26px, 4vw, 42px);
  background: linear-gradient(145deg, rgba(16, 35, 30, 0.94), rgba(8, 20, 17, 0.88));
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.host-card:first-child {
  border-color: var(--line-bright);
}

.host-label {
  margin-bottom: 12px;
  color: var(--green);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.host-card h3 {
  margin-bottom: 28px;
  font-size: clamp(1.45rem, 2.8vw, 2.15rem);
  letter-spacing: -0.04em;
}

.host-card dl {
  margin: 0;
}

.host-card dl > div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 18px;
  padding-block: 13px;
  border-top: 1px solid var(--line);
}

.host-card dt,
.host-card dd {
  margin: 0;
  font-size: 0.82rem;
}

.host-card dt {
  color: #7f988d;
}

.host-card dd {
  color: #c8dbd2;
}

.pool-note {
  max-width: 840px;
  margin: 24px auto 0;
  color: #879f94;
  font-size: 0.79rem;
  text-align: center;
}

.pool-note strong {
  color: #b9d0c5;
}

.boot-note {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-top: 40px;
  padding: 24px 26px;
  color: #a8bdb4;
  background: rgba(120, 174, 248, 0.045);
  border: 1px solid rgba(120, 174, 248, 0.2);
  border-radius: 14px;
}

.boot-icon {
  display: grid;
  flex: 0 0 39px;
  place-items: center;
  width: 39px;
  height: 39px;
  color: #b6d3ff;
  background: rgba(120, 174, 248, 0.08);
  border: 1px solid rgba(120, 174, 248, 0.22);
  border-radius: 10px;
  font-size: 1.15rem;
}

.boot-note strong {
  display: block;
  margin-bottom: 4px;
  color: #dcebe4;
  font-size: 0.88rem;
}

.boot-note p {
  margin: 0;
  font-size: 0.8rem;
}

.flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(9, 22, 18, 0.58);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.14);
}

.flow li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 118px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.flow li:not(:last-child)::after {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -12px;
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  content: "›";
  color: var(--green);
  background: var(--bg-raised);
  border: 1px solid var(--line-bright);
  border-radius: 50%;
  transform: translateY(-50%);
}

.flow li:last-child {
  border-right: 0;
}

.flow-icon {
  display: grid;
  flex: 0 0 39px;
  place-items: center;
  width: 39px;
  height: 39px;
  color: var(--green);
  background: rgba(116, 240, 181, 0.055);
  border: 1px solid rgba(116, 240, 181, 0.2);
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65rem;
}

.flow strong,
.flow small {
  display: block;
}

.flow strong {
  margin-bottom: 2px;
  font-size: 0.85rem;
}

.flow small {
  color: #7d958b;
  font-size: 0.67rem;
}

.flow-caption {
  max-width: 740px;
  margin: 22px auto 0;
  color: #71887e;
  font-size: 0.74rem;
  text-align: center;
}

.boundary-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(50px, 8vw, 120px);
  padding: clamp(34px, 6vw, 70px);
  background: linear-gradient(135deg, rgba(19, 46, 38, 0.72), rgba(9, 24, 20, 0.85));
  border: 1px solid var(--line-bright);
  border-radius: var(--radius);
}

.boundary-copy {
  color: #adc2b8;
  font-size: 0.91rem;
}

.boundary-copy p {
  margin-bottom: 20px;
}

.boundary-copy p:last-child {
  margin-bottom: 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.final-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.final-cta h2 {
  margin-bottom: 18px;
}

.final-cta > p:not(.kicker) {
  max-width: 590px;
  margin-bottom: 28px;
  color: var(--muted);
}

footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  padding-block: 36px 44px;
  border-top: 1px solid var(--line);
}

.footer-brand {
  margin-bottom: 10px;
}

footer p {
  margin-bottom: 0;
  color: #71877e;
  font-size: 0.72rem;
}

.footer-meta {
  max-width: 370px;
  text-align: right;
}

.footer-meta a {
  display: inline-block;
  margin-left: 10px;
  color: #a9c8b9;
}

.footer-meta a:hover {
  color: var(--green-strong);
}

@media (max-width: 940px) {
  nav > a:not(.nav-launch) {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 100px;
  }

  .workspace-preview {
    width: min(100%, 610px);
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quality-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 0;
  }

  .feature-grid article:nth-child(2) {
    border-right: 0;
  }

  .feature-grid article:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .flow {
    grid-template-columns: 1fr;
  }

  .flow li,
  .flow li:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow li:last-child {
    border-bottom: 0;
  }

  .flow li:not(:last-child)::after,
  .flow li:nth-child(2)::after {
    top: auto;
    right: 50%;
    bottom: -12px;
    display: grid;
    transform: translateX(50%) rotate(90deg);
  }
}

@media (max-width: 680px) {
  .header-inner,
  main,
  footer {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .site-header {
    position: static;
  }

  .header-inner {
    min-height: 66px;
  }

  .brand {
    font-size: 0.92rem;
  }

  .nav-launch {
    padding: 7px 10px;
    font-size: 0.75rem;
  }

  .hero {
    padding-block: 70px 78px;
  }

  h1 {
    overflow-wrap: break-word;
    font-size: clamp(2.8rem, 15vw, 4.7rem);
  }

  .hero-actions,
  .hero-actions .button {
    width: 100%;
  }

  .window-bar p {
    display: none;
  }

  .preview-body {
    padding: 16px;
  }

  .model-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .model-row strong,
  .message,
  .prompt-box span {
    overflow-wrap: anywhere;
  }

  .prompt-box span {
    min-width: 0;
    padding-right: 10px;
  }

  .section-heading,
  .section-heading.compact,
  .boundary-card {
    grid-template-columns: 1fr;
  }

  .host-grid {
    grid-template-columns: 1fr;
  }

  .host-card dl > div {
    grid-template-columns: 78px minmax(0, 1fr);
  }

  .boot-note {
    padding: 20px;
  }

  .section-heading {
    row-gap: 22px;
  }

  .feature-grid,
  .flow {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    min-height: 230px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .feature-grid article:last-child {
    border-bottom: 0;
  }

  .feature-number {
    margin-bottom: 38px;
  }

  .flow li,
  .flow li:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .flow li:last-child {
    border-bottom: 0;
  }

  .flow li:not(:last-child)::after,
  .flow li:nth-child(2)::after {
    top: auto;
    right: 50%;
    bottom: -12px;
    display: grid;
    transform: translateX(50%) rotate(90deg);
  }

  .boundary-card {
    gap: 36px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-meta {
    text-align: left;
  }

  .footer-meta a {
    margin-right: 10px;
    margin-left: 0;
  }
}

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

  .button {
    transition: none;
  }
}
