/* Insec-Hydra product site — Ink / Gold / Teal, mashrabiya geometry */

:root {
  --ink: #071018;
  --navy: #0e1a24;
  --navy-2: #132230;
  --gold: #c4a35a;
  --gold-dim: #8f7538;
  --teal: #3d9b8f;
  --sand: #e6d5b8;
  --mist: #8a9aa3;
  --coral: #d45c4a;
  --line: rgba(196, 163, 90, 0.28);
  --line-strong: rgba(196, 163, 90, 0.5);
  --radius: 2px;
  --header-h: 4.25rem;
  --font-display: "Syne", "IBM Plex Sans Arabic", sans-serif;
  --font-body: "Source Sans 3", "IBM Plex Sans Arabic", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --wrap: 74rem;
}

html[lang="ar"] {
  --font-display: "IBM Plex Sans Arabic", "Syne", sans-serif;
  --font-body: "IBM Plex Sans Arabic", "Source Sans 3", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--sand);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  inset-inline-start: 1rem;
  top: -3rem;
  background: var(--gold);
  color: var(--ink);
  padding: 0.5rem 0.85rem;
  z-index: 80;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.5rem;
}

.wrap {
  width: min(100% - 2.25rem, var(--wrap));
  margin-inline: auto;
}

.panel {
  background: var(--navy);
  border: 1px solid var(--line);
  clip-path: polygon(
    14px 0,
    calc(100% - 14px) 0,
    100% 14px,
    100% calc(100% - 14px),
    calc(100% - 14px) 100%,
    14px 100%,
    0 calc(100% - 14px),
    0 14px
  );
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .pillar,
  .audience-card,
  .flow-step,
  .split-card,
  .control,
  .form-card,
  .contact-card {
    transition: border-color 0.22s ease, background 0.22s ease;
  }

  .pillar:hover,
  .audience-card:hover,
  .flow-step:hover,
  .split-card:hover,
  .control:hover {
    border-color: var(--line-strong);
    background: var(--navy-2);
  }
}

.legal-banner {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #120c0a;
  border-bottom: 1px solid rgba(212, 92, 74, 0.45);
  color: #f0c9c3;
  font-size: 0.8125rem;
  padding: 0.55rem 1rem;
  justify-content: center;
  text-align: center;
}

.legal-banner p {
  margin: 0;
  max-width: 70rem;
}

.legal-banner__mark {
  width: 0.5rem;
  height: 0.5rem;
  background: var(--coral);
  flex-shrink: 0;
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: rgba(7, 16, 24, 0.9);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--sand);
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  width: 2.25rem;
  height: 2.25rem;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-text strong {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-text small {
  color: var(--mist);
  font-size: 0.7rem;
  font-weight: 500;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.05rem;
  margin-inline-start: auto;
}

.site-nav a {
  color: var(--mist);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--sand);
  border-bottom-color: var(--gold);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-inline-start: 0.5rem;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--line);
  overflow: hidden;
}

.lang-switch a {
  color: var(--mist);
  text-decoration: none;
  padding: 0.28rem 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
}

.lang-switch a.is-active {
  background: var(--gold);
  color: var(--ink);
}

.nav-toggle {
  display: none;
  margin-inline-start: auto;
  width: 2.75rem;
  height: 2.75rem;
  background: transparent;
  border: 1px solid var(--line);
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 1.1rem;
  height: 1.5px;
  background: var(--sand);
  margin: 5px auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  clip-path: polygon(
    10px 0,
    calc(100% - 10px) 0,
    100% 10px,
    100% calc(100% - 10px),
    calc(100% - 10px) 100%,
    10px 100%,
    0 calc(100% - 10px),
    0 10px
  );
}

.btn-gold {
  background: var(--gold);
  color: var(--ink);
}

.btn-gold:hover {
  background: #d4b56e;
  color: var(--ink);
}

.btn-ghost {
  background: transparent;
  color: var(--sand);
  border-color: var(--line);
  clip-path: none;
}

