:root {
  color-scheme: dark;
  --bg: #0a0a0f;
  --surface: #0e1117;
  --panel: #131820;
  --panel-strong: #1a2030;
  --ink: rgba(255, 255, 255, 0.9);
  --muted: rgba(255, 255, 255, 0.5);
  --dim: rgba(255, 255, 255, 0.3);
  --accent: #34d399;
  --accent-soft: rgba(52, 211, 153, 0.15);
  --accent-border: rgba(52, 211, 153, 0.35);
  --accent-hover: rgba(52, 211, 153, 0.25);
  --danger: #ff7b7b;
  --danger-soft: rgba(255, 123, 123, 0.12);
  --line: rgba(255, 255, 255, 0.1);
  --hover: rgba(255, 255, 255, 0.06);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 10px;
  --radius-xl: 12px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(52, 211, 153, 0.08), transparent),
    radial-gradient(ellipse 60% 40% at 80% 10%, rgba(56, 189, 248, 0.05), transparent),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(52, 211, 153, 0.02), transparent);
  pointer-events: none;
  z-index: 0;
  animation: aurora 20s ease-in-out infinite alternate;
}

@keyframes aurora {
  0% {
    opacity: 1;
    filter: hue-rotate(0deg);
  }
  50% {
    opacity: 0.8;
    filter: hue-rotate(15deg);
  }
  100% {
    opacity: 1;
    filter: hue-rotate(-10deg);
  }
}

body > * {
  position: relative;
  z-index: 1;
}

a {
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

img {
  max-width: 100%;
}

@media (hover: none) {
  .button:hover {
    transform: none;
  }
  .feature-card:hover {
    border-color: var(--line);
    box-shadow: none;
  }
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 64px;
  padding: 0 clamp(1.5rem, 5vw, 3rem);
  background: rgba(10, 10, 15, 0.88);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.05rem;
}

.brand-mark {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
  font-weight: 500;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-nav a {
  text-decoration: none;
  transition: color 0.15s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.nav-download {
  padding: 0.5rem 1rem;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  transition: background 0.15s, border-color 0.15s;
}

.nav-download:hover {
  background: var(--accent-hover);
  border-color: var(--accent);
}

.language-picker select {
  height: 34px;
  padding: 0 2rem 0 0.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--ink);
  font: inherit;
  font-size: 0.8125rem;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='rgba(255,255,255,0.5)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
}

.language-picker select option {
  background: #131820;
  color: rgba(255, 255, 255, 0.9);
}

/* ── Shared layout ── */

.section,
.download-section,
.site-footer,
.docs-layout {
  max-width: 1120px;
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Live download counter pill at the top of the hero. */
.download-counter {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0.35rem 0.8rem;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.download-counter[hidden] {
  display: none;
}

.download-counter-num {
  color: var(--accent);
  font-weight: 700;
}

.download-counter-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  max-width: 620px;
  margin-bottom: 1.25rem;
  font-size: clamp(2.5rem, 4.5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: pre-line;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.05rem;
  margin-bottom: 0.35rem;
}

/* ── Hero ── */

.hero {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 400px);
  align-items: center;
  gap: 3rem;
  min-height: calc(80vh - 64px);
  padding: 4rem clamp(1.5rem, 5vw, 3rem) 2rem;
  max-width: 1120px;
  margin: 0 auto;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-lede {
  max-width: 540px;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2rem 0 1.25rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.7rem 1.25rem;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9375rem;
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--accent);
  color: #0a0a0f;
}

.button.primary:hover {
  background: #4eedb5;
}

.button.secondary {
  border-color: var(--line);
  background: var(--hover);
  color: var(--ink);
}

.button.secondary:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
}

.button.full {
  width: 100%;
}

.release-note {
  max-width: 500px;
  color: var(--dim);
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* ── Hero app preview (faithful MainWindow mockup) ── */

.hero-panel {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow), 0 0 120px rgba(52, 211, 153, 0.06);
  justify-self: center;
}

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

.app-titlebar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 32px;
  padding: 0 4px 0 10px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--line);
  user-select: none;
}

