:root {
  --bg: #f5f5f7;
  --bg-alt: #ececf0;
  --surface: #ffffff;
  --surface-glass: rgba(255, 255, 255, 0.78);
  --subtle: #f2f2f5;
  --border: #e4e4e9;
  --border-strong: #d1d1d8;
  --text: #1d1d1f;
  --text-secondary: #515154;
  --text-muted: #86868b;
  --accent: #1d1d1f;
  --on-accent: #ffffff;
  --brand-tint: #10b981;
  --coral: #e05246;
  --amber: #d96b38;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.06), 0 2px 6px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 28px 68px rgba(0, 0, 0, 0.10), 0 4px 14px rgba(0, 0, 0, 0.04);
  --dot-grid: rgba(0, 0, 0, 0.055);
}

[data-theme="dark"] {
  --bg: #111113;
  --bg-alt: #161619;
  --surface: #1b1b1f;
  --surface-glass: rgba(20, 20, 24, 0.80);
  --subtle: #131316;
  --border: #2a2a30;
  --border-strong: #3a3a42;
  --text: #f5f5f7;
  --text-secondary: #c7c7cc;
  --text-muted: #8e8e93;
  --accent: #f5f5f7;
  --on-accent: #111113;
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 16px 40px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 32px 80px rgba(0, 0, 0, 0.58);
  --dot-grid: rgba(255, 255, 255, 0.05);
}

[data-palette="coral"] {
  --accent: #e05246;
  --on-accent: #ffffff;
}
[data-palette="jade"] {
  --accent: #0d9468;
  --on-accent: #ffffff;
}
[data-theme="dark"][data-palette="jade"] {
  --accent: #10b981;
  --on-accent: #091510;
}
[data-palette="terracotta"] {
  --accent: #d96b38;
  --on-accent: #ffffff;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background-color: var(--bg);
  background-image: radial-gradient(var(--dot-grid) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--text);
  line-height: 1.65;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

code, pre, .mono {
  font-family: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
  font-variant-numeric: tabular-nums;
}

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Sticky Navbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 60px;
  display: flex;
  align-items: center;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: var(--surface-glass);
  border-bottom: 1px solid var(--border);
}

.nav-bar {
  width: 100%;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.2px;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.brand-link img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  background: #fff;
  flex-shrink: 0;
}

.brand-tag {
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--subtle);
  border: 1px solid var(--border);
  color: var(--text-muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-menu {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(128, 128, 138, 0.09);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-menu a {
  height: 30px;
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  padding: 0 12px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.16s ease;
}

.nav-menu a:hover,
.nav-menu a.active {
  color: var(--text);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-weight: 600;
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-mobile-link {
  display: none;
  height: 32px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  color: var(--text-secondary);
  background: var(--subtle);
  border: 1px solid var(--border);
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-mobile-link:hover {
  color: var(--text);
  background: var(--surface);
}

.icon-btn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  flex-shrink: 0;
  transition: transform 0.15s ease, background 0.15s ease;
}

.icon-btn:hover {
  background: var(--subtle);
  transform: translateY(-1px);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}

.nav-actions .btn {
  height: 32px;
  min-height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-primary {
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-outline {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--subtle);
  border-color: var(--border-strong);
}

.btn-lg {
  min-height: 46px;
  padding: 11px 24px;
  font-size: 15px;
  border-radius: 12px;
  white-space: nowrap;
}

/* Hero Section */
.hero-section {
  padding: 68px 0 48px;
  text-align: center;
}

.hero-eyebrow {
  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: 12.5px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18);
}

.hero-mascot {
  width: 108px;
  height: 108px;
  border-radius: 26px;
  box-shadow: var(--shadow-md);
  margin: 0 auto 22px;
  display: block;
  background: #fff;
}

.hero-title {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.025em;
  max-width: 820px;
  margin: 0 auto 18px;
}

.hero-lead {
  font-size: clamp(16px, 2vw, 18.5px);
  color: var(--text-secondary);
  max-width: 740px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-meta {
  font-size: 12.5px;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
}

/* Interactive App Simulator in Hero */
.simulator-wrap {
  margin: 44px auto 0;
  max-width: 920px;
  text-align: left;
}

.sim-caption-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  padding: 0 6px;
  font-size: 12.5px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 8px;
}

.sim-window {
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transition: all 0.25s ease;
}

.sim-titlebar {
  height: 38px;
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.traffic-lights {
  display: flex;
  gap: 7px;
}

.tl {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}
.tl.red { background: #ff5f57; }
.tl.yellow { background: #febc2e; }
.tl.green { background: #28c840; }

.sim-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.palette-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
}

.swatch-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  cursor: pointer;
  border: 1.5px solid rgba(0, 0, 0, 0.15);
  transition: transform 0.15s ease;
}

.swatch-dot:hover { transform: scale(1.18); }
.swatch-dot.active {
  outline: 2px solid var(--text);
  outline-offset: 1px;
}

.sim-body {
  display: flex;
  align-items: stretch;
  min-height: 390px;
  position: relative;
}

.sim-main {
  flex: 1;
  padding: 10px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}

.sim-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow-sm);
}

.sim-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.sim-host-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 14px;
}

.sim-host-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #fff;
}

.online-badge {
  font-size: 11px;
  font-weight: 700;
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
  padding: 2.5px 9px;
  border-radius: 999px;
}

.sim-wells {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 12px;
}

.sim-well {
  background: var(--subtle);
  border: 1px solid var(--border);
  border-radius: 13px;
  padding: 12px 14px;
}

.sim-well-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.sim-well-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sim-id-num {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1.2px;
}

.sim-code-val {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1.6px;
}

.mini-pill-btn {
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s ease;
}

.mini-pill-btn.copied {
  background: #10b981;
  border-color: #10b981;
  color: #fff;
}

.seg-bar {
  display: inline-flex;
  background: var(--subtle);
  padding: 3px;
  border-radius: 10px;
  gap: 2px;
  flex-wrap: wrap;
}

.seg-item {
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 7.5px;
  color: var(--text-muted);
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all 0.15s ease;
}

.seg-item.active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.cmd-capsule {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--subtle);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 6px 7px 6px 12px;
  margin-bottom: 14px;
}

