:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-2: #101010;
  --panel: rgba(255, 255, 255, 0.065);
  --panel-strong: rgba(255, 255, 255, 0.12);
  --line: rgba(255, 255, 255, 0.16);
  --line-strong: rgba(255, 255, 255, 0.32);
  --text: #f7f7f4;
  --muted: rgba(247, 247, 244, 0.72);
  --soft: rgba(247, 247, 244, 0.54);
  --black: #050505;
  --white: #ffffff;
  --signal: #9af2c5;
  --steel: #b9c1c7;
  --warm: #e2c99b;
  --max: 1180px;
  --gutter: 24px;
  --radius: 8px;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.55);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0) 420px),
    var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 100% 12px;
  opacity: 0.14;
}

img {
  display: block;
  max-width: 100%;
}

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

p,
h1,
h2,
h3,
dl,
dd {
  margin: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 4px;
  background: var(--white);
  color: var(--black);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  padding: 18px var(--gutter) 0;
  transition:
    background-color 220ms ease,
    border-color 220ms ease,
    padding 220ms ease;
}

.site-header.is-scrolled {
  padding-top: 10px;
  background: rgba(5, 5, 5, 0.72);
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(18px);
}

.site-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: min(100%, var(--max));
  margin: 0 auto;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: max-content;
  min-height: 36px;
  color: var(--text);
  font-weight: 700;
}

.brand img {
  width: 30px;
  height: 30px;
  padding: 5px;
  border-radius: 50%;
  background: var(--white);
}

.nav-links {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: rgba(247, 247, 244, 0.72);
  font-size: 0.9rem;
}

.nav-links a,
.footer-links a,
.text-link {
  position: relative;
  transition: color 160ms ease;
}

.nav-links a::after,
.footer-links a::after,
.text-link::after {
  position: absolute;
  right: 0;
  bottom: -4px;
  left: 0;
  height: 1px;
  content: "";
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

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

.nav-links a:hover::after,
.footer-links a:hover::after,
.text-link:hover::after {
  transform: scaleX(1);
}

.nav-action {
  justify-self: end;
  padding: 9px 16px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 4px;
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 700;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.nav-action:hover {
  background: var(--white);
  color: var(--black);
  border-color: var(--white);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 88svh;
  overflow: hidden;
  isolation: isolate;
  background: var(--black);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 70% center;
  filter: saturate(0.9) contrast(1.03);
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.72) 33%, rgba(0, 0, 0, 0.2) 76%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.18) 0%, rgba(0, 0, 0, 0.78) 100%);
}

.hero-inner {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 150px var(--gutter) 64px;
}

.eyebrow,
.section-kicker {
  color: var(--signal);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  max-width: 680px;
  margin-top: 14px;
  font-size: 5.3rem;
  line-height: 0.94;
  font-weight: 800;
}

.hero-copy {
  max-width: 660px;
  margin-top: 24px;
  color: rgba(247, 247, 244, 0.82);
  font-size: 1.25rem;
  line-height: 1.55;
}

.hero-positioning {
  max-width: 620px;
  margin-top: 18px;
  color: var(--text);
  font-size: 1.02rem;
  font-weight: 800;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

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

.button-primary {
  background: var(--white);
  color: var(--black);
}

.button-primary:hover {
  background: #dce7ea;
}

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

.button-secondary:hover {
  border-color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.14);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 700px;
  gap: 1px;
  margin-top: 54px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
}

.hero-facts div {
  min-width: 0;
  padding: 18px;
  background: rgba(5, 5, 5, 0.62);
  backdrop-filter: blur(16px);
}

.hero-facts dt {
  color: var(--soft);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-facts dd {
  margin-top: 5px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 750;
}

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

.lead-section {
  padding-top: 72px;
}

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

.section-split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 70px;
  align-items: start;
}

h2 {
  margin-top: 12px;
  font-size: 3.25rem;
  line-height: 1.02;
  font-weight: 800;
}

h3 {
  font-size: 1.16rem;
  line-height: 1.25;
  font-weight: 800;
}

.prose {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
}

.prose p + p {
  margin-top: 20px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.feature-card,
.capability,
.steps li,
details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.feature-card {
  min-height: 320px;
  padding: 24px;
}

.feature-index {
  display: block;
  margin-bottom: 84px;
  color: var(--warm);
  font-weight: 850;
}

.feature-card p,
.capability p,
.steps p,
details p {
  margin-top: 14px;
  color: var(--muted);
}

.comparison-section {
  width: 100%;
  max-width: none;
  padding-right: 0;
  padding-left: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    #0c0c0c;
}

.comparison-section .section-heading,
.comparison-table {
  width: min(100%, var(--max));
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--gutter);
  padding-left: var(--gutter);
}

