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

:root {
  --text: rgba(20, 20, 20, 0.85);
  --text-muted: rgba(20, 20, 20, 0.6);
  --bg: #ffffff;
  --bg-dark: #06192e;
  --bg-dark-alt: #050505;
  --accent: #2060df;
  --accent-hover: #1850c0;
  --border: rgba(20, 20, 20, 0.12);
  --card-bg: #f8f9fb;
  --code-bg: #1a1c1d;
  --max-width: 72rem;
  --header-height: 4rem;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

h1, h2, h3, .logo {
  font-family: "Archivo", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 200;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
  transition: transform 0.15s ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
  outline: 2px solid var(--bg-dark);
  outline-offset: 2px;
}

.btn:focus-visible,
.site-nav a:focus-visible,
.logo:focus-visible,
.hero-link:focus-visible,
.footer-links a:focus-visible,
.footer-social-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  text-decoration: none;
}

.btn-primary:focus-visible {
  outline-color: var(--bg-dark);
}

.footer-links a:focus-visible,
.footer-social-link:focus-visible {
  outline-color: #fff;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: var(--header-height);
  padding: 0 1.5rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  line-height: 0;
}

.logo-mark {
  display: block;
  height: 2rem;
  width: auto;
  transition: opacity 0.15s ease;
}

.logo:hover {
  text-decoration: none;
}

.logo:hover .logo-mark {
  opacity: 0.85;
}

.site-nav {
  display: none;
  align-items: center;
  gap: 1.25rem;
  margin: 0 auto;
}

.site-nav a {
  font-size: 0.875rem;
  color: var(--text-muted);
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--accent);
  text-decoration: none;
}

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

@media (max-width: 480px) {
  .site-header .btn-primary {
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.625rem 1.25rem;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease;
  flex-shrink: 0;
}

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

.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
  color: #fff;
}

.btn-secondary {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.btn-secondary:hover {
  background: rgba(32, 96, 223, 0.08);
  text-decoration: none;
}

.btn-on-dark {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}

.btn-on-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}

.btn-light {
  background: #fff;
  color: var(--bg-dark);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  color: var(--bg-dark);
}

/* Layout */

.section {
  padding: 3rem 1.5rem;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.section-lead {
  margin: 0 0 1.5rem;
  max-width: 42rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.section-lead--quiet {
  margin-top: 2rem;
  margin-bottom: 0;
  font-size: 0.9375rem;
}

/* Hero */

.hero {
  padding: 3rem 1.5rem;
  background: linear-gradient(180deg, #f8faff 0%, var(--bg) 100%);
}

.hero-layout {
  display: grid;
  gap: 2.5rem;
  max-width: var(--max-width);
  margin: 0 auto;
  align-items: center;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 900px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 3rem;
  }
}

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

.hero-inner {
  text-align: left;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 2.75rem);
  letter-spacing: -0.02em;
}

.hero-tagline {
  margin: 0 0 0.75rem;
  max-width: 36rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text);
}

