:root {
  --bg: oklch(0.145 0.012 245);
  --bg-elevated: oklch(0.175 0.014 245);
  --bg-card: oklch(0.195 0.015 245);
  --border: oklch(0.92 0.01 245 / 0.08);
  --border-strong: oklch(0.92 0.01 245 / 0.14);
  --text: oklch(0.91 0.01 245);
  --text-muted: oklch(0.68 0.018 245);
  --text-subtle: oklch(0.52 0.016 245);
  --accent: oklch(0.74 0.1 58);
  --accent-hover: oklch(0.78 0.11 58);
  --accent-ink: oklch(0.18 0.03 58);
  --accent-soft: oklch(0.74 0.1 58 / 0.12);
  --accent-glow: oklch(0.74 0.1 58 / 0.22);
  --review: oklch(0.78 0.1 85);
  --review-soft: oklch(0.78 0.1 85 / 0.14);
  --success: oklch(0.72 0.14 155);
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: "Geologica", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --container: 1180px;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
.section-head h2,
.problem-copy h2,
.agents-copy h2,
.pricing-hero h1,
.cta-panel h2 {
  font-family: var(--font-display);
  text-wrap: balance;
}

p,
.section-sub,
.hero-lead {
  text-wrap: pretty;
}

.container {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

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

img,
svg {
  display: block;
}

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s, backdrop-filter 0.3s;
}

.site-header.scrolled {
  background: oklch(0.145 0.012 245 / 0.9);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: flex;
  width: 30px;
  height: 30px;
  color: var(--accent);
  flex-shrink: 0;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.nav-links {
  display: none;
  gap: 28px;
  margin-left: auto;
  font-size: 0.92rem;
  color: var(--text-muted);
}

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

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

.nav-cta {
  margin-left: auto;
}

@media (min-width: 900px) {
  .nav-links {
    display: flex;
  }

  .nav-cta {
    margin-left: 0;
  }
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 0.88rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
}

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

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

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

.btn-ghost:hover {
  background: oklch(0.92 0.01 245 / 0.04);
  border-color: oklch(0.92 0.01 245 / 0.2);
}

/* Hero */

.hero {
  position: relative;
  padding: 56px 0 96px;
  min-height: calc(100dvh - var(--header-h));
  display: flex;
  align-items: center;
}

.hero-glow {
  display: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  align-items: center;
}

@media (min-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr 1.05fr;
    gap: 64px;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}

.text-accent {
  color: var(--accent);
}

.hero-lead {
  font-size: 1.12rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 52ch;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-proof {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 0.88rem;
  color: var(--text-subtle);
}

.hero-proof li::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
  opacity: 0.7;
}

/* App screenshots */

.app-shot {
  margin: 0;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  box-shadow: 0 20px 50px -24px oklch(0 0 0 / 0.55);
  overflow: hidden;
}

.app-shot img {
  display: block;
  width: 100%;
  height: auto;
}

.app-shot-hero {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.app-shot-hero:hover {
  transform: translateY(-2px);
}

.app-shot-settings figcaption {
  padding: 14px 18px;
  font-size: 0.82rem;
  color: var(--text-subtle);
  border-top: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
}

.hero-visual {
  position: relative;
}

.visual-caption {
  margin-top: 16px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-subtle);
}

/* Sections */

section {
  padding: 96px 0;
}

.section-label {
  display: none;
}

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 58ch;
}

/* Problem */

.problem {
  border-top: 1px solid var(--border);
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 900px) {
  .problem-grid {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
  }
}

.problem-copy h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 16px;
}

.problem-copy p {
  color: var(--text-muted);
  max-width: 50ch;
}

.problem-stats {
  display: grid;
  gap: 16px;
}

.stat-card {
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.stat-card.highlight {
  border-color: var(--accent-soft);
  background: var(--bg-elevated);
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 6px;
}

.stat-card.highlight .stat-value {
  color: var(--accent);
}

.stat-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.stat-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Features */

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-span-2 {
    grid-column: span 2;
  }

  .feature-span-3 {
    grid-column: span 2;
  }
}

@media (min-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
  }

  .feature-span-2 {
    grid-column: span 2;
  }

  .feature-span-3 {
    grid-column: span 3;
  }
}

.feature-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  height: 100%;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: border-color 0.2s;
}

.feature-card:hover {
  border-color: var(--border-strong);
}

.feature-icon {
  width: 32px;
  height: 32px;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 48ch;
}

.feature-card:not(.feature-footnote) p {
  flex: 1;
}

.feature-files {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.feature-files li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-subtle);
  padding: 6px 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: oklch(0.12 0.01 245 / 0.5);
}

.feature-footnote {
  padding: 20px 24px;
}

.feature-footnote-inner {
  display: grid;
  gap: 16px;
  align-items: start;
}

@media (min-width: 720px) {
  .feature-footnote-inner {
    grid-template-columns: 32px 1fr;
    gap: 20px;
  }

  .feature-footnote .feature-icon {
    margin-bottom: 0;
  }

  .feature-footnote p {
    max-width: 72ch;
  }
}

/* Workflow */

.workflow {
  border-top: 1px solid var(--border);
}

.steps {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 0;
}

@media (min-width: 800px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
  }
}

.step {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 28px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: background 0.25s;
}

.step-marker {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-subtle);
  text-transform: lowercase;
}

.step:first-child {
  border-radius: var(--radius) var(--radius) 0 0;
}

.step:last-child {
  border-radius: 0 0 var(--radius) var(--radius);
}

