:root {
  --brand: #6366f1;
  --brand-2: #a78bfa;
  --bg: #0b0c10;
  --panel: #121319;
  --panel-2: #16171f;
  --fg: #e9e9ee;
  --muted: #9a9aa6;
  --border: #24252e;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Nav */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 2rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(11, 12, 16, 0.82);
  backdrop-filter: blur(10px);
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
}
.brand img { display: block; }
.nav nav { display: flex; gap: 1.5rem; align-items: center; }
.nav nav a:not(.btn) { color: var(--muted); font-size: 0.93rem; }
.nav nav a:not(.btn):hover { color: var(--fg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.3rem;
  border-radius: 9px;
  font-size: 0.95rem;
  font-weight: 600;
  transition: transform 0.06s ease, opacity 0.15s ease, border-color 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff;
}
.btn-primary:hover { opacity: 0.92; }
.btn-ghost { border: 1px solid var(--border); color: var(--fg); }
.btn-ghost:hover { border-color: var(--brand); }

/* Hero */
.hero {
  max-width: 940px;
  margin: 0 auto;
  padding: 5.5rem 2rem 4rem;
  text-align: center;
}
.eyebrow {
  color: var(--brand-2);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.7rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 1rem 0;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero .sub {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 620px;
  margin: 0 auto;
}
.cta { display: flex; gap: 0.9rem; justify-content: center; margin: 2rem 0; flex-wrap: wrap; }

/* Hero product shot with glow */
.shot {
  position: relative;
  margin: 3rem auto 0;
  max-width: 860px;
}
.shot::before {
  content: "";
  position: absolute;
  inset: -16% -8% 8%;
  background: radial-gradient(ellipse at 50% 30%, rgba(99, 102, 241, 0.42), transparent 65%);
  filter: blur(36px);
  z-index: -1;
}
.shot img {
  width: 100%;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--border);
  box-shadow: 0 28px 70px -24px rgba(0, 0, 0, 0.85);
}

/* Tech strip */
.techstrip {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem 1.6rem;
  margin-top: 2.4rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}
.techstrip li { opacity: 0.7; }

/* Bands */
.band { max-width: 1040px; margin: 0 auto; padding: 4.5rem 2rem; }
.band.alt {
  max-width: none;
  background: var(--panel-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.band.alt > * { max-width: 1040px; margin-left: auto; margin-right: auto; }
.band h2 {
  font-size: 1.95rem;
  letter-spacing: -0.02em;
  text-align: center;
}
.lead {
  color: var(--muted);
  text-align: center;
  max-width: 620px;
  margin: 0.6rem auto 0;
}

/* Cards */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  margin-top: 2.6rem;
}
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.6rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}
.card:hover { border-color: var(--brand); transform: translateY(-3px); }
.card h3 { font-size: 1.08rem; margin-bottom: 0.4rem; }
.card p { color: var(--muted); font-size: 0.95rem; }
.card em { color: var(--brand-2); font-style: normal; font-weight: 600; }
.card code,
.muted code {
  background: var(--panel-2);
  padding: 0.1rem 0.35rem;
  border-radius: 5px;
  font-size: 0.85rem;
}

/* Icon chip */
.ico {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(124, 108, 246, 0.13);
  color: var(--brand-2);
  margin-bottom: 1.1rem;
}
.ico svg { width: 24px; height: 24px; }

/* Code block */
.code {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  text-align: left;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9rem;
  color: #d3d3de;
  max-width: 480px;
  margin: 2rem auto 1rem;
  overflow-x: auto;
  line-height: 1.7;
}
.code .c { color: #6b6c78; }

#start { text-align: center; }
#start .muted { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.8rem; }

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 2.6rem 2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}
.foot-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
  color: var(--fg);
}
footer a { color: var(--brand-2); }

@media (max-width: 760px) {
  .grid, .grid-3 { grid-template-columns: 1fr; }
  .nav nav a:not(.btn) { display: none; }
}
