:root {
  --bg: #0b0d12;
  --bg-soft: #121620;
  --bg-card: #161b27;
  --border: #232a3a;
  --text: #e8ebf2;
  --muted: #9aa3b5;
  --brand: #818cf8;
  --brand-2: #c084fc;
  --accent: #34d399;
  --radius: 16px;
  --maxw: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --mono: "SF Mono", "JetBrains Mono", "Fira Code", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 75% -10%, rgba(129, 140, 248, 0.18), transparent 60%),
    radial-gradient(900px 500px at 10% 0%, rgba(192, 132, 252, 0.12), transparent 55%),
    var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: 0.9em; background: rgba(255, 255, 255, 0.06); padding: 0.1em 0.4em; border-radius: 6px; }

.skip-link {
  position: absolute;
  left: -999px;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
  background: var(--bg-card);
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 10;
}

/* ---------- header ---------- */
.site-header {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.brand:hover { text-decoration: none; }
.brand-mark { font-size: 1.4rem; }
.brand-name { letter-spacing: 0.2px; }
.nav { display: flex; align-items: center; gap: 22px; }
.nav > a:not(.btn) { color: var(--muted); font-size: 0.95rem; }
.nav > a:not(.btn):hover { color: var(--text); text-decoration: none; }

/* language switch */
.lang-switch { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--border); border-radius: 999px; }
.lang-switch a,
.lang-switch span { font-size: 0.8rem; padding: 4px 11px; border-radius: 999px; color: var(--muted); line-height: 1.2; }
.lang-switch a:hover { color: var(--text); text-decoration: none; }
.lang-switch .active { background: rgba(129, 140, 248, 0.18); color: var(--text); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  color: #0b0d12;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 30px rgba(129, 140, 248, 0.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 12px 36px rgba(129, 140, 248, 0.45); }
.btn-ghost { color: var(--text); border-color: var(--border); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: var(--brand); }
.btn-sm { padding: 8px 14px; font-size: 0.88rem; }
.btn-disabled {
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--border);
  cursor: not-allowed;
  flex-direction: column;
  gap: 0;
  line-height: 1.2;
  padding: 8px 18px;
}
.btn-disabled .soon { font-size: 0.65rem; color: var(--brand); font-weight: 500; }

