:root {
  --bg: #f6fbff;
  --bg-strong: #e8f6fc;
  --surface: #ffffff;
  --surface-2: #f1f8fa;
  --ink: #07152f;
  --ink-soft: #344d67;
  --muted: #667d91;
  --line: #d6e9f2;
  --cyan: #0db5e8;
  --cyan-dark: #007db8;
  --blue: #123fc8;
  --blue-dark: #071846;
  --green: #21c7a8;
  --green-dark: #008d94;
  --navy: #06133a;
  --shadow: 0 22px 70px rgba(6, 19, 58, 0.14);
  --shadow-soft: 0 12px 35px rgba(6, 19, 58, 0.08);
  --radius: 8px;
  --radius-lg: 18px;
  --shell: min(1500px, calc(100% - 80px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  letter-spacing: 0;
}

body.nav-open {
  overflow: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font-family: inherit;
  cursor: pointer;
}

:focus-visible {
  outline: 3px solid rgba(20, 184, 212, 0.45);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-160%);
  background: var(--navy);
  color: #fff;
  padding: 10px 14px;
  border-radius: var(--radius);
}

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

.shell {
  width: var(--shell);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 251, 255, 0.88);
  border-bottom: 1px solid rgba(215, 231, 236, 0.75);
  backdrop-filter: blur(18px);
}

.site-header.has-shadow {
  box-shadow: 0 10px 30px rgba(6, 19, 58, 0.08);
}

.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 190px;
  height: 54px;
}

.brand img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  object-position: left center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--ink-soft);
}

.nav-links a {
  padding: 8px 0;
}

.nav-links a:hover {
  color: var(--cyan-dark);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
}

.nav-toggle svg,
.solution svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border-radius: var(--radius);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.btn-primary {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan-dark));
  box-shadow: 0 15px 35px rgba(0, 125, 184, 0.24);
}

.btn-primary:hover {
  box-shadow: 0 18px 40px rgba(0, 125, 184, 0.32);
}

.btn-secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.72);
  border-color: var(--line);
}

.btn-secondary:hover {
  border-color: rgba(20, 184, 212, 0.5);
  background: #fff;
}

.btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.32);
}

.btn-ghost:hover,
.btn-primary.light:hover {
  background: rgba(255, 255, 255, 0.14);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(100vh - 84px);
  display: flex;
  align-items: center;
  padding: 62px 0 72px;
}

.section-grid {
  background:
    linear-gradient(90deg, rgba(13, 181, 232, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(18, 63, 200, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 72% 24%, rgba(13, 181, 232, 0.16), transparent 28%),
    radial-gradient(circle at 24% 18%, rgba(18, 63, 200, 0.08), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(246, 251, 255, 0.96));
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 72px 0 auto;
  height: min(620px, 72vw);
  background: url("assets/autivis-monogram-color.png") center / contain no-repeat;
  opacity: 0.08;
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 42px;
  align-items: center;
}

.hero-copy {
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 18px;
  padding: 0 12px;
  border: 1px solid rgba(13, 181, 232, 0.28);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  color: var(--cyan-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-copy h1,
.section-copy h2,
.center-copy h2,
.split-section h2,
.cta-card h2 {
  margin: 0;
  color: var(--navy);
  font-weight: 800;
  line-height: 1.02;
}

.hero-copy h1 {
  max-width: 980px;
  margin: 0 auto;
  font-size: clamp(2.55rem, 3.6vw, 4.35rem);
  line-height: 1.06;
}

.hero-copy p:not(.hero-kicker) {
  max-width: 760px;
  margin: 22px auto 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.1vw, 1.12rem);
  line-height: 1.62;
}

.signal-strip {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  width: 100%;
  max-width: 1180px;
  justify-self: center;
  overflow: hidden;
  border: 1px solid rgba(162, 213, 236, 0.72);
  border-radius: var(--radius-lg);
  padding: 22px;
  background:
    linear-gradient(90deg, rgba(13, 181, 232, 0.1) 1px, transparent 1px),
    linear-gradient(rgba(18, 63, 200, 0.07) 1px, transparent 1px),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(232, 246, 252, 0.88));
  background-size: 54px 54px, 54px 54px, auto;
  box-shadow: 0 16px 50px rgba(6, 19, 58, 0.08);
}

.signal-strip::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 12% 42%, rgba(13, 181, 232, 0.18), transparent 24%),
    radial-gradient(circle at 82% 28%, rgba(18, 63, 200, 0.12), transparent 28%);
  pointer-events: none;
}

