:root {
  --bg: #050914;
  --bg-soft: #0a1022;
  --surface: rgba(255,255,255,.045);
  --surface-strong: rgba(255,255,255,.075);
  --border: rgba(255,255,255,.1);
  --text: #edf2fb;
  --muted: #9ca9bd;
  --primary: #4f7cff;
  --primary-soft: #7aa2ff;
  --accent: #f7c948;
  --success: #58d68d;
  --shadow: 0 24px 70px rgba(0,0,0,.32);
  --radius: 20px;
  --font-sans: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Cascadia Code", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

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

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 40px;
  background: rgba(5,9,20,.72);
  border-bottom: 1px solid rgba(255,255,255,.07);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex; align-items: center; gap: 12px;
  font-weight: 800; letter-spacing: .04em;
}

.brand-mark { width: 36px; height: 36px; }

.brand-name { font-size: 18px; }

.site-nav {
  display: flex; align-items: center; gap: 26px;
  font-size: 14px; color: var(--muted);
}

.site-nav a { transition: color .2s ease; }
.site-nav a:hover { color: var(--text); }

.nav-cta {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text) !important;
}

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: transparent;
}

.nav-toggle span {
  display: block;
  width: 18px; height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: center;
  padding: 140px 0 100px;
  overflow: hidden;
}

.hero-background {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(79,124,255,.22), transparent 34%),
    radial-gradient(circle at 80% 10%, rgba(247,201,72,.12), transparent 30%),
    linear-gradient(180deg, #071026 0%, #050914 100%);
}

.stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,.8), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,.55), transparent),
    radial-gradient(1px 1px at 60% 20%, rgba(255,255,255,.65), transparent),
    radial-gradient(1px 1px at 80% 60%, rgba(255,255,255,.45), transparent),
    radial-gradient(1px 1px at 10% 80%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 90% 30%, rgba(255,255,255,.7), transparent);
  opacity: .75;
}

.orbit {
  position: absolute;
  right: -160px; top: 10%;
  width: 780px; height: 780px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 50%;
  box-shadow: inset 0 0 120px rgba(79,124,255,.12);
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 72px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--primary-soft);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .22em;
  text-transform: uppercase;
}

h1, h2, h3 { font-weight: 800; line-height: 1.15; }

h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 86px);
  letter-spacing: -.035em;
}

.hero-subtitle {
  margin: 28px 0 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin-top: 42px;
}

.button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 26px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.button.primary {
  background: linear-gradient(120deg, var(--primary), #7c5cff);
  color: #fff;
  box-shadow: 0 18px 40px rgba(79,124,255,.32);
}

.button.ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,.03);
}

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

.visual-card {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.03));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.visual-header {
  display: flex; gap: 8px;
  margin-bottom: 22px;
}

.visual-header span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.22);
}

.visual-card pre {
  margin: 0;
  padding: 20px;
  border-radius: 16px;
  background: rgba(0,0,0,.35);
  color: #d9e4ff;
  font-family: var(--font-mono);
  font-size: 14px;
  overflow-x: auto;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.visual-grid div {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
}

.visual-grid strong {
  display: block;
  font-size: 30px;
  color: var(--accent);
}

.visual-grid span { color: var(--muted); font-size: 13px; }

.section { padding: 120px 0; }

.section h2 {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 58px);
  letter-spacing: -.025em;
}

.section-subtitle {
  margin: 18px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
}

.brand-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 60px;
  margin-top: 60px;
}

.brand-intro {
  margin: 0;
  font-size: 24px;
  line-height: 1.7;
  color: #dbe5f7;
}