/* ---------- hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 64px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 12px;
  font-size: 0.8rem;
  color: var(--brand);
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 999px;
}
.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.grad {
  background: linear-gradient(135deg, var(--brand), var(--brand-2) 60%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede { margin: 0 0 28px; font-size: 1.12rem; color: var(--muted); max-width: 36ch; }
.lede strong { color: var(--text); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: stretch; }
.install-cmd {
  margin: 20px 0 0;
  padding: 14px 20px;
  background: rgba(129, 140, 248, 0.08);
  border: 1px solid rgba(129, 140, 248, 0.25);
  border-radius: 12px;
  display: inline-block;
}
.install-cmd code {
  font-size: 1.05rem;
  font-weight: 600;
  background: none;
  padding: 0;
  color: var(--brand);
  letter-spacing: 0.3px;
}
.fineprint { margin: 16px 0 0; font-size: 0.85rem; color: var(--muted); }

/* ---------- hero illustration ---------- */
.hero-art { position: relative; min-height: 320px; }
.term {
  background: #0e1118;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  max-width: 420px;
}
.term-bar { display: flex; gap: 7px; padding: 12px 14px; background: #11151f; border-bottom: 1px solid var(--border); }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2c3344; display: block; }
.term-bar i:first-child { background: #ff5f57; }
.term-bar i:nth-child(2) { background: #febc2e; }
.term-bar i:nth-child(3) { background: #28c840; }
.term-body { padding: 18px 18px 20px; font-family: var(--mono); font-size: 0.92rem; }
.term-line { padding: 3px 0; }
.term-body .dim { color: var(--muted); }
.term-body .code { color: var(--brand); font-weight: 700; letter-spacing: 1px; }
.term-body .sas { color: var(--accent); font-weight: 700; letter-spacing: 1px; }

.phone {
  position: absolute;
  right: 0;
  bottom: -18px;
  width: 188px;
  padding: 26px 14px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 26px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}
.phone-notch { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 56px; height: 6px; border-radius: 999px; background: #2c3344; }
.bubble { font-size: 0.78rem; padding: 8px 11px; border-radius: 14px; margin: 8px 0; max-width: 88%; }
.bubble-user { margin-left: auto; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #0b0d12; border-bottom-right-radius: 4px; }
.bubble-ai { background: #1d2433; color: var(--text); border-bottom-left-radius: 4px; }
.bubble-perm { background: rgba(52, 211, 153, 0.12); border: 1px solid rgba(52, 211, 153, 0.3); color: var(--text); }
.bubble-perm .yn { display: block; margin-top: 4px; color: var(--accent); letter-spacing: 6px; }

/* ---------- sections ---------- */
.section { max-width: var(--maxw); margin: 0 auto; padding: 72px 24px; }
.section-alt {
  max-width: none;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.02), transparent);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.section-alt > * { max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.section-title { text-align: center; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 44px; letter-spacing: -0.01em; }

/* ---------- features grid ---------- */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: transform 0.15s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(129, 140, 248, 0.5); }
.card-icon { font-size: 1.6rem; margin-bottom: 10px; }
.card h3 { margin: 0 0 8px; font-size: 1.08rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.card-roadmap { border-style: dashed; background: transparent; }

/* ---------- steps ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.steps li { position: relative; padding-top: 8px; }
.step-no {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 700;
  color: #0b0d12;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  margin-bottom: 12px;
}
.steps h3 { margin: 0 0 6px; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); font-size: 0.95rem; }

/* ---------- platforms ---------- */
.platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 18px; }
.platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 200px;
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.platform-live { border-color: rgba(52, 211, 153, 0.4); }
.platform-name { font-size: 1.2rem; font-weight: 700; }
.badge { font-size: 0.78rem; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px; }
.badge-live { color: var(--accent); border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.1); }

/* ---------- comparison table ---------- */
.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.compare th,
.compare td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--border); }
.compare thead th { font-size: 0.9rem; font-weight: 600; color: var(--muted); }
.compare tbody th { text-align: left; font-weight: 500; color: var(--text); }
.compare tbody tr:last-child th,
.compare tbody tr:last-child td { border-bottom: 0; }
.compare .yes { color: var(--accent); font-weight: 700; }
.compare .no { color: #5b6377; font-weight: 700; }
.compare .na { color: var(--muted); }
.compare td small { display: block; font-size: 0.72rem; font-weight: 500; color: var(--muted); margin-top: 2px; }
.soon-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.3);
  border-radius: 999px;
  padding: 2px 9px;
}
/* highlight the Bedcoder column */
.compare .col-bedcoder { background: rgba(129, 140, 248, 0.07); }
.compare thead .col-bedcoder { color: var(--text); }
.compare-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  align-items: center;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---------- footer ---------- */
.site-footer {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 48px 24px 64px;
  text-align: center;
  border-top: 1px solid var(--border);
}
.site-footer .brand { justify-content: center; }
.footer-tag { color: var(--muted); margin: 12px 0 18px; font-size: 0.95rem; }
.footer-links { display: flex; gap: 22px; justify-content: center; flex-wrap: wrap; }
.footer-links a { color: var(--muted); font-size: 0.9rem; }
.footer-links a:hover { color: var(--text); }
.copy { color: var(--muted); font-size: 0.85rem; margin-top: 22px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 56px; padding-top: 24px; }
  .hero-art { min-height: 300px; margin-top: 8px; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
  .nav > a:not(.btn) { display: none; }
  .grid { grid-template-columns: 1fr; }
  .phone { position: static; width: 100%; max-width: 280px; margin: 22px auto 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto; transition: none !important; }
}