.signal-strip span {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgba(13, 181, 232, 0.2);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 800;
  text-align: center;
}

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

.proof-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 28px;
}

.proof-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(20, 184, 212, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink-soft);
  font-size: 0.86rem;
  font-weight: 700;
}

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

.dashboard {
  display: grid;
  grid-template-columns: 138px minmax(0, 1fr);
  width: 100%;
  max-width: 1040px;
  justify-self: center;
  min-height: 0;
  overflow: hidden;
  border: 1px solid rgba(172, 207, 216, 0.75);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(235, 248, 250, 0.94));
  box-shadow: var(--shadow);
}

.dash-sidebar {
  padding: 18px 12px;
  background: linear-gradient(180deg, #06133a, #082866);
  color: rgba(255, 255, 255, 0.68);
}

.dash-logo {
  display: flex;
  align-items: center;
  width: 106px;
  min-height: 48px;
  margin-bottom: 28px;
}

.dash-logo img {
  width: 100%;
  height: 32px;
  object-fit: contain;
  object-position: left center;
}

.dash-sidebar > span {
  display: block;
  padding: 9px 11px;
  margin-bottom: 6px;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 700;
}

.dash-sidebar .side-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.dash-main {
  min-width: 0;
  padding: 18px;
}

.dash-topline,
.flow-panel,
.audit-card,
.decision-card,
.metrics-card {
  border: 1px solid rgba(194, 222, 229, 0.8);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
}

.dash-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 13px 16px;
  margin-bottom: 14px;
}

.dash-topline strong {
  display: block;
  font-size: 1.08rem;
}

.dash-topline span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.status-dot {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.status-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
}

.flow-panel {
  padding: 14px;
  margin-bottom: 14px;
}

.panel-title {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.flow-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.flow-steps div {
  position: relative;
  min-height: 82px;
  padding: 12px 10px;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #f5fcfd, #eaf7f9);
  overflow: hidden;
}

.flow-steps div::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.flow-steps span {
  display: block;
  font-size: 1.35rem;
  font-weight: 800;
}

.flow-steps small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.dash-columns {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
}

.audit-card,
.decision-card,
.metrics-card {
  padding: 14px;
}

.audit-card {
  grid-row: span 2;
}

.audit-card ol {
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
}

.audit-card li {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 34px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 650;
}

.audit-card li:last-child {
  border-bottom: 0;
}

.audit-card li span {
  color: var(--cyan-dark);
  font-size: 0.74rem;
}

.donut {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  margin: 14px auto 10px;
  border-radius: 999px;
  background: conic-gradient(var(--green) 0 63%, #d8eef2 63% 100%);
}

.donut span {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  font-weight: 800;
}

.decision-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
  text-align: center;
}

.metrics-card dl {
  margin: 10px 0 0;
}

.metrics-card div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.metrics-card div:last-child {
  border-bottom: 0;
}

.metrics-card dt {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 700;
}

.metrics-card dd {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 800;
}

.section-pad {
  padding: 104px 0;
}

.section-label {
  margin: 0 0 14px;
  color: var(--cyan-dark);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-copy h2,
.center-copy h2,
.split-section h2 {
  font-size: clamp(2rem, 3.7vw, 3.8rem);
}

.section-copy p,
.center-copy p:not(.section-label),
.split-section p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.75;
}

.problem {
  padding: 84px 0;
  background: var(--surface);
}

.split-section,
.solution-layout,
.security-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.pain-grid,
.capability-grid,
.profile-grid,
.impact-grid {
  display: grid;
  gap: 14px;
}

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

.pain-grid article,
.capability-grid article,
.profile-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.pain-grid article {
  padding: 22px;
}

.line-icon {
  color: var(--cyan-dark);
  font-size: 0.78rem;
  font-weight: 800;
}

h3 {
  margin: 12px 0 8px;
  color: var(--navy);
  font-size: 1.05rem;
  line-height: 1.25;
}

article p {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.solution {
  background: linear-gradient(180deg, var(--bg), #fff);
}

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

.capability-grid article {
  padding: 24px;
  box-shadow: 0 8px 22px rgba(8, 48, 62, 0.05);
}

.capability-grid svg {
  color: var(--cyan-dark);
}

.center-copy {
  max-width: 760px;
  margin: 0 auto 46px;
  text-align: center;
}

.workflow {
  background: #092636;
  color: #fff;
}

.workflow .section-label,
.workflow h2 {
  color: #fff;
}

.workflow .center-copy p:not(.section-label) {
  color: rgba(255, 255, 255, 0.72);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  counter-reset: step;
}

.steps article {
  position: relative;
  min-height: 238px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
}

.steps article::after {
  content: "";
  position: absolute;
  top: 45px;
  right: -14px;
  width: 14px;
  height: 1px;
  background: rgba(255, 255, 255, 0.24);
}

.steps article:last-child::after {
  display: none;
}

.steps span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan-dark));
  font-weight: 800;
}

