:root {
  --bg: #080b18;
  --panel: #0e1327;
  --panel-2: #151b35;
  --text: #f5f6ff;
  --muted: #a9afc5;
  --violet: #a78bfa;
  --cyan: #52e5e7;
  --line: rgba(171, 181, 224, 0.18);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 84% 2%, rgba(82, 229, 231, 0.09), transparent 32rem),
    radial-gradient(circle at 12% 28%, rgba(167, 139, 250, 0.1), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #baffff; }
.nav-shell {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 11, 24, 0.84);
  backdrop-filter: blur(18px);
}
nav {
  width: min(var(--max), calc(100% - 2rem));
  min-height: 68px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { color: var(--text); font-weight: 800; letter-spacing: -0.02em; }
.brand-mark { color: var(--violet); font-family: ui-monospace, monospace; }
.nav-links { display: flex; gap: 1.35rem; }
.nav-links a { color: var(--muted); font-size: 0.9rem; }
.hero, .section, footer {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}
.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 4rem;
  align-items: center;
}
.hero-copy { position: relative; z-index: 1; min-width: 0; }
.eyebrow {
  color: var(--violet);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0.15em;
}
h1, h2, h3 { line-height: 1.12; letter-spacing: -0.035em; }
h1 { margin: 0.5rem 0 1.2rem; font-size: clamp(3.2rem, 7vw, 6.25rem); }
h2 { margin: 0.4rem 0 1rem; font-size: clamp(2rem, 4vw, 3.7rem); }
h3 { font-size: 1.2rem; }
.lead { max-width: 650px; color: var(--muted); font-size: 1.18rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 2rem 0; }
.actions.centered { justify-content: center; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 1.25rem;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-weight: 750;
}
.button.primary { background: var(--violet); border-color: var(--violet); color: #0b0912; }
.button.primary:hover { background: #bca7ff; color: #0b0912; }
.button.secondary { background: rgba(255,255,255,0.03); color: var(--text); }
.trust-row { display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: 0.83rem; }
.trust-row span::before { content: "✓"; margin-right: 0.35rem; color: var(--cyan); }

.hero-art {
  position: relative;
  min-width: 0;
  min-height: 440px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(145deg, #11182e, #090d1d);
  background-size: 32px 32px, 32px 32px, auto;
  box-shadow: 0 35px 90px rgba(0,0,0,0.4);
}
.terminal-bar {
  height: 52px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,0.025);
}
.terminal-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #ff6b7a; }
.terminal-bar > span:nth-child(2) { background: #ffd166; }
.terminal-bar > span:nth-child(3) { background: #55d98b; }
.terminal-bar b {
  margin-left: 8px;
  color: var(--muted);
  font: 500 0.76rem ui-monospace, monospace;
}
.terminal-body {
  position: relative;
  z-index: 2;
  padding: 2rem;
  font: 0.87rem/1.65 ui-monospace, SFMono-Regular, Consolas, monospace;
}
.terminal-body p { margin: 0.35rem 0; }
.terminal-body i { color: var(--cyan); font-style: normal; }
.terminal-body em { color: var(--violet); font-style: normal; }
.terminal-body .muted { color: #7f89a8; }
.terminal-body strong { color: #cad0e8; font-weight: 600; }
.tree { margin: 1.25rem 0; color: #bec5dc; }
.tree span { display: inline-block; width: 6ch; color: var(--cyan); font-size: 0.7rem; font-weight: 800; }
.terminal-body .success { color: #78e5a6; }
.orbit {
  position: absolute;
  border: 1px solid rgba(82, 229, 231, 0.18);
  border-radius: 50%;
}
.orbit-one { width: 270px; height: 270px; right: -110px; bottom: -80px; }
.orbit-two { width: 190px; height: 190px; right: -70px; bottom: -40px; border-color: rgba(167, 139, 250, 0.24); }
.flutter-gem {
  position: absolute;
  right: 34px;
  bottom: 30px;
  color: var(--cyan);
  font-size: 3.4rem;
  transform: rotate(45deg);
  text-shadow: 0 0 34px rgba(82,229,231,0.65);
}

.section { padding: 7rem 0; }
.section-heading { max-width: 790px; margin-bottom: 2.5rem; }
.section-heading > p:last-child { color: var(--muted); }
.grid { display: grid; gap: 1rem; }
.features { grid-template-columns: repeat(3, 1fr); }
.features article, .architecture-cards article, .install-grid article {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(145deg, rgba(21,27,53,0.86), rgba(14,19,39,0.7));
}
.features article > span, .install-grid article div > span {
  color: var(--cyan);
  font: 700 0.78rem ui-monospace, monospace;
}
.features p, .architecture-cards p, .install-grid p { color: var(--muted); }
.config-window {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #080c19;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}
.config-file {
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font: 0.78rem ui-monospace, monospace;
}
.config-file span:first-child { color: var(--text); }
.config-window pre { border: 0; margin: 0; padding: 1.5rem 2rem; }
.key { color: var(--cyan); }
.value { color: #dbcfff; }
.bool { color: #ffad7d; }
.architecture-cards { grid-template-columns: repeat(4, 1fr); }
.architecture-cards b { color: var(--violet); font: 700 0.8rem ui-monospace, monospace; }
.api-section { position: relative; }
.api-flow, .architecture-flow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel);
}
.api-flow span, .architecture-flow span {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--panel-2);
}
.api-flow b, .architecture-flow b { color: var(--violet); }
pre {
  margin: 1rem 0 0;
  padding: 1rem;
  overflow-x: auto;
  border: 1px solid rgba(82, 229, 231, 0.18);
  border-radius: 8px;
  background: #070b17;
  color: #dffeff;
  white-space: pre-wrap;
  word-break: break-word;
}
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; font-size: 0.88rem; }
.install-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.install-grid article div { display: flex; align-items: center; gap: 0.8rem; }
.install-grid article h3 { margin: 0; }
.install-grid .install-primary { border-color: rgba(167,139,250,0.48); }
.center-note { max-width: 790px; margin: 1.5rem auto 0; color: var(--muted); text-align: center; }
.cta {
  margin-top: 4rem;
  padding: 6rem 1rem;
  text-align: center;
  border-block: 1px solid var(--line);
  background: radial-gradient(circle at 50% 100%, rgba(167,139,250,0.09), transparent 30rem);
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .architecture-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 760px) {
  .hero { min-height: auto; padding: 5rem 0; grid-template-columns: 1fr; gap: 2.5rem; }
  h1 { font-size: clamp(2.75rem, 13vw, 3.5rem); }
  .hero-art { min-height: 410px; order: -1; }
  .terminal-body { padding: 1.25rem; font-size: 0.74rem; }
  .terminal-body p { overflow-wrap: anywhere; }
  .features, .architecture-cards, .install-grid { grid-template-columns: 1fr; }
  .section { padding: 5rem 0; }
  .api-flow, .architecture-flow { align-items: stretch; flex-direction: column; }
  .api-flow b, .architecture-flow b { transform: rotate(90deg); text-align: center; }
  footer { flex-direction: column; gap: 0.6rem; }
}