@media (min-width: 800px) {
  .step:nth-child(1) {
    border-radius: var(--radius) 0 0 0;
  }

  .step:nth-child(2) {
    border-radius: 0 var(--radius) 0 0;
  }

  .step:nth-child(3) {
    border-radius: 0 0 0 var(--radius);
  }

  .step:nth-child(4) {
    border-radius: 0 0 var(--radius) 0;
  }
}

.step:hover {
  background: oklch(0.92 0.01 245 / 0.02);
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.step p {
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* Agents */

.agents {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.agents-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

@media (min-width: 1000px) {
  .agents-layout {
    grid-template-columns: 0.95fr 1.05fr;
    gap: 56px;
  }
}

.agents-copy h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 14px;
}

.agents-copy p {
  color: var(--text-muted);
  max-width: 46ch;
  margin-bottom: 24px;
}

.agent-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.agent-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  transition: border-color 0.2s, transform 0.2s;
}

.agent-list li:hover {
  border-color: var(--border-strong);
  transform: translateX(4px);
}

.agent-list li.agent-custom {
  border-color: var(--border-strong);
  background: var(--accent-soft);
}

.agent-name {
  font-weight: 500;
}

.agent-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-align: right;
}

/* Compare */

.compare-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
}

.compare-table th,
.compare-table td {
  padding: 18px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.compare-table thead th {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-elevated);
}

.compare-table tbody th {
  font-weight: 500;
  color: var(--text);
  background: var(--bg-card);
}

.compare-table tbody td {
  color: var(--text-muted);
  background: var(--bg-card);
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.highlight-col {
  color: var(--text) !important;
  background: var(--accent-soft) !important;
}

.compare-table thead .highlight-col {
  color: var(--accent) !important;
  background: var(--accent-soft) !important;
}

/* Quotes */

.quotes {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.quotes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 800px) {
  .quotes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quotes-grid blockquote {
  margin: 0;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.quotes-grid p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.quotes-grid footer {
  font-size: 0.78rem;
  color: var(--text-subtle);
}

/* CTA */

.cta {
  padding-bottom: 120px;
}

.cta-panel {
  position: relative;
  text-align: center;
  padding: 72px 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  overflow: hidden;
}

.cta-glow {
  display: none;
}

.cta-panel h2 {
  position: relative;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.08;
  margin-bottom: 14px;
}

.cta-panel > p {
  position: relative;
  color: var(--text-muted);
  max-width: 52ch;
  margin: 0 auto 32px;
}

.cta-actions {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.cta-meta {
  font-size: 0.82rem;
  color: var(--text-subtle);
}

.cta-checklist {
  position: relative;
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 24px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.cta-checklist li::before {
  content: "✓";
  color: var(--accent);
  margin-right: 8px;
  font-weight: 600;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.5fr 1fr;
    align-items: start;
  }
}

.footer-brand p {
  margin-top: 8px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

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

.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: var(--text-subtle);
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

/* Pricing */

.pricing {
  padding: 96px 0 48px;
  border-top: 1px solid var(--border);
}

.pricing .section-head .pricing-note {
  margin-top: 16px;
}

.pricing-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--text-subtle);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 40px;
}

@media (min-width: 700px) {
  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .pricing-grid {
    grid-template-columns: repeat(4, 1fr);
    align-items: stretch;
  }
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: border-color 0.25s, transform 0.25s;
}

.price-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.price-card.featured {
  border-color: var(--accent);
  background: var(--bg-elevated);
  box-shadow: 0 0 0 1px var(--accent-soft);
}

.price-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--accent-ink);
  background: var(--accent);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
}

.price-card-head h3 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.price-card-tagline {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin: 22px 0 12px;
}

.price-value {
  font-size: 2.6rem;
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1;
}

.price-value.custom {
  font-size: 2rem;
}

.price-card.featured .price-value {
  color: var(--accent);
}

.price-card.enterprise {
  border-color: var(--border-strong);
}

.price-period {
  font-size: 0.92rem;
  color: var(--text-subtle);
}

.price-summary {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 22px;
  min-height: 2.8em;
}

.price-coming-soon {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.45;
  margin: -8px 0 18px;
  text-align: center;
}

.price-cta {
  width: 100%;
  margin-bottom: 24px;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0;
  margin-top: auto;
  display: grid;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 20px;
}

.price-features li {
  position: relative;
  padding-left: 22px;
}

.price-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.75;
}

.pricing-compare {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.pricing-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.pricing-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.pricing-table th,
.pricing-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.pricing-table thead th {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  background: var(--bg-elevated);
}

.pricing-table tbody th {
  font-weight: 500;
  color: var(--text);
  background: var(--bg-card);
}

.pricing-table tbody td {
  color: var(--text-muted);
  background: var(--bg-card);
}

.pricing-table tbody tr:last-child th,
.pricing-table tbody tr:last-child td {
  border-bottom: none;
}

.pricing-faq {
  padding: 72px 0;
  border-top: 1px solid var(--border);
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 800px) {
  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.faq-item {
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.faq-item h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.faq-item p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.pricing-cta {
  padding-bottom: 0;
}

.nav-links a[aria-current="page"] {
  color: var(--text);
}

/* Reveal animations */

[data-reveal] {
  opacity: 1;
  transform: none;
}

.js [data-reveal]:not(.revealed) {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.js [data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  [data-reveal] {
    opacity: 1;
    transform: none;
  }

  .app-shot-hero {
    transform: none;
  }
}
