:root {
  --bg: #09090b;
  --surface: #111114;
  --surface-2: #18181b;
  --border: #27272a;
  --border-strong: #3f3f46;
  --text: #fafafa;
  --text-muted: #a1a1aa;
  --text-dim: #71717a;
  --accent: #fafafa;
  --accent-ink: #09090b;
  --radius: 14px;
  --mono: ui-monospace, 'Cascadia Mono', 'SFMono-Regular', Menlo, Consolas, monospace;
  --sans: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  background: radial-gradient(ellipse 80% 45% at 50% -10%, #1c1c21 0%, var(--bg) 62%);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

#showcase-img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

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

.container-narrow {
  max-width: 760px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 9, 11, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(39, 39, 42, 0.8);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.brand-icon {
  width: 28px;
  height: 28px;
}

.brand-wordmark {
  height: 24px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 13.5px;
  color: var(--text-muted);
}

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

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

.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 9px;
  padding: 2px;
  font-family: var(--mono);
  font-size: 11.5px;
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  padding: 5px 9px;
  border-radius: 7px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  transition: background 0.15s, color 0.15s;
}

.lang-btn[aria-pressed='true'] {
  background: var(--surface-2);
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover {
  background: #ffffff;
}

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

.btn-secondary:hover {
  background: var(--surface-2);
  border-color: #52525b;
}

.btn-sm {
  min-height: 36px;
  padding: 0 13px;
  font-size: 13px;
}

/* Hero */
.hero {
  padding: 72px 0 44px;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(24, 24, 27, 0.8);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #e4e4e7;
}

h1 {
  margin: 0 auto 18px;
  max-width: 820px;
  font-size: clamp(32px, 5.2vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero-sub {
  margin: 0 auto 30px;
  max-width: 640px;
  font-size: clamp(15.5px, 2vw, 18.5px);
  color: var(--text-muted);
  line-height: 1.55;
}

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

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

.winget-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 11.5px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

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

/* Sections */
section {
  padding: 52px 0;
}

.section-head {
  margin-bottom: 28px;
}

.section-kicker {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin: 0 0 8px;
}

h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.2vw, 34px);
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.section-desc {
  margin: 0;
  color: var(--text-muted);
  max-width: 640px;
  font-size: 15.5px;
}

/* Interactive Live Synth Preview */
.synth-card {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, #121216 0%, #0b0b0e 100%);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
}

.synth-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

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

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--border-strong);
  transition: background 0.2s, box-shadow 0.2s;
}

.live-dot.playing {
  background: #fafafa;
  box-shadow: 0 0 12px rgba(250, 250, 250, 0.8);
}

.synth-status {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
}

.synth-volume {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-muted);
}

.synth-volume input[type='range'] {
  width: 110px;
  accent-color: #e4e4e7;
}

.synth-canvas-wrap {
  position: relative;
  height: 112px;
  background: #09090b;
  border-bottom: 1px solid var(--border);
}

#synth-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.synth-presets {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 18px 22px;
}

.preset-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 13px 14px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.preset-btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-2);
}

.preset-btn[aria-pressed='true'] {
  border-color: #d4d4d8;
  background: #202025;
}

.preset-name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.preset-note {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.35;
}

.synth-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 22px 16px;
  font-size: 12.5px;
  color: var(--text-dim);
}

/* Screenshots Showcase */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.tab-btn {
  min-height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.tab-btn[aria-selected='true'] {
  border-color: #d4d4d8;
  background: var(--surface-2);
  color: var(--text);
}

.shot-frame {
  border-radius: 16px;
  border: 1px solid var(--border-strong);
  background: #09090b;
  overflow: hidden;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
}

.shot-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: #121215;
  border-bottom: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-dim);
}

/* Feature Pillars */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

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

.card h3 {
  margin: 0 0 8px;
  font-size: 16.5px;
  letter-spacing: -0.01em;
}

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

.card-tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-bottom: 10px;
}

/* Pricing Comparison */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.plan-card {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.plan-card.pro {
  border-color: var(--border-strong);
  background: linear-gradient(180deg, #16161b 0%, #101013 100%);
}

.plan-card .btn {
  margin-top: auto;
}

.plan-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}

.plan-name {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
}

.plan-price {
  font-family: var(--mono);
  font-size: 15px;
  color: var(--text);
}

.plan-sub {
  margin: -8px 0 0;
  font-size: 13.5px;
  color: var(--text-muted);
}

.check-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: #d4d4d8;
}

.check-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.check-mark {
  font-family: var(--mono);
  color: #fafafa;
  flex-shrink: 0;
}

/* Engineering Banner */
.eng-banner {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.eng-banner h3 {
  margin: 0 0 6px;
  font-size: 20px;
}

.eng-banner p {
  margin: 0;
  color: var(--text-muted);
  max-width: 620px;
  font-size: 14.5px;
}

/* FAQ */
.faq-list {
  display: grid;
  gap: 12px;
}

details.faq-item {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 12px;
  padding: 16px 20px;
}

details.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

details.faq-item summary::after {
  content: '+';
  font-family: var(--mono);
  color: var(--text-muted);
  font-size: 18px;
}

details.faq-item[open] summary::after {
  content: '−';
}

details.faq-item p {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

/* Article / Legal Prose */
.prose {
  padding: 48px 0 72px;
}

.prose h1 {
  margin: 0 0 14px;
  text-align: left;
  font-size: clamp(28px, 4vw, 40px);
}

.prose-meta {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.prose h2 {
  margin: 34px 0 12px;
  font-size: 22px;
}

.prose h3 {
  margin: 22px 0 8px;
  font-size: 16.5px;
}

.prose p,
.prose li {
  color: #d4d4d8;
  font-size: 15.5px;
  line-height: 1.7;
}

.prose ul {
  padding-left: 20px;
}

.prose code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 6px;
  color: #f4f4f5;
}

.prose pre {
  background: #0d0d10;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  color: #e4e4e7;
}

.prose pre code {
  background: transparent;
  border: 0;
  padding: 0;
  font-size: inherit;
}

.callout {
  border-left: 2px solid #e4e4e7;
  background: var(--surface);
  padding: 14px 18px;
  border-radius: 0 10px 10px 0;
  margin: 20px 0;
  font-size: 14.5px;
  color: var(--text-muted);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 44px;
  font-size: 13px;
  color: var(--text-dim);
}

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

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

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

@media (max-width: 820px) {
  .nav-links {
    display: none;
  }
  .synth-presets {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .grid-3,
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 48px 0 32px;
  }
}

@media (max-width: 480px) {
  .synth-presets {
    grid-template-columns: 1fr;
  }
}