.app-titlebar-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.app-titlebar-icon {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.7;
}

.app-titlebar-text {
  font-size: 11px;
  font-weight: 700;
  color: var(--ink);
}

.app-titlebar-buttons {
  display: flex;
  gap: 0;
}

.app-titlebar-btn {
  width: 28px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: var(--muted);
  background: transparent;
  border: none;
  cursor: default;
}

.app-body {
  padding: 10px 12px 12px;
}

/* Hero MainWindow mockup */
.hero-timers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 8px;
}

.hero-timer-group {
  display: flex;
  flex-direction: column;
}

.hero-timer-group:last-child {
  align-items: flex-end;
}

.hero-timer-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero-timer-value {
  font-family: Consolas, "Courier New", monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
}

.hero-timer-value.session {
  color: var(--accent);
}

.hero-active-panel {
  padding: 6px 8px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
}

.hero-active-label {
  font-size: 8px;
  font-weight: 700;
  color: var(--dim);
  text-transform: uppercase;
}

.hero-active-task {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  font-size: 12px;
}

.hero-active-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-nav-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.hero-nav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--hover);
  color: var(--ink);
  cursor: default;
  transition: none;
}

.hero-nav-btn svg {
  width: 20px;
  height: 20px;
}

.app-titlebar-btn svg {
  width: 13px;
  height: 13px;
}

/* ── Trust strip ── */

.trust-strip {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  max-width: 1120px;
  margin: 0 auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--hover);
}

.trust-strip div {
  padding: 1rem 1.25rem;
  border-right: 1px solid var(--line);
}

.trust-strip div:last-child {
  border-right: 0;
}

.trust-strip span {
  display: block;
  color: var(--dim);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.trust-strip strong {
  font-size: 0.875rem;
}

/* ── Sections ── */

.section {
  padding: 5rem clamp(1.5rem, 5vw, 3rem);
}

.section-heading {
  max-width: 680px;
  margin-bottom: 2.5rem;
}

.section-heading p,
.split-section p,
.final-cta p {
  color: var(--muted);
}

/* ── Developer note ── */

.dev-note-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.dev-note {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  background: var(--hover);
}

.dev-note-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.dev-note-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
}

.dev-note-name {
  font-size: 0.8125rem;
  color: var(--dim);
}

.dev-note-title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin-bottom: 1.25rem;
  line-height: 1.2;
}

.dev-note-body p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.dev-note-body p:last-child {
  margin-bottom: 0;
  color: var(--ink);
  font-weight: 500;
}

/* ── Feature grid ── */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.feature-card {
  min-height: 380px;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  margin-bottom: 0.75rem;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 900;
}

.feature-card h3 {
  color: var(--ink);
}

.feature-card p {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* ── Feature demos (mini app windows) ── */

.feature-demo {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.demo-titlebar {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 8px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.demo-titlebar-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.5;
}

.demo-titlebar-text {
  font-size: 9px;
  font-weight: 700;
  color: var(--muted);
}

.demo-body {
  flex: 1;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
}

/* Gate demo */
.gate-demo .demo-blocked-label {
  font-size: 9px;
  font-weight: 700;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gate-demo .demo-exe-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 2px 0 6px;
}

.gate-demo .demo-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.15);
  color: var(--muted);
  font-size: 11px;
}

.demo-checkbox {
  width: 18px;
  height: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 11px;
  color: var(--accent);
}

