:root {
  --bg: #f5f6f8;
  --surface: #ffffff;
  --surface-dark: #0f1115;
  --surface-tint: #eef1f6;
  --ink: #111318;
  --ink-muted: #555d6e;
  --ink-dim: #7b8498;
  --border: rgba(17, 19, 24, 0.09);
  --border-strong: rgba(17, 19, 24, 0.16);
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.09);
  --emerald: #059669;
  --radius-xl: 24px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --shadow-sm: 0 1px 2px rgba(15, 17, 21, 0.05), 0 4px 12px rgba(15, 17, 21, 0.04);
  --shadow-md: 0 8px 30px rgba(15, 17, 21, 0.07), 0 1px 3px rgba(15, 17, 21, 0.05);
  --shadow-device: 0 36px 70px -18px rgba(15, 17, 21, 0.32), 0 12px 24px -10px rgba(15, 17, 21, 0.16);
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); color: var(--ink); }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
code, pre { font-family: var(--mono); }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Floating Pill Header */
.header-wrap {
  position: sticky;
  top: 14px;
  z-index: 50;
  padding: 0 20px;
}
.site-header {
  max-width: 1072px;
  margin: 0 auto;
  height: 58px;
  padding: 0 12px 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.02em;
}
.brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.ver-pill {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 999px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-muted);
}
.nav a {
  padding: 7px 12px;
  border-radius: 999px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav a:hover { background: var(--surface-tint); color: var(--ink); }
.nav .nav-cta {
  background: var(--ink);
  color: #fff;
  padding: 8px 16px;
  font-weight: 600;
}
.nav .nav-cta:hover { background: var(--accent); color: #fff; }

/* Centered Editorial Hero */
.hero {
  padding: 72px 0 64px;
  text-align: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 22px;
}
.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
}
h1 {
  font-size: clamp(38px, 5.6vw, 66px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  font-weight: 800;
  max-width: 860px;
  margin: 0 auto 20px;
  color: var(--ink);
}
h1 .hl {
  background: linear-gradient(110deg, #2563eb 0%, #7c3aed 55%, #0ea5e9 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-muted);
  max-width: 640px;
  margin: 0 auto 30px;
  font-weight: 400;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: pointer;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--ink);
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(17, 19, 24, 0.35);
}
.btn-primary:hover { background: var(--accent); box-shadow: 0 10px 24px -6px rgba(37, 99, 235, 0.45); }
.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover { background: #fff; border-color: var(--ink); }
.hero-meta {
  font-size: 13px;
  color: var(--ink-dim);
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-bottom: 44px;
}

/* Sculptural Device Showcase */
.showcase-card {
  background: radial-gradient(circle at 50% 0%, #1e2433 0%, #0e1015 70%);
  border-radius: 32px;
  padding: 40px 24px 28px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(17, 19, 24, 0.12);
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}
.showcase-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 65% 45% at 50% 0%, rgba(56, 189, 248, 0.18), transparent 70%);
  pointer-events: none;
}
.device-shell {
  position: relative;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 1394 / 706;
}
.device-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 3;
  pointer-events: none;
  filter: drop-shadow(0 30px 44px rgba(0, 0, 0, 0.65));
}
.device-screen {
  position: absolute;
  left: 6.95%;
  top: 9.85%;
  width: 70.3%;
  height: 83.4%;
  border-radius: 10px;
  overflow: hidden;
  background: #090c12;
  z-index: 2;
}
.screen-slide {
  position: absolute;
  inset: 0;
  padding: 10px 7.5% 9px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
  text-align: left;
  color: #fff;
}
.screen-slide.active { opacity: 1; }
.ds-topbar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  font-family: var(--mono);
  font-size: 9.5px;
  color: rgba(255,255,255,0.78);
}
.ds-topkey {
  background: rgba(255,255,255,0.08);
  border-radius: 5px;
  padding: 4px 6px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ds-bento {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 7px;
}
.ds-card {
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(255,255,255,0.1);
}
.ds-c2 { grid-column: span 2; }
.ds-label { font-size: 9.5px; color: rgba(255,255,255,0.72); font-weight: 500; }
.ds-val { font-size: 19px; font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.ds-sub { font-family: var(--mono); font-size: 8.5px; color: rgba(255,255,255,0.58); }
.ds-icon { font-size: 18px; line-height: 1; }
.ds-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: 9px;
  color: rgba(255,255,255,0.52);
}
.ds-dots { display: flex; gap: 5px; align-items: center; }
.ds-dot { width: 5px; height: 5px; border-radius: 99px; background: rgba(255,255,255,0.28); }
.ds-dot.on { width: 16px; background: #fff; }

.switcher {
  display: inline-flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.08);
  padding: 5px;
  border-radius: 999px;
  margin-top: 22px;
  position: relative;
  z-index: 4;
}
.sw-btn {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 16px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.16s ease;
}
.sw-btn.active {
  background: #fff;
  color: var(--ink);
}

/* Sections */
.section {
  padding: 72px 0;
  scroll-margin-top: 80px;
}
.sec-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 42px;
}
.sec-kicker {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 10px;
}
h2 {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 0 0 12px;
}
.sec-sub {
  font-size: 16.5px;
  color: var(--ink-muted);
  margin: 0;
}