.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-sm {
  padding: 0.48rem 0.9rem;
  font-size: 0.82rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

button.btn {
  font: inherit;
  font-family: var(--font-display);
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 5rem 0 4rem;
  isolation: isolate;
}

.hero-lattice {
  position: absolute;
  inset: 0;
  background-image: url("../img/lattice.svg");
  background-repeat: no-repeat;
  background-position: 92% 42%;
  background-size: min(58vw, 44rem);
  opacity: 0.7;
  pointer-events: none;
  animation: lattice-drift 32s linear infinite;
  z-index: -1;
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%, #000 100%);
}

html[dir="rtl"] .hero-lattice {
  background-position: 8% 42%;
  mask-image: linear-gradient(-90deg, transparent 0%, #000 42%, #000 100%);
}

.hero-mesh {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.35;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(196, 163, 90, 0.16) 1.1px, transparent 1.2px);
  background-size: 26px 23px;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, transparent 72%);
}

html[dir="rtl"] .hero-mesh {
  mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 72%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 78% 38%, rgba(61, 155, 143, 0.14), transparent 48%),
    linear-gradient(180deg, transparent 58%, var(--ink));
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2rem;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.hero-figure {
  display: flex;
  justify-content: center;
  align-items: center;
}

.agent-node {
  width: min(100%, 26rem);
  height: auto;
  filter: drop-shadow(0 0 28px rgba(61, 155, 143, 0.18));
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.9rem;
}

.hero h1,
.page-hero h1,
.section-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2.35rem, 5vw, 4.05rem);
  color: var(--sand);
}

html[dir="rtl"] .hero h1[lang="en"] {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: start;
}

.hero-ar-title {
  font-family: "IBM Plex Sans Arabic", sans-serif;
  font-size: clamp(1.85rem, 3.6vw, 2.8rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1.35;
  margin: 0 0 1.35rem;
}

.lede {
  color: var(--mist);
  font-size: 1.08rem;
  max-width: 42rem;
  margin: 0 0 1.1rem;
}

.lede-second {
  font-size: 1.02rem;
  margin-bottom: 1.75rem;
}

.lattice-caption {
  margin-top: 1.65rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-dim);
}

.proof {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-block: 1px solid var(--line);
}

.proof span {
  padding: 1.1rem 0.7rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
  color: var(--sand);
  border-inline-end: 1px solid var(--line);
}

.proof span:last-child {
  border-inline-end: 0;
}

.section {
  padding: 5rem 0;
}

.section-tight {
  padding-top: 0.5rem;
}

.section-muted {
  background: linear-gradient(180deg, rgba(14, 26, 36, 0.7), transparent);
}

.section-head {
  max-width: 42rem;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.45rem);
}

.section-head p {
  color: var(--mist);
  margin: 0;
}

.gold-rule {
  display: block;
  height: 1px;
  border: 0;
  width: 7.5rem;
  margin: 0 0 1.15rem;
  background: linear-gradient(90deg, var(--gold), transparent);
}

html[dir="rtl"] .gold-rule {
  background: linear-gradient(-90deg, var(--gold), transparent);
}

.audience,
.pillars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.pillars {
  grid-template-columns: repeat(3, 1fr);
}

.audience-card,
.pillar {
  padding: 1.55rem 1.35rem 1.7rem;
}

.audience-card h3,
.pillar h3 {
  font-family: var(--font-display);
  font-size: 1.18rem;
  margin: 0 0 0.55rem;
}

.audience-card p,
.pillar p {
  margin: 0;
  color: var(--mist);
  font-size: 0.97rem;
}

.pillar-key {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 0.65rem;
}

.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  counter-reset: none;
}

.flow-step {
  padding: 1.45rem 1.2rem 1.55rem;
  min-height: 100%;
}

.flow-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  margin-bottom: 0.7rem;
}

.flow-step h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 0 0 0.5rem;
}

.flow-step p {
  margin: 0;
  color: var(--mist);
  font-size: 0.95rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.split-card {
  padding: 2.1rem 1.7rem;
}

.split-card h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin: 0 0 0.75rem;
}

.split-card p {
  color: var(--mist);
  margin: 0 0 1.15rem;
}

.cta-band {
  padding: 2.5rem 0 5rem;
}

.cta-panel {
  padding: 2.5rem 2.1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  background: linear-gradient(120deg, var(--navy) 0%, #16342f 100%);
}

.cta-band h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  margin: 0 0 0.5rem;
}