.hero-problem {
  margin: 0 0 1rem;
  max-width: 36rem;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.hero-sub {
  margin: 0 0 1.25rem;
  max-width: 36rem;
  font-size: 1.125rem;
  color: var(--text-muted);
}

.hero-benefits {
  margin: 0 0 2rem;
  max-width: 36rem;
}

@media (min-width: 900px) {
  .hero-tagline,
  .hero-problem,
  .hero-sub,
  .hero-benefits {
    margin-left: 0;
    margin-right: 0;
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
  align-items: center;
}

.hero-link {
  font-size: 0.9375rem;
}

.hero-visual .placeholder-frame {
  min-height: 14rem;
}

.demo-media-link img {
  background: #fff;
  border: 1px solid rgba(20, 20, 20, 0.16);
  box-shadow:
    0 2px 4px rgba(20, 20, 20, 0.08),
    0 4px 12px rgba(20, 20, 20, 0.06),
    0 20px 48px rgba(20, 20, 20, 0.14);
}

.demo-media-link:hover img {
  box-shadow:
    0 2px 4px rgba(20, 20, 20, 0.1),
    0 6px 16px rgba(20, 20, 20, 0.08),
    0 24px 56px rgba(20, 20, 20, 0.18);
}

/* Code blocks */

.demo-snippet {
  margin: 0;
  padding: 1.25rem 1.5rem;
  overflow-x: auto;
  background: var(--code-bg);
  border-radius: 0.75rem;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", monospace;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: #e8eaed;
  white-space: pre;
}

.inline-code {
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", monospace;
  font-size: 0.875em;
  padding: 0.1em 0.35em;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.25rem;
}

.code-pair {
  display: grid;
  gap: 1.25rem;
  margin: 2rem 0 1.5rem;
}

@media (min-width: 768px) {
  .code-pair {
    grid-template-columns: 1fr 1fr;
  }
}

.code-block-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.feature-list {
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.feature-list li {
  padding-left: 1.25rem;
  border-left: 3px solid var(--accent);
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.hero-benefits.feature-list {
  margin: 0 0 2.5rem;
}

.badge {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  margin-right: 0.25rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  background: rgba(32, 96, 223, 0.12);
  color: var(--accent);
  vertical-align: middle;
}

.badge--dark {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.6875rem;
}

/* Media placeholders */

.media-placeholder {
  margin: 2rem 0 0;
}

.media-placeholder--inline {
  margin: 1.5rem 0;
}

.media-placeholder .placeholder-frame {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 12rem;
  padding: 1.5rem;
  border: 2px dashed var(--border);
  border-radius: 0.75rem;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(32, 96, 223, 0.04) 8px,
    rgba(32, 96, 223, 0.04) 16px
  );
  color: var(--text-muted);
  font-size: 0.8125rem;
  text-align: center;
  gap: 0.25rem;
}

.media-placeholder img,
.media-placeholder svg {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  display: block;
}

.hero-visual.media-placeholder img {
  border-radius: 0;
  border: none;
  box-shadow: none;
  background: transparent;
}

.demo-media-link {
  display: block;
  border-radius: 0.75rem;
  transition: box-shadow 0.15s ease;
}

.demo-media-link:hover {
  opacity: 1;
}

.demo-media-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.media-placeholder:has(img) .placeholder-frame,
.media-placeholder:has(svg) .placeholder-frame {
  display: none;
}

/* Problem */

.problem-text {
  margin: 0;
  max-width: 48rem;
  font-size: 1.0625rem;
}

.comparison-table-wrap {
  margin-top: 2rem;
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  min-width: 36rem;
  border-collapse: collapse;
  font-size: 0.875rem;
}

.comparison-table th,
.comparison-table td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  text-align: center;
}

.comparison-table thead th {
  background: var(--card-bg);
  font-weight: 600;
  font-size: 0.75rem;
  letter-spacing: 0.03em;
}

.comparison-table tbody th {
  text-align: left;
  font-weight: 500;
  background: var(--bg);
}

.comparison-table tbody tr:last-child {
  background: rgba(32, 96, 223, 0.04);
}

.comparison-table tbody tr:last-child th {
  font-weight: 600;
  color: var(--accent);
}

.mark {
  font-size: 1rem;
  font-weight: 600;
}

.mark.yes { color: var(--accent); }
.mark.partial { color: var(--text-muted); }
.mark.no { color: rgba(20, 20, 20, 0.35); }

.table-footnote {
  margin: 0.75rem 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Audiences */

.audiences-section {
  background: var(--card-bg);
}

.audience-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  .audience-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .audience-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.audience-card {
  min-width: 0;
  padding: 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.audience-icon-slot {
  position: relative;
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
}

.audience-icon {
  width: 48px;
  height: 48px;
  display: block;
}

.audience-icon-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px dashed var(--border);
  border-radius: 0.5rem;
  font-size: 0.5625rem;
  color: var(--text-muted);
  text-align: center;
  padding: 0.25rem;
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 4px,
    rgba(32, 96, 223, 0.04) 4px,
    rgba(32, 96, 223, 0.04) 8px
  );
}

.audience-icon-slot.icon-loaded .audience-icon-fallback {
  display: none;
}

.audience-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.0625rem;
}

.audience-visual {
  margin: 1.25rem 0 0;
  min-width: 0;
  max-width: 100%;
  max-height: 10rem;
  display: flex;
  align-items: center;
}

.audience-visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: 10rem;
  height: auto;
  object-fit: contain;
}

.audience-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.audience-cta {
  font-size: 0.875rem;
  font-weight: 500;
}

/* Pillars */

.pillars {
  background: var(--bg);
}

.pillar-grid {
  display: grid;
  gap: 1.5rem;
  margin-top: 2rem;
}

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

.pillar-card {
  padding: 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
}

.pillar-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
}

.pillar-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* Format demo */

.demo {
  background: var(--card-bg);
}

.demo .demo-snippet {
  margin-top: 1rem;
}

/* Try it funnel */

.try-section {
  background: var(--bg);
}

.step-list {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 2rem;
}

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

.step-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.media-placeholder--step {
  margin: 0;
}

.media-placeholder--step .placeholder-frame {
  min-height: 8rem;
  font-size: 0.75rem;
}

.step-body strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
}

.step-body p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.try-cta {
  margin-top: 2.5rem;
  text-align: center;
}

/* Next steps */

.next-section {
  background: var(--card-bg);
}

.next-directions {
  max-width: 42rem;
  margin: 0 0 1.5rem;
}

.next-partner {
  margin-bottom: 0;
}

.next-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

/* Developers */

.developers-section {
  background: var(--card-bg);
}

.package-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.package-chip {
  padding: 0.375rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: ui-monospace, "Cascadia Code", "Source Code Pro", monospace;
  font-size: 0.8125rem;
  background: var(--bg);
  color: var(--text);
}

.dev-snippet {
  margin-top: 1.5rem;
}

/* CTA band */

.cta-band {
  padding: 4rem 1.5rem;
  text-align: center;
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.9);
}

.cta-band h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: #fff;
}

.cta-band p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.75);
}

.research-band-inner {
  max-width: 40rem;
  margin: 0 auto;
}

.research-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.research-maturity {
  margin: 0;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
}

.research-maturity a {
  color: rgba(255, 255, 255, 0.85);
}

.research-maturity a:hover {
  color: #fff;
}

/* Footer */

.site-footer {
  padding: 3rem 1.5rem 2rem;
  background: var(--bg-dark-alt);
  color: rgba(255, 255, 255, 0.75);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

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

.footer-social-title {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.footer-social-links {
  display: flex;
  gap: 0.75rem;
}

.footer-social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.footer-social-link:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  color: #fff;
}

.footer-social-link svg {
  flex-shrink: 0;
}

.social-proof-placeholder {
  margin-top: 1.25rem;
}

.social-proof-placeholder .placeholder-label {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.45);
  font-style: italic;
}

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

.footer-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.875rem;
}

.footer-links a:hover {
  color: #fff;
}

.footer-meta {
  grid-column: 1 / -1;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-meta p {
  margin: 0 0 0.25rem;
}
