@font-face {
  font-family: "Outfit";
  src: url("fonts/outfit-latin.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk-latin-700.woff2") format("woff2");
  font-display: swap;
  font-weight: 700;
}

@font-face {
  font-family: "DM Mono";
  src: url("fonts/dm-mono-latin-400.woff2") format("woff2");
  font-display: swap;
}

:root {
  color-scheme: light;
  --r: 8px;
  --rl: 12px;
  --font-brand: "Space Grotesk", sans-serif;
  --font-sans: "Outfit", sans-serif;
  --font-mono: "DM Mono", monospace;
  --bg-0: #e3e5e8;
  --bg-1: #f2f3f5;
  --bg-2: #ebedef;
  --bg-3: #d4d7dc;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.15);
  --text-1: #2e3338;
  --text-2: #4f5660;
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.16);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg-0: #202225;
  --bg-1: #2f3136;
  --bg-2: #36393f;
  --bg-3: #40444b;
  --border: rgba(255,255,255,0.06);
  --border-strong: rgba(255,255,255,0.12);
  --text-1: #dcddde;
  --text-2: #a4a8b0;
  --shadow-md: 0 8px 32px rgba(0, 0, 0, 0.40);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg-1);
  color: var(--text-1);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.2em;
}

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

figure {
  margin: 0;
  min-width: 0;
}

p {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--text-1);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 30;
  padding: 12px 16px;
  background: var(--bg-1);
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 8px clamp(16px, 5vw, 72px);
  border-bottom: 1px solid var(--border);
  background: var(--bg-0);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  text-decoration: none;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
}

.brand-name {
  font-family: var(--font-brand);
  font-size: 16px;
  font-weight: 700;
}

nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--r);
  color: var(--text-2);
  font-size: 14px;
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  background: var(--bg-2);
  color: var(--text-1);
}

.header-actions {
  display: flex;
  justify-content: flex-end;
}

.theme-switch {
  display: inline-flex;
  gap: 2px;
  padding: 2px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--bg-1);
}

.theme-option {
  min-height: 36px;
  padding: 6px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-2);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
}

.theme-option:hover {
  color: var(--text-1);
}

.theme-option.active {
  background: var(--bg-3);
  color: var(--text-1);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: var(--r);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
}

.btn-p {
  background: var(--text-1);
  border-color: var(--text-1);
  color: var(--bg-0);
}

.btn-p:hover {
  background: var(--text-2);
  border-color: var(--text-2);
}

.btn-g {
  border-color: var(--border-strong);
}

.btn-g:hover {
  background: var(--bg-2);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: clamp(40px, 6vw, 80px) clamp(16px, 5vw, 72px);
  background: var(--bg-0);
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--text-2);
  font-size: 14px;
  font-weight: 500;
}

h1, h2, h3 {
  margin: 0;
  color: var(--text-1);
  font-family: var(--font-brand);
  font-weight: 700;
  text-wrap: balance;
}

