/* CarpeOS website — original static design system */

:root {
  color-scheme: dark;
  --bg-0: #0b1020;
  --bg-1: #151b33;
  --surface-0: #1a2340;
  --surface-1: #121a31;
  --surface-2: #202b4d;
  --stroke: #2c3a66;
  --stroke-strong: #4f66a3;
  --text-0: #f4f7ff;
  --text-1: #c2cbe3;
  --text-2: #a9b4d0;
  --text-3: #8fa0c7;
  --accent-0: #4f7cff;
  --accent-1: #22c1a8;
  --shadow-soft: 0 24px 80px rgba(0, 0, 0, 0.26);
  --shadow-card: 0 16px 44px rgba(2, 6, 23, 0.22);
  --radius-md: 18px;
  --radius-lg: 26px;
  --radius-xl: 34px;
  --container: 1160px;
  --nav-height: 74px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  scroll-padding-top: calc(var(--nav-height) + 22px);
  background: var(--bg-0);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(79, 124, 255, 0.12), transparent 28rem),
    radial-gradient(circle at 88% 18%, rgba(34, 193, 168, 0.08), transparent 24rem),
    var(--bg-0);
  color: var(--text-1);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}
img {
  height: auto;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button,
input,
textarea,
select {
  font: inherit;
}

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

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--accent-1);
  outline-offset: 4px;
  border-radius: 6px;
}

::selection {
  background: rgba(79, 124, 255, 0.42);
  color: var(--text-0);
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 14px;
  left: 16px;
  padding: 11px 16px;
  transform: translateY(-150%);
  border: 1px solid var(--accent-1);
  border-radius: 10px;
  background: var(--bg-0);
  color: var(--text-0);
  font-weight: 700;
  transition: transform 160ms ease;
}

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

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.section {
  position: relative;
  padding: 112px 0;
}

.section-muted {
  border-block: 1px solid rgba(44, 58, 102, 0.65);
  background:
    linear-gradient(180deg, rgba(18, 26, 49, 0.86), rgba(21, 27, 51, 0.68)),
    var(--bg-1);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 54px;
}

.section-heading-split {
  display: grid;
  max-width: none;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 56px;
  align-items: end;
}

.section-heading h2,
.model-copy h2,
.install-copy h2,
.closing-inner h2 {
  margin: 10px 0 18px;
  color: var(--text-0);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-heading p,
.model-copy > p,
.install-copy > p {
  margin: 0;
  color: var(--text-2);
  font-size: clamp(1rem, 1.7vw, 1.18rem);
  line-height: 1.75;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-1);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 24px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-0), var(--accent-1));
  content: "";
}

/* Navigation */

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  border-bottom: 1px solid transparent;
  background: rgba(11, 16, 32, 0.4);
  backdrop-filter: blur(16px);
  transition: background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(44, 58, 102, 0.78);
  background: rgba(11, 16, 32, 0.9);
  box-shadow: 0 12px 38px rgba(0, 0, 0, 0.2);
}

.nav {
  display: flex;
  min-height: var(--nav-height);
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 11px;
  color: var(--text-0);
  font-size: 1.04rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 7px 18px rgba(3, 8, 25, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--text-2);
  font-size: 0.9rem;
  font-weight: 650;
}

.nav-links > a:not(.button) {
  position: relative;
  padding: 10px 0;
  transition: color 160ms ease;
}

.nav-links > a:not(.button)::after {
  position: absolute;
  right: 0;
  bottom: 5px;
  left: 0;
  height: 1px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--accent-1);
  content: "";
  transition: transform 180ms ease;
}

.nav-links > a:not(.button):hover,
.nav-links > a:not(.button):focus-visible {
  color: var(--text-0);
}

.nav-links > a:not(.button):hover::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: var(--surface-1);
  color: var(--text-0);
  cursor: pointer;
}

.nav-toggle span {
  width: 20px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  transition: transform 180ms ease;
}

.nav-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(4px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-4px) rotate(-45deg);
}

/* Buttons */

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: 13px;
  font-size: 0.93rem;
  font-weight: 780;
  line-height: 1;
  transition: transform 180ms var(--ease-out), border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

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

