:root {
  color-scheme: dark light;
  --bg-dark: #061f1b;
  --bg-darker: #031512;
  --bg-light: #f8fffc;
  --bg-muted: #edf8f4;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: rgba(15, 23, 42, 0.1);
  --green: #00796b;
  --green-bright: #10b981;
  --mint: #5eead4;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.14);
  --radius-lg: 28px;
  --radius-md: 20px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg-light);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--mint);
  outline-offset: 4px;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 16px;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 32px, var(--max-width));
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(6, 31, 27, 0.72);
  color: #fff;
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-color: rgba(94, 234, 212, 0.22);
  background: rgba(3, 21, 18, 0.9);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.24);
}

.brand {
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.04em;
}

.site-nav {
  display: flex;
  gap: 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
}

.site-nav a {
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--mint);
}

.nav-toggle {
  display: none;
  border: 0;
  border-radius: 999px;
  background: rgba(94, 234, 212, 0.14);
  color: #fff;
  padding: 8px 12px;
}

.section {
  padding: 110px 0;
}

.section-dark {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 80% 10%, rgba(16, 185, 129, 0.22), transparent 28%), linear-gradient(135deg, var(--bg-darker), var(--bg-dark));
  color: #fff;
}

.section-light {
  background: var(--bg-light);
}

.section-muted {
  background: var(--bg-muted);
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 160px 0 110px;
}

.hero-grid,
.split-layout,
.ecosystem-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 64px;
  align-items: center;
}

.hero-glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(80px);
  pointer-events: none;
}

.hero-glow-one {
  top: 12%;
  right: 8%;
  width: 280px;
  height: 280px;
  background: rgba(94, 234, 212, 0.22);
}

.hero-glow-two {
  bottom: 4%;
  left: 8%;
  width: 340px;
  height: 340px;
  background: rgba(16, 185, 129, 0.12);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--green-bright);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  letter-spacing: -0.06em;
  line-height: 1.08;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(44px, 8vw, 86px);
}

.hero-subtitle {
  max-width: 640px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(17px, 2vw, 21px);
}

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

.hero-tags span {
  border: 1px solid rgba(94, 234, 212, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #d7fff7;
  padding: 10px 16px;
  font-size: 14px;
}

.hero-visual {
  position: relative;
  min-height: 440px;
}

.terminal-card,
.network-card {
  position: absolute;
  border: 1px solid rgba(94, 234, 212, 0.22);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.terminal-card {
  top: 36px;
  left: 0;
  width: min(100%, 390px);
  padding: 22px;
}

.terminal-top {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--mint);
  opacity: 0.75;
}

.terminal-line {
  margin: 10px 0;
  color: rgba(255, 255, 255, 0.82);
}

.terminal-line.muted {
  color: rgba(255, 255, 255, 0.58);
}

.terminal-line.success {
  color: var(--mint);
}

.network-card {
  right: 0;
  bottom: 20px;
  width: 330px;
  height: 250px;
}

.node {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  color: #04211d;
  font-weight: 900;
}

.node-human {
  background: #ecfeff;
}

.node-agent {
  top: 94px;
  left: 136px;
  background: var(--mint);
}

.node-a {
  top: 34px;
  left: 44px;
}

.node-b {
  top: 34px;
  right: 44px;
}

.node-c {
  right: 68px;
  bottom: 34px;
  background: #bbf7d0;
  font-size: 13px;
}

.line {
  position: absolute;
  height: 1px;
  background: rgba(94, 234, 212, 0.58);
  transform-origin: left center;
}

.line-one {
  top: 88px;
  left: 98px;
  width: 92px;
  transform: rotate(24deg);
}

.line-two {
  top: 88px;
  right: 98px;
  width: 92px;
  transform: rotate(156deg);
}

.line-three {
  top: 164px;
  left: 190px;
  width: 88px;
  transform: rotate(30deg);
}

.section-heading {
  max-width: 740px;
}

.section-heading.centered {
  margin: 0 auto 48px;
  text-align: center;
}

.section-heading h2 {
  color: #063f37;
  font-size: clamp(34px, 5vw, 56px);
}

.section-dark .section-heading h2 {
  color: #fff;
}

.section-heading p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

.section-dark .section-heading p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.7);
}

.insight-list {
  display: grid;
  gap: 18px;
}

.insight-list article,
.feature-card,
.capability-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
  box-shadow: 0 16px 45px rgba(15, 23, 42, 0.06);
}

.insight-list article {
  padding: 24px;
}

.insight-list span,
.icon-mark {
  color: var(--green);
  font-weight: 900;
}

.insight-list h3,
.feature-card h3,
.capability-list h3 {
  margin: 8px 0;
  color: #0f172a;
}

.insight-list p,
.feature-card p,
.capability-list p {
  margin: 0;
  color: var(--muted);
}

.feature-grid {
  display: grid;
  gap: 22px;
}

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

.feature-card {
  padding: 28px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: var(--shadow);
  transform: translateY(-4px);
}

