:root {
  --bg: #0b0d12;
  --bg-soft: #11141c;
  --surface: #151925;
  --border: #232a38;
  --text: #e7ebf3;
  --muted: #9aa6b8;
  --teal: #5eead4;
  --indigo: #818cf8;
  --pink: #f472b6;
  --accent: #818cf8;
  --radius: 14px;
  --maxw: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(129,140,248,0.16), transparent 60%),
    radial-gradient(900px 500px at 90% 0%, rgba(244,114,182,0.10), transparent 55%),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Nav */
.nav {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand img { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 24px; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 500; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero { text-align: center; padding: 72px 0 40px; }
.hero .logo { width: 96px; height: 96px; margin-bottom: 22px; filter: drop-shadow(0 8px 30px rgba(129,140,248,0.35)); }
.hero h1 {
  font-size: clamp(40px, 7vw, 72px); margin: 0 0 8px; letter-spacing: -0.03em; font-weight: 800;
  background: linear-gradient(100deg, var(--teal), var(--indigo) 45%, var(--pink));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .tag { font-size: clamp(18px, 2.6vw, 24px); color: var(--text); margin: 0 auto 10px; max-width: 720px; }
.hero .sub { color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; border-radius: 10px;
  font-weight: 600; font-size: 15px; border: 1px solid transparent; transition: transform .08s ease, background .2s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(100deg, var(--indigo), var(--pink)); color: #0b0d12; }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--text); }
.install { margin: 26px auto 0; max-width: 560px; }
.install code {
  display: block; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 16px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; color: var(--teal); text-align: left;
}

/* Protocol strip */
.protocols { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 36px 0 8px; }
.pill {
  border: 1px solid var(--border); background: var(--surface); border-radius: 999px;
  padding: 7px 16px; font-size: 13px; font-weight: 600; color: var(--muted);
}
.pill b { color: var(--text); }

/* Sections */
section { padding: 56px 0; }
.section-title { text-align: center; font-size: 28px; letter-spacing: -0.02em; margin: 0 0 6px; }
.section-sub { text-align: center; color: var(--muted); margin: 0 auto 36px; max-width: 560px; }

/* Code card */
.code-card {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; max-width: 760px; margin: 0 auto; box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.code-head { display: flex; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: #2a3140; }
.code-card pre {
  margin: 0; padding: 20px; overflow-x: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13.5px; line-height: 1.7;
}
.code-card .k { color: var(--indigo); }
.code-card .s { color: var(--teal); }
.code-card .c { color: #5c6678; font-style: italic; }
.code-card .a { color: var(--pink); }

/* Feature grid */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 860px) { .grid { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px;
  transition: border-color .2s, transform .1s;
}
.card:hover { border-color: #38415a; transform: translateY(-2px); }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }
.card .ic { font-size: 22px; margin-bottom: 12px; display: block; }

/* Footer */
footer { border-top: 1px solid var(--border); padding: 36px 0; color: var(--muted); font-size: 14px; }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; align-items: center; }
.foot-links { display: flex; gap: 20px; }
.foot-links a { color: var(--muted); }