.brand-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.brand-points article,
.trust-grid article {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.brand-points h3,
.trust-grid h3 {
  margin: 0 0 10px;
  font-size: 20px;
}

.brand-points p,
.trust-grid p {
  margin: 0;
  color: var(--muted);
}

.capabilities {
  background: linear-gradient(180deg, rgba(255,255,255,.025), transparent);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 64px;
}

.capability-card {
  position: relative;
  min-height: 320px;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(170deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
}

.capability-index {
  color: rgba(255,255,255,.28);
  font-family: var(--font-mono);
  font-size: 13px;
}

.capability-card h3 {
  margin: 46px 0 14px;
  font-size: 24px;
}

.capability-card p { color: var(--muted); }

.capability-card ul {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin: 24px 0 0; padding: 0;
  list-style: none;
}

.capability-card li {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #cdd9ee;
  font-size: 12px;
}

.section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 40px;
}

.skill-tools input {
  width: 320px;
  height: 48px;
  padding: 0 18px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  outline: none;
}

.skill-tools input:focus { border-color: var(--primary); }

.filter-chips {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 34px 0 30px;
}

.chip {
  height: 38px; padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.chip.active {
  border-color: var(--primary);
  color: #fff;
  background: rgba(79,124,255,.16);
}

.skill-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.skill-card {
  display: flex; flex-direction: column; justify-content: space-between;
  min-height: 210px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.skill-card:hover {
  transform: translateY(-4px);
  border-color: rgba(122,162,255,.5);
  background: var(--surface-strong);
}

.skill-head {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 16px;
}

.skill-glyph {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 14px;
  font-weight: 800;
  font-size: 18px;
}

.skill-glyph.memory { background: rgba(88,214,141,.14); color: #8ff0b6; }
.skill-glyph.security { background: rgba(247,201,72,.14); color: #ffd86b; }
.skill-glyph.workflow { background: rgba(79,124,255,.16); color: #a9bdff; }
.skill-glyph.content { background: rgba(255,122,182,.14); color: #ffa8c8; }
.skill-glyph.engineering { background: rgba(124,92,255,.16); color: #c8b8ff; }
.skill-glyph.foundation { background: rgba(255,255,255,.1); color: #e7edf8; }

.skill-head h3 { margin: 0; font-size: 18px; }
.skill-head p { margin: 2px 0 0; color: var(--muted); font-size: 12px; font-family: var(--font-mono); }
.skill-card > p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }

.skill-card footer {
  display: flex; align-items: center; justify-content: space-between;
  color: var(--muted);
  font-size: 12px;
}

.skill-card footer a { color: var(--primary-soft); }

.skill-empty {
  margin-top: 30px;
  color: var(--muted);
  text-align: center;
}

.install {
  background: linear-gradient(180deg, transparent, rgba(79,124,255,.07), transparent);
}

.install-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: 40px;
  margin-top: 60px;
}

.terminal {
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(3,7,16,.85);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.terminal-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 30px 0;
}

.terminal-title strong { font-size: 18px; }
.terminal-title span { color: var(--muted); font-size: 13px; }

.terminal-header {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}

.terminal-header span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
}

.terminal-header button {
  margin-left: auto;
  height: 30px; padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.terminal pre {
  margin: 0; padding: 30px;
  color: #dce7ff;
  font-family: var(--font-mono);
  font-size: 15px;
  overflow-x: auto;
}

.agent-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0 30px 28px;
}

.command-list {
  display: grid;
  gap: 10px;
  padding: 0 30px 28px;
}

.command-list div {
  display: grid;
  grid-template-columns: 100px 1fr;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(255,255,255,.025);
}

.command-list span { color: var(--muted); font-size: 12px; }

.command-list code {
  overflow-x: auto;
  color: #c9d8f7;
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}

.agent-option {
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  color: var(--muted);
  cursor: pointer;
}

.agent-option.active,
.agent-option:hover {
  border-color: var(--primary);
  color: #fff;
  background: rgba(79,124,255,.18);
}

.install-panel {
  display: grid;
  grid-template-columns: 1fr;
  align-content: stretch;
  gap: 20px;
}

.install-steps { display: grid; gap: 14px; }

.install-steps article {
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
  align-items: start;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
}

.install-steps article > span {
  grid-column: 1;
  grid-row: 1 / span 2;
}

.install-steps span {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 18px;
}

.install-steps article h3,
.install-steps article p {
  grid-column: 2;
}

.install-steps article h3 {
  grid-row: 1;
}

.install-steps article p {
  grid-row: 2;
}

.install-steps h3 { margin: 0 0 6px; font-size: 18px; }
.install-steps p { margin: 0; color: var(--muted); }

.install-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.install-facts div {
  padding: 18px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  text-align: center;
}

.install-facts strong { display: block; font-size: 16px; }
.install-facts span { color: var(--muted); font-size: 12px; }

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.ecosystem-grid a {
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface);
  transition: transform .2s ease, border-color .2s ease;
}

.ecosystem-grid a:hover {
  transform: translateY(-4px);
  border-color: rgba(122,162,255,.5);
}

.ecosystem-grid span {
  display: block;
  margin-bottom: 10px;
  font-size: 22px; font-weight: 800;
}

.ecosystem-grid p { margin: 0; color: var(--muted); }

.about {
  text-align: center;
}

.about-copy {
  max-width: 720px;
  margin: 30px auto 0;
  color: var(--muted);
  font-size: 20px;
}

.about-actions {
  display: flex; justify-content: center; gap: 16px;
  margin-top: 36px;
}

.site-footer {
  padding: 70px 0;
  border-top: 1px solid var(--border);
  background: #04070f;
}

.footer-layout {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 40px;
  align-items: center;
}

.site-footer p { margin: 8px 0 0; color: var(--muted); }

.site-footer nav {
  display: flex; gap: 20px;
  color: var(--muted);
}

.copyright { color: var(--muted) !important; }

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 120;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 50%;
  background: rgba(12,20,40,.85);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, border-color .2s ease;
  backdrop-filter: blur(12px);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top:hover { border-color: var(--primary); }

.back-to-top svg { width: 22px; height: 22px; }

@media (max-width: 1100px) {
  .hero-layout { grid-template-columns: 1fr; gap: 50px; }
  .capability-grid, .skill-grid, .trust-grid, .ecosystem-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; }
  .skill-tools input { width: 100%; }
}

@media (max-width: 760px) {
  .site-header { padding: 14px 20px; }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    top: 70px; right: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    width: min(300px, calc(100vw - 32px));
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: rgba(5,9,20,.98);
  }
  .site-nav.open { display: flex; }
  .hero { padding-top: 120px; }
  .container { width: min(100% - 32px, 1180px); }
  .capability-grid, .skill-grid, .trust-grid, .ecosystem-grid, .install-grid,
  .brand-points, .visual-grid { grid-template-columns: 1fr; }
  .section { padding: 84px 0; }
  .command-list div { grid-template-columns: 1fr; align-items: start; }
  .install-facts { grid-template-columns: repeat(2, 1fr); }
  .footer-layout { grid-template-columns: 1fr; text-align: left; }
  .back-to-top { right: 16px; bottom: 16px; }
}
