:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-subtle: #fafafa;
  --surface-alt: #f3f4f6;
  --surface-glass: rgba(255, 255, 255, 0.86);
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --text: #111827;
  --muted: #6b7280;
  --primary: #206bff;
  --primary-hover: #1756db;
  --primary-soft: rgba(32, 107, 255, 0.08);
  --primary-soft-text: #1756db;
  --primary-ring: rgba(32, 107, 255, 0.18);
  --success: #0f8558;
  --success-bg: #ecfdf5;
  --success-border: #a7f3d0;
  --warn: #92400e;
  --warn-bg: #fffbeb;
  --warn-border: #fde68a;
  --disabled-bg: #f3f4f6;
  --disabled-text: #6b7280;
  --disabled-border: #e5e7eb;
  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.05);
  --shadow-window: 0 24px 60px -16px rgba(17, 24, 39, 0.12), 0 4px 16px rgba(17, 24, 39, 0.04);
  --code-bg: #f3f4f6;
  --code-text: #111827;
  --radius: 14px;
  --radius-sm: 10px;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b0d11;
  --surface: #11141b;
  --surface-subtle: #151922;
  --surface-alt: #1c212c;
  --surface-glass: rgba(11, 13, 17, 0.84);
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #f3f4f6;
  --muted: #9ca3af;
  --primary: #3b82f6;
  --primary-hover: #60a5fa;
  --primary-soft: rgba(59, 130, 246, 0.14);
  --primary-soft-text: #93c5fd;
  --primary-ring: rgba(59, 130, 246, 0.28);
  --success: #34d399;
  --success-bg: rgba(16, 185, 129, 0.12);
  --success-border: rgba(52, 211, 153, 0.28);
  --warn: #fbbf24;
  --warn-bg: rgba(245, 158, 11, 0.12);
  --warn-border: rgba(251, 191, 36, 0.28);
  --disabled-bg: #151922;
  --disabled-text: #9ca3af;
  --disabled-border: rgba(255, 255, 255, 0.1);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-window: 0 28px 72px -12px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --code-bg: #1c212c;
  --code-text: #e5e7eb;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

button {
  font: inherit;
  color: inherit;
}

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--code-bg);
  color: var(--code-text);
}

.hidden {
  display: none !important;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: var(--surface-glass);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 60px;
}

.nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.015em;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-brand img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
}

.nav-links a {
  transition: color 0.15s ease;
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-controls {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface-subtle);
}

.theme-opt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 26px;
  padding: 0;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.theme-opt-btn:hover {
  color: var(--text);
}

.theme-opt-btn.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn:focus-visible,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.btn-sm {
  height: 32px;
  padding: 0 12px;
  font-size: 0.84rem;
  border-radius: 8px;
}

.btn-lg {
  height: 42px;
  padding: 0 18px;
  font-size: 0.92rem;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--primary-hover);
}

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

.btn-secondary:hover {
  background: var(--surface-subtle);
}

.btn-ghost {
  background: transparent;
  color: var(--muted);
  border-color: transparent;
}

.btn-ghost:hover {
  color: var(--text);
  background: var(--surface-alt);
}

.btn.is-disabled {
  background: var(--disabled-bg);
  color: var(--disabled-text);
  border-color: var(--disabled-border);
  cursor: pointer;
}

.btn-pill-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.btn-secondary .btn-pill-tag {
  background: var(--surface-alt);
  color: var(--muted);
}

/* ---------- Hero & Live Showcase ---------- */
.hero {
  padding: 76px 0 40px;
}

.hero-top {
  max-width: 660px;
  margin: 0 auto 48px;
  text-align: center;
}

.hero-kicker {
  margin: 0 0 14px;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(2.15rem, 4.6vw, 3.35rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text);
}

.hero-subtitle {
  margin: 0 auto 28px;
  max-width: 540px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--muted);
}

.download-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.download-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.download-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.meta-chip {
  color: var(--muted);
}

.meta-sep {
  color: var(--border-strong);
}

.gatekeeper-banner {
  width: 100%;
  max-width: 540px;
  margin-top: 4px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  text-align: left;
  overflow: hidden;
}

.gatekeeper-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
}

.gatekeeper-toggle:hover {
  color: var(--text);
}

.gatekeeper-body {
  padding: 0 14px 14px;
  border-top: 1px solid var(--border);
  font-size: 0.825rem;
  color: var(--muted);
}

.gatekeeper-body ol {
  margin: 10px 0 8px;
  padding-left: 18px;
}

.gatekeeper-body li + li {
  margin-top: 4px;
}

.gatekeeper-cmd {
  margin-top: 8px;
}

.hero-specs {
  margin: 18px 0 0;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- App Window Showcase ---------- */
.showcase-wrap {
  margin: 0 auto;
}

.app-window {
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow-window);
  overflow: hidden;
}

.win-chrome {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 40px;
  padding: 0 14px;
  background: var(--surface-subtle);
  border-bottom: 1px solid var(--border);
}

.win-dots {
  display: flex;
  align-items: center;
  gap: 7px;
}

.win-dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }

.win-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.win-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
}

.win-ctrl-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 500;
  padding: 3px 9px;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.win-ctrl-btn:hover {
  color: var(--text);
  border-color: var(--border-strong);
}

.win-ctrl-btn.is-accent {
  color: var(--primary-soft-text);
  background: var(--primary-soft);
  border-color: transparent;
}

.win-ctrl-btn.is-accent:hover {
  color: var(--primary-hover);
  border-color: var(--primary-ring);
}

.demo-iframe-wrap {
  width: 100%;
  height: 750px;
  background: var(--surface);
}