.comparison-table {
  border-spacing: 1px;
}

.comparison-table caption {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.comparison-table th,
.comparison-table td {
  min-width: 0;
  padding: 20px;
  background: rgba(12, 12, 12, 0.9);
  color: var(--muted);
  text-align: left;
  vertical-align: top;
}

.comparison-table thead th {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.comparison-table tbody th {
  width: 24%;
  color: var(--text);
  font-weight: 850;
}

.comparison-table tbody td {
  width: 38%;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.proof-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition:
    border-color 220ms ease,
    background-color 220ms ease,
    transform 160ms ease;
}

.proof-card:hover {
  border-color: var(--line-strong);
  background: var(--panel-strong);
  transform: translateY(-1px);
}

.proof-card span {
  display: block;
  margin-bottom: 54px;
  color: var(--warm);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.proof-card strong {
  display: block;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.25;
}

.proof-card p {
  margin-top: 14px;
  color: var(--muted);
}

.capability-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(260px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}

.capability {
  min-height: 220px;
  padding: 24px;
  scroll-snap-align: start;
}

.security-section {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.text-link {
  display: inline-block;
  margin-top: 22px;
  color: var(--text);
  font-weight: 850;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.steps li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  min-height: 210px;
  padding: 24px;
}

.steps span {
  color: var(--warm);
  font-weight: 850;
}

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

details {
  padding: 0;
}

summary {
  min-height: 64px;
  padding: 20px 22px;
  cursor: pointer;
  font-weight: 850;
}

details p {
  padding: 0 22px 22px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 44px var(--gutter) 52px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.92rem;
}

.footer-brand {
  color: var(--text);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 500ms ease,
    transform 500ms ease,
    border-color 220ms ease,
    background-color 220ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.feature-card:hover,
.capability:hover,
.steps li:hover,
details:hover {
  border-color: var(--line-strong);
  background: var(--panel-strong);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

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

@media (max-width: 980px) {
  .site-nav {
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  h1 {
    font-size: 4.4rem;
  }

  h2 {
    font-size: 2.45rem;
  }

  .section-split,
  .feature-grid,
  .proof-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .feature-card {
    min-height: 240px;
  }

  .feature-index {
    margin-bottom: 42px;
  }

  .comparison-table {
    display: block;
    border-spacing: 0;
  }

  .comparison-table thead {
    display: none;
  }

  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table th,
  .comparison-table td {
    display: block;
    width: 100%;
  }

  .comparison-table tr {
    margin-bottom: 1px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.14);
  }

  .comparison-table th,
  .comparison-table td {
    padding: 16px 18px;
  }

  .comparison-table tbody td:first-of-type::before {
    display: block;
    margin-bottom: 6px;
    color: var(--soft);
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
    content: "OpenClaw-style setup";
  }

  .comparison-table tbody td:nth-of-type(2)::before {
    display: block;
    margin-bottom: 6px;
    color: var(--signal);
    font-size: 0.76rem;
    font-weight: 850;
    text-transform: uppercase;
    content: "PocketDaemon";
  }
}

@media (max-width: 680px) {
  :root {
    --gutter: 18px;
  }

  .site-header {
    padding-top: 12px;
  }

  .brand span {
    font-size: 0.95rem;
  }

  .nav-action {
    padding: 8px 12px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-media {
    object-position: 64% center;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.93) 0%, rgba(0, 0, 0, 0.72) 54%, rgba(0, 0, 0, 0.35) 100%),
      linear-gradient(180deg, rgba(0, 0, 0, 0.16) 0%, rgba(0, 0, 0, 0.86) 100%);
  }

  .hero-inner {
    padding-top: 96px;
    padding-bottom: 36px;
  }

  h1 {
    font-size: 3.05rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-copy,
  .hero-positioning,
  .prose {
    font-size: 1rem;
  }

  .hero-actions,
  .install-actions {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 28px;
  }

  .hero-facts div {
    padding: 12px;
  }

  .hero-facts dt {
    font-size: 0.68rem;
  }

  .hero-facts dd {
    font-size: 0.86rem;
  }

  .section {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .lead-section {
    padding-top: 50px;
  }

  .section-split {
    gap: 30px;
  }

  .site-footer {
    display: grid;
    gap: 24px;
  }
}
