:root {
  --ink: #17120f;
  --ink-2: #312720;
  --muted: #6c625b;
  --paper: #f6f2ea;
  --paper-strong: #fffaf1;
  --white: #ffffff;
  --line: #dfd3c1;
  --line-dark: rgba(255, 255, 255, 0.16);
  --charcoal: #11110f;
  --charcoal-2: #1d1916;
  --coral: #ff6848;
  --coral-dark: #d84628;
  --teal: #0d8c82;
  --mint: #dff5ec;
  --gold: #f2ba4d;
  --radius: 8px;
  --max: 1180px;
  --shadow: 0 24px 80px rgba(37, 24, 12, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: clip;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

body::selection {
  background: var(--coral);
  color: var(--white);
}

a {
  color: inherit;
}

svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 920px;
  font-size: 4.9rem;
  font-weight: 850;
}

h2 {
  font-size: 3rem;
  font-weight: 820;
}

h3 {
  font-size: 1.22rem;
  font-weight: 780;
}

p {
  margin: 0;
}

pre {
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  margin: 18px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: #16120f;
  color: #fff2df;
  font-size: 0.88rem;
  line-height: 1.55;
}

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

pre code {
  display: block;
  padding: 18px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 10px;
  z-index: 20;
  transform: translateY(-140%);
  border-radius: var(--radius);
  background: var(--white);
  padding: 10px 12px;
  color: var(--ink);
  text-decoration: none;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(17, 17, 15, 0.88);
  color: var(--white);
  backdrop-filter: blur(18px);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  font-weight: 830;
  text-decoration: none;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--coral);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 860;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  font-weight: 680;
}

.nav-links a,
.nav-cta,
.text-link,
.card-link {
  text-decoration: none;
}

.nav-links a:hover,
.text-link:hover,
.card-link:hover,
.site-footer a:hover {
  color: var(--coral);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 760;
}

.nav-cta:hover {
  border-color: var(--coral);
  background: rgba(255, 104, 72, 0.18);
}

.hero {
  position: relative;
  min-height: 82svh;
  overflow: hidden;
  background: var(--charcoal);
  color: var(--white);
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(17, 17, 15, 0.95) 0%, rgba(17, 17, 15, 0.82) 38%, rgba(17, 17, 15, 0.38) 72%, rgba(17, 17, 15, 0.72) 100%),
    linear-gradient(0deg, rgba(17, 17, 15, 0.9) 0%, rgba(17, 17, 15, 0.08) 46%),
    url("/assets/openclaw-hero.jpg") center right / cover no-repeat;
}

.hero-inner {
  position: relative;
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  padding: 118px 0 86px;
}

.eyebrow,
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--coral);
  font-size: 0.82rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow::before,
.section-label::before {
  content: "";
  width: 32px;
  height: 2px;
  background: currentColor;
}

.hero-copy {
  max-width: 690px;
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.28rem;
  line-height: 1.55;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  gap: 10px;
  border-radius: var(--radius);
  padding: 12px 18px;
  font-weight: 820;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.button-primary {
  border: 1px solid var(--coral);
  background: var(--coral);
  color: var(--white);
  box-shadow: 0 18px 40px rgba(255, 104, 72, 0.28);
}

.button-primary:hover {
  border-color: #ff8a72;
  background: #ff7a5d;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
}

.button-outline {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
}

.affiliate-note {
  max-width: 680px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.92rem;
}

.signal-band {
  background: var(--charcoal-2);
  color: var(--white);
}

.signal-grid {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-left: 1px solid var(--line-dark);
}

.signal-grid article {
  min-height: 120px;
  padding: 26px 24px;
  border-right: 1px solid var(--line-dark);
}

.signal-grid span,
.card-topline span,
.option-number {
  display: block;
  margin-bottom: 8px;
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 820;
  text-transform: uppercase;
}

.signal-grid strong {
  display: block;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1rem;
  line-height: 1.35;
}

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

.two-column,
.split-feature,
.blueprint {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 42px;
  align-items: start;
}

.lead {
  margin-top: 20px;
  color: var(--ink-2);
  font-size: 1.18rem;
  line-height: 1.62;
}

.lead + p,
.two-column p + p {
  margin-top: 18px;
  color: var(--muted);
}

.citation-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 28px;
  box-shadow: var(--shadow);
}

.citation-box h3 {
  margin-bottom: 14px;
}

.citation-box p,
.citation-box li {
  color: var(--muted);
}

.citation-box ul {
  margin: 16px 0 0;
  padding-left: 18px;
}

.dark-section {
  width: 100%;
  max-width: none;
  padding: 96px max(16px, calc((100% - var(--max)) / 2));
  background: var(--charcoal);
  color: var(--white);
}

.dark-section .lead {
  color: rgba(255, 255, 255, 0.82);
}

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: #ffd7c8;
  font-weight: 780;
}

.option-stack {
  display: grid;
  gap: 14px;
}

.option-stack article {
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  padding: 22px;
  background: rgba(255, 255, 255, 0.06);
}

.option-stack p {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.74);
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
}

.section-heading-row .lead {
  max-width: 760px;
}

