:root {
  --bg: #041018;
  --bg-alt: #0a1a24;
  --card: #0d2230;
  --text: #e8f7ff;
  --muted: #97b9c8;
  --line: #173347;
  --accent: #13d5f3;
  --accent-strong: #0ea5c4;
  --nav-text: #dff4ff;
  --nav-muted: #b8d6e6;
  --nav-pill: #153247;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, Geist, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 16% 0%, #0f2e42 0%, var(--bg) 52%);
  line-height: 1.55;
}
.container { width: min(1080px, 92vw); margin: 0 auto; }
.top-nav {
  border-bottom: 1px solid #20425a;
  background: rgba(3, 12, 19, 0.94);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.nav-left .brand {
  margin-right: 2rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  height: 38px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(19, 213, 243, 0.25));
}
.nav-link {
  color: var(--nav-text);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 650;
  padding: 0.34rem 0.58rem;
  border-radius: 8px;
  transition: color 180ms ease, background-color 180ms ease;
}
.nav-link:visited { color: var(--nav-text); }
.nav-link:hover {
  color: #ebf9ff;
  background: #143247;
}
.nav-link.active {
  color: #ecfbff;
  background: var(--nav-pill);
}
.nav-right .nav-link {
  color: var(--nav-muted);
}
.nav-github {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-github:hover {
  color: #ecfbff;
}
.nav-github svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}
.nav-cta {
  padding: 0.48rem 0.95rem;
}
.hero { padding: 4.8rem 0 5.5rem; border-bottom: 1px solid var(--line); }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 2.6rem;
  align-items: center;
}
.hero-copy { text-align: left; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #254457;
  background: #0a1f2d;
  color: #9ec0d0;
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  font-size: 0.84rem;
  margin-bottom: 0.95rem;
}
.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #38e8ff;
}
.hero-title {
  display: grid;
  gap: 0.6rem;
  justify-items: start;
  text-align: left;
  grid-template-columns: 1fr;
}
h1 {
  font-size: clamp(2.3rem, 5.2vw, 4.05rem);
  margin: 0.1rem 0 0.6rem;
  line-height: 1.02;
  max-width: 17ch;
  letter-spacing: -0.03em;
  font-weight: 900;
}
.lede {
  color: var(--muted);
  max-width: 54ch;
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.75;
  font-weight: 500;
}
.subtle { color: var(--muted); font-size: 0.95rem; }
.subtle a { color: #9ceffc; }
.subtle a:hover { color: #c6f6ff; }
.center-text { text-align: center; margin-bottom: 1.6rem; }
.section { padding: 6rem 0; }
.section.alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.grid-3 { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 1rem; }
.card h3 { margin-top: 0.2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: flex-start; margin-top: 1.1rem; }
.btn {
  display: inline-block;
  padding: 0.62rem 1rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  text-decoration: none;
  color: var(--text);
  background: #0b1f2c;
  font-weight: 600;
}
.btn:hover { border-color: var(--accent); }
.btn.primary {
  background: linear-gradient(180deg, #36e9ff, #12cfe9);
  color: #02202a;
  border: none;
  font-weight: 800;
  box-shadow: 0 0 18px rgba(19, 213, 243, 0.3);
}
.hero .btn:not(.primary) {
  border: 1px solid #3b5567;
  color: #d0dfeb;
  background: transparent;
}
.hero .btn:not(.primary):hover {
  background: #0d1f2b;
  border-color: #4d748c;
}
.hero .cta-row { justify-content: flex-start; gap: 1rem; margin-top: 1.5rem; }
.hero .cta-row .btn { min-width: 230px; text-align: center; }
.hero-trust {
  margin-top: 0.9rem;
  color: #86a7b8;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}
.dot-sep { color: #5d7b8f; }
.hero-visual { position: relative; }
.terminal-card {
  border: 1px solid #223d4f;
  background: #0b1520;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
.terminal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid #223d4f;
  background: #111d2a;
}
.terminal-dots {
  display: flex;
  gap: 0.35rem;
}
.terminal-title {
  color: #7596aa;
  font-size: 0.74rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
}
.terminal-body {
  padding: 1rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: 0.8rem;
  color: #b9d1de;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.prompt { color: #63f08f; }
.path { color: #65c9ff; }
.log { color: #9ab6c5; margin-top: 0.55rem; }
.ok { color: #8fe9f8; }
.req { color: #f5d17a; }
.res { color: #7ee7c8; }
.code-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
pre { white-space: pre-wrap; }
pre {
  margin: 0.5rem 0 1.2rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.85rem;
  background: #071721;
  overflow-x: auto;
  position: relative;
}
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }
table { width: 100%; border-collapse: collapse; margin-top: 0.8rem; }
th, td { border: 1px solid var(--line); padding: 0.55rem; text-align: left; }
th { background: #10293a; }
.group-row td {
  background: #0d2a3b;
  color: #8fe9f8;
  font-weight: 700;
}
.aha-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  gap: 0.9rem;
  align-items: center;
}
.aha-card {
  background: #091926;
  border: 1px solid #22495f;
  border-radius: 14px;
  padding: 0.8rem;
}
.aha-header {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid #173347;
  padding-bottom: 0.45rem;
}
.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}
.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }
.aha-label {
  margin-left: 0.45rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8fe9f8;
  font-weight: 700;
}
.aha-arrow {
  color: #62cee4;
  font-size: 1.5rem;
  font-weight: 700;
}
.ide-strip {
  background: linear-gradient(180deg, #061725, #081c2a);
  border-bottom: 1px solid var(--line);
  padding: 4.8rem 0 4.8rem;
}
.ide-strip h2 { margin: 0 0 0.35rem; font-size: 1.35rem; }
.ide-row {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin: 1.25rem 0 0;
  justify-content: center;
}
.ide-logo-card {
  display: inline-flex;
  align-items: center;
  border: 1px solid #2a4558;
  background: rgba(10, 42, 61, 0.45);
  color: #9ceffc;
  border-radius: 999px;
  padding: 0.55rem;
  backdrop-filter: blur(2px);
}
.ide-logo {
  height: 22px;
  width: auto;
}
.copy-btn {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  border: 1px solid #2f4f64;
  background: #0b2333;
  color: #b9d9e8;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.45rem;
  cursor: pointer;
}
.copy-btn:hover {
  border-color: #69d8ef;
  color: #def8ff;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.trust-badge {
  display: inline-flex;
  align-items: center;
  border: 1px solid #24526b;
  background: #0a2b3e;
  color: #9ceffc;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 600;
}
.trust-badge.link-badge {
  text-decoration: none;
}
footer {
  padding: 2.1rem 0;
  color: var(--muted);
  border-top: 1px solid #1e3b4f;
  background: #06131d;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.4rem;
}
.footer-left,
.footer-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.05rem;
}
.footer-left {
  align-items: baseline;
}
.footer-brand {
  margin: 0;
  color: #eaf9ff;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}
.footer-tagline,
.footer-copyright {
  margin: 0;
  color: #92b4c4;
  font-size: 0.9rem;
}
.footer-right a {
  color: #b2d8e8;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 650;
  transition: color 180ms ease;
}
.footer-right a:hover {
  color: #74e8ff;
}

.docs-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  gap: 1.05rem;
  padding: 1.5rem 0 4rem;
}
.subpage-hero {
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #071725, #081925);
  padding: 2.35rem 0 2.4rem;
}
.subpage-hero h1 {
  margin: 0 0 0.35rem;
  max-width: none;
  letter-spacing: -0.02em;
  font-size: clamp(1.7rem, 3.2vw, 2.4rem);
  line-height: 1.08;
}
.subpage-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 70ch;
}
.docs-sidebar {
  border: 1px solid var(--line);
  background: #081a26;
  border-radius: 14px;
  padding: 0.95rem;
  align-self: start;
  position: sticky;
  top: 84px;
  max-height: calc(100vh - 100px);
  overflow: auto;
}
.docs-group + .docs-group {
  margin-top: 0.88rem;
  padding-top: 0.88rem;
  border-top: 1px solid #163648;
}
.docs-group h3 {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  color: #77acc4;
}
.docs-group a {
  display: block;
  text-decoration: none;
  color: #c3deeb;
  padding: 0.44rem 0.58rem;
  border-radius: 7px;
  font-size: 0.89rem;
  line-height: 1.35;
  border: 1px solid transparent;
}
.docs-group a:visited { color: #b6d7e7; }
.docs-group a:hover,
.docs-group a.active {
  background: #0f2f43;
  color: #e9fbff;
  border-color: #2c5d79;
}
.docs-content {
  border: 1px solid var(--line);
  background: #081925;
  border-radius: 14px;
  padding: 1.1rem 1.45rem 1.8rem;
}
.docs-title-row {
  border-bottom: 1px solid #173347;
  margin-bottom: 1.15rem;
}
.docs-title-row h1 {
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  margin: 0 0 0.85rem;
  max-width: none;
}
.md-article h1,
.md-article h2,
.md-article h3,
.md-article h4 {
  line-height: 1.25;
}
.md-article {
  max-width: 68ch;
  margin: 0 auto;
  font-size: 1rem;
  overflow-wrap: anywhere;
}
body[data-page-kind="docs"] .md-article {
  max-width: 72ch;
}
.md-article a {
  color: #8fe9f8;
  text-decoration: none;
}
.md-article a:visited { color: #8fe9f8; }
.md-article a:hover {
  color: #c6f7ff;
  text-decoration: underline;
}
.md-article h1 {
  font-size: clamp(1.45rem, 2.8vw, 1.82rem);
  margin-top: 0;
  margin-bottom: 0.7rem;
  letter-spacing: -0.015em;
  line-height: 1.2;
}
.md-article h2 {
  font-size: clamp(1.2rem, 2.2vw, 1.46rem);
  margin-top: 2.1rem;
  margin-bottom: 0.7rem;
  letter-spacing: -0.01em;
}
.md-article h3 {
  font-size: clamp(1.06rem, 1.7vw, 1.18rem);
  margin-top: 1.35rem;
  margin-bottom: 0.45rem;
  letter-spacing: -0.01em;
}
.md-article p,
.md-article li {
  color: #c8e1ec;
  font-size: 1rem;
  line-height: 1.72;
}
.md-article p {
  margin: 0 0 1rem;
}
.md-article ul,
.md-article ol {
  padding-left: 1.3rem;
  margin: 0.2rem 0 1rem;
}
.md-article li {
  margin-bottom: 0.4rem;
}
.md-article blockquote {
  margin: 0.9rem 0;
  border-left: 3px solid #2f6a88;
  background: #0a2333;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  color: #b6d8ea;
}
.md-article hr {
  border: 0;
  border-top: 1px solid #1c3f53;
  margin: 1.4rem 0;
}
.md-article :not(pre) > code {
  background: #123349;
  color: #8deaff;
  border: 1px solid #25526b;
  border-radius: 6px;
  padding: 0.08rem 0.36rem;
  font-size: 0.9em;
}
.md-article pre {
  margin: 0.78rem 0 1.05rem;
  border-radius: 10px;
  padding: 0.72rem 0.78rem 0.8rem;
  border-color: #1f465d;
  background: #091c2a;
}
.md-article pre code {
  font-size: 0.86rem;
  line-height: 1.48;
}
.md-article table {
  display: block;
  overflow-x: auto;
  white-space: nowrap;
}
.md-article th,
.md-article td {
  white-space: nowrap;
}
.md-article h2 + pre,
.md-article h3 + pre,
.md-article p + pre {
  margin-top: 0.56rem;
}
.md-article pre + p {
  margin-top: 0.2rem;
}
.about-shell {
  padding: 1.5rem 0 4rem;
}
.about-content {
  border: 1px solid var(--line);
  background: #081925;
  border-radius: 14px;
  padding: 2rem 2.15rem 2.3rem;
}
.about-content .md-article strong:first-child {
  display: block;
  font-size: clamp(1.16rem, 2.3vw, 1.34rem);
  line-height: 1.45;
  color: #eaf9ff;
  margin-bottom: 1.05rem;
}

@media (max-width: 780px) {
  .nav-inner {
    height: auto;
    padding: 0.58rem 0;
    align-items: flex-start;
  }
  .brand-logo { height: 32px; }
  .nav-left {
    flex: 1 1 auto;
    min-width: 0;
    flex-wrap: wrap;
    gap: 0.9rem;
    align-items: center;
  }
  .nav-left .brand {
    margin-right: 1rem;
  }
  .nav-left .nav-link {
    display: inline-flex;
    white-space: nowrap;
    font-size: 0.85rem;
    padding: 0.28rem 0.5rem;
  }
  .nav-right {
    gap: 0.75rem;
    flex-shrink: 0;
  }
  .nav-right .nav-link {
    display: inline-flex;
    font-size: 0.85rem;
    white-space: nowrap;
    padding: 0.28rem 0.5rem;
  }
  .nav-cta { padding: 0.42rem 0.75rem; font-size: 0.82rem; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.7rem;
  }
  .hero-copy {
    text-align: center;
  }
  .hero-title {
    justify-items: center;
    text-align: center;
  }
  h1 {
    font-size: clamp(1.85rem, 7vw, 2.5rem);
    max-width: 18ch;
  }
  .lede {
    font-size: 1rem;
  }
  .hero .cta-row .btn {
    min-width: 0;
    width: 100%;
  }
  .hero .cta-row {
    justify-content: center;
  }
  .hero-trust {
    justify-content: center;
  }
  .section { padding: 4rem 0; }
  .ide-strip { padding: 3.5rem 0; }
  .aha-flow {
    grid-template-columns: 1fr;
  }
  .aha-arrow {
    transform: rotate(90deg);
    text-align: center;
  }
  .lede {
    margin: 0 auto;
  }
  .cta-row {
    justify-content: center;
  }
  .docs-shell {
    grid-template-columns: 1fr;
    padding-top: 0.8rem;
  }
  .docs-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .subpage-hero {
    padding: 1.7rem 0 1.8rem;
  }
  .subpage-hero h1 {
    font-size: clamp(1.45rem, 6.6vw, 2rem);
  }
  .about-content {
    padding: 1.3rem 1.05rem 1.55rem;
  }
  .md-article {
    max-width: 100%;
  }
  .md-article h1 {
    font-size: clamp(1.3rem, 5.8vw, 1.58rem);
    line-height: 1.24;
  }
  .md-article h2 {
    font-size: clamp(1.12rem, 4.8vw, 1.32rem);
    margin-top: 1.5rem;
  }
  .md-article h3 {
    font-size: clamp(1rem, 4.2vw, 1.12rem);
    margin-top: 1.1rem;
  }
  .md-article p,
  .md-article li {
    font-size: 0.96rem;
    line-height: 1.64;
  }
  .md-article pre {
    padding: 0.65rem 0.65rem 0.72rem;
  }
  .md-article pre code {
    font-size: 0.8rem;
    line-height: 1.42;
  }
  .docs-content {
    padding: 0.95rem 0.95rem 1.2rem;
  }
  .docs-group a {
    font-size: 0.88rem;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
  .footer-left,
  .footer-right {
    width: 100%;
  }
  .footer-right {
    justify-content: flex-start;
  }
}
