:root {
  --paper: #f6f7f2;
  --paper-strong: #ffffff;
  --ink: #10141f;
  --ink-soft: #344054;
  --muted: #667085;
  --line: #d9dfeb;
  --line-strong: #bac6d9;
  --night: #0d1424;
  --night-2: #161b2e;
  --teal: #26877f;
  --cyan: #2aa9df;
  --blue: #315fe8;
  --red: #c83d35;
  --amber: #bf7a22;
  --green: #2c8b68;
  --plum: #6d4ac7;
  --shadow: 0 18px 48px rgba(16, 20, 31, .14);
  --shadow-strong: 0 30px 80px rgba(16, 20, 31, .24);
  --radius: 8px;
  --wrap: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(16, 20, 31, .035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 20, 31, .035) 1px, transparent 1px),
    var(--paper);
  background-size: 44px 44px;
  overflow-x: clip;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

::selection {
  color: #fff;
  background: var(--blue);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 12px;
  color: #fff;
  background: var(--night);
  border-radius: var(--radius);
  transform: translateY(-140%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding: 14px 0;
  transition: background .25s ease, border-color .25s ease, padding .25s ease;
}

.site-header.is-scrolled,
.site-header.nav-open {
  background: rgba(246, 247, 242, .92);
  border-bottom: 1px solid rgba(186, 198, 217, .65);
  backdrop-filter: blur(18px);
  padding: 10px 0;
}

.nav-shell {
  width: min(100% - 32px, 1240px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(49, 95, 232, .16);
}

.brand span {
  white-space: nowrap;
}

.hero .brand,
.hero a {
  color: #fff;
}

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

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  color: rgba(16, 20, 31, .74);
  font-size: .94rem;
  font-weight: 750;
  text-decoration: none;
  border-radius: var(--radius);
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.site-header:not(.is-scrolled):not(.nav-open) .nav-links a,
.site-header:not(.is-scrolled):not(.nav-open) .brand {
  color: rgba(255, 255, 255, .84);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--ink);
  background: rgba(255, 255, 255, .72);
}

.site-header:not(.is-scrolled):not(.nav-open) .nav-links a:hover,
.site-header:not(.is-scrolled):not(.nav-open) .nav-links a[aria-current="page"] {
  color: #fff;
  background: rgba(255, 255, 255, .14);
}

.nav-links .nav-cta {
  color: #fff;
  background: var(--ink);
}

.site-header:not(.is-scrolled):not(.nav-open) .nav-links .nav-cta {
  background: #fff;
  color: var(--ink);
}

.nav-links .nav-cta:hover {
  color: #fff;
  background: var(--blue);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  color: var(--ink);
  background: rgba(255, 255, 255, .72);
  border: 1px solid rgba(186, 198, 217, .75);
  border-radius: var(--radius);
}

.hero {
  position: relative;
  min-height: 86svh;
  display: flex;
  align-items: center;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(120deg, rgba(13, 20, 36, .98) 0%, rgba(13, 20, 36, .94) 45%, rgba(13, 20, 36, .76) 100%),
    linear-gradient(135deg, #122b2a 0%, #10141f 42%, #301f34 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 104px;
  background: linear-gradient(180deg, transparent, var(--paper));
  z-index: -1;
}

.hero-grid {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: .34;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, .10) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 85%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 132px 0 118px;
}

.eyebrow,
.kicker {
  margin: 0 0 16px;
  color: var(--teal);
  font-size: .78rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #bdeee8;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
}

.hero h1 {
  width: min(670px, 100%);
  margin: 0;
  font-size: 5.2rem;
  line-height: .96;
  letter-spacing: 0;
  font-weight: 900;
}

.hero-copy {
  width: min(650px, 100%);
  margin: 20px 0 0;
  color: rgba(255, 255, 255, .78);
  font-size: 1.13rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

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

.btn-primary {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 14px 34px rgba(49, 95, 232, .28);
}

.btn-primary:hover {
  color: #fff;
  background: #244dd2;
}

.btn-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, .92);
  border-color: rgba(255, 255, 255, .65);
}

.section .btn-secondary,
.cta-section .btn-secondary,
.page-hero .btn-secondary {
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.btn-icon {
  width: 48px;
  padding: 0;
  color: var(--ink);
  background: #fff;
  border-color: var(--line);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(680px, 100%);
  margin-top: 34px;
}

.hero-metrics div {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(16px);
}

.hero-metrics strong {
  display: block;
  font-size: 2rem;
  line-height: 1;
}

.hero-metrics span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, .68);
  font-size: .85rem;
}