.button-primary {
  background: linear-gradient(135deg, var(--accent-0), #557bea 52%, var(--accent-1));
  color: var(--bg-0);
  box-shadow: 0 14px 34px rgba(79, 124, 255, 0.24);
}

.button-primary:hover {
  box-shadow: 0 18px 44px rgba(79, 124, 255, 0.34);
}

.button-secondary,
.button-ghost {
  border-color: var(--stroke);
  background: rgba(26, 35, 64, 0.72);
  color: var(--text-0);
}

.button-secondary:hover,
.button-ghost:hover {
  border-color: var(--stroke-strong);
  background: var(--surface-2);
}

.button-small {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 10px;
  font-size: 0.82rem;
}

/* Hero */

.hero {
  min-height: 100svh;
  padding-top: calc(var(--nav-height) + 104px);
  padding-bottom: 54px;
  overflow: hidden;
}

.hero::before {
  position: absolute;
  inset: 0;
  opacity: 0.26;
  background-image:
    linear-gradient(rgba(79, 124, 255, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(79, 124, 255, 0.09) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(to bottom, black, transparent 74%);
  content: "";
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.12;
  pointer-events: none;
}

.hero-glow-one {
  top: 13%;
  left: -220px;
  background: var(--accent-0);
}

.hero-glow-two {
  top: 24%;
  right: -260px;
  background: var(--accent-1);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 1fr);
  gap: clamp(48px, 5.5vw, 76px);
  align-items: center;
}

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

.status-pill {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  padding: 8px 12px;
  border: 1px solid rgba(79, 124, 255, 0.36);
  border-radius: 999px;
  background: rgba(26, 35, 64, 0.72);
  color: var(--text-2);
  font-size: 0.77rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-1);
  box-shadow: 0 0 0 5px rgba(34, 193, 168, 0.12);
}

.hero h1 {
  margin: 0;
  color: var(--text-0);
  font-size: clamp(3.6rem, 6vw, 5rem);
  line-height: 0.94;
  letter-spacing: -0.058em;
  overflow-wrap: normal;
  word-break: normal;
}

.hero h1 span {
  display: block;
  color: var(--accent-1);
}

@supports ((background-clip: text) or (-webkit-background-clip: text)) {
  .hero h1 span {
    background: linear-gradient(100deg, var(--accent-0), #83a0ff 43%, var(--accent-1));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

.hero-lede {
  max-width: 660px;
  margin: 30px 0 0;
  color: var(--text-2);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.hero-note {
  margin: 20px 0 0;
  color: var(--text-3);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-visual {
  position: relative;
  padding: 34px;
}

.visual-frame {
  position: relative;
  isolation: isolate;
}

.visual-frame::before,
.visual-frame::after {
  position: absolute;
  z-index: -1;
  border-radius: 32px;
  content: "";
}

.visual-frame::before {
  inset: -16px;
  border: 1px solid rgba(79, 124, 255, 0.25);
  background: linear-gradient(145deg, rgba(79, 124, 255, 0.1), rgba(34, 193, 168, 0.06));
  transform: rotate(2deg);
}

.visual-frame::after {
  inset: 14% -8% -11% 12%;
  background: linear-gradient(135deg, rgba(79, 124, 255, 0.2), rgba(34, 193, 168, 0.12));
  filter: blur(52px);
}

.visual-frame > img {
  width: 100%;
  border: 1px solid rgba(143, 160, 199, 0.2);
  border-radius: 28px;
  box-shadow: var(--shadow-soft);
}

.signal-card {
  position: absolute;
  display: grid;
  min-width: 188px;
  gap: 4px;
  padding: 13px 16px;
  border: 1px solid rgba(79, 124, 255, 0.34);
  border-radius: 13px;
  background: rgba(11, 16, 32, 0.9);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(14px);
}

.signal-card span {
  color: var(--accent-1);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.signal-card strong {
  color: var(--text-0);
  font-size: 0.78rem;
}

.signal-card-one {
  top: -22px;
  right: -18px;
}

.signal-card-two {
  bottom: -28px;
  left: -24px;
}

.trust-strip {
  position: relative;
  z-index: 2;
  display: grid;
  margin-top: 92px;
  padding: 20px 24px;
  border: 1px solid rgba(44, 58, 102, 0.72);
  border-radius: 16px;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(18, 26, 49, 0.72);
}

.trust-strip span {
  position: relative;
  padding: 0 18px;
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.trust-strip span + span::before {
  position: absolute;
  top: 10%;
  left: 0;
  width: 1px;
  height: 80%;
  background: var(--stroke);
  content: "";
}

/* Problem cards */

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

.problem-card,
.interface-card,
.docs-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(44, 58, 102, 0.86);
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(26, 35, 64, 0.96), rgba(18, 26, 49, 0.88));
  box-shadow: var(--shadow-card);
  transition: transform 220ms var(--ease-out), border-color 220ms ease, box-shadow 220ms ease;
}

.problem-card:hover,
.interface-card:hover,
.docs-card:hover {
  transform: translateY(-5px);
  border-color: rgba(79, 124, 255, 0.62);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.28);
}

.problem-card {
  display: flex;
  min-height: 260px;
  padding: 30px;
  flex-direction: column;
}

.card-index {
  color: var(--accent-1);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.16em;
}

.problem-card h3,
.interface-card h3,
.docs-card h3,
.process-step h3 {
  margin: 18px 0 10px;
  color: var(--text-0);
  font-size: 1.24rem;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

.problem-card p,
.interface-card p,
.docs-card p,
.process-step p {
  margin: 0;
  color: var(--text-2);
}

.card-resolution {
  margin-top: auto;
  padding: 28px 0 0 16px;
  border-left: 2px solid var(--accent-1);
  color: var(--text-1);
  font-size: 0.86rem;
  line-height: 1.55;
}

/* Architecture */

.architecture-frame {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background: var(--surface-1);
  box-shadow: var(--shadow-soft);
}

.architecture-frame img {
  width: 100%;
  height: auto;
}

.process-grid {
  display: grid;
  margin: 30px 0 0;
  padding: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  list-style: none;
}

.process-step {
  position: relative;
  display: flex;
  gap: 16px;
  padding: 24px 20px;
}

.process-step + .process-step {
  border-left: 1px solid var(--stroke);
}

.process-step > span {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(79, 124, 255, 0.48);
  border-radius: 10px;
  background: rgba(79, 124, 255, 0.1);
  color: var(--accent-1);
  font-size: 0.74rem;
  font-weight: 850;
}

.process-step h3 {
  margin: 1px 0 8px;
  font-size: 1rem;
}

.process-step p {
  font-size: 0.86rem;
  line-height: 1.55;
}

/* Interfaces */

.interface-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.94fr 0.94fr;
  gap: 18px;
}

.interface-card {
  display: flex;
  min-height: 360px;
  padding: 30px;
  flex-direction: column;
}

.interface-card-featured {
  border-color: rgba(34, 193, 168, 0.34);
  background:
    radial-gradient(circle at 75% 0%, rgba(34, 193, 168, 0.14), transparent 44%),
    linear-gradient(155deg, rgba(26, 35, 64, 0.98), rgba(18, 26, 49, 0.92));
}

.interface-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border: 1px solid rgba(79, 124, 255, 0.38);
  border-radius: 15px;
  background: rgba(79, 124, 255, 0.1);
  color: var(--accent-1);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.1rem;
  font-weight: 800;
}

.interface-label {
  display: block;
  margin-top: 28px;
  color: var(--text-3);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.interface-card h3 {
  max-width: 340px;
  margin-top: 12px;
  font-size: 1.45rem;
}

.interface-card code {
  display: block;
  overflow-x: auto;
  margin-top: auto;
  padding: 12px 14px;
  border: 1px solid rgba(44, 58, 102, 0.7);
  border-radius: 10px;
  background: rgba(11, 16, 32, 0.62);
  color: var(--text-2);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.8rem;
  overflow-wrap: anywhere;
  white-space: normal;
}

/* Trust model */

.model-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 1fr);
  gap: clamp(48px, 5.5vw, 76px);
  align-items: center;
}

.model-copy h2,
.install-copy h2 {
  font-size: clamp(2.5rem, 3.4vw, 3.35rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}

.check-list {
  display: grid;
  gap: 14px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 31px;
  color: var(--text-1);
}

.check-list li::before {
  position: absolute;
  top: 0.4em;
  left: 0;
  display: grid;
  width: 18px;
  height: 18px;
  place-items: center;
  border: 1px solid rgba(34, 193, 168, 0.42);
  border-radius: 50%;
  background: rgba(34, 193, 168, 0.1);
  color: var(--accent-1);
  content: "✓";
  font-size: 0.68rem;
  font-weight: 900;
}

.model-stack {
  display: grid;
  padding: 34px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 50% 10%, rgba(79, 124, 255, 0.14), transparent 42%),
    var(--surface-1);
  box-shadow: var(--shadow-soft);
}

.model-node {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 1px solid var(--stroke);
  border-radius: 13px;
  background: rgba(26, 35, 64, 0.82);
}

.model-node span {
  color: var(--text-0);
  font-weight: 800;
}

.model-node small {
  color: var(--text-3);
  font-size: 0.78rem;
}

.model-node-accent {
  border-color: rgba(79, 124, 255, 0.72);
  background: linear-gradient(120deg, rgba(79, 124, 255, 0.18), rgba(34, 193, 168, 0.08));
}

.model-arrow {
  height: 28px;
  color: var(--accent-1);
  text-align: center;
}

.model-branch {
  display: grid;
  margin-top: 28px;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.model-branch .model-node {
  display: grid;
  justify-content: start;
}

.model-result {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 13px;
  background: linear-gradient(100deg, var(--accent-0), var(--accent-1));
  color: var(--bg-0);
  font-weight: 850;
  text-align: center;
}

/* Install */

.section-install {
  border-block: 1px solid var(--stroke);
  background:
    radial-gradient(circle at 15% 48%, rgba(79, 124, 255, 0.13), transparent 34%),
    radial-gradient(circle at 90% 50%, rgba(34, 193, 168, 0.08), transparent 28%),
    var(--surface-1);
}

.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(460px, 1.04fr);
  gap: clamp(48px, 5.5vw, 76px);
  align-items: center;
}

.install-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 28px;
}

.install-links a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  color: var(--text-0);
  font-weight: 750;
}

.install-links a:hover {
  color: var(--accent-1);
}

.terminal {
  overflow: hidden;
  border: 1px solid rgba(79, 124, 255, 0.36);
  border-radius: 18px;
  background: #080d1b;
  box-shadow: var(--shadow-soft);
}

.terminal-bar {
  display: grid;
  min-height: 48px;
  padding: 0 16px;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  border-bottom: 1px solid var(--stroke);
  background: var(--surface-0);
  color: var(--text-3);
  font-size: 0.72rem;
  font-weight: 700;
}

.terminal-dots {
  display: flex;
  gap: 6px;
}

.terminal-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--stroke-strong);
}

