:root {
  color-scheme: light;
  --ink: #172033;
  --muted: #5c6576;
  --line: #dfe5ee;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --blue: #1f6feb;
  --teal: #0f8b8d;
  --green: #198754;
  --amber: #c77d16;
  --red: #c2413b;
  --navy: #0f172a;
  --shadow: 0 18px 45px rgba(15, 23, 42, .12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

a:hover {
  text-decoration: underline;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--navy);
  color: white;
  padding: .7rem 1rem;
}

.skip-link:focus {
  top: 1rem;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.nav {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--ink);
  font-weight: 800;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: white;
  background: var(--navy);
  font-size: .85rem;
  letter-spacing: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: .95rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: .95rem;
}

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

.nav-links a.button {
  color: #ffffff;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 42px;
  border: 1px solid var(--navy);
  border-radius: 8px;
  background: var(--navy);
  color: white;
  padding: .68rem 1rem;
  font-weight: 750;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
}

.button:hover,
button:hover {
  text-decoration: none;
  background: #26324a;
}

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

.button.secondary:hover {
  background: var(--soft);
}

.hero {
  position: relative;
  min-height: 660px;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
  background: var(--navy);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(90deg, rgba(15, 23, 42, .94), rgba(15, 23, 42, .72), rgba(15, 23, 42, .34)), var(--hero-image);
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero-screenshot {
  --hero-image: url("/assets/screenshots/screenshot-1.png");
}

.hero-inner {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 7rem 0 8rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin: 0 0 1rem;
  color: #bfdbfe;
  font-weight: 800;
  text-transform: uppercase;
  font-size: .78rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.08;
}

h1 {
  max-width: 760px;
  font-size: clamp(2.35rem, 6vw, 5.1rem);
  letter-spacing: 0;
}

h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  letter-spacing: 0;
}

h3 {
  font-size: 1.1rem;
}

.hero p {
  max-width: 650px;
  margin: 1.1rem 0 0;
  color: #e5edf8;
  font-size: 1.1rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.5rem;
}

.hero .button.secondary {
  background: rgba(255, 255, 255, .94);
}

.hero-stats {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  gap: .75rem;
  max-width: 670px;
}

.hero-stat {
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  padding: .85rem;
  background: rgba(15, 23, 42, .46);
}

.hero-stat strong {
  display: block;
  font-size: 1.35rem;
}

.hero-stat span {
  color: #cbd5e1;
  font-size: .9rem;
}

.band {
  padding: 5rem 0;
}

.band.soft {
  background: var(--soft);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-head p {
  max-width: 620px;
  margin: .6rem 0 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.five {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem;
  background: var(--paper);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
}

.card p,
.doc p,
.faq p {
  color: var(--muted);
}

.resource-card {
  color: inherit;
  text-decoration: none;
}

.resource-card h3 {
  margin-top: 0;
}

.feature-mark {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  margin-bottom: .9rem;
  background: #e8f1ff;
  color: var(--blue);
  font-weight: 900;
}

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

.shot {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow);
  cursor: zoom-in;
}

.shot img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  width: 100%;
  display: block;
  transition: transform .18s ease;
}

.shot:hover img,
.shot:focus img {
  transform: scale(1.025);
}

.shot:focus {
  outline: 3px solid rgba(37, 99, 235, .32);
  outline-offset: 3px;
}

.shot figcaption {
  padding: .8rem .9rem;
  color: var(--muted);
  font-size: .92rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 2rem 4rem;
  background: rgba(3, 7, 18, .86);
}

.lightbox.is-open {
  display: flex;
}

.lightbox-figure {
  width: min(1120px, 100%);
  margin: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #0f172a;
  box-shadow: 0 28px 80px rgba(0,0,0,.42);
}

.lightbox-image {
  display: block;
  width: 100%;
  max-height: calc(100vh - 11rem);
  object-fit: contain;
  background: #0f172a;
}

.lightbox-caption {
  padding: .9rem 1rem;
  color: #e5edf8;
  font-size: .95rem;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 1px solid rgba(255,255,255,.2);
  background: rgba(15,23,42,.88);
  color: white;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

.lightbox-close {
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 1.7rem;
  line-height: 1;
}

.lightbox-nav {
  top: 50%;
  width: 48px;
  height: 72px;
  border-radius: 999px;
  font-size: 2.4rem;
  transform: translateY(-50%);
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

.lightbox-close:focus,
.lightbox-nav:focus {
  outline: 3px solid rgba(255,255,255,.45);
  outline-offset: 3px;
}

.pricing {
  align-items: stretch;
}

.price {
  font-size: 2.2rem;
  font-weight: 850;
  margin: .5rem 0;
}

.list {
  padding-left: 1.15rem;
  color: var(--muted);
}

.list li {
  margin: .35rem 0;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.footer {
  background: var(--navy);
  color: #e2e8f0;
  padding: 2.5rem 0;
}

.footer a {
  color: #bfdbfe;
}

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

.footer small {
  color: #94a3b8;
}

.page-hero {
  background: var(--navy);
  color: white;
  padding: 5rem 0;
}

.page-hero p {
  max-width: 720px;
  color: #dbe7f6;
  font-size: 1.08rem;
}

.demo-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 1rem;
}

.sidebar {
  align-self: start;
  position: sticky;
  top: 86px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: .8rem;
}

.metric {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .95rem;
  background: white;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: .86rem;
}

.metric strong {
  font-size: 1.65rem;
  line-height: 1.2;
}

.score-ring {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 1rem;
  background:
    radial-gradient(circle at center, white 0 55%, transparent 56%),
    conic-gradient(var(--green) 0 82%, #e6ebf2 82% 100%);
}

.score-ring strong {
  font-size: 2.4rem;
}

.demo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
}

.demo-table th,
.demo-table td {
  border-bottom: 1px solid var(--line);
  padding: .75rem .55rem;
  text-align: left;
  vertical-align: top;
}

.demo-table th {
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: .2rem .55rem;
  font-size: .8rem;
  font-weight: 800;
  background: #eef2f7;
}

.pill.green {
  background: #dff6e9;
  color: #126c3f;
}

.pill.amber {
  background: #fff1db;
  color: #8a520b;
}

.pill.red {
  background: #fde7e5;
  color: #9f2f2a;
}

.chart {
  min-height: 220px;
  display: flex;
  align-items: end;
  gap: .45rem;
  padding: 1rem 0 0;
}

.bar {
  flex: 1;
  min-width: 10px;
  border-radius: 6px 6px 0 0;
  background: var(--blue);
}

.bar-blue {
  background: var(--blue);
}

.bar-green {
  background: var(--green);
}

.chart-h-42 { height: 75.6px; }
.chart-h-44 { height: 79.2px; }
.chart-h-48 { height: 86.4px; }
.chart-h-55 { height: 99px; }
.chart-h-58 { height: 104.4px; }
.chart-h-62 { height: 111.6px; }
.chart-h-70 { height: 126px; }
.chart-h-73 { height: 131.4px; }
.chart-h-76 { height: 136.8px; }
.chart-h-82 { height: 147.6px; }
.chart-h-88 { height: 158.4px; }
.chart-h-91 { height: 163.8px; }

.doc-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 2rem;
}

.toc {
  position: sticky;
  top: 86px;
  align-self: start;
}

.toc a,
.sidebar a {
  display: block;
  padding: .45rem 0;
}

.doc {
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

.contact-form {
  display: grid;
  gap: .8rem;
}

.contact-form label {
  display: grid;
  gap: .35rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea,
.contact-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .75rem .8rem;
  font: inherit;
}

.contact-form textarea {
  min-height: 140px;
  resize: vertical;
}

.notice {
  border-left: 4px solid var(--blue);
  background: #eef5ff;
  padding: .9rem 1rem;
  border-radius: 0 8px 8px 0;
  color: #234060;
}

@media (max-width: 880px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
    padding: .85rem 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 4.5rem 0 6rem;
  }

  .grid.three,
  .grid.two,
  .grid.five,
  .screenshot-grid,
  .metric-grid,
  .footer-grid,
  .demo-shell,
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .section-head {
    display: block;
  }

  .sidebar,
  .toc {
    position: static;
  }

  .demo-table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  .lightbox {
    padding: 4.5rem .75rem 1rem;
  }

  .lightbox-image {
    max-height: calc(100vh - 12rem);
  }

  .lightbox-nav {
    top: auto;
    bottom: 1rem;
    width: 44px;
    height: 44px;
    font-size: 2rem;
    transform: none;
  }
}

@media print {
  .topbar,
  .footer,
  .sidebar,
  .actions {
    display: none;
  }

  body {
    background: white;
  }

  .band {
    padding: 1rem 0;
  }
}