.steps h3 {
  color: #fff;
  margin-top: 24px;
}

.steps p {
  color: rgba(255, 255, 255, 0.72);
}

.benefits {
  background: var(--surface);
}

.compact {
  max-width: 720px;
}

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

.profile-grid article {
  padding: 24px;
  min-height: 180px;
  background: linear-gradient(180deg, #fff, #f5fbfc);
}

.security {
  background: var(--bg-strong);
}

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

.security-list div {
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid rgba(184, 215, 223, 0.82);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.76);
}

.security-list strong {
  color: var(--navy);
}

.security-list span {
  color: var(--ink-soft);
  line-height: 1.55;
}

.impact {
  background: var(--surface);
}

.impact-head {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.55fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 42px;
}

.impact-head h2 {
  max-width: 900px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.1rem, 3.6vw, 4.2rem);
  line-height: 1.03;
}

.impact-head > p {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.7;
}

.impact-grid {
  grid-template-columns: 1.05fr 0.95fr 1.05fr;
}

.impact-grid article {
  position: relative;
  display: grid;
  align-content: space-between;
  min-height: 260px;
  padding: 28px;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(13, 181, 232, 0.12), transparent 48%),
    linear-gradient(180deg, #ffffff, #f3fbfc);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 16px 45px rgba(8, 48, 62, 0.06);
}

.impact-grid article::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  opacity: 0.9;
}

.impact-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 28px;
  border-radius: var(--radius);
  color: var(--cyan-dark);
  background: rgba(20, 184, 212, 0.12);
}

.impact-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.impact-grid strong {
  color: var(--cyan-dark);
  font-size: clamp(2.8rem, 5vw, 4.7rem);
  line-height: 1;
}

.impact-grid strong small {
  display: block;
  margin-top: 8px;
  font-size: 0.92rem;
  line-height: 1.25;
  color: var(--navy);
}

.impact-grid span {
  color: var(--ink-soft);
  font-weight: 700;
  line-height: 1.45;
}

.impact-grid article > span:not(.impact-icon) {
  max-width: 280px;
  margin-top: 14px;
  color: var(--navy);
  font-size: 1.08rem;
}