h1 {
  font-size: clamp(34px, 3.7vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

h2 {
  font-size: clamp(26px, 2.7vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 20px;
  line-height: 1.3;
}

.lead {
  margin-top: 24px;
  font-size: 18px;
  line-height: 1.55;
  color: var(--text-2);
  max-width: 60ch;
}

.hero-actions, .final-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.demo-note, .license-note, figcaption {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
}

.demo-note {
  max-width: 65ch;
  margin-top: 16px;
}

.license-note {
  margin-top: 24px;
}

figcaption {
  padding: 16px;
}

.hero-preview figcaption {
  padding: 16px 0 0;
}

.browser-frame {
  border: 1px solid var(--border-strong);
  border-radius: var(--rl);
  background: var(--bg-1);
  box-shadow: var(--shadow-md);
}

.browser-frame img {
  border-radius: 0 0 var(--rl) var(--rl);
}

.frame-top {
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}

.frame-path {
  color: var(--text-2);
  font-size: 14px;
}

.workflow, .capabilities, .feature, .demo-tour, .final-cta {
  padding: clamp(40px, 6vw, 80px) clamp(16px, 5vw, 72px);
  border-top: 1px solid var(--border);
}

.workflow, .capabilities, .demo-tour {
  display: grid;
  grid-template-columns: minmax(0, 0.65fr) minmax(0, 1fr);
  gap: 32px clamp(24px, 5vw, 64px);
}

.section-intro, .feature-copy {
  max-width: 60ch;
}

.section-intro > p:not(.eyebrow), .feature-copy > p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--text-2);
}

.workflow-table, .tour-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-row {
  display: grid;
  grid-template-columns: 28px minmax(120px, 0.55fr) minmax(0, 1fr);
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.workflow-row:first-child {
  padding-top: 0;
}

.workflow-row p {
  color: var(--text-2);
}

.mono {
  color: var(--text-2);
  font-family: var(--font-mono);
  font-size: 14px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
}

.feature-right {
  background: var(--bg-0);
}

.screenshot-panel {
  border: 1px solid var(--border-strong);
  border-radius: var(--r);
  background: var(--bg-1);
}

.screenshot-panel img {
  border-radius: var(--r) var(--r) 0 0;
}

/* Frame the table area of the full demo captures; links retain the full view. */
.screenshot-crop {
  display: block;
  overflow: hidden;
  border-radius: var(--r) var(--r) 0 0;
}

.screenshot-crop img {
  width: 128%;
  max-width: none;
  border-radius: 0;
}

.purchase-crop {
  aspect-ratio: 1000 / 292;
}

.purchase-crop img {
  transform: translate(-20.3125%, -21.5278%);
}

.renewal-crop {
  aspect-ratio: 1000 / 334;
}

.renewal-crop img {
  transform: translate(-20.3125%, -35.4167%);
}

.screenshot-panel figcaption {
  border-top: 1px solid var(--border);
}

.text-link {
  display: inline-block;
  margin-top: 20px;
  padding-block: 4px;
  font-weight: 500;
}

.capability-list {
  margin: 0;
}

.capability-list > div {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}

.capability-list > div:first-child {
  padding-top: 0;
}

.capability-list dt {
  font-weight: 600;
}

.capability-list dd {
  margin: 4px 0 0;
  color: var(--text-2);
}

.demo-tour {
  background: var(--bg-2);
  scroll-margin-top: 16px;
}

.tour-list li {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-strong);
}

.tour-list li:first-child {
  padding-top: 0;
}

.tour-list p {
  color: var(--text-2);
  margin-top: 8px;
}

.demo-tour > .demo-note {
  grid-column: 2;
  margin-top: 0;
}

.final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.final-cta > div:first-child {
  max-width: 60ch;
}

.final-cta p:not(.eyebrow) {
  margin-top: 16px;
  color: var(--text-2);
}

.final-actions {
  margin: 0;
}

.site-footer {
  padding: 24px clamp(16px, 5vw, 72px);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  font-size: 14px;
}

.site-footer p {
  font-weight: 600;
}

.site-footer p span {
  display: block;
  color: var(--text-2);
  font-weight: 400;
}

.site-footer nav {
  justify-content: flex-start;
  gap: 8px 20px;
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (max-width: 1040px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 680px;
  }

  .hero-preview {
    max-width: 900px;
  }

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

  .workflow, .capabilities, .demo-tour {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1fr);
    gap: 32px;
  }

  .workflow-row {
    grid-template-columns: 28px 1fr;
    gap: 8px 16px;
  }

  .workflow-row p {
    grid-column: 2;
  }

}

@media (max-width: 720px) {
  html {
    scroll-padding-top: 136px;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
  }

  .site-header > nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
  }

  .nav-link {
    padding-inline: 10px;
  }

  .theme-option {
    min-height: 44px;
  }

  .hero, .workflow, .capabilities, .feature, .demo-tour {
    grid-template-columns: 1fr;
  }

  .demo-tour > .demo-note {
    grid-column: auto;
  }

  .text-link {
    min-height: 44px;
    padding-block: 10px;
  }

  .tour-list h3 a {
    display: inline-block;
    padding-block: 6px;
  }

}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }

}