.icon-mark {
  display: inline-grid;
  place-items: center;
  min-width: 46px;
  height: 46px;
  border-radius: 16px;
  background: #dffcf3;
  padding: 0 10px;
}

.capability-panel {
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: 44px;
  align-items: center;
  margin-top: 42px;
  padding: 36px;
}

.capability-screen {
  display: grid;
  place-items: center;
}

.phone-shell {
  width: 245px;
  min-height: 420px;
  border: 10px solid #0f172a;
  border-radius: 38px;
  background: linear-gradient(180deg, #ffffff, #ecfdf5);
  box-shadow: var(--shadow);
  padding: 18px;
}

.phone-status {
  width: 72px;
  height: 8px;
  margin: 0 auto 28px;
  border-radius: 999px;
  background: #0f172a;
}

.chat-bubble,
.permission-card {
  margin-bottom: 14px;
  border-radius: 18px;
  padding: 12px;
  font-size: 13px;
}

.chat-bubble.left {
  margin-right: 30px;
  background: #e2e8f0;
}

.chat-bubble.right {
  margin-left: 30px;
  background: #ccfbf1;
}

.permission-card {
  background: #fff;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
}

.permission-card span {
  display: inline-block;
  margin-top: 10px;
  border-radius: 999px;
  background: var(--green);
  color: #fff;
  padding: 5px 12px;
}

.capability-list {
  display: grid;
  gap: 22px;
}

.memory-section {
  background: radial-gradient(circle at 20% 20%, rgba(16, 185, 129, 0.2), transparent 24%), linear-gradient(135deg, #031512, #08241f);
}

.memory-flow {
  display: grid;
  grid-template-columns: 1fr auto 1.1fr auto 1fr auto 1.3fr auto 1.1fr;
  gap: 12px;
  align-items: center;
  margin-top: 44px;
}

.flow-step {
  min-height: 92px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(94, 234, 212, 0.2);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  padding: 18px;
  text-align: center;
}

.flow-step.highlight {
  border-color: rgba(94, 234, 212, 0.5);
  background: rgba(94, 234, 212, 0.14);
  color: #fff;
}

.flow-arrow {
  color: var(--mint);
  font-size: 24px;
}

.flywheel {
  position: relative;
  min-height: 420px;
  border: 1px solid rgba(0, 121, 107, 0.14);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.12), transparent 58%);
}

.flywheel::before {
  content: "";
  position: absolute;
  inset: 48px;
  border: 2px dashed rgba(0, 121, 107, 0.38);
  border-radius: 50%;
}

.flywheel-core,
.flywheel-item {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.flywheel-core {
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  background: var(--green);
  color: #fff;
  font-weight: 900;
  text-align: center;
  transform: translate(-50%, -50%);
}

.flywheel-item {
  background: #fff;
  color: #064e45;
  padding: 11px 16px;
  font-size: 14px;
  font-weight: 800;
}

.item-one {
  top: 54px;
  left: 50%;
  transform: translateX(-50%);
}

.item-two {
  top: 50%;
  right: -8px;
  transform: translateY(-50%);
}

.item-three {
  bottom: 54px;
  left: 50%;
  transform: translateX(-50%);
}

.item-four {
  top: 50%;
  left: -8px;
  transform: translateY(-50%);
}

.site-footer {
  background: #031512;
  color: rgba(255, 255, 255, 0.72);
  padding: 42px 0;
}

.footer-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-footer strong {
  display: block;
  color: #fff;
  font-size: 24px;
  margin-bottom: 8px;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

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

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
}

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

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

  .hero-visual {
    min-height: 380px;
  }

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

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

  .flow-arrow {
    transform: rotate(90deg);
    text-align: center;
  }
}

@media (max-width: 768px) {
  .container {
    width: min(100% - 28px, var(--max-width));
  }

  .site-header {
    top: 10px;
    width: min(100% - 20px, var(--max-width));
    border-radius: 24px;
    flex-wrap: wrap;
  }

  .site-nav {
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 10px;
    padding-top: 14px;
  }

  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
  }

  .js .site-nav.is-open {
    display: flex;
  }

  .hero {
    padding-top: 132px;
  }

  .section {
    padding: 76px 0;
  }

  .hero-tags {
    gap: 8px;
  }

  .hero-tags span {
    font-size: 13px;
    padding: 8px 12px;
  }

  .terminal-card,
  .network-card {
    position: relative;
    width: 100%;
  }

  .terminal-card {
    top: 0;
  }

  .network-card {
    right: auto;
    bottom: auto;
    margin-top: 18px;
  }

  .hero-visual {
    min-height: auto;
  }

  .capability-panel {
    padding: 22px;
  }

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

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

@media (max-width: 520px) {
  .hero h1 {
    font-size: 42px;
  }

  .section-heading h2 {
    font-size: 32px;
  }

  .flywheel {
    min-height: 340px;
    border-radius: 28px;
  }

  .flywheel::before {
    inset: 36px;
  }

  .flywheel-core {
    width: 124px;
    height: 124px;
    font-size: 14px;
  }

  .flywheel-item {
    font-size: 12px;
    padding: 9px 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

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