:root {
  --bg: #05070a;
  --bg-soft: #0a0f14;
  --teal: #14b8a6;
  --teal-soft: #0ea5a4;
  --teal-glow: rgba(20, 184, 166, 0.25);
  --silver: #cbd5e1;
  --text: #e5e7eb;
  --text-muted: #94a3b8;
  --muted: var(--text-muted);
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(20, 184, 166, 0.28);
  --surface: rgba(10, 15, 20, 0.86);
  --surface-strong: rgba(5, 7, 10, 0.96);
  --surface-soft: rgba(255, 255, 255, 0.03);
  --accent: var(--teal);
  --accent-2: var(--teal-soft);
  --accent-3: var(--silver);
  --danger: #ff7f93;
  --shadow: 0 30px 80px rgba(2, 8, 18, 0.48);
  --shadow-soft: 0 18px 44px rgba(2, 8, 18, 0.28);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1180px;
  --line-height: 1.6;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", "Trebuchet MS", system-ui, sans-serif;
  line-height: var(--line-height);
  background:
    radial-gradient(circle at 50% 20%, rgba(20, 184, 166, 0.08), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(20, 184, 166, 0.05), transparent 50%),
    var(--bg);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  filter: blur(40px);
}

body::before {
  left: -100px;
  top: 180px;
  width: 240px;
  height: 240px;
  background: rgba(20, 184, 166, 0.08);
}

body::after {
  right: -120px;
  bottom: 90px;
  width: 320px;
  height: 320px;
  background: rgba(203, 213, 225, 0.05);
}

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

img {
  max-width: 100%;
  display: block;
  border-radius: 12px;
  border: 1px solid var(--border);
}

code,
pre,
.mono {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.site-shell {
  position: relative;
  z-index: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(5, 12, 22, 0.8);
  border-bottom: 1px solid rgba(150, 189, 255, 0.12);
}

.site-header__inner,
.site-footer__inner,
.hero,
.section,
.hero-panel {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  box-shadow: 0 14px 28px rgba(119, 232, 207, 0.16);
}

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

.brand-copy {
  display: grid;
  gap: 0.1rem;
}

.brand-copy strong {
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.brand-copy span {
  color: var(--muted);
  font-size: 0.8rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.nav-links a {
  padding: 0.72rem 0.95rem;
  border-radius: 999px;
  border: 1px solid transparent;
  color: var(--muted);
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.nav-links a.is-active {
  color: var(--text);
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.04);
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
  padding: 5.4rem 0 3rem;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-xl);
  isolation: isolate;
}

.hero--narrow {
  padding-top: 3.7rem;
}

.hero > * {
  position: relative;
  z-index: 1;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5, 7, 10, 0.45), rgba(5, 7, 10, 0.92));
  pointer-events: none;
  z-index: 0;
}

body.page-preview .hero::before {
  content: "";
  position: absolute;
  inset: -16px;
  background: url("assets/images/hero-preview-bg.png") center / cover no-repeat;
  opacity: 0.08;
  filter: blur(2px);
  pointer-events: none;
  z-index: 0;
}

body.page-home .hero {
  background:
    linear-gradient(135deg, rgba(6, 17, 31, 0.96) 0%, rgba(6, 17, 31, 0.76) 45%, rgba(6, 17, 31, 0.34) 100%),
    url("assets/images/hero-home-core.png") center right / cover no-repeat;
}

body.page-nt-core .hero {
  background:
    linear-gradient(135deg, rgba(6, 17, 31, 0.95) 0%, rgba(6, 17, 31, 0.72) 50%, rgba(6, 17, 31, 0.38) 100%),
    url("assets/images/hero-nt-core.png") center right / cover no-repeat;
}

body.page-ulantra .hero {
  background:
    linear-gradient(135deg, rgba(6, 17, 31, 0.95) 0%, rgba(6, 17, 31, 0.72) 50%, rgba(6, 17, 31, 0.38) 100%),
    url("assets/images/hero-ulantra.png") center right / cover no-repeat;
}