.cta-band p {
  margin: 0;
  color: var(--mist);
  max-width: 38rem;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 3.6rem 0 2rem;
}

.page-hero-lattice {
  position: absolute;
  inset: 0;
  background-image: url("../img/lattice.svg");
  background-repeat: no-repeat;
  background-position: 100% 0;
  background-size: min(48vw, 32rem);
  opacity: 0.28;
  pointer-events: none;
}

html[dir="rtl"] .page-hero-lattice {
  background-position: 0 0;
}

.page-hero h1 {
  font-size: clamp(2.05rem, 4.2vw, 3.15rem);
}

.catalogue {
  display: grid;
  gap: 2.75rem;
  padding-bottom: 3.5rem;
}

.hub {
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--line);
}

.hub:last-child {
  border-bottom: 0;
}

.hub-head {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  align-items: start;
  margin-bottom: 1.15rem;
}

.hub-index {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  padding-top: 0.35rem;
}

.hub-head h2 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin: 0 0 0.45rem;
}

.hub-why {
  color: var(--mist);
  margin: 0;
  max-width: 46rem;
  font-size: 1rem;
}

.hub-note {
  color: var(--mist);
  font-size: 0.95rem;
  max-width: 46rem;
  margin: 0 0 1.25rem;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem 1.6rem;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding-inline-start: 1.1rem;
  color: var(--mist);
}

.feature-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.58rem;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--teal);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  margin: 0.35rem 0 1.5rem;
  background: rgba(14, 26, 36, 0.55);
  max-height: min(70vh, 38rem);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  text-align: start;
  padding: 0.85rem 1.05rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  background: #0c1822;
  position: sticky;
  top: 0;
  z-index: 1;
  box-shadow: 0 1px 0 var(--line);
}

tr:nth-child(even) td {
  background: rgba(7, 16, 24, 0.35);
}

td.num {
  font-family: var(--font-mono);
  color: var(--sand);
}

.tier-id {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: var(--sand);
}

.chip {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  padding: 0.18rem 0.48rem;
  border: 1px solid currentColor;
}

.chip-teal {
  color: var(--teal);
}

.chip-gold {
  color: var(--gold);
}

.yes {
  color: var(--teal);
}

.no {
  color: var(--mist);
}

.domain-block {
  margin-bottom: 0.5rem;
}

.control {
  padding: 1.25rem 1.35rem 1.35rem;
  margin-bottom: 0.8rem;
}

.control-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold);
}

.control h3 {
  font-family: var(--font-display);
  font-size: 1.08rem;
  margin: 0.3rem 0 0.45rem;
}

.control p {
  margin: 0.35rem 0 0;
  color: var(--mist);
  font-size: 0.95rem;
}

.control-proc span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-inline-end: 0.35rem;
}

.req-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.req-list li {
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--line);
  color: var(--mist);
  padding-inline-start: 1.1rem;
  position: relative;
}

.req-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 1.1rem;
  width: 0.4rem;
  height: 0.4rem;
  background: var(--gold);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

.req-list li:last-child {
  border-bottom: 0;
}

.req-card p {
  margin-bottom: 0.75rem;
}

.auth-note {
  padding: 1.7rem 1.5rem;
  border: 1px solid rgba(212, 92, 74, 0.42);
  background: #140c0c;
  margin-top: 1.75rem;
}

.auth-note-inline {
  margin-top: 1.5rem;
  margin-bottom: 2.75rem;
}

.auth-note h2 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-size: 1.2rem;
}

.auth-note p {
  margin: 0;
  color: #e8cfcb;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 1.5rem;
  padding-bottom: 4rem;
}

.contact-card,
.form-card {
  padding: 1.85rem 1.55rem 2rem;
}

.include-list {
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  counter-reset: inc;
}

.include-list li {
  counter-increment: inc;
  position: relative;
  padding-block: 0.65rem;
  padding-inline-start: 1.7rem;
  border-bottom: 1px solid var(--line);
  color: var(--mist);
  font-size: 0.95rem;
}

.include-list li::before {
  content: counter(inc, decimal-leading-zero);
  position: absolute;
  inset-inline-start: 0;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--gold);
  top: 0.8rem;
}