.demo-checkbox.checked {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.gate-demo .demo-lock-btn {
  margin-top: 4px;
  padding: 6px 0;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  opacity: 0.6;
}

/* Go Now demo */
.go-demo .demo-todo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.go-demo .demo-todo-text {
  font-size: 12px;
  color: var(--ink);
}

.go-demo .demo-go-btn {
  padding: 4px 12px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.go-demo .demo-field-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 0;
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.go-demo .demo-field-label {
  color: var(--dim);
}

.go-demo .demo-field-value {
  color: var(--ink);
  font-weight: 600;
}

.go-demo .demo-progress-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-top: 2px;
}

.go-demo .demo-progress-fill {
  height: 100%;
  width: 62%;
  border-radius: 3px;
  background: var(--accent);
}

/* Analytics demo */
.analytics-demo .demo-segment {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.analytics-demo .demo-segment span {
  padding: 3px;
  text-align: center;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  border-right: 1px solid var(--line);
}

.analytics-demo .demo-segment span:first-child {
  background: var(--accent-soft);
  color: var(--accent);
}

.analytics-demo .demo-segment span:last-child {
  border-right: 0;
}

.analytics-demo .demo-bar-row {
  display: grid;
  grid-template-columns: 56px 1fr 44px;
  align-items: center;
  gap: 6px;
  font-size: 10px;
}

.analytics-demo .demo-bar-name {
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.analytics-demo .demo-bar-track {
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.analytics-demo .demo-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent);
  opacity: 0.85;
}

.analytics-demo .demo-bar-time {
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 10px;
  text-align: right;
}

/* AI demo */
.ai-demo .demo-grade-pill {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
  align-self: flex-start;
}

.ai-demo .demo-ai-msg {
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.15);
  font-size: 11px;
}

.ai-demo .demo-ai-role {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2px;
}

.ai-demo .demo-ai-text {
  color: var(--muted);
}

/* Stretch demo */
.stretch-demo {
  align-items: center;
  justify-content: center;
  text-align: center;
}

.stretch-demo .demo-body {
  align-items: center;
}

.demo-stretch-circle {
  width: 48px;
  height: 48px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  opacity: 0.6;
  position: relative;
}

.demo-stretch-circle::before,
.demo-stretch-circle::after {
  content: "";
  position: absolute;
  background: var(--accent);
}

.demo-stretch-circle::before {
  width: 2px;
  height: 100%;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.demo-stretch-circle::after {
  width: 100%;
  height: 2px;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

.stretch-demo .demo-stretch-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
}

.stretch-demo .demo-stretch-steps {
  font-size: 10px;
  color: var(--muted);
}

.stretch-demo .demo-stretch-btn {
  padding: 5px 16px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
}

/* Language demo */
.language-demo .demo-body {
  gap: 4px;
}

.demo-lang-item {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.1);
  color: var(--muted);
  font-size: 11px;
}

.demo-lang-item.active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}

/* Share-card demo */
.share-demo .demo-share-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
}

.share-demo .demo-bar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
}

