:root {
  --bg-dark: #010f2a;
  --bg-dark-soft: #011126;
  --surface: #ffffff;
  --surface-soft: #f6f8fc;
  --text-primary: #0b1220;
  --text-muted: #334155;
  --text-inverse: #f1f5f9;
  --brand-primary: #1f599e;
  --brand-primary-strong: #17467c;
  --brand-sky: #5ca4e6;
  --border-soft: #cbd5e1;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  color: var(--text-primary);
  background: var(--surface-soft);
}

section[id] {
  scroll-margin-top: 88px;
}

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

.hide-book-demo {
  display: none !important;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus-visible {
  position: fixed;
  left: 1rem;
  top: 1rem;
  width: auto;
  height: auto;
  padding: 0.6rem 0.9rem;
  background: #ffffff;
  color: #011126;
  border-radius: 0.6rem;
  z-index: 100;
  font-weight: 600;
}

.container {
  width: min(1485px, 100% - 2rem);
  margin: 0 auto;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(10px);
  background: #020b1a;
  border-bottom: 1px solid rgba(92, 164, 230, 0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
}

.site-nav .container.nav-inner {
  width: min(1485px, 100% - 2rem);
}

.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
}

.brand-logo {
  width: auto;
  height: 62px;
}

.brand-subscript {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.brand-subscript-text {
  font-size: 0.62rem;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff !important;
  opacity: 1;
}

.brand-powered-logo {
  width: auto;
  height: 80px;
}

.nav-links {
  display: flex;
  gap: 1.1rem;
  color: var(--text-inverse);
  font-size: 0.95rem;
}

.btn {
  border-radius: 999px;
  padding: 0.7rem 1.1rem;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:focus-visible,
a:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
  border-radius: 8px;
}

.btn-primary {
  background: var(--brand-primary);
  color: white;
}

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

.btn-outline {
  border-color: rgba(92, 164, 230, 0.7);
  color: var(--text-inverse);
  background: transparent;
}

.btn-outline:hover {
  background: rgba(92, 164, 230, 0.16);
}

.btn-soft {
  border-color: var(--border-soft);
  color: var(--text-primary);
  background: white;
}

.hero {
  background: radial-gradient(1200px 500px at 80% 10%, rgba(92, 164, 230, 0.33), transparent),
    linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-soft) 100%);
  color: #fff;
  padding: 4.5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
  align-items: center;
}