body.page-build .hero {
  background:
    linear-gradient(135deg, rgba(6, 17, 31, 0.95) 0%, rgba(6, 17, 31, 0.72) 50%, rgba(6, 17, 31, 0.38) 100%),
    url("assets/images/hero-build.png") center right / cover no-repeat;
}

body.page-openclaw .hero {
  background:
    linear-gradient(135deg, rgba(6, 17, 31, 0.95) 0%, rgba(6, 17, 31, 0.72) 50%, rgba(6, 17, 31, 0.38) 100%),
    url("assets/images/hero-openclaw.png") center right / cover no-repeat;
}

body.page-ibos .hero {
  background:
    linear-gradient(135deg, rgba(6, 17, 31, 0.95) 0%, rgba(6, 17, 31, 0.72) 50%, rgba(6, 17, 31, 0.38) 100%),
    url("assets/images/hero-architecture.png") center right / cover no-repeat;
}

body.page-learn .hero {
  background:
    linear-gradient(135deg, rgba(6, 17, 31, 0.95) 0%, rgba(6, 17, 31, 0.74) 50%, rgba(6, 17, 31, 0.4) 100%),
    url("assets/images/hero-architecture.png") center right / cover no-repeat;
}

body.page-preview .hero {
  background: linear-gradient(135deg, rgba(6, 17, 31, 0.96) 0%, rgba(6, 17, 31, 0.8) 56%, rgba(6, 17, 31, 0.55) 100%);
}

.hero-copy {
  display: grid;
  gap: 1.3rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  padding: 0.42rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 600;
  max-width: 26ch;
}

.hero p {
  margin: 0;
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.6;
}

body.page-learn .hero-copy {
  gap: 1.1rem;
}

body.page-learn .hero-copy ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
  color: var(--text-muted);
  line-height: 1.65;
}

body.page-learn .hero-copy li {
  max-width: 58ch;
}

p {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.badge-row,
.chip-row,
.cta-row,
.meta-row,
.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.badge,
.chip,
.meta-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.72rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-size: 0.84rem;
}

.badge strong,
.chip strong {
  color: var(--text);
  font-weight: 600;
}

.hero-panel,
.panel,
.card,
.callout,
.metric,
.preview-shell,
.chat-shell,
.form-shell {
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.hero-panel {
  border-radius: var(--radius-xl);
  padding: 1.1rem;
  display: grid;
  gap: 1rem;
}

.hero-panel__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero-panel__title {
  display: grid;
  gap: 0.2rem;
}

.hero-panel__title strong {
  font-size: 1rem;
}

.hero-panel__title span {
  color: var(--muted);
  font-size: 0.84rem;
}

.hero-panel__body {
  display: grid;
  gap: 0.75rem;
}

.hero-media,
.section-visual,
.panel-image {
  display: block;
}

.hero-media img,
.section-visual img,
.panel-image {
  width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(150, 189, 255, 0.14);
  box-shadow: var(--shadow-soft);
  object-fit: cover;
}

.hero-media img {
  max-height: 240px;
}

.section-visual {
  margin-bottom: 1rem;
}

.section-visual--center {
  display: flex;
  justify-content: center;
}

.section-visual--center img {
  max-width: 760px;
}

.panel-image {
  margin-top: 0.95rem;
}

.panel-image--center {
  display: block;
  margin-inline: auto;
  max-width: 680px;
}

.hero-panel__state {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(150, 189, 255, 0.12);
}

.state-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.state-line strong {
  color: var(--text);
}

.section {
  width: min(var(--max-width), calc(100% - 2rem));
  margin: 0 auto;
  padding: 100px 0;
}

.section + .section {
  margin-top: 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.2rem;
}

.section-head h2,
.section-head h3,
.section-title {
  margin: 0;
  letter-spacing: -0.05em;
}

.section-head h2,
.section-title {
  font-size: clamp(1.7rem, 3vw, 2.5rem);
}

.section-head p,
.section-lead,
.lede {
  margin: 0;
  max-width: 64ch;
  color: var(--text-muted);
}

.card-grid,
.metric-grid,
.timeline,
.split-grid,
.feature-grid,
.preview-grid {
  display: grid;
  gap: 1rem;
}

.card-grid,
.metric-grid,
.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.split-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.card,
.metric,
.panel,
.callout {
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.panel--core {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: clamp(1.75rem, 4vw, 3.25rem);
}

body.page-home .panel--core {
  position: relative;
  overflow: hidden;
}

body.page-home .panel--core::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(6, 17, 31, 0.92) 0%, rgba(6, 17, 31, 0.68) 46%, rgba(6, 17, 31, 0.28) 100%),
    url("assets/images/hero-home-core.png") center right / cover no-repeat;
  opacity: 0.96;
  pointer-events: none;
  z-index: 0;
}