.impact-grid small {
  max-width: 310px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.final-cta {
  padding: 32px 0 104px;
  background: var(--surface);
}

.cta-card {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: center;
  padding: 46px;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(13, 181, 232, 0.22), transparent 36%),
    linear-gradient(135deg, #06133a, #082866);
  color: #fff;
  box-shadow: var(--shadow);
}

.cta-card h2 {
  color: #fff;
  font-size: clamp(2rem, 3.3vw, 3.3rem);
}

.cta-card p {
  max-width: 650px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

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

.btn-primary.light {
  color: var(--navy);
  background: #fff;
  box-shadow: none;
}

.demo-modal[hidden] {
  display: none;
}

.demo-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  align-items: start;
  justify-items: center;
  padding: 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.demo-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(4, 18, 26, 0.72);
  backdrop-filter: blur(10px);
}

.demo-panel {
  position: relative;
  width: min(1340px, 100%);
  min-height: 0;
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 32px 100px rgba(2, 12, 18, 0.38);
}

.demo-intro {
  display: grid;
  align-content: center;
  gap: 130px;
  padding: 58px 48px;
  color: #fff;
  background:
    radial-gradient(circle at 20% 20%, rgba(13, 181, 232, 0.28), transparent 34%),
    linear-gradient(145deg, rgba(18, 63, 200, 0.24), transparent 48%),
    linear-gradient(160deg, #06133a, #082866 58%, #007db8);
}

.demo-intro img {
  width: 230px;
  height: auto;
}

.demo-intro h2 {
  margin: 0 0 24px;
  font-size: clamp(2rem, 3.4vw, 3.3rem);
  line-height: 1.05;
}

.demo-intro p {
  max-width: 560px;
  margin: 0 0 28px;
  font-size: 1.24rem;
  line-height: 1.65;
}

.demo-intro p:last-child {
  margin-bottom: 0;
  font-size: 1.05rem;
}

.demo-form {
  position: relative;
  display: grid;
  gap: 22px;
  padding: 54px 48px 48px;
  min-height: 0;
}

.demo-form h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 2rem;
  line-height: 1.1;
}

.modal-close {
  position: absolute;
  top: 32px;
  right: 34px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: var(--radius);
  color: #8a98a1;
  background: transparent;
}

.modal-close:hover {
  color: var(--navy);
  background: var(--surface-2);
}

.modal-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.demo-form label {
  display: block;
  color: var(--navy);
  font-size: 1rem;
  font-weight: 700;
}

.demo-form label span {
  color: #e23333;
}

.demo-form input {
  width: 100%;
  min-height: 60px;
  margin-top: 9px;
  border: 1px solid #cbd7de;
  border-radius: var(--radius);
  padding: 0 18px;
  color: var(--navy);
  background: #fff;
  font: inherit;
  font-size: 1rem;
  outline: none;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.demo-form input::placeholder {
  color: #7b8790;
}

.demo-form input:focus {
  border-color: var(--cyan-dark);
  box-shadow: 0 0 0 4px rgba(20, 184, 212, 0.15);
}

.honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.demo-submit[disabled] {
  cursor: wait;
  opacity: 0.72;
}

.form-status {
  min-height: 22px;
  margin: -2px 0 -8px;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.45;
}

.form-status[data-state="success"] {
  color: #047857;
}

.form-status[data-state="error"] {
  color: #b42318;
}

.demo-submit {
  width: 100%;
  min-height: 58px;
  margin-top: 12px;
  font-size: 1rem;
}

.form-note {
  margin: -8px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
}

.footer {
  padding: 54px 0;
  background: #050f2f;
  color: rgba(255, 255, 255, 0.72);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.8fr 1fr;
  gap: 34px;
}

.footer .brand {
  width: 210px;
  height: 62px;
}

.footer p {
  max-width: 360px;
  line-height: 1.65;
}

.footer h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 0.82rem;
  text-transform: uppercase;
}

.footer a,
.footer span {
  display: block;
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.72);
}

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