.hero-media {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.hero-media-row {
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(92, 164, 230, 0.45);
  background: rgba(1, 17, 38, 0.7);
}

.hero-media-img {
  display: block;
  width: 100%;
  height: auto;
  min-height: 200px;
  object-fit: contain;
}

.hero-media .btn {
  width: 100%;
  max-width: 100%;
  font-family: inherit;
  font-size: 0.95rem;
  line-height: 1.35;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-media-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.media-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.media-overlay.is-open {
  display: flex;
}

.media-overlay-backdrop {
  position: absolute;
  inset: 0;
  border: none;
  padding: 0;
  margin: 0;
  background: rgba(1, 17, 38, 0.82);
  cursor: pointer;
}

.media-dialog-panel {
  position: relative;
  z-index: 1;
  width: min(92vw, 960px);
  max-width: 960px;
  color: var(--text-inverse);
  border-radius: 1rem;
  border: 1px solid rgba(92, 164, 230, 0.45);
  background: var(--bg-dark-soft);
  overflow: hidden;
}

.media-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(92, 164, 230, 0.35);
}

.media-dialog-title {
  margin: 0;
  font-size: 1.1rem;
}

.media-dialog-close {
  border: 1px solid rgba(92, 164, 230, 0.55);
  background: transparent;
  color: var(--text-inverse);
  border-radius: 999px;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.media-dialog-close:hover {
  background: rgba(92, 164, 230, 0.16);
}

.media-dialog-player {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(70vh, 540px);
  background: #000;
}

.pdf-dialog-viewer {
  display: block;
  width: 100%;
  height: min(75vh, 720px);
  border: none;
  background: #fff;
}

/* @media (min-width: 961px) {
  .hero-grid:hover .hero-media {
    grid-column: 1 / -1;
    grid-row: 1;
    z-index: 5;
    transform: translateY(-2px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
  }
} */

.kicker {
  display: inline-block;
  color: var(--brand-sky);
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero h1 {
  margin: 0.8rem 0 0;
  font-size: clamp(2rem, 5vw, 3.2rem);
  line-height: 1.1;
}

.hero p {
  color: var(--text-inverse);
  max-width: 62ch;
}

.hero-micro {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: #dbeafe;
}

.row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.row-top {
  margin-top: 0.8rem;
}

.chip {
  border-radius: 999px;
  border: 1px solid rgba(92, 164, 230, 0.75);
  background: rgba(255, 255, 255, 0.12);
  padding: 0.35rem 0.8rem;
  font-size: 0.84rem;
  color: #eaf2ff;
}

.card {
  border: 1px solid var(--border-soft);
  border-radius: 1.25rem;
  background: white;
  padding: 1.4rem;
}

.proof-card {
  border-color: rgba(92, 164, 230, 0.45);
  background: rgba(1, 17, 38, 0.9);
}

.proof-card > h3,
.proof-card > p {
  color: white;
}

.proof-card > p {
  color: var(--text-inverse);
}

.doc-preview {
  border-radius: 1rem;
  border: 1px solid rgba(92, 164, 230, 0.45);
  background: rgba(255, 255, 255, 0.08);
  padding: 1rem;
}

.doc-panel {
  border-radius: 0.9rem;
  background: white;
  color: var(--text-primary);
  padding: 0.9rem;
}

.doc-meta {
  margin: 0.35rem 0;
}

.doc-panel p,
.doc-panel small,
.doc-panel strong {
  color: var(--text-primary);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.mini-step {
  border: 1px solid rgba(92, 164, 230, 0.55);
  border-radius: 0.8rem;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.14);
  color: var(--text-inverse);
  font-size: 0.9rem;
}

.trust-strip {
  background: #ffffff;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.trust-strip-inner {
  padding: 1rem 0;
  display: grid;
  gap: 0.7rem;
}

.trust-strip-title {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-primary);
}

.trust-strip-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.trust-strip-list li {
  margin: 0;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(147, 197, 253, 0.45);
  border-radius: 0.8rem;
  background: #f8fbff;
  color: var(--text-primary);
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 600;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.trust-strip-list li::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 999px;
  background: #5ca4e6;
  box-shadow: 0 0 0 4px rgba(92, 164, 230, 0.14);
  margin-top: 0.35rem;
  flex: 0 0 auto;
}

.section {
  padding: 4rem 0;
}

.section-bordered {
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
}

.section-light {
  background: #fff;
}

.section-dark {
  background: var(--bg-dark);
  color: white;
}

.section-dark .card:not(.final-cta-card) h3,
.section-dark .card:not(.final-cta-card) p,
.section-dark .card:not(.final-cta-card) li {
  color: var(--text-primary);
}

.section-dark .card {
  border-color: #bfdbfe;
}

.section-head {
  max-width: 64ch;
  margin-bottom: 2rem;
}

.section-head h2 {
  margin: 0.5rem 0 0;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  line-height: 1.2;
}

.section-title {
  margin: 0.5rem 0 0.7rem;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}

.section-head p {
  color: var(--text-muted);
}

.section-dark .section-head p {
  color: var(--text-inverse);
}

.security-slide-wrap {
  margin-top: 1.4rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(147, 197, 253, 0.45);
}

.security-slide-img {
  display: block;
  width: 100%;
  height: auto;
}

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

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

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

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

.flow-step {
  position: relative;
}

.step-num {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  margin-bottom: 0.65rem;
  background: rgba(31, 89, 158, 0.16);
  color: var(--brand-primary);
  font-weight: 700;
  font-size: 0.8rem;
}

.feature p,
.usecase p,
.security-list li {
  color: var(--text-muted);
}

.security-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.6rem;
}

.code-block {
  border-radius: 1rem;
  background: #020617;
  color: var(--brand-sky);
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.88rem;
}

.final-cta-card {
  background: #020b1a;
  border-color: rgba(147, 197, 253, 0.45);
  color: var(--text-inverse);
}

.final-cta-card h2,
.final-cta-card p {
  color: #ffffff;
}

.footer {
  background: #020b1a;
  color: var(--text-inverse);
  padding: 2.5rem 0;
}

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

.footer h4 {
  margin: 0 0 0.7rem;
  font-size: 0.95rem;
}

.footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.footer a {
  color: #dbe8ff;
}

.footer a:hover {
  color: #93c5fd;
}

.pricing-fit {
  margin: 0.2rem 0 0.45rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.footer-note {
  border-top: 1px solid rgba(92, 164, 230, 0.32);
  margin-top: 1.2rem;
  padding-top: 1.2rem;
  color: #b9c8dc;
  font-size: 0.85rem;
}

.footer-logo {
  height: 38px;
  margin-bottom: 0.5rem;
}

.footer-positioning {
  margin-top: 0.35rem;
  color: #b9c8dc;
}

@media (max-width: 960px) {
  .nav-links {
    display: none;
  }

  .trust-strip-inner {
    gap: 0.65rem;
    padding: 0.9rem 0;
  }

  .trust-strip-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .trust-strip-list li {
    font-size: 0.88rem;
    padding: 0.68rem 0.78rem;
  }

  .site-nav .row .btn-outline {
    display: none;
  }

  .brand-logo {
    height: 55px;
  }

  .brand-powered-logo {
    height: 80px;
  }

  .hero-grid,
  .grid-4,
  .grid-3,
  .grid-5,
  .split-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-media-img {
    min-height: 180px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }

  .btn:hover {
    transform: none;
  }
}

.mb-2{ margin-bottom: 0.8rem; }