.install-grid,
.usecase-grid,
.source-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.install-card,
.usecase-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 24px;
  box-shadow: 0 14px 34px rgba(37, 24, 12, 0.08);
}

.install-card {
  display: flex;
  min-height: 334px;
  flex-direction: column;
}

.install-card h3,
.usecase-grid h3 {
  margin-top: 4px;
}

.install-card p,
.usecase-grid p {
  margin-top: 14px;
  color: var(--muted);
}

.card-topline {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.card-topline strong {
  color: var(--teal);
  font-size: 0.9rem;
}

.card-link {
  margin-top: auto;
  color: var(--coral-dark);
  font-weight: 820;
}

.runbook {
  margin-top: 20px;
  border-radius: var(--radius);
  background: var(--ink);
  padding: 28px;
  color: var(--white);
}

.runbook p {
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.76);
}

.terminal-block pre {
  margin-top: 16px;
  border-color: rgba(255, 255, 255, 0.14);
  background: #0b0a09;
}

.comparison-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.table-wrap {
  margin-top: 28px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 0.96rem;
}

th,
td {
  padding: 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  background: #f0e6d8;
  color: var(--ink);
  font-size: 0.82rem;
  text-transform: uppercase;
}

tr:last-child td {
  border-bottom: 0;
}

.usecase-section {
  padding-bottom: 62px;
}

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

.usecase-grid svg {
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  color: var(--teal);
}

.blueprint-section {
  width: 100%;
  max-width: none;
  padding: 96px max(16px, calc((100% - var(--max)) / 2));
  background: var(--paper-strong);
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 18px 0 18px 52px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  font-size: 0.84rem;
  font-weight: 820;
}

.steps strong {
  color: var(--ink);
}

.faq-list {
  display: grid;
  gap: 10px;
  margin-top: 30px;
}

details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

summary {
  cursor: pointer;
  padding: 18px 22px;
  color: var(--ink);
  font-weight: 800;
}

details p {
  padding: 0 22px 20px;
  color: var(--muted);
}

.source-section {
  padding-top: 44px;
}

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

.source-grid a {
  display: flex;
  min-width: 0;
  min-height: 94px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  padding: 16px;
  color: var(--ink);
  font-weight: 760;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.source-grid a:hover {
  border-color: var(--coral);
  color: var(--coral-dark);
}

.final-cta {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-radius: var(--radius);
  background: var(--charcoal);
  color: var(--white);
  padding: 40px;
  box-shadow: var(--shadow);
}

.final-cta h2 {
  max-width: 830px;
  font-size: 2.25rem;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
  padding: 34px max(16px, calc((100% - var(--max)) / 2));
  background: var(--white);
  color: var(--muted);
}

.site-footer strong {
  color: var(--ink);
}

.site-footer p {
  max-width: 620px;
  margin-top: 6px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-weight: 760;
}

.site-footer a {
  text-decoration: none;
}

.legal-content h1 {
  font-size: 4rem;
}

.legal-content h2 {
  margin-top: 28px;
  font-size: 1.45rem;
}

.legal-content .citation-box {
  max-width: 860px;
  margin-top: 26px;
}

.legal-content .citation-box p + p {
  margin-top: 16px;
}

.muted {
  color: var(--muted);
}

@media (max-width: 1040px) {
  h1 {
    font-size: 3.9rem;
  }

  h2 {
    font-size: 2.55rem;
  }

  .nav-links {
    display: none;
  }

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

  .two-column,
  .split-feature,
  .blueprint {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 2.4rem;
  }

  h2 {
    font-size: 2rem;
  }

  .nav {
    min-height: 66px;
  }

  .brand span:last-child {
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav-cta {
    display: none;
  }

  .hero-backdrop {
    background:
      linear-gradient(90deg, rgba(17, 17, 15, 0.96) 0%, rgba(17, 17, 15, 0.84) 62%, rgba(17, 17, 15, 0.58) 100%),
      linear-gradient(0deg, rgba(17, 17, 15, 0.94) 0%, rgba(17, 17, 15, 0.1) 52%),
      url("/assets/openclaw-hero.jpg") center / cover no-repeat;
  }

  .hero-inner {
    padding: 62px 0 34px;
  }

  .hero-copy {
    margin-top: 18px;
    font-size: 1rem;
    line-height: 1.52;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .affiliate-note {
    margin-top: 14px;
    font-size: 0.86rem;
  }

  .button {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
  }

  .signal-grid,
  .install-grid,
  .usecase-grid,
  .source-grid {
    grid-template-columns: 1fr;
  }

  .signal-grid {
    border-left: 0;
  }

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

  .section,
  .dark-section,
  .blueprint-section {
    padding-top: 68px;
    padding-bottom: 68px;
  }

  .section-heading-row,
  .final-cta,
  .site-footer {
    flex-direction: column;
    align-items: stretch;
  }

  .final-cta {
    padding: 28px;
  }

  .final-cta h2 {
    font-size: 1.85rem;
  }

  .legal-content h1 {
    font-size: 2.4rem;
  }
}

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

  .button {
    transition: none;
  }

  .button:hover {
    transform: none;
  }
}