.contact-meta {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.25rem;
}

.contact-meta a {
  color: var(--sand);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.95rem;
}

.contact-meta a:hover {
  color: var(--gold);
}

.contact-meta span {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--mist);
  font-family: var(--font-mono);
  margin-bottom: 0.2rem;
}

.hours {
  color: var(--mist);
  font-size: 0.92rem;
  margin: 0 0 1.25rem;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 1rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.form-grid p {
  margin: 0;
}

label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

input,
textarea {
  width: 100%;
  background: var(--ink);
  border: 1px solid var(--line);
  color: var(--sand);
  font: inherit;
  padding: 0.78rem 0.85rem;
  margin-bottom: 0.95rem;
}

input:focus,
textarea:focus {
  border-color: var(--teal);
  outline: none;
}

textarea {
  min-height: 9.5rem;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

.form-note {
  color: var(--mist);
  font-size: 0.85rem;
  margin: 0.75rem 0 0;
}

.alert {
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.alert-ok {
  border: 1px solid var(--teal);
  color: #b7e4de;
  background: rgba(61, 155, 143, 0.12);
}

.alert-err {
  border: 1px solid var(--coral);
  color: #f0c9c3;
  background: rgba(212, 92, 74, 0.12);
}

.legal-stack {
  max-width: 46rem;
  padding-bottom: 4rem;
  display: grid;
  gap: 1.75rem;
}

.legal-block {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}

.legal-block:last-child {
  border-bottom: 0;
}

.legal-block h2 {
  font-family: var(--font-display);
  font-size: 1.28rem;
  margin: 0 0 0.55rem;
}

.legal-block p {
  color: var(--mist);
  margin: 0 0 0.7rem;
}

.legal-block p:last-child {
  margin-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.75rem 0 1.6rem;
  background: #050b10;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 1.75rem;
  padding-bottom: 1.9rem;
}

.brand-footer small {
  max-width: 20rem;
}

.footer-nav,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-nav a,
.footer-contact a {
  color: var(--mist);
  text-decoration: none;
  font-size: 0.92rem;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: var(--gold);
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 1.1rem;
  color: var(--mist);
  font-size: 0.8rem;
}

.footer-base p {
  margin: 0;
}

@media (max-width: 1100px) {
  .pillars,
  .flow {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 960px) {
  .hero-grid,
  .audience,
  .split,
  .contact-grid,
  .footer-grid,
  .feature-list,
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }

  .proof {
    grid-template-columns: 1fr 1fr;
  }

  .proof span:nth-child(odd) {
    border-inline-end: 1px solid var(--line);
  }

  .hero-copy {
    max-width: none;
  }
}

@media (max-width: 820px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: rgba(7, 16, 24, 0.98);
    flex-direction: column;
    padding: 1rem 1.25rem 1.25rem;
    border-bottom: 1px solid var(--line);
    gap: 0;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 0.7rem 0;
    border-bottom: 1px solid var(--line);
  }

  .header-actions .btn-sm {
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
  }

  .hero-grid,
  .audience,
  .pillars,
  .flow,
  .split,
  .contact-grid,
  .footer-grid,
  .feature-list,
  .form-grid,
  .legal-block,
  .hub-head {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 3.25rem;
    padding-bottom: 3rem;
  }

  .hero-lattice {
    opacity: 0.32;
    background-position: 100% 8%;
    mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
  }

  .hero-figure {
    order: -1;
  }

  .agent-node {
    width: min(100%, 18rem);
  }

  .section {
    padding: 3.5rem 0;
  }
}

@media (max-width: 560px) {
  .proof {
    grid-template-columns: 1fr;
  }

  .proof span {
    border-inline-end: 0;
    border-bottom: 1px solid var(--line);
    text-align: start;
  }

  .legal-banner {
    font-size: 0.75rem;
  }

  .header-inner {
    min-height: 3.75rem;
  }

  .wrap {
    width: min(100% - 1.5rem, var(--wrap));
  }
}

@keyframes lattice-drift {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-16px, 10px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-lattice,
  * {
    animation: none !important;
    transition: none !important;
  }
}