.share-demo .demo-bar-name {
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.share-demo .demo-bar-time {
  color: var(--accent);
  font-family: Consolas, monospace;
  font-weight: 700;
  white-space: nowrap;
}

.share-demo .demo-share-stats {
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}

.share-demo .demo-share-fun {
  font-size: 10px;
  font-weight: 700;
  color: #ffc24b;
}

/* Customization demo */
.custom-demo .demo-swatches {
  display: flex;
  gap: 6px;
  margin-bottom: 2px;
}

.custom-demo .demo-swatch {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.custom-demo .demo-field-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 4px 0;
  border-top: 1px solid var(--line);
  font-size: 10px;
}

.custom-demo .demo-field-label {
  color: var(--dim);
}

.custom-demo .demo-field-value {
  color: var(--ink);
  font-weight: 600;
}

/* Notes demo */
.notes-demo .demo-tabs {
  display: flex;
  gap: 4px;
}

.notes-demo .demo-tab {
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: rgba(0, 0, 0, 0.12);
  color: var(--muted);
  font-size: 10px;
}

.notes-demo .demo-tab.active {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.notes-demo .demo-tab-add {
  color: var(--dim);
  font-weight: 700;
}

.notes-demo .demo-note-lines {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 0 var(--radius-sm) var(--radius-sm) var(--radius-sm);
  background: rgba(0, 0, 0, 0.12);
}

.notes-demo .demo-note-lines span {
  height: 5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.notes-demo .demo-note-lines span:nth-child(2) { width: 80%; }
.notes-demo .demo-note-lines span:nth-child(3) { width: 55%; }

.notes-demo .demo-note-actions {
  display: flex;
  gap: 6px;
}

.notes-demo .demo-go-btn {
  padding: 4px 10px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
}

.notes-demo .demo-note-hint {
  font-size: 9px;
  color: var(--dim);
  font-family: Consolas, monospace;
}

/* ── AI Section (differentiator highlight) ── */

.ai-section {
  position: relative;
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.ai-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(52, 211, 153, 0.03) 30%, rgba(52, 211, 153, 0.04) 70%, transparent);
  pointer-events: none;
}

.ai-section-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  position: relative;
}

.ai-eyebrow {
  color: var(--accent);
  background: linear-gradient(90deg, var(--accent), #38bdf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ai-copy h2 {
  max-width: 480px;
}

.ai-copy > p {
  color: var(--muted);
  max-width: 460px;
}

.ai-benefits {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: grid;
  gap: 0.6rem;
}

.ai-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.5;
}

.ai-benefits li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.ai-demo-panel {
  position: relative;
}

.ai-demo-panel .app-window {
  box-shadow: var(--shadow), 0 0 80px rgba(52, 211, 153, 0.06);
}

.ai-app-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

.ai-grade-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
}

.ai-grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #0a0a0f;
  font-size: 13px;
  font-weight: 900;
}

.ai-grade-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
}

.ai-chat-msg {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
}

.ai-chat-role {
  display: block;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
  color: var(--accent);
}

.ai-chat-user .ai-chat-role {
  color: var(--muted);
}

.ai-chat-text {
  font-size: 12px;
  color: var(--ink);
  line-height: 1.5;
}

.ai-chat-user {
  border-color: rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.ai-plan-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-md);
  background: var(--accent-soft);
}

.ai-plan-icon {
  color: var(--accent);
  font-weight: 700;
}

.ai-plan-text {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 900px) {
  .ai-section-inner {
    grid-template-columns: 1fr;
  }

  .ai-demo-panel .app-window {
    max-width: 400px;
  }
}

/* ── Use cases ── */

.split-section {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: start;
}

.use-case-list {
  display: grid;
  gap: 0.75rem;
}

.use-case-list div {
  padding: 1.25rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--hover);
}

.use-case-list h3 {
  color: var(--ink);
}

.use-case-list p {
  color: var(--muted);
  font-size: 0.875rem;
  margin-bottom: 0;
}

/* ── Download ── */

.download-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.7fr);
  gap: 3rem;
  align-items: center;
  padding: 5rem clamp(1.5rem, 5vw, 3rem);
}

.download-copy p {
  color: var(--muted);
}

