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

* { 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 var(--line);
  background: rgba(4, 16, 24, 0.85);
  backdrop-filter: blur(6px);
}
.nav-inner {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}
.brand-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 6px rgba(19, 213, 243, 0.25));
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}
.nav-links a {
  color: #98b8c9;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
}
.nav-links a:hover {
  color: #d8eef8;
}
.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: 1.3rem 0 2rem; color: var(--muted); text-align: center; }

@media (max-width: 780px) {
  .nav-inner { height: 66px; }
  .brand-logo { height: 28px; }
  .nav-links { display: none; }
  .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;
  }
}