@media (max-width: 1040px) {
  .split-section,
  .solution-layout,
  .security-layout {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 38px;
  }

  .hero-copy {
    max-width: 860px;
  }

  .hero-copy h1 {
    max-width: 860px;
  }

  .hero-copy p {
    max-width: 720px;
  }

  .pain-grid,
  .steps,
  .profile-grid,
  .signal-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .impact-head,
  .impact-grid {
    grid-template-columns: 1fr;
  }

  .demo-panel {
    grid-template-columns: 1fr;
  }

  .demo-intro {
    gap: 34px;
    padding: 38px 34px;
  }

  .demo-intro p {
    max-width: 760px;
  }

  .steps article::after {
    display: none;
  }

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

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

  .nav-links {
    position: fixed;
    left: 20px;
    right: 20px;
    top: 86px;
    display: grid;
    gap: 4px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 13px 12px;
    border-radius: var(--radius);
  }

  .nav-links a:hover {
    background: var(--surface-2);
  }

  .nav-cta {
    display: none;
  }

  .hero {
    padding: 58px 0 56px;
    min-height: auto;
  }

  .dashboard {
    grid-template-columns: 138px minmax(0, 1fr);
    min-height: auto;
  }

  .dash-sidebar {
    display: block;
  }

  .dash-columns {
    grid-template-columns: 1.2fr 0.8fr;
  }

  .audit-card {
    grid-row: span 2;
  }

  .flow-steps,
  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section-pad {
    padding: 72px 0;
  }

  .problem {
    padding: 68px 0;
  }

  .cta-card {
    align-items: flex-start;
    flex-direction: column;
    padding: 34px 24px;
  }

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

  .demo-modal {
    padding: 14px;
    align-items: start;
    overflow-y: auto;
  }

  .demo-panel {
    max-height: none;
    margin: 18px 0;
  }

  .demo-form {
    padding: 34px 22px 28px;
  }

  .modal-close {
    top: 18px;
    right: 18px;
  }
}

@media (max-width: 620px) {
  :root {
    --shell: min(100% - 28px, 1180px);
  }

  .nav {
    min-height: 68px;
  }

  .brand {
    width: 164px;
    height: 46px;
  }

  .hero {
    padding: 36px 0 46px;
  }

  .hero::after {
    inset: 54px -90px auto;
    height: 440px;
    opacity: 0.065;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-kicker {
    min-height: 30px;
    margin-bottom: 14px;
    font-size: 0.72rem;
  }

  .hero-copy h1 {
    font-size: 2.05rem;
    line-height: 1.08;
  }

  .hero-copy p:not(.hero-kicker) {
    margin-top: 16px;
    font-size: 0.96rem;
    line-height: 1.55;
  }

  .hero-actions,
  .cta-actions {
    display: grid;
    width: 100%;
  }

  .btn {
    width: 100%;
  }

  .proof-strip {
    display: flex;
    gap: 6px;
    margin-top: 16px;
  }

  .proof-strip span {
    flex: 1 1 0;
    justify-content: center;
    min-height: 30px;
    padding: 0 6px;
    font-size: 0.66rem;
    text-align: center;
  }

  .hero-visual {
    order: 2;
    width: 100%;
    height: 210px;
    overflow: hidden;
    padding: 0;
    border-radius: 14px;
  }

  .signal-strip {
    order: 3;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 14px;
    border-radius: var(--radius);
  }

  .signal-strip span {
    min-height: 58px;
    padding: 10px 8px;
    font-size: 0.78rem;
  }

  .dashboard {
    width: 1040px;
    max-width: none;
    justify-self: start;
    transform: scale(0.333);
    transform-origin: top left;
    margin-bottom: -480px;
    border-radius: 14px;
    box-shadow: 0 18px 45px rgba(6, 19, 58, 0.14);
  }

  .flow-steps {
    grid-template-columns: repeat(4, 1fr);
  }

  .dash-main {
    background: transparent;
  }

  .pain-grid,
  .capability-grid,
  .steps,
  .profile-grid,
  .impact-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .security-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .section-copy h2,
  .center-copy h2,
  .split-section h2,
  .cta-card h2 {
    font-size: 2rem;
  }

  .steps article,
  .profile-grid article,
  .impact-grid article {
    min-height: auto;
  }

  .demo-intro {
    padding: 30px 22px;
  }

  .demo-intro img {
    width: 142px;
  }

  .demo-intro p {
    font-size: 1rem;
  }

  .demo-form input {
    min-height: 54px;
  }
}

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