.download-box {
  padding: 1.5rem;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.download-box h3 {
  font-family: Consolas, monospace;
  font-size: 0.9375rem;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.download-box p {
  font-size: 0.875rem;
}

/* ── Install guide (SmartScreen) ── */

.install-guide-section {
  border-top: 1px solid var(--line);
}

.install-guide {
  max-width: 1120px;
  margin: 0 auto;
}

.install-guide-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 3rem;
  margin-top: 2rem;
}

.install-guide-explanation h3,
.install-guide-steps h3 {
  color: var(--ink);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
}

.install-guide-explanation p {
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.install-guide-explanation ul {
  padding-left: 0;
  list-style: none;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.75rem;
}

.install-guide-explanation li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.install-guide-explanation li::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-top: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.install-guide-steps {
  position: sticky;
  top: 88px;
  align-self: start;
}

.install-step {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  margin-bottom: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--hover);
}

.install-step-number {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 900;
}

.install-step strong {
  display: block;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.install-step p {
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .install-guide-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .install-guide-steps {
    position: static;
  }
}

@media (max-width: 620px) {
  .install-step {
    padding: 1rem;
  }
}

.checksum {
  display: grid;
  gap: 0.4rem;
  margin-top: 1rem;
}

.checksum span {
  color: var(--dim);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.checksum code {
  display: block;
  width: 100%;
  overflow-wrap: anywhere;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--accent);
  background: rgba(0, 0, 0, 0.25);
  font-family: Consolas, monospace;
  font-size: 0.75rem;
}

.copy-button {
  justify-self: start;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--hover);
  color: var(--ink);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
}

.copy-button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.text-link {
  display: inline-flex;
  margin-top: 0.75rem;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 700;
}

/* ── Final CTA ── */

.final-cta {
  padding-top: 2rem;
  text-align: center;
}

.final-cta p {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Footer ── */

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 2rem clamp(1.5rem, 5vw, 3rem);
  border-top: 1px solid var(--line);
}

.site-footer p {
  color: var(--dim);
  font-size: 0.8125rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.footer-links a {
  text-decoration: none;
}

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

/* ── Documentation ── */

.docs-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 3rem;
  padding: 3rem clamp(1.5rem, 5vw, 3rem) 6rem;
}

.docs-sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
  display: grid;
  gap: 0.25rem;
  padding: 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--hover);
}

.docs-sidebar a {
  padding: 0.45rem 0.65rem;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.15s, background 0.15s;
}

.docs-sidebar a:hover {
  color: var(--ink);
  background: var(--hover);
}

.docs-hero {
  padding: 2rem 0 2.5rem;
}

.docs-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
}

.doc-section {
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}

.doc-section h2 {
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
}

.doc-section code {
  color: var(--accent);
  font-family: Consolas, monospace;
  overflow-wrap: anywhere;
}

.doc-section li {
  margin-bottom: 0.5rem;
}

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

.callout {
  padding: 1rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--accent-soft);
  font-size: 0.875rem;
}

.changelog-entry {
  margin-bottom: 1.5rem;
}

.changelog-entry h3 {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.changelog-tag {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--accent);
}

/* ── Responsive: Tablet (max 900px) ── */