body.page-home .panel--core > * {
  position: relative;
  z-index: 1;
}

.panel--core .hero-copy {
  gap: 1.05rem;
}

.panel--core h2 {
  margin: 0;
  max-width: 18ch;
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 1.04;
}

.panel--core h1 {
  margin: 0;
  max-width: 26ch;
  font-size: clamp(3rem, 5vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.panel--core p {
  max-width: 72ch;
  font-size: 1.08rem;
}

.section--footer-image {
  padding-top: 0;
}

.home-footer-image {
  margin-bottom: 0;
}

.section--footer-image .section-visual--center {
  width: 100%;
}

.footer-image-grid {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.footer-image-grid img {
  width: 100%;
  max-width: 100%;
  max-height: 380px;
  opacity: 0.88;
}

.section--footer-image img {
  width: 100%;
  max-width: 100%;
  max-height: 380px;
  opacity: 0.88;
}

.ibos-visual-section {
  padding-top: 0;
}

.ibos-visual {
  width: 100%;
}

.ibos-visual img {
  width: min(100%, 1040px);
  max-width: 100%;
  max-height: none;
  height: auto;
  object-fit: contain;
  opacity: 0.98;
  border-radius: 18px;
}

.card,
.metric {
  display: grid;
  gap: 0.7rem;
}

.card:hover,
.panel:hover,
.callout:hover {
  border-color: rgba(20, 184, 166, 0.4);
}

.card h3,
.metric h3,
.panel h3,
.callout h3 {
  margin: 0;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.card p,
.metric p,
.panel p,
.callout p,
.card li,
.metric li,
.panel li,
.callout li {
  margin: 0;
  color: var(--text-muted);
}

.card ul,
.panel ul,
.callout ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.5rem;
}

.callout {
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.1), transparent 40%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015));
}

.callout--accent {
  border-color: rgba(20, 184, 166, 0.3);
}

.callout--warn {
  border-color: rgba(246, 169, 110, 0.28);
}

.stat-row {
  gap: 0.8rem;
}

.stat {
  flex: 1 1 180px;
  min-width: 0;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(150, 189, 255, 0.12);
}

.stat strong {
  display: block;
  font-size: 1.2rem;
  letter-spacing: -0.04em;
}

.stat span {
  color: var(--muted);
  font-size: 0.85rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.1rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--teal), var(--teal-soft));
  color: #020607;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.button:hover,
.button:focus-visible,
button.button:hover,
button.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 0 20px var(--teal-glow);
}

.button--primary {
  color: #020607;
  background: linear-gradient(135deg, var(--teal), var(--teal-soft));
  box-shadow: 0 16px 30px rgba(20, 184, 166, 0.18);
}

.button--secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.button--ghost {
  color: var(--text-muted);
}

