:root {
  color-scheme: dark;
  --bg: #060a12;
  --panel: #111827;
  --panel-soft: #172033;
  --text: #e5edf9;
  --muted: #9fb0c7;
  --line: rgba(148, 163, 184, 0.22);
  --accent: #38bdf8;
  --accent-2: #22c55e;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(56, 189, 248, 0.14), transparent 28%),
    linear-gradient(180deg, #0b1020 0%, var(--bg) 42%, #060a12 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img,
footer img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.brand span {
  font-weight: 800;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-entry-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-login,
.nav-register,
.nav-demo,
.primary,
.secondary {
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
}

.nav-login,
.nav-demo,
.secondary {
  border: 1px solid var(--line);
  color: var(--text);
}

.nav-register {
  background: var(--accent);
  color: #06111f;
}

.primary {
  background: var(--accent);
  color: #06111f;
}

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

.hero {
  width: 100%;
  min-height: calc(100svh - 65px);
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(560px, 1.22fr);
  align-items: center;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(42px, 7vw, 92px) 0 clamp(38px, 5vw, 70px) clamp(18px, 6vw, 92px);
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  max-width: 620px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 800;
}

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

h1 {
  margin-bottom: 16px;
  font-size: clamp(54px, 7vw, 92px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
}

.lede,
.section p,
.product-panel,
footer {
  color: var(--muted);
}

.lede {
  max-width: 680px;
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
}

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

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.hero-proof span,
.close-flow span,
.step {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(56, 189, 248, 0.08);
  color: var(--text);
  font-size: 12px;
  font-weight: 800;
}

.hero-proof span {
  padding: 8px 10px;
}

.product-screenshot,
.proof-shot {
  margin: 0;
}

.product-screenshot {
  position: relative;
  min-width: 0;
}

.product-screenshot img,
.proof-shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgba(148, 163, 184, 0.26);
  background: #070b14;
}

.hero-screenshot {
  transform: perspective(1400px) rotateY(-7deg) rotateX(2deg);
  transform-origin: left center;
  filter: drop-shadow(0 34px 70px rgba(0, 0, 0, 0.46));
}

.hero-screenshot img {
  width: min(900px, 62vw);
  max-width: none;
  border-radius: 8px 0 0 8px;
}

.hero-screenshot figcaption {
  position: absolute;
  left: clamp(18px, 3vw, 42px);
  bottom: clamp(18px, 3vw, 38px);
  display: grid;
  gap: 5px;
  max-width: 430px;
  padding: 14px 16px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(6, 10, 18, 0.76);
  color: var(--text);
  backdrop-filter: blur(10px);
}

.hero-screenshot figcaption span,
.proof-shot figcaption span {
  color: var(--muted);
}

.hero-screenshot figcaption span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-row,
.feature-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.metric-row article,
.feature-grid article,
.pricing-grid article,
.ledger-lines,
.check-list {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.46);
  padding: 16px;
}

.metric-row small,
.ledger-lines span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.metric-row strong,
.pricing-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: 24px;
}

.ledger-lines {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.ledger-lines div,
.check-list span {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.ledger-lines strong {
  color: var(--accent-2);
}

.close-flow {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.close-flow span {
  padding: 9px 8px;
  text-align: center;
}

.product-proof {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 14px;
  padding: 8px 0 56px;
}

.proof-shot {
  display: grid;
  align-content: start;
  gap: 12px;
}

.proof-shot img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left top;
  border-radius: 8px;
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.3);
  transition: transform 180ms ease, border-color 180ms ease;
}

.proof-shot:hover img {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.5);
}

.proof-shot figcaption {
  display: grid;
  gap: 4px;
  color: var(--text);
}

.proof-shot figcaption strong {
  font-size: 15px;
}

.proof-shot figcaption span {
  font-size: 14px;
  line-height: 1.4;
}

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

.section-head {
  max-width: 760px;
  margin-bottom: 24px;
}

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

.practice-grid,
.pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.regular-pricing-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

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

.workflow-grid,
.fit-grid,
.transparency-grid {
  display: grid;
  gap: 14px;
}

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

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

.fit-grid article:first-child {
  grid-column: span 2;
}

.workflow-grid article,
.fit-grid article,
.transparency-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.46);
  padding: 18px;
}

.step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 30px;
  margin-bottom: 14px;
  color: var(--accent);
}

.pricing-group-title {
  margin: 22px 0 12px;
  color: var(--text);
  font-size: 20px;
}

.feature-grid h3,
.pricing-grid h3 {
  margin-bottom: 10px;
}

.pricing-grid small {
  display: block;
  margin-top: 12px;
  color: var(--accent);
  font-weight: 700;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
  gap: 32px;
  align-items: start;
}

.check-list {
  display: grid;
  gap: 12px;
}

.check-list span::before {
  content: "✓";
  color: var(--accent-2);
  margin-right: 10px;
}

.muted-list span::before {
  content: "!";
  color: #f59e0b;
}

.pricing-grid .highlight {
  border-color: rgba(56, 189, 248, 0.55);
  background: rgba(56, 189, 248, 0.1);
}

.pricing-grid .enterprise-plan {
  border-color: rgba(34, 197, 94, 0.48);
  background: rgba(34, 197, 94, 0.08);
}

.pricing-quote {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #06111f;
  padding: 10px 12px;
  font-weight: 800;
}

.pricing-note {
  margin: 18px 0 0;
  color: var(--text);
  font-weight: 700;
}

.check-list span::before {
  content: "OK";
  font-size: 11px;
  font-weight: 800;
}

.doc-main {
  width: min(960px, calc(100% - 36px));
  margin: 0 auto;
  padding: 54px 0 72px;
}

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

.doc-hero h1 {
  font-size: clamp(42px, 7vw, 76px);
}

.doc-article {
  display: grid;
  gap: 22px;
}

.doc-section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.46);
  padding: 22px;
}

.doc-section ul {
  margin: 12px 0 0;
  padding-left: 20px;
  color: var(--muted);
}

.doc-section li + li {
  margin-top: 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.contact-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(15, 23, 42, 0.46);
}

footer {
  display: grid;
  justify-items: center;
  gap: 14px;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding: 28px;
  color: var(--muted);
}

.footer-links {
  justify-content: center;
  flex-wrap: wrap;
}

footer a {
  color: var(--accent);
  font-weight: 700;
}

footer small {
  text-align: center;
}

@media (max-width: 900px) {
  .site-nav {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .nav-entry-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-login,
  .nav-register,
  .nav-demo {
    text-align: center;
    padding: 10px 8px;
  }

  nav {
    display: none;
  }

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

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 42px 18px 24px;
  }

  .hero-screenshot {
    transform: none;
  }

  .hero-screenshot img {
    width: 100%;
    border-radius: 8px;
  }

  .hero-screenshot figcaption {
    position: static;
    margin-top: 12px;
  }

  .feature-grid,
  .practice-grid,
  .pricing-grid,
  .workflow-grid,
  .fit-grid,
  .transparency-grid,
  .metric-row,
  .contact-grid,
  .product-proof {
    grid-template-columns: 1fr;
  }

  .fit-grid article:first-child {
    grid-column: auto;
  }

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