@media (max-width: 900px) {
  .site-header {
    height: auto;
    padding: 0.75rem clamp(1rem, 4vw, 2rem);
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .site-nav {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    gap: 1rem;
  }

  .hero,
  .download-section,
  .split-section,
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 3rem;
    gap: 2rem;
  }

  .hero-panel {
    max-width: 320px;
    justify-self: start;
  }

  .trust-strip,
  .feature-grid {
    grid-template-columns: 1fr 1fr;
  }

  .ai-section-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ai-demo-panel .app-window {
    max-width: 400px;
  }

  .dev-note {
    padding: 1.5rem;
  }

  .docs-sidebar {
    position: static;
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── Responsive: Mobile (max 620px) ── */

@media (max-width: 620px) {
  body {
    font-size: 15px;
  }

  /* Header: compact single-row with scroll nav */
  .site-header {
    padding: 0.6rem 1rem;
    gap: 0.4rem;
  }

  .brand {
    font-size: 1rem;
    gap: 0.5rem;
  }

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

  .site-nav {
    gap: 0.75rem;
    font-size: 0.8125rem;
    padding-bottom: 0.3rem;
    white-space: nowrap;
  }

  .site-nav a[data-mobile-icon] .nav-label {
    display: none;
  }

  .site-nav a[data-mobile-icon]::after {
    content: attr(data-mobile-icon);
    font-size: 1.1rem;
  }

  .nav-download {
    padding: 0.4rem 0.75rem;
    font-size: 0.8125rem;
  }

  .language-picker select {
    height: 30px;
    font-size: 0.75rem;
    padding: 0 1.5rem 0 0.5rem;
  }

  /* Hero: full-width stacked */
  .hero {
    padding: 2.5rem 1.25rem 1.5rem;
    gap: 2rem;
  }

  h1 {
    font-size: 2rem;
    line-height: 1.1;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero-lede {
    font-size: 1rem;
  }

  .hero-actions {
    flex-direction: column;
    margin: 1.5rem 0 1rem;
  }

  .button {
    min-height: 48px;
    width: 100%;
    justify-content: center;
    font-size: 0.9375rem;
  }

  .release-note {
    font-size: 0.75rem;
  }

  .hero-panel {
    max-width: 100%;
    justify-self: stretch;
  }

  /* Trust strip: single column */
  .trust-strip {
    grid-template-columns: 1fr;
    border-radius: var(--radius-md);
    margin: 0 1rem;
  }

  .trust-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 0.85rem 1rem;
  }

  .trust-strip div:last-child {
    border-bottom: 0;
  }

  /* Sections: tighter padding */
  .section {
    padding: 3rem 1.25rem;
  }

  .section-heading {
    margin-bottom: 1.75rem;
  }

  /* Developer note */
  .dev-note-section {
    padding-top: 2rem;
    padding-bottom: 2rem;
  }

  .dev-note {
    padding: 1.25rem;
    margin: 0;
  }

  .dev-note-title {
    font-size: 1.25rem;
  }

  .dev-note-body p {
    font-size: 0.875rem;
  }

  /* Feature grid: single column */
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .feature-card {
    min-height: auto;
    padding: 1rem;
  }

  .feature-demo {
    margin-bottom: 0.75rem;
  }

  /* AI section */
  .ai-section {
    padding: 2.5rem 1.25rem;
  }

  .ai-section-inner {
    gap: 1.5rem;
  }

  .ai-copy h2 {
    font-size: 1.4rem;
  }

  .ai-benefits li {
    font-size: 0.8125rem;
  }

  .ai-demo-panel .app-window {
    max-width: 100%;
  }

  /* Use cases */
  .split-section {
    gap: 2rem;
  }

  .use-case-list div {
    padding: 1rem;
  }

  /* Download */
  .download-section {
    padding: 3rem 1.25rem;
    gap: 2rem;
  }

  .download-box {
    padding: 1.25rem;
  }

  .download-box h3 {
    font-size: 0.8125rem;
  }

  .checksum code {
    font-size: 0.625rem;
    padding: 0.5rem;
  }

  /* Final CTA */
  .final-cta h2 {
    font-size: 1.35rem;
  }

  /* Footer */
  .site-footer {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem 1.25rem;
  }

  .footer-links {
    flex-direction: column;
    gap: 0.75rem;
  }

  /* Docs */
  .docs-layout {
    padding: 1.5rem 1.25rem 4rem;
    gap: 1.5rem;
  }

  .docs-sidebar {
    grid-template-columns: 1fr 1fr;
    gap: 0.2rem;
    padding: 0.5rem;
  }

  .docs-sidebar a {
    font-size: 0.8125rem;
    padding: 0.5rem;
    text-align: center;
  }

  .docs-hero h1 {
    font-size: 1.75rem;
  }

  .doc-section h2 {
    font-size: 1.3rem;
  }

  .callout {
    font-size: 0.8125rem;
    padding: 0.85rem;
  }
}

/* ── Responsive: Small mobile (max 380px) ── */

@media (max-width: 380px) {
  h1 {
    font-size: 1.75rem;
  }

  .hero {
    padding: 2rem 1rem 1.25rem;
  }

  .section {
    padding: 2.5rem 1rem;
  }

  .dev-note {
    padding: 1rem;
  }

  .docs-sidebar {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    margin: 0 0.5rem;
  }
}