.cmd-capsule:focus-within {
  border-color: var(--text);
}

.cmd-capsule input {
  flex: 1;
  border: none;
  background: transparent;
  outline: none;
  color: var(--text);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 1px;
  min-width: 0;
}

.cmd-connect-btn {
  height: 42px;
  padding: 0 20px;
  border-radius: 10px;
  border: none;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  cursor: pointer;
}

.sim-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--text-muted);
}

.recent-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.r-chip {
  padding: 4px 9px;
  border-radius: 7px;
  background: var(--subtle);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
}

/* Simulator Roller-Blind Drawer */
.sim-drawer-wrap {
  display: flex;
  align-items: stretch;
}

.sim-handle {
  align-self: center;
  padding: 13px 7px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-right: none;
  border-radius: 12px 0 0 12px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-muted);
  writing-mode: vertical-rl;
  letter-spacing: 3px;
  user-select: none;
}

.sim-drawer {
  width: 0;
  overflow: hidden;
  transition: width 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

.sim-drawer.open {
  width: 248px;
}

.sim-drawer-inner {
  width: 236px;
  margin: 10px 12px 26px 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  box-shadow: var(--shadow-sm);
  height: calc(100% - 36px);
}

.drawer-peer {
  padding: 9px 10px;
  border-radius: 10px;
  background: var(--subtle);
  border: 1px solid var(--border);
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.drawer-peer strong {
  display: block;
  font-size: 12.5px;
  color: var(--text);
}

.drawer-peer span {
  font-size: 11px;
  color: var(--text-muted);
}

/* Standard Sections */
.section {
  padding: 84px 0;
  border-top: 1px solid var(--border);
}

.section-header {
  max-width: 720px;
  margin-bottom: 44px;
}

.section-kicker {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--brand-tint);
  margin-bottom: 8px;
}

.section-title {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
}

/* Feature Bento & Split Grids */
.bento-grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
}

.bento-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.bento-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.bento-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--subtle);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
}

.bento-card h3 {
  font-size: 18.5px;
  font-weight: 700;
  margin-bottom: 8px;
}

.bento-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
}

.split-showcase {
  display: grid;
  grid-template-columns: 1.05fr 1.15fr;
  gap: 36px;
  align-items: center;
  margin-top: 32px;
}

.media-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.media-frame img {
  width: 100%;
  display: block;
}

.media-caption {
  padding: 11px 16px;
  font-size: 12.5px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--subtle);
  display: flex;
  justify-content: space-between;
}

.tech-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.tech-list li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.tech-list strong {
  display: block;
  font-size: 15.5px;
  margin-bottom: 4px;
}

.tech-list span {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Comparison Table */
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow-x: auto;
  box-shadow: var(--shadow-sm);
}

.cmp-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14.5px;
}

.cmp-table th,
.cmp-table td {
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
}

.cmp-table th {
  background: var(--subtle);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-secondary);
}

.cmp-table tr:last-child td {
  border-bottom: none;
}

.cmp-highlight {
  font-weight: 700;
  color: var(--text);
}

.pill-yes {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: #10b981;
  font-size: 12px;
  font-weight: 700;
}

/* Download Cards */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.dl-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  box-shadow: var(--shadow-sm);
}

.dl-card.recommended {
  border-color: var(--text);
  box-shadow: var(--shadow-md);
}

.dl-os {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 800;
}

.dl-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Code Block Card */
.code-card {
  background: #161619;
  color: #f5f5f7;
  border: 1px solid #2c2c32;
  border-radius: 16px;
  padding: 20px 22px;
  overflow-x: auto;
  font-size: 13.5px;
  line-height: 1.7;
  position: relative;
}

/* Accordion FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 860px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 15px;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 22px;
  font-size: 15.5px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-body {
  padding: 0 22px 20px;
  font-size: 14.5px;
  color: var(--text-secondary);
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0 64px;
  color: var(--text-muted);
  font-size: 13.5px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a:hover {
  color: var(--text);
}

@media (max-width: 1060px) {
  .brand-tag { display: none; }
}
@media (max-width: 900px) {
  .nav-menu { display: none; }
  .nav-mobile-link { display: inline-flex; }
  .split-showcase { grid-template-columns: 1fr; }
  .sim-wells { grid-template-columns: 1fr; }
  .sim-drawer.open { width: 200px; }
  .sim-drawer-inner { width: 190px; }
}
@media (max-width: 480px) {
  .nav-actions .nav-gh-btn { display: none; }
  .container { padding: 0 16px; }
}