.hero-visual {
  position: absolute;
  right: -230px;
  bottom: 66px;
  width: min(820px, 58vw);
  z-index: 1;
  pointer-events: none;
}

.hero-screen {
  transform: perspective(1100px) rotateY(-17deg) rotateX(4deg);
  box-shadow: 0 34px 100px rgba(0, 0, 0, .42);
}

.screen-frame {
  overflow: hidden;
  border: 1px solid rgba(186, 198, 217, .82);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .25s ease, box-shadow .25s ease;
}

.screen-frame:hover {
  box-shadow: var(--shadow-strong);
}

.screen-bar {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  color: var(--muted);
  background: #f7f9fc;
  border-bottom: 1px solid var(--line);
}

.screen-bar span,
.terminal-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e35d5b;
}

.screen-bar span:nth-child(2),
.terminal-top span:nth-child(2) {
  background: #e6a23b;
}

.screen-bar span:nth-child(3),
.terminal-top span:nth-child(3) {
  background: #31a66a;
}

.screen-bar strong {
  margin-left: 6px;
  font-size: .8rem;
  font-weight: 800;
}

.screen-frame img {
  width: 100%;
  background: #f9fbff;
}

.trust-strip {
  position: relative;
  z-index: 4;
  margin-top: -28px;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(186, 198, 217, .72);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.trust-grid div {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 54px;
  padding: 8px;
  font-size: .9rem;
  font-weight: 800;
  text-align: center;
  background: #f9fbff;
  border: 1px solid #edf0f6;
  border-radius: var(--radius);
}

.trust-grid i {
  color: var(--teal);
}

.section {
  padding: 92px 0;
}

.section-intro {
  padding-top: 118px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 48px;
  align-items: center;
}

.section-copy h2,
.section-heading h2,
.demo-copy h2,
.cta-section h2,
.page-hero h1,
.page-hero h2 {
  margin: 0;
  font-size: 3rem;
  line-height: 1.06;
  letter-spacing: 0;
  font-weight: 900;
}

.section-heading {
  width: min(760px, 100%);
  margin-bottom: 36px;
}

.lead,
.demo-copy p,
.feature-card p,
.pricing-card p,
.contact-note p {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.lead {
  margin: 0;
}

.demo-stack {
  background: var(--paper-strong);
}

.demo-section {
  padding: 96px 0;
  border-top: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(191, 122, 34, .07), transparent 36%),
    var(--paper-strong);
}

.demo-section-dark {
  color: #fff;
  background:
    linear-gradient(130deg, rgba(44, 139, 104, .26), transparent 44%),
    linear-gradient(180deg, var(--night), #141827);
}

.demo-section-warm {
  background:
    linear-gradient(120deg, rgba(200, 61, 53, .08), transparent 34%),
    linear-gradient(270deg, rgba(191, 122, 34, .12), transparent 50%),
    #fffaf2;
}

.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr);
  gap: 48px;
  align-items: center;
}

.demo-grid-flip {
  grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr);
}

.demo-copy {
  min-width: 0;
}

.demo-copy p {
  margin: 18px 0 0;
}

.demo-section-dark .demo-copy p,
.demo-section-dark .lead {
  color: rgba(255, 255, 255, .72);
}

.demo-section-dark .kicker {
  color: #bdeee8;
}

.demo-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: #fff;
  font-weight: 900;
  background: var(--ink);
  border-radius: var(--radius);
}

.demo-section-dark .demo-index {
  color: var(--ink);
  background: #fff;
}

.demo-screen {
  width: 100%;
}

.check-list {
  display: grid;
  gap: 11px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  color: var(--ink-soft);
  font-weight: 700;
  line-height: 1.45;
}

.demo-section-dark .check-list li {
  color: rgba(255, 255, 255, .78);
}

.check-list i {
  color: var(--green);
}

.mini-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.mini-stats div {
  padding: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.mini-stats strong {
  display: block;
  color: var(--blue);
  font-size: 2rem;
  line-height: 1;
}

.mini-stats span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: .88rem;
  font-weight: 750;
}

.severity-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 12px 14px;
  color: var(--red);
  background: #fde8e7;
  border: 1px solid #f5c6c3;
  border-radius: 999px;
  font-weight: 900;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 8px 10px;
  color: #354052;
  background: #eef2f7;
  border: 1px solid #e4e9f2;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
}

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