.terminal-dots i:nth-child(2) {
  background: var(--accent-0);
}

.terminal-dots i:nth-child(3) {
  background: var(--accent-1);
}

.copy-button {
  justify-self: end;
  min-width: 44px;
  min-height: 44px;
  padding: 7px 10px;
  border: 1px solid var(--stroke);
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  font-size: 0.7rem;
  font-weight: 750;
  cursor: pointer;
}

.copy-button:hover {
  border-color: var(--accent-1);
  color: var(--text-0);
}

.terminal pre {
  margin: 0;
  padding: 28px;
  overflow-x: auto;
  color: var(--text-0);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86rem;
  line-height: 1.85;
  white-space: pre;
}

.terminal .comment {
  color: var(--text-3);
}

.terminal-footnote {
  margin: 0;
  padding: 15px 28px;
  border-top: 1px solid var(--stroke);
  background: rgba(18, 26, 49, 0.72);
  color: var(--text-3);
  font-size: 0.76rem;
}

/* Docs */

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

.docs-card {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 28px;
}

.docs-card > span {
  color: var(--accent-1);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.docs-card h3 {
  font-size: 1.4rem;
}

.docs-card strong {
  margin-top: auto;
  padding-top: 24px;
  color: var(--text-0);
  font-size: 0.82rem;
}

.docs-hero {
  padding-top: calc(var(--nav-height) + 112px);
  padding-bottom: 88px;
}

.docs-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(360px, 0.72fr);
  gap: clamp(48px, 5.5vw, 76px);
  align-items: end;
}

