:root {
  color-scheme: light;
  --bg: #f6f8ff;
  --fg: #0f172a;
  --muted: #64748b;
  --muted-2: #94a3b8;
  --accent: #5b6cff;
  --accent-2: #7b5bff;
  --accent-grad: linear-gradient(135deg, #5b6cff 0%, #7b5bff 100%);
  --accent-soft: #eef0ff;
  --card: #ffffff;
  --border: #e2e8f0;
  --border-soft: #eef2f7;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 12px 32px -12px rgba(15, 23, 42, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  min-height: 100vh;
}

body {
  background:
    radial-gradient(900px 480px at 12% -10%, rgba(91, 108, 255, 0.18), transparent 60%),
    radial-gradient(720px 420px at 95% -10%, rgba(123, 91, 255, 0.16), transparent 60%),
    var(--bg);
}

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

p { margin: 0; }
.muted { color: var(--muted); margin: 0; font-size: 14px; }
.center { text-align: center; }

/* Layout */
.hero {
  max-width: 1040px;
  margin: 0 auto;
  padding: 72px 24px 56px;
}

/* Top bar */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 56px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--accent-grad);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px -4px rgba(91, 108, 255, 0.5);
}
.topbar-links {
  display: flex;
  gap: 18px;
  align-items: center;
}
.topbar-links a {
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
  transition: color 0.15s;
}
.topbar-links a:hover { color: var(--fg); text-decoration: none; }

/* Hero block */
.hero-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 820px) {
  .hero-block { grid-template-columns: 1fr; gap: 32px; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.eyebrow-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(91, 108, 255, 0.18);
}

.hero h1 {
  font-size: 48px;
  margin: 0 0 16px;
  letter-spacing: -0.025em;
  line-height: 1.05;
  font-weight: 700;
}
.hero h1 .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  font-size: 18px;
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 560px;
}
.cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  transition: transform 0.1s ease, box-shadow 0.18s ease, background 0.15s ease;
}
.btn.primary {
  background: var(--accent-grad);
  color: #fff;
  box-shadow: 0 10px 28px -10px rgba(91, 108, 255, 0.65);
}
.btn.primary:hover { box-shadow: 0 14px 32px -10px rgba(91, 108, 255, 0.75); text-decoration: none; }
.btn.primary:active { transform: translateY(1px); }
.btn.ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn.ghost:hover { border-color: #cbd5e1; text-decoration: none; }
.btn svg { width: 18px; height: 18px; }

.tiny-meta {
  display: flex;
  gap: 14px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 13px;
}
.tiny-meta strong { color: var(--fg); font-weight: 600; }

/* Mock card on the right */
.mock {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-md);
  position: relative;
}
.mock-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 14px;
  border-bottom: 1px solid var(--border-soft);
  margin-bottom: 14px;
}
.mock-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: #e2e8f0;
}
.mock-dot:nth-child(1) { background: #fca5a5; }
.mock-dot:nth-child(2) { background: #fcd34d; }
.mock-dot:nth-child(3) { background: #86efac; }
.mock-title {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}

.mock-stream {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mock-bubble {
  max-width: 80%;
  padding: 10px 13px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  box-shadow: var(--shadow-sm);
}
.mock-bubble.in {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--border-soft);
  border-bottom-left-radius: 4px;
}
.mock-bubble.out {
  align-self: flex-end;
  background: var(--accent-grad);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.mock-bubble small {
  display: block;
  margin-top: 6px;
  opacity: 0.65;
  font-size: 11px;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 72px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #d6dbf2;
}
.feature-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}
.feature-icon svg { width: 20px; height: 20px; }
.feature h3 {
  font-size: 16px;
  margin: 0 0 6px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Install steps */
.install {
  margin-top: 56px;
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
}
.install h2 {
  font-size: 22px;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}
.install-intro {
  color: var(--muted);
  margin: -8px 0 22px;
  font-size: 14.5px;
}
.install-callout {
  background: var(--accent-soft);
  border: 1px solid #d6dbf2;
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  margin-bottom: 24px;
}
.install-callout strong {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--fg);
}
.install-callout ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
}
.install-callout li {
  margin: 4px 0;
  font-size: 14px;
}

.step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.step-detail {
  background: linear-gradient(180deg, #fafbff 0%, #ffffff 100%);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
}
.step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}
.step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent-grad);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-detail h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.step-detail p {
  margin: 8px 0;
  color: var(--muted);
  font-size: 14.5px;
}
.step-detail .addr-list,
.step-detail ol.numbered {
  margin: 8px 0;
  padding-left: 22px;
  color: var(--muted);
  font-size: 14.5px;
}
.step-detail .addr-list li,
.step-detail ol.numbered li {
  margin: 4px 0;
}
.step-detail .warn {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #9a3412;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 13.5px;
  margin: 10px 0 0;
}
.step-detail .hint {
  font-size: 13.5px;
  color: var(--muted);
  margin: 10px 0 0;
}
.step-detail .hint a { color: var(--accent); }

.install-aside {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 24px;
}
.aside-card {
  background: var(--card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
}
.aside-card h3 {
  font-size: 16px;
  margin: 0 0 8px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.aside-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.aside-card ol {
  margin: 8px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}
.aside-card li { margin: 4px 0; }

code {
  background: #eef2ff;
  color: var(--accent);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.92em;
  font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;
}

footer {
  text-align: center;
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border-soft);
  color: var(--muted);
  font-size: 13px;
}
footer a { color: var(--muted); }
footer a:hover { color: var(--fg); }