.feature-card,
.pricing-card,
.contact-note,
.form-panel,
.feature-row,
.metric-tile {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 12px 34px rgba(16, 20, 31, .08);
}

.feature-card {
  min-height: 254px;
  padding: 22px;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.feature-card i {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  color: #fff;
  background: var(--teal);
  border-radius: var(--radius);
  font-size: 1.2rem;
}

.feature-card:nth-child(2) i {
  background: var(--blue);
}

.feature-card:nth-child(3) i {
  background: var(--red);
}

.feature-card:nth-child(4) i {
  background: var(--amber);
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.feature-card p {
  margin: 0;
  font-size: .96rem;
}

.integration-section {
  color: #fff;
  background:
    linear-gradient(90deg, rgba(49, 95, 232, .18), transparent 42%),
    linear-gradient(180deg, var(--night), #171222);
}

.integration-section .kicker {
  color: #bdeee8;
}

.integration-section .lead {
  color: rgba(255, 255, 255, .72);
}

.terminal {
  overflow: hidden;
  color: #dbe8ff;
  background: #0b1020;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  box-shadow: var(--shadow-strong);
}

.terminal-top {
  height: 42px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 14px;
  background: rgba(255, 255, 255, .07);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
}

.terminal-top strong {
  margin-left: 8px;
  color: rgba(255, 255, 255, .64);
  font-size: .8rem;
}

pre {
  margin: 0;
  padding: 22px;
  overflow: auto;
  font-size: .9rem;
  line-height: 1.65;
  white-space: pre;
}

code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

.cta-section {
  padding: 88px 0;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(44, 139, 104, .28), transparent 44%),
    linear-gradient(90deg, #111827, #221a2d);
}

.cta-section .kicker {
  color: #bdeee8;
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: center;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
}

.site-footer {
  padding: 46px 0 34px;
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(280px, .9fr) auto;
  gap: 34px;
  align-items: start;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-brand-block p {
  max-width: 380px;
  margin: 14px 0 0;
  line-height: 1.6;
}

.footer-links-rich {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 24px;
  justify-content: start;
}

.footer-links-rich div {
  display: grid;
  gap: 10px;
}

.footer-links-rich strong {
  color: var(--ink);
  font-size: .82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.footer-cta {
  display: grid;
  justify-items: end;
  gap: 14px;
}

.footer-cta .btn {
  min-height: 44px;
}

.footer-links a {
  color: var(--ink-soft);
  font-weight: 800;
  text-decoration: none;
}

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

.site-footer p {
  margin: 0;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.page-hero {
  padding: 142px 0 82px;
  color: #fff;
  background:
    linear-gradient(125deg, rgba(13, 20, 36, .98), rgba(13, 20, 36, .9)),
    linear-gradient(135deg, #12312f, #241a32);
}

.page-hero .lead {
  width: min(760px, 100%);
  margin-top: 18px;
  color: rgba(255, 255, 255, .74);
}

.page-hero .kicker {
  color: #bdeee8;
}

.feature-tour {
  padding: 72px 0 96px;
}

.feature-row {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr);
  gap: 28px;
  align-items: center;
  margin-top: 22px;
  padding: 22px;
}

.feature-row:nth-child(even) {
  grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr);
}

.feature-row:nth-child(even) .feature-row-copy {
  order: 2;
}

.feature-row h2 {
  margin: 0;
  font-size: 2rem;
}

.feature-row p {
  color: var(--muted);
  line-height: 1.65;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.metric-tile {
  padding: 22px;
}

.metric-tile strong {
  display: block;
  color: var(--blue);
  font-size: 2rem;
}

.metric-tile span {
  color: var(--muted);
  font-weight: 750;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 72px 0 96px;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
}

.pricing-card.highlight {
  border-color: rgba(49, 95, 232, .45);
  box-shadow: var(--shadow);
}

.pricing-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.pricing-card .price {
  margin: 18px 0;
  color: var(--ink);
  font-size: 2.5rem;
  font-weight: 900;
}

.pricing-card ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 24px;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 8px;
  color: var(--ink-soft);
  font-weight: 700;
}

.pricing-card li i {
  color: var(--green);
}

.pricing-card .btn {
  margin-top: auto;
}

.badge {
  display: inline-flex;
  width: max-content;
  padding: 7px 10px;
  color: var(--blue);
  background: #eaf0ff;
  border: 1px solid #d7e1ff;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 900;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 28px;
  padding: 72px 0 96px;
  align-items: start;
}

.contact-note,
.form-panel {
  padding: 24px;
}

.contact-note {
  display: grid;
  gap: 16px;
}

.contact-line {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.contact-line i {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--teal);
  border-radius: var(--radius);
}

.contact-line a {
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
  overflow-wrap: anywhere;
}

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

.field {
  display: grid;
  gap: 8px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 850;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(49, 95, 232, .12);
}

.form-panel small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 1120px) {
  .hero-visual {
    right: -320px;
    width: 780px;
  }

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

@media (max-width: 920px) {
  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 16px;
    left: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px;
    background: rgba(255, 255, 255, .96);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
  }

  .nav-links.is-open {
    display: flex;
  }

  .site-header:not(.is-scrolled):not(.nav-open) .nav-links a,
  .site-header:not(.is-scrolled):not(.nav-open) .brand {
    color: var(--ink);
  }

  .site-header:not(.is-scrolled):not(.nav-open) .nav-links a:hover,
  .site-header:not(.is-scrolled):not(.nav-open) .nav-links a[aria-current="page"] {
    color: var(--ink);
    background: #f3f6fb;
  }

  .site-header:not(.is-scrolled):not(.nav-open) .nav-links .nav-cta {
    color: #fff;
    background: var(--ink);
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 118px 0 48px;
  }

  .hero h1 {
    font-size: 3.8rem;
  }

  .hero-visual {
    position: relative;
    right: auto;
    bottom: auto;
    width: min(100% - 48px, 760px);
    margin: 0 auto 72px;
  }

  .hero-screen {
    transform: none;
  }

  .two-col,
  .demo-grid,
  .demo-grid-flip,
  .feature-row,
  .feature-row:nth-child(even),
  .contact-layout,
  .cta-grid {
    grid-template-columns: 1fr;
  }

  .feature-row:nth-child(even) .feature-row-copy {
    order: 0;
  }

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

  .cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .wrap {
    width: min(100% - 32px, var(--wrap));
  }

  .brand span {
    max-width: calc(100vw - 118px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-content {
    padding-top: 104px;
  }

  .hero h1 {
    font-size: 2.72rem;
    line-height: 1.04;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .cta-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .btn-icon {
    width: 100%;
  }

  .hero-metrics,
  .trust-grid,
  .feature-grid,
  .metric-grid,
  .form-grid,
  .mini-stats {
    grid-template-columns: 1fr;
  }

  .section,
  .demo-section,
  .feature-tour,
  .pricing-grid,
  .contact-layout,
  .cta-section {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .section-intro {
    padding-top: 84px;
  }

  .section-copy h2,
  .section-heading h2,
  .demo-copy h2,
  .cta-section h2,
  .page-hero h1,
  .page-hero h2 {
    font-size: 2.1rem;
    line-height: 1.12;
  }

  .page-hero {
    padding-top: 118px;
    padding-bottom: 58px;
  }

  .feature-row {
    padding: 14px;
  }

  .screen-bar strong {
    max-width: 56%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  pre {
    font-size: .78rem;
    line-height: 1.55;
  }

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

  .footer-links,
  .footer-links-rich {
    justify-content: flex-start;
  }

  .footer-cta {
    justify-items: start;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Homepage conversion refresh */
.story-home {
  background:
    linear-gradient(90deg, rgba(16, 20, 31, .035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(16, 20, 31, .035) 1px, transparent 1px),
    #f5f7f2;
  background-size: 46px 46px;
}

.story-home .story-hero {
  min-height: auto;
  display: block;
  padding: 104px 0 72px;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(11, 16, 32, .98) 0%, rgba(11, 16, 32, .94) 48%, rgba(22, 27, 46, .78) 100%),
    linear-gradient(135deg, #0f342f 0%, #15172a 46%, #4a2533 100%);
}

.story-home .story-hero::after {
  height: 82px;
  background: linear-gradient(180deg, transparent, #f5f7f2);
}

.story-home .story-hero .hero-grid {
  opacity: .42;
  mask-image: linear-gradient(90deg, #000 0%, rgba(0, 0, 0, .66) 58%, transparent 100%);
}

.data-stream {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.data-stream span {
  position: absolute;
  left: -12%;
  width: 42%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(42, 169, 223, .75), transparent);
  animation: streamMove 8s linear infinite;
}

.data-stream span:nth-child(1) {
  top: 24%;
}

.data-stream span:nth-child(2) {
  top: 54%;
  animation-delay: -2.8s;
  background: linear-gradient(90deg, transparent, rgba(44, 139, 104, .75), transparent);
}

.data-stream span:nth-child(3) {
  top: 78%;
  animation-delay: -5.2s;
  background: linear-gradient(90deg, transparent, rgba(200, 61, 53, .62), transparent);
}

.story-home .hero-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(390px, .86fr);
  gap: 50px;
  align-items: center;
}

.story-home .hero-content {
  padding: 0;
}

.story-home .hero h1 {
  width: min(760px, 100%);
  font-size: clamp(3.2rem, 6vw, 4.55rem);
  line-height: .98;
}

.story-home .hero h1 strong {
  color: #fff;
}

.story-home .hero-copy {
  width: min(700px, 100%);
  color: rgba(255, 255, 255, .78);
}

.story-home .hero .btn-secondary {
  color: var(--ink);
}

.story-home .hero .btn-secondary:hover {
  color: var(--ink);
  background: #fff;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(700px, 100%);
  margin-top: 22px;
}

.hero-proof div {
  padding: 13px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(16px);
}

.hero-proof strong {
  display: block;
  font-size: 1.78rem;
  line-height: 1;
}

.hero-proof span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, .68);
  font-size: .84rem;
  font-weight: 750;
}

.story-home .hero-visual {
  position: relative;
  right: auto;
  bottom: auto;
  width: auto;
  margin: 0;
  padding: 0 0 58px;
  pointer-events: auto;
}

.hero-monitor {
  background: #fff;
  box-shadow: 0 34px 100px rgba(0, 0, 0, .36);
}

.shot-safe {
  position: relative;
  overflow: hidden;
  background: #edf2f8;
}

.shot-safe img,
.product-shot img,
.story-home .screen-frame img {
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center center;
}

.scan-line {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(42, 169, 223, .9), rgba(44, 139, 104, .9), transparent);
  box-shadow: 0 0 22px rgba(42, 169, 223, .56);
  animation: scanDown 4.8s ease-in-out infinite;
}

.verdict-panel {
  position: absolute;
  right: -10px;
  bottom: 0;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  width: min(430px, 88%);
  padding: 16px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  background: rgba(12, 18, 34, .88);
  box-shadow: 0 26px 70px rgba(0, 0, 0, .36);
  backdrop-filter: blur(18px);
  animation: panelFloat 5.5s ease-in-out infinite;
}

.verdict-ring {
  display: grid;
  place-items: center;
  width: 72px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(var(--red) 0 93%, rgba(255, 255, 255, .16) 93% 100%);
}

.verdict-ring span {
  display: grid;
  place-items: center;
  width: 52px;
  aspect-ratio: 1;
  color: #fff;
  background: #111827;
  border-radius: 50%;
  font-weight: 900;
}

.verdict-panel p {
  margin: 0 0 6px;
  font-weight: 900;
}

.verdict-panel small {
  display: block;
  color: rgba(255, 255, 255, .68);
  line-height: 1.45;
}

.centered {
  margin-inline: auto;
  text-align: center;
}

.story-home .section-heading.centered {
  margin-inline: auto;
}

.story-home .section-heading.centered .lead {
  margin-inline: auto;
}

.story-home .section-heading .lead {
  width: min(800px, 100%);
  margin-top: 16px;
}

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

.guide-section,
.product-section,
.faq-section {
  background: #fff;
}

.guide-grid {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(340px, .88fr);
  gap: 46px;
  align-items: center;
}

.guide-copy h2,
.plan-section h2,
.product-section h2,
.faq-section h2,
.story-cta h2 {
  margin: 0;
  font-size: 3rem;
  line-height: 1.06;
  font-weight: 900;
}

.guide-points {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

.guide-points div {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  color: var(--ink-soft);
  font-weight: 750;
  line-height: 1.5;
}

.guide-points i {
  color: var(--green);
  font-size: 1.1rem;
}

.signal-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(42, 169, 223, .08), transparent 44%),
    #f9fbff;
  box-shadow: var(--shadow);
}

.signal-card,
.signal-summary {
  padding: 18px;
  border: 1px solid #e7ecf5;
  border-radius: var(--radius);
  background: #fff;
}

.signal-card small,
.signal-summary small {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-weight: 850;
}

.signal-card strong {
  display: block;
  font-size: 2.25rem;
  line-height: 1;
  font-weight: 900;
}

.signal-card.critical strong {
  color: var(--red);
}

.signal-summary {
  grid-column: 1 / -1;
}

.signal-summary p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
}

.risk-meter {
  grid-column: 1 / -1;
  overflow: hidden;
  height: 14px;
  background: #e8edf5;
  border-radius: 999px;
}

.risk-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--amber), var(--red));
  border-radius: inherit;
  animation: meterGlow 2.6s ease-in-out infinite;
}

.plan-section {
  color: #fff;
  background:
    linear-gradient(125deg, rgba(44, 139, 104, .22), transparent 40%),
    linear-gradient(180deg, #0d1424, #171222);
}

.plan-section .kicker {
  color: #bdeee8;
}

.plan-section .lead {
  color: rgba(255, 255, 255, .72);
}

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

.plan-card {
  min-height: 250px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(18px);
}

.plan-card span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  color: var(--ink);
  background: #fff;
  border-radius: var(--radius);
  font-weight: 900;
}

.plan-card h3,
.product-copy h3 {
  margin: 0 0 12px;
  font-size: 1.32rem;
  line-height: 1.22;
}

.plan-card p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  line-height: 1.65;
}

.usecase-section {
  background:
    linear-gradient(90deg, rgba(191, 122, 34, .07), transparent 36%),
    #f5f7f2;
}

.usecase-grid {
  margin-top: 4px;
}

.product-grid {
  display: grid;
  grid-template-columns: minmax(250px, .62fr) minmax(0, 1.38fr);
  gap: 26px 34px;
  align-items: center;
}

.product-copy {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.product-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.product-shot {
  background: #fff;
}

.demo-lab {
  color: #fff;
  background:
    linear-gradient(120deg, rgba(49, 95, 232, .18), transparent 42%),
    linear-gradient(180deg, #0d1424, #131827);
}

.demo-lab .kicker {
  color: #bdeee8;
}

.demo-lab .lead {
  color: rgba(255, 255, 255, .72);
}

.demo-lab-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  gap: 26px;
  align-items: stretch;
}

.demo-form {
  padding: 22px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .96);
  box-shadow: var(--shadow-strong);
}

.code-input {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: .88rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.demo-terminal {
  min-height: 100%;
}

.demo-terminal pre {
  min-height: 476px;
  white-space: pre-wrap;
  word-break: break-word;
}

.success-section {
  padding-top: 72px;
  padding-bottom: 72px;
}

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

.stat-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 12px 34px rgba(16, 20, 31, .08);
}

.display-5 {
  font-size: 2.2rem;
  line-height: 1;
}

.fw-black {
  font-weight: 900;
}

.stat-card p {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.faq-list {
  display: grid;
  gap: 10px;
  width: min(900px, 100%);
  margin-inline: auto;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 20, 31, .06);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  padding: 16px 18px;
  color: var(--ink);
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--blue);
  font-size: 1.35rem;
  line-height: 1;
}

.faq-list details[open] summary::after {
  content: "-";
}

.faq-list p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.7;
}

.story-cta .lead {
  margin-top: 12px;
  color: rgba(255, 255, 255, .72);
}

@keyframes streamMove {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  14%,
  72% {
    opacity: 1;
  }
  100% {
    transform: translateX(290%);
    opacity: 0;
  }
}

@keyframes scanDown {
  0%,
  100% {
    transform: translateY(0);
    opacity: .18;
  }
  50% {
    transform: translateY(420px);
    opacity: .9;
  }
}

@keyframes panelFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes meterGlow {
  0%,
  100% {
    filter: saturate(1);
  }
  50% {
    filter: saturate(1.22);
  }
}

@media (max-width: 1120px) {
  .story-home .hero-shell,
  .guide-grid,
  .demo-lab-grid {
    grid-template-columns: 1fr;
  }

  .story-home .hero-visual {
    width: min(100%, 820px);
  }

  .story-home .hero h1 {
    font-size: 4.05rem;
  }

  .problem-grid,
  .plan-grid,
  .success-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .story-home .story-hero {
    padding: 106px 0 62px;
  }

  .story-home .hero h1 {
    font-size: 2.55rem;
    line-height: 1.04;
  }

  .story-home .hero-copy {
    font-size: 1rem;
  }

  .hero-proof,
  .signal-board {
    grid-template-columns: 1fr;
  }

  .story-home .hero-visual {
    padding-bottom: 0;
  }

  .verdict-panel {
    position: relative;
    right: auto;
    width: 100%;
    margin-top: 14px;
  }

  .guide-copy h2,
  .plan-section h2,
  .product-section h2,
  .faq-section h2,
  .story-cta h2 {
    font-size: 2.1rem;
    line-height: 1.12;
  }

  .product-copy,
  .plan-card,
  .stat-card,
  .demo-form {
    padding: 18px;
  }

  .form-actions {
    flex-direction: column;
  }

  .demo-terminal pre {
    min-height: 320px;
  }

  .faq-list summary {
    align-items: flex-start;
  }
}


@media (max-height: 780px) and (min-width: 921px) {
  .story-home .story-hero {
    padding-top: 92px;
    padding-bottom: 56px;
  }

  .story-home .hero h1 {
    font-size: clamp(2.95rem, 5.35vw, 4.05rem);
  }

  .story-home .hero-copy {
    font-size: 1.03rem;
    line-height: 1.48;
  }

  .hero-proof {
    margin-top: 18px;
  }

  .hero-proof div {
    padding: 11px;
  }
}


/* Expanded conversion and education sections */
.split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  gap: 28px;
  align-items: center;
}
.comparison-card,
.context-example-card {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 28px;
  padding: 28px;
  background: linear-gradient(145deg, rgba(15,23,42,.92), rgba(15,23,42,.58));
  box-shadow: 0 24px 70px rgba(0,0,0,.25);
}
.comparison-card { display: grid; gap: 18px; }
.comparison-card div,
.context-example-card {
  position: relative;
}
.comparison-card div {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255,255,255,.045);
}
.comparison-card h3,
.context-example-card h3,
.detail-card h3,
.matrix-grid h3 { margin-bottom: 10px; }
.detail-grid,
.matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.detail-card,
.matrix-grid article {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  padding: 24px;
  background: rgba(15,23,42,.68);
  box-shadow: 0 18px 60px rgba(0,0,0,.18);
}
.detail-card i {
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 16px;
  background: rgba(91,140,255,.14);
  color: var(--accent, #7dd3fc);
  font-size: 1.35rem;
}
.matrix-grid article p,
.detail-card p,
.comparison-card p,
.context-example-card p { color: rgba(226,232,240,.78); }
.context-example-card small {
  display: block;
  margin-bottom: 12px;
  color: rgba(125,211,252,.9);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 800;
}
.context-example-card code,
.context-section code,
.matrix-grid code {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(0,0,0,.28);
  color: #dbeafe;
}
.context-example-card code {
  display: block;
  margin-bottom: 16px;
  padding: 16px;
  font-size: 1rem;
}
.alt-panel-section { background: radial-gradient(circle at 20% 0%, rgba(91,140,255,.14), transparent 32%); }
.compact-matrix { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.audience-grid .detail-card { min-height: 190px; }
@media (max-width: 1100px) {
  .detail-grid,
  .matrix-grid,
  .compact-matrix { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 780px) {
  .split-grid,
  .detail-grid,
  .matrix-grid,
  .compact-matrix { grid-template-columns: 1fr; }
  .comparison-card,
  .context-example-card,
  .detail-card,
  .matrix-grid article { padding: 20px; }
}


/* Legal pages */
.legal-page .page-hero {
  padding-bottom: 66px;
}

.legal-shell {
  padding: 72px 0 96px;
}

.legal-card {
  max-width: 920px;
  padding: 34px;
  background: var(--paper-strong);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.legal-card .updated {
  margin: 0 0 28px;
  color: var(--muted);
  font-weight: 750;
}

.legal-card h2 {
  margin: 34px 0 12px;
  font-size: 1.45rem;
  line-height: 1.2;
}

.legal-card h2:first-of-type {
  margin-top: 0;
}

.legal-card p,
.legal-card li {
  color: var(--ink-soft);
  line-height: 1.75;
}

.legal-card p {
  margin: 0 0 16px;
}

.legal-card ul {
  margin: 0 0 18px 1.2rem;
  padding: 0;
}

.legal-card a {
  color: var(--blue);
  font-weight: 800;
}

.legal-callout {
  margin: 28px 0;
  padding: 18px;
  background: rgba(49, 95, 232, .07);
  border: 1px solid rgba(49, 95, 232, .18);
  border-radius: var(--radius);
}