.docs-hero h1 {
  max-width: 760px;
  margin: 12px 0 22px;
  color: var(--text-0);
  font-size: clamp(3.4rem, 5vw, 4.6rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}

.docs-hero p {
  max-width: 740px;
  margin: 0;
  color: var(--text-2);
  font-size: 1.08rem;
}

.docs-hero-card {
  padding: 28px;
  border: 1px solid rgba(34, 193, 168, 0.36);
  border-radius: var(--radius-md);
  background:
    radial-gradient(circle at 100% 0%, rgba(34, 193, 168, 0.14), transparent 50%),
    var(--surface-1);
  box-shadow: var(--shadow-card);
}

.docs-hero-card > span {
  color: var(--accent-1);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.docs-hero-card strong {
  display: block;
  margin-top: 14px;
  color: var(--text-0);
  font-size: 1.3rem;
  line-height: 1.3;
}

.docs-hero-card p {
  margin-top: 12px;
  font-size: 0.9rem;
}

.docs-hero-card a {
  display: inline-flex;
  min-height: 44px;
  margin-top: 22px;
  align-items: center;
  color: var(--text-0);
  font-size: 0.85rem;
  font-weight: 800;
}

.docs-hero-card a:hover {
  color: var(--accent-1);
}

.docs-directory {
  border-bottom: 0;
}

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

.docs-group {
  padding: 30px;
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
  background: rgba(18, 26, 49, 0.7);
}

.docs-group-heading {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--stroke);
}

.docs-group-heading > span {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(79, 124, 255, 0.44);
  border-radius: 11px;
  background: rgba(79, 124, 255, 0.1);
  color: var(--accent-1);
  font-size: 0.72rem;
  font-weight: 850;
}

.docs-group h3 {
  margin: 0;
  color: var(--text-0);
  font-size: 1.2rem;
}

.docs-group-heading p {
  margin: 4px 0 0;
  color: var(--text-3);
  font-size: 0.84rem;
}

.docs-group ul {
  display: grid;
  gap: 2px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.docs-group li a {
  display: grid;
  padding: 13px 12px;
  border-radius: 10px;
  transition: background 160ms ease;
}

.docs-group li a:hover {
  background: var(--surface-0);
}

.docs-group li span {
  color: var(--text-1);
  font-size: 0.9rem;
  font-weight: 750;
}

.docs-group li small {
  margin-top: 2px;
  color: var(--text-3);
  font-size: 0.75rem;
}

.docs-footer-bottom a {
  color: var(--text-1);
  font-weight: 750;
}

.docs-footer-bottom a:hover {
  color: var(--accent-1);
}

/* Closing + footer */

.closing-cta {
  padding: 0 0 96px;
}
.section.docs-directory {
  padding-bottom: 0;
  border-bottom: 0;
}

.docs-directory + .closing-cta {
  padding-top: calc(clamp(20px, 2vw, 28px) + clamp(64px, 7vw, 96px) + 24px);
  background: linear-gradient(180deg, var(--bg-1) 0, var(--bg-0) 140px);
}

.closing-inner {
  display: flex;
  min-height: 300px;
  align-items: center;
  justify-content: space-between;
  gap: 42px;
  padding: clamp(38px, 6vw, 70px);
  overflow: hidden;
  border: 1px solid rgba(79, 124, 255, 0.44);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 10% 20%, rgba(79, 124, 255, 0.22), transparent 36%),
    radial-gradient(circle at 90% 90%, rgba(34, 193, 168, 0.14), transparent 32%),
    var(--surface-0);
  box-shadow: var(--shadow-soft);
}

.closing-inner > div:first-child {
  min-width: 0;
  flex: 1;
}

.closing-inner h2 {
  max-width: 780px;
  margin-bottom: 0;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  overflow-wrap: normal;
  text-wrap: balance;
  word-break: normal;
}

.closing-actions {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 12px;
}

.site-footer {
  border-top: 1px solid var(--stroke);
  background: #080d1b;
}

.footer-grid {
  display: grid;
  padding-block: 68px 48px;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
}

.footer-brand p {
  max-width: 430px;
  margin: 18px 0 0;
  color: var(--text-3);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 38px;
}

.footer-links > div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-links strong {
  margin-bottom: 6px;
  color: var(--text-0);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links a {
  color: var(--text-3);
  font-size: 0.86rem;
}

.footer-links a:hover {
  color: var(--accent-1);
}

.footer-bottom {
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(44, 58, 102, 0.6);
  color: var(--text-3);
  font-size: 0.78rem;
}

/* Progressive reveal: content is visible unless JS proves enhancement support. */

.reveal {
  opacity: 1;
  transform: none;
}

.reveal-ready .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.reveal-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-ready .problem-grid .reveal:nth-child(2),
.reveal-ready .interface-grid .reveal:nth-child(2),
.reveal-ready .docs-grid .reveal:nth-child(2) {
  transition-delay: 80ms;
}

.reveal-ready .problem-grid .reveal:nth-child(3),
.reveal-ready .interface-grid .reveal:nth-child(3),
.reveal-ready .docs-grid .reveal:nth-child(3) {
  transition-delay: 150ms;
}

.reveal-ready .problem-grid .reveal:nth-child(4) {
  transition-delay: 220ms;
}

/* Responsive */

@media (max-width: 1060px) {
  .nav-links {
    gap: 16px;
  }

  .nav-links > a:nth-child(3),
  .nav-links > a:nth-child(4) {
    display: none;
  }

  .hero-grid,
  .model-grid,
  .install-grid,
  .docs-hero-inner {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 820px;
  }

  .hero h1 {
    max-width: 850px;
  }

  .hero-visual {
    width: min(780px, 100%);
    margin-inline: auto;
  }

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

  .interface-card-featured {
    grid-column: 1 / -1;
  }

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

  .process-step:nth-child(3) {
    border-left: 0;
  }

  .process-step:nth-child(n + 3) {
    border-top: 1px solid var(--stroke);
  }
}

@media (max-width: 820px) {
  :root {
    --nav-height: 68px;
  }

  .container {
    width: min(calc(100% - 30px), var(--container));
  }

  .section {
    padding: 86px 0;
  }
  .signal-card {
    position: relative;
    inset: auto;
    min-width: 0;
    margin-top: 10px;
  }

  .site-header {
    position: relative;
  }

  .nav-enhanced .site-header {
    position: fixed;
  }

  .nav {
    position: relative;
  }

  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .nav-links > a:nth-child(3),
  .nav-links > a:nth-child(4) {
    display: inline-flex;
  }

  .nav-enhanced .nav-toggle {
    display: flex;
  }

  .nav-enhanced .nav-links {
    position: absolute;
    top: calc(100% + 9px);
    right: 0;
    left: 0;
    display: none;
    padding: 18px;
    align-items: stretch;
    flex-direction: column;
    gap: 3px;
    border: 1px solid var(--stroke);
    border-radius: 16px;
    background: rgba(11, 16, 32, 0.98);
    box-shadow: var(--shadow-soft);
  }

  .nav-enhanced .nav-links[data-open="true"] {
    display: flex;
  }

  .nav-enhanced .nav-links > a {
    min-height: 46px;
    padding: 11px 13px;
    align-items: center;
    border-radius: 9px;
  }

  .nav-enhanced .nav-links > a:not(.button):hover {
    background: var(--surface-1);
  }

  .nav-enhanced .nav-links > a:not(.button)::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--nav-height) + 78px);
  }

  .hero-grid {
    gap: 54px;
  }

  .hero-visual {
    padding: 18px;
  }

  .trust-strip {
    margin-top: 72px;
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-strip span {
    padding: 12px;
  }

  .trust-strip span + span::before {
    display: none;
  }

  .trust-strip span:nth-child(n + 3) {
    border-top: 1px solid var(--stroke);
  }

  .section-heading-split,
  .problem-grid,
  .docs-grid,
  .docs-directory-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .section-heading-split {
    gap: 20px;
  }

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

  .interface-card-featured {
    grid-column: auto;
  }

  .closing-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .closing-actions {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15.5px;
  }

  .section {
    padding: 72px 0;
  }

  .section-heading {
    margin-bottom: 38px;
  }

  .hero h1 {
    font-size: clamp(3.1rem, 15vw, 4.2rem);
  }
  .docs-hero h1 {
    font-size: clamp(2.8rem, 14vw, 4rem);
  }


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

  .visual-frame::before {
    inset: -8px;
  }


  .trust-strip,
  .process-grid,
  .model-branch,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .trust-strip span:nth-child(n + 2),
  .process-step:nth-child(n + 2) {
    border-top: 1px solid var(--stroke);
  }

  .process-step,
  .process-step + .process-step {
    border-left: 0;
  }

  .problem-card,
  .interface-card,
  .docs-card,
  .model-stack {
    padding: 24px;
  }
  .docs-group {
    padding: 24px;
  }

  .problem-card {
    min-height: 300px;
  }

  .terminal pre {
    padding: 22px 18px;
    font-size: 0.76rem;
  }

  .terminal-footnote {
    padding-inline: 18px;
  }

  .footer-links a,
  .footer-bottom a {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }
  .footer-bottom {
    min-height: 88px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }

  .reveal-ready .reveal,
  .reveal-ready .reveal.is-visible {
    opacity: 1;
    transform: none;
  }

  .button:hover,
  .problem-card:hover,
  .interface-card:hover,
  .docs-card:hover {
    transform: none;
  }
}

@media (forced-colors: active) {
  .hero h1 span {
    background: none;
    color: CanvasText;
  }

  .button-primary,
  .model-result {
    background: ButtonFace;
    color: ButtonText;
  }
}
