:root {
  color-scheme: dark;
  --bg: #0b1120;
  --surface: #111827;
  --surface-2: #1e293b;
  --border: #334155;
  --text: #f8fafc;
  --muted: #94a3b8;
  --accent: #38bdf8;
  --accent-dark: #0f172a;
  --danger: #f43f5e;
}

* {
  box-sizing: border-box;
}

[id] {
  scroll-margin-top: 72px;
}

body {
  margin: 0;
  background: radial-gradient(circle at top center, rgba(56, 189, 248, 0.12), transparent 42%), var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
}

:is(a, button, input, summary, .demo-target):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: 4px;
  padding: 1px 6px;
}

.hidden {
  display: none !important;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: rgba(11, 17, 32, 0.84);
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
}

.nav-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: var(--muted);
}

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

.studio-banner {
  max-width: 1140px;
  margin: 22px auto 0;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.studio-banner h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.015em;
}

.studio-banner .pill {
  margin: 0;
}

body.studio-mode {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

body.studio-mode .nav,
body.studio-mode .hero,
body.studio-mode .section:not(.demo-section),
body.studio-mode .demo-section .section-head,
body.studio-mode .demo-toolbar,
body.studio-mode .footer {
  display: none;
}

body.studio-mode .demo-section {
  max-width: 1160px;
  width: 100%;
  padding: 14px 24px 28px;
}

.hero {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 20px 40px;
  text-align: center;
}

.pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.subtitle {
  margin: 0 auto 28px;
  max-width: 660px;
  color: var(--muted);
  font-size: 17px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 15px;
}

.cta-primary:hover {
  filter: brightness(1.08);
}

.cta-primary.full {
  width: 100%;
  margin-top: auto;
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
}

.cta-secondary:hover {
  border-color: var(--accent);
}

.trust-note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 20px;
}

.section-head {
  text-align: center;
  margin-bottom: 26px;
}

.section-head h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 0 auto;
  max-width: 650px;
  color: var(--muted);
}

.demo-shell {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.demo-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}

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

.tool-btn {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  cursor: pointer;
}

.tool-btn.accent {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-dark);
}

.tool-btn.danger {
  border-color: rgba(244, 63, 94, 0.5);
  color: #fda4af;
}

.demo-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  padding: 0 4px;
}

.slider-label {
  font-size: 12px;
  color: var(--muted);
}

input[type="range"] {
  accent-color: var(--accent);
  cursor: pointer;
}

.seg {
  display: inline-flex;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 2px;
}

.seg-item {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
}

.seg-item.active {
  background: var(--accent);
  color: var(--accent-dark);
}

.mock-dashboard {
  position: relative;
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mock-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.65);
}

.mock-dots {
  display: flex;
  gap: 6px;
}

.mock-dots span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #334155;
}

.mock-url {
  flex: 1;
  max-width: 340px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-workspace {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.mock-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.mock-kicker {
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

.mock-header h3 {
  margin: 2px 0 0;
  font-size: 18px;
}

.mock-status {
  font-size: 12px;
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 999px;
  padding: 4px 10px;
}

.mock-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr));
  gap: 12px;
}

.mock-stat {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.stat-label {
  font-size: 12px;
  color: var(--muted);
}

.stat-value {
  font-size: 19px;
  font-weight: 700;
}

.stat-value.mono,
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px;
  overflow-wrap: anywhere;
  max-width: 100%;
}

.stat-sub {
  font-size: 12px;
  color: var(--muted);
}

.mock-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 12px;
}

.mock-panel {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 13px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow-x: auto;
}

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

.panel-pill {
  font-size: 11px;
  color: var(--muted);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 2px 8px;
}

#demo-revenue-chart {
  width: 100%;
  height: auto;
  display: block;
}

.mock-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
}

.mock-table th,
.mock-table td {
  text-align: left;
  padding: 8px 6px;
  border-bottom: 1px solid rgba(51, 65, 85, 0.6);
}

.mock-table th {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mock-table tbody tr:last-child td {
  border-bottom: 0;
}

.status-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #86efac;
  background: rgba(34, 197, 94, 0.12);
  border-radius: 999px;
  padding: 2px 8px;
}

.mock-key-row {
  background: rgba(30, 41, 59, 0.65);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mock-key-row code {
  overflow-wrap: anywhere;
  max-width: 100%;
}

.demo-target {
  display: inline-block;
  border-radius: 4px;
  cursor: pointer;
  transition: filter 0.12s ease;
}

.demo-target.is-blurred {
  user-select: none;
}

.demo-target.is-solid {
  background: #0f172a !important;
  color: transparent !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
  user-select: none;
}

.demo-panic-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  background: rgba(15, 23, 42, 0.35);
}

.panic-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #0f172a;
  border: 1px solid var(--accent);
  font-weight: 600;
}

.panic-pill button {
  border: 0;
  border-radius: 6px;
  padding: 6px 12px;
  background: var(--accent);
  color: var(--accent-dark);
  font-weight: 700;
  cursor: pointer;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr));
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

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

.privacy-callout {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.1), rgba(15, 23, 42, 0.95));
  border: 1px solid rgba(56, 189, 248, 0.35);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.privacy-callout h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.privacy-callout p {
  margin: 0;
  max-width: 650px;
  color: var(--muted);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 18px;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-card.featured {
  border-color: var(--accent);
  box-shadow: 0 12px 32px rgba(56, 189, 248, 0.12);
}

.price-tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-dark);
  background: var(--accent);
  border-radius: 999px;
  padding: 3px 10px;
}

.price-tag.muted {
  background: var(--surface-2);
  color: var(--muted);
}

.price-card h3 {
  margin: 0;
  font-size: 20px;
}

.price {
  font-size: 36px;
  font-weight: 800;
}

.price span {
  font-size: 14px;
  font-weight: 500;
  color: var(--muted);
}

.price-card ul {
  margin: 0 0 8px;
  padding-left: 18px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
}

.btn-disabled {
  margin-top: auto;
  text-align: center;
  padding: 11px 16px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-weight: 600;
  font-size: 14px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 780px;
  margin: 0 auto;
}

.faq-list details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 18px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 600;
}

.faq-list p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.footer {
  border-top: 1px solid var(--border);
  margin-top: 40px;
}

.footer-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 22px 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.policy {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 20px 80px;
}

.policy h1 {
  margin: 0 0 8px;
  font-size: 34px;
}

.policy h2 {
  margin: 28px 0 8px;
  font-size: 20px;
}

.policy p,
.policy li {
  color: var(--muted);
}

.policy a {
  color: var(--accent);
  text-decoration: underline;
}

@media (max-width: 780px) {
  .mock-lower-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .nav-links {
    gap: 12px;
    font-size: 13px;
  }
}