/* Bento Feature Grid */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}
.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.bento-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.bento-card.dark {
  background: var(--surface-dark);
  color: #f8fafc;
  border-color: rgba(255, 255, 255, 0.08);
}
.bento-card.dark p { color: rgba(248, 250, 252, 0.68); }
.span-7 { grid-column: span 7; }
.span-5 { grid-column: span 5; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-12 { grid-column: span 12; }

.card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--surface-tint);
  display: grid;
  place-items: center;
  font-size: 20px;
}
.bento-card.dark .card-icon { background: rgba(255, 255, 255, 0.1); }
.bento-card h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}
.bento-card p {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-muted);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.tag {
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--surface-tint);
  color: var(--ink-muted);
}
.bento-card.dark .tag {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
}

/* Architecture Flow */
.arch-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: 32px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}
.arch-pane {
  background: var(--bg);
  border-radius: 18px;
  padding: 22px;
  border: 1px solid var(--border);
}
.arch-pane h3 { margin: 0 0 4px; font-size: 18px; font-weight: 700; }
.arch-role {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 12px;
  display: block;
}
.arch-pane ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-muted);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.arch-bridge {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-dim);
}
.bridge-pill {
  background: var(--ink);
  color: #fff;
  padding: 7px 14px;
  border-radius: 999px;
  font-weight: 600;
  white-space: nowrap;
}
.bridge-pill.alt {
  background: var(--accent-soft);
  color: var(--accent);
}

/* Install Section */
.install-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
}
.install-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.install-card.featured {
  border-color: rgba(37, 99, 235, 0.28);
  box-shadow: 0 12px 36px -12px rgba(37, 99, 235, 0.16);
}
.step-list {
  margin: 0;
  padding-left: 20px;
  color: var(--ink-muted);
  font-size: 14.5px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.step-list a { color: var(--accent); font-weight: 600; text-decoration: underline; }
.code-box {
  position: relative;
  background: #0f1115;
  color: #e2e8f0;
  border-radius: 14px;
  padding: 14px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  overflow-x: auto;
}
.copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  font-family: var(--mono);
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
}
.copy-btn:hover { background: rgba(255, 255, 255, 0.18); }

/* Specs Strip */
.specs-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.spec-pill {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 18px;
}
.spec-pill span { display: block; }
.spec-k { font-size: 12px; color: var(--ink-dim); margin-bottom: 4px; }
.spec-v { font-size: 14.5px; font-weight: 700; color: var(--ink); }

/* FAQ */
.faq-wrap {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
details.faq {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: var(--shadow-sm);
}
details.faq summary {
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
details.faq summary::after {
  content: "+";
  font-family: var(--mono);
  font-size: 20px;
  color: var(--accent);
}
details.faq[open] summary::after { content: "−"; }
details.faq p {
  margin: 12px 0 0;
  font-size: 14.5px;
  color: var(--ink-muted);
}

/* Clean Minimal Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 36px 0 54px;
  color: var(--ink-dim);
  font-size: 13.5px;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-weight: 500;
}
.footer-links a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .span-7, .span-5, .span-4, .span-6 { grid-column: span 12; }
  .arch-card { grid-template-columns: 1fr; }
  .install-grid { grid-template-columns: 1fr; }
  .specs-strip { grid-template-columns: repeat(2, 1fr); }
  .nav .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .showcase-card { padding: 24px 12px 20px; border-radius: 22px; }
  .ds-val { font-size: 13px; }
  .ds-topbar, .ds-foot { font-size: 7px; }
}