.button--danger {
  color: #fff;
  background: linear-gradient(135deg, #ff7f93 0%, #f95f72 100%);
}

.field {
  display: grid;
  gap: 0.55rem;
}

.field label {
  color: var(--muted);
  font-size: 0.88rem;
}

.input,
textarea,
select {
  width: 100%;
  border: 1px solid rgba(150, 189, 255, 0.18);
  background: rgba(4, 11, 20, 0.82);
  color: var(--text);
  border-radius: 16px;
  padding: 0.92rem 1rem;
  font: inherit;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.input:focus,
textarea:focus,
select:focus {
  border-color: rgba(119, 232, 207, 0.55);
  box-shadow: 0 0 0 4px rgba(119, 232, 207, 0.12);
}

textarea {
  min-height: 160px;
  resize: vertical;
}

.dropzone {
  border-radius: var(--radius-lg);
  border: 1px dashed rgba(150, 189, 255, 0.24);
  background: rgba(255, 255, 255, 0.03);
  padding: 1.1rem;
  display: grid;
  gap: 0.8rem;
}

.dropzone.is-dragover {
  border-color: rgba(119, 232, 207, 0.6);
  background: rgba(119, 232, 207, 0.07);
}

.helper {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.notice {
  border-radius: 16px;
  border: 1px solid rgba(150, 189, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  padding: 0.95rem 1rem;
  color: var(--text-muted);
}

.notice strong {
  color: var(--text);
}

.notice--success {
  border-color: rgba(119, 232, 207, 0.3);
  background: rgba(119, 232, 207, 0.07);
  color: #d8fff7;
}

.notice--danger {
  border-color: rgba(255, 127, 147, 0.28);
  background: rgba(255, 127, 147, 0.07);
  color: #ffe4e8;
}

.notice--warn {
  border-color: rgba(246, 169, 110, 0.28);
  background: rgba(246, 169, 110, 0.08);
  color: #ffe6cc;
}

.preview-shell,
.chat-shell,
.form-shell {
  border-radius: var(--radius-xl);
  padding: 1.25rem;
}

.build-panel {
  display: grid;
  gap: 1.5rem;
}

.build-panel h2 {
  margin: 0.9rem 0 0.1rem;
  max-width: none;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.build-panel h2:first-of-type {
  margin-top: 0.2rem;
}

.build-form {
  display: grid;
  gap: 1rem;
}

.build-intro-list {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
}

.build-advanced {
  display: grid;
  gap: 1rem;
  border: 1px solid rgba(150, 189, 255, 0.12);
  border-radius: var(--radius-lg);
  padding: 0.95rem 1rem 1rem;
  background: rgba(255, 255, 255, 0.025);
}

.build-advanced > summary {
  cursor: pointer;
  list-style: none;
  color: var(--text);
  font-weight: 500;
}

.build-advanced > summary::-webkit-details-marker {
  display: none;
}

.build-advanced__body {
  display: grid;
  gap: 1rem;
}

.build-output {
  display: grid;
  gap: 1rem;
  border-top: 1px solid rgba(150, 189, 255, 0.12);
  padding-top: 1rem;
}

.build-json {
  margin: 0;
  border-radius: 18px;
  border: 1px solid rgba(150, 189, 255, 0.12);
  background: rgba(4, 10, 18, 0.85);
  padding: 1rem 1.1rem;
  color: #dbe9ff;
  white-space: pre-wrap;
  word-break: break-word;
}

.preview-shell {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-self: stretch;
  height: auto;
  justify-content: flex-start;
}

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

.preview-summary-card {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  width: 100%;
  min-height: 0;
  height: auto;
  align-self: start;
  justify-content: flex-start;
}

.preview-summary-title {
  margin: 0;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  letter-spacing: -0.05em;
  color: var(--text);
  font-weight: 600;
  line-height: 1.02;
}

.preview-summary-card .summary-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(150, 189, 255, 0.12);
  width: 100%;
  min-height: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  flex: 0 1 auto;
  max-height: min(26rem, calc(100vh - 16rem));
  overflow: auto;
  align-self: start;
}

.preview-summary-card .summary-card--expanded {
  padding: 1rem 1.1rem;
}

.preview-summary-card .summary-card > strong {
  color: var(--text);
  font-size: 1rem;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.summary-markdown {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
  min-height: 0;
  flex: 0 0 auto;
}

.summary-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.5rem;
  color: var(--muted);
}

.summary-list strong {
  color: var(--text);
}

.chat-shell {
  display: grid;
  gap: 1rem;
}

.chat-log {
  display: grid;
  gap: 0.85rem;
  max-height: 420px;
  overflow: auto;
  padding-right: 0.25rem;
}

.message {
  border-radius: 18px;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(150, 189, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
}

.message--user {
  margin-left: auto;
  background: rgba(119, 232, 207, 0.08);
  border-color: rgba(119, 232, 207, 0.2);
}

.message--assistant {
  background: rgba(158, 146, 255, 0.08);
  border-color: rgba(158, 146, 255, 0.2);
}

.message__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.message__body,
.code-block,
.trace-output {
  white-space: pre-wrap;
  word-break: break-word;
}

.code-block,
.trace-output {
  margin: 0;
  border-radius: 16px;
  border: 1px solid rgba(150, 189, 255, 0.14);
  background: rgba(4, 10, 18, 0.85);
  padding: 1rem;
  color: #dbe9ff;
  font-size: 0.9rem;
  line-height: 1.5;
}

.footer {
  border-top: 1px solid rgba(150, 189, 255, 0.12);
  background: rgba(4, 10, 18, 0.65);
  margin-top: 2rem;
}

.site-footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 0 1.8rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-footer__inner strong {
  color: var(--text);
}

.page-divider {
  height: 1px;
  margin: 1rem 0;
  background: linear-gradient(90deg, transparent 0%, rgba(150, 189, 255, 0.2) 35%, rgba(119, 232, 207, 0.35) 50%, rgba(150, 189, 255, 0.2) 65%, transparent 100%);
}

.timeline {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.timeline__item {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(150, 189, 255, 0.12);
}

.timeline__item strong {
  display: block;
  margin-bottom: 0.35rem;
}

.timeline__item span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.stack-visual {
  display: grid;
  gap: 0.75rem;
}

.stack-node {
  padding: 0.95rem 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(150, 189, 255, 0.12);
}

.stack-node strong {
  display: block;
  margin-bottom: 0.3rem;
}

.stack-node span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.glow {
  box-shadow: 0 0 40px rgba(20, 184, 166, 0.15);
}

.divider {
  height: 1px;
  margin: 80px 0;
  background: linear-gradient(to right, transparent, rgba(20, 184, 166, 0.3), transparent);
}

body.page-preview .preview-shell,
body.page-preview .chat-shell,
body.page-preview .form-shell {
  position: relative;
  overflow: hidden;
}

body.page-preview .preview-shell::before,
body.page-preview .chat-shell::before,
body.page-preview .form-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("assets/images/hero-preview-bg.png") center / cover no-repeat;
  opacity: 0.05;
  filter: blur(2px);
  pointer-events: none;
}

body.page-preview .preview-shell > *,
body.page-preview .chat-shell > *,
body.page-preview .form-shell > * {
  position: relative;
  z-index: 1;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .hero,
  .preview-grid,
  .split-grid {
    grid-template-columns: 1fr;
  }

  .footer-image-grid {
    grid-template-columns: 1fr;
  }

  .site-header__inner,
  .site-footer__inner,
  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 4rem;
  }
}

@media (max-width: 640px) {
  .site-header__inner,
  .hero,
  .section,
  .site-footer__inner {
    width: min(var(--max-width), calc(100% - 1.2rem));
  }

  .site-header__inner {
    padding: 0.7rem 0;
  }

  .nav-links {
    gap: 0.35rem;
  }

  .nav-links a {
    padding: 0.62rem 0.82rem;
  }

  .brand-mark {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }

  .card,
  .panel,
  .metric,
  .callout,
  .preview-shell,
  .chat-shell,
  .form-shell {
    padding: 1rem;
  }

  .button,
  button.button {
    width: 100%;
  }
}