.demo-iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: none;
}

/* ---------- Shared Section Styling ---------- */
.section {
  padding: 88px 0 0;
}

.section-header {
  max-width: 580px;
  margin-bottom: 32px;
}

.section-header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}

.section-header-row .section-header {
  margin-bottom: 0;
}

.section-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--primary-soft-text);
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-header p {
  margin: 0;
  font-size: 0.96rem;
  color: var(--muted);
}

/* ---------- Capabilities Grid ---------- */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.capability-cell {
  background: var(--surface);
  padding: 28px 30px;
}

.capability-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  margin-bottom: 14px;
}

.capability-cell h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.capability-cell p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.privacy-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 14px;
  margin-top: 16px;
  padding: 12px 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  font-size: 0.84rem;
  color: var(--muted);
}

.mark-good {
  color: var(--success);
  font-weight: 700;
  margin-right: 4px;
}

.strip-sep {
  color: var(--border-strong);
}

/* ---------- Pricing Section ---------- */
.pricing-currency-hint {
  margin: 0 0 16px;
  font-size: 0.84rem;
  color: var(--muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 14px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 26px 22px 24px;
  background: var(--surface);
}

.pricing-card:first-child {
  border-top-left-radius: calc(var(--radius) - 1px);
  border-bottom-left-radius: calc(var(--radius) - 1px);
}

.pricing-card:last-child {
  border-top-right-radius: calc(var(--radius) - 1px);
  border-bottom-right-radius: calc(var(--radius) - 1px);
}

.pricing-card.is-popular {
  background: var(--surface-subtle);
}

.pricing-popular-pill {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.2;
  white-space: nowrap;
  pointer-events: none;
}

.pricing-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.pricing-card-head h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.pricing-meta-tag {
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.2;
  white-space: nowrap;
  flex-shrink: 0;
}

.pricing-meta-tag.is-popular {
  color: var(--primary-soft-text);
  font-weight: 600;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}

.pricing-amount {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.pricing-billing {
  font-size: 0.8rem;
  color: var(--muted);
}

.pricing-desc {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
}

.pricing-features {
  list-style: none;
  margin: 4px 0 8px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.84rem;
  color: var(--muted);
  flex: 1;
}

.pricing-features li {
  position: relative;
  padding-left: 14px;
}

.pricing-features li::before {
  content: "·";
  position: absolute;
  left: 2px;
  color: var(--border-strong);
  font-weight: 700;
}

.pricing-cta {
  width: 100%;
  height: 36px;
  font-size: 0.85rem;
}

.pricing-checkout-note {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--warn-bg);
  border: 1px solid var(--warn-border);
  color: var(--warn);
  font-size: 0.84rem;
}

/* ---------- Releases Section ---------- */
.section-releases {
  padding-bottom: 88px;
}

.releases-links {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--muted);
}

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

.releases-card {
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow: hidden;
}

.releases-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-subtle);
}

.release-tabs {
  display: inline-flex;
  padding: 2px;
  border-radius: 9px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  gap: 2px;
}

.release-tab {
  border: none;
  background: transparent;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.release-tab:hover {
  color: var(--text);
}

.release-tab.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.release-body {
  padding: 20px 22px;
}

.release-detail-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.release-detail-top .btn {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  height: auto;
  min-height: 32px;
  padding: 6px 12px;
  line-height: 1.3;
  word-break: break-word;
}

.release-detail-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.release-detail-title h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.status-signed {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.status-preview {
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid var(--warn-border);
}

.release-notes-box {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-subtle);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--muted);
}

.release-notes-box ul {
  margin: 6px 0 0;
  padding-left: 18px;
}

.release-notes-box p {
  margin: 0 0 6px;
}

.release-notes-box p:last-child {
  margin-bottom: 0;
}

.history-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-subtle);
}

.history-main {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
}

.history-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.825rem;
}

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

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

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

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .pricing-card:first-child,
  .pricing-card:last-child {
    border-radius: 0;
  }
  .pricing-card:nth-child(1) { border-top-left-radius: calc(var(--radius) - 1px); }
  .pricing-card:nth-child(2) { border-top-right-radius: calc(var(--radius) - 1px); }
  .pricing-card:nth-child(3) { border-bottom-left-radius: calc(var(--radius) - 1px); }
  .pricing-card:nth-child(4) { border-bottom-right-radius: calc(var(--radius) - 1px); }
  .demo-iframe-wrap {
    height: 620px;
  }
}

@media (max-width: 680px) {
  .nav-links {
    display: none;
  }
  .hero {
    padding: 48px 0 24px;
  }
  .section {
    padding-top: 64px;
  }
  .section-releases {
    padding-bottom: 64px;
  }
  .capabilities-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .pricing-card:nth-child(n) {
    border-radius: 0;
  }
  .pricing-card:first-child {
    border-top-left-radius: calc(var(--radius) - 1px);
    border-top-right-radius: calc(var(--radius) - 1px);
  }
  .pricing-card:last-child {
    border-bottom-left-radius: calc(var(--radius) - 1px);
    border-bottom-right-radius: calc(var(--radius) - 1px);
  }
  .capability-cell {
    padding: 22px 20px;
  }
  .win-chrome {
    grid-template-columns: auto 1fr;
    gap: 8px;
    padding: 0 10px;
  }
  .win-title {
    display: none;
  }
  .win-ctrl-btn {
    font-size: 0.7rem;
    padding: 3px 7px;
  }
  .demo-iframe-wrap {
    height: 560px;
  }
  .strip-sep {
    display: none;
  }
  .privacy-strip {
    justify-content: flex-start;
  }
}
