@import "./design-tokens.css";

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

section[id],
.legal-block {
  scroll-margin-top: calc(var(--header-height) + 18px);
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

.page-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-red), var(--ink));
  opacity: 0;
  pointer-events: none;
  transform: scaleX(0);
  transform-origin: left center;
  transition:
    opacity 160ms ease,
    transform 280ms ease;
}

.page-progress.htmx-request,
.htmx-request .page-progress {
  opacity: 1;
  transform: scaleX(0.82);
}

main[tabindex="-1"]:focus {
  outline: none;
}

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

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

button,
input,
textarea {
  font: inherit;
}

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

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  color: var(--muted);
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--header-height);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(223, 227, 232, 0.86);
  backdrop-filter: blur(18px);
  transition:
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.site-header.is-scrolled {
  border-color: rgba(5, 5, 5, 0.08);
  box-shadow: 0 12px 30px rgba(5, 5, 5, 0.08);
}

.nav-shell {
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  width: 190px;
  flex: 0 0 auto;
}

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

.site-nav a {
  border-radius: 8px;
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 700;
  padding: 10px 13px;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  background: var(--surface);
  color: var(--brand-red);
}

.site-nav .nav-cta {
  margin-left: 8px;
  background: var(--ink);
  color: var(--paper);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  background: var(--brand-red);
  color: var(--paper);
}

.language-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
  padding-left: 8px;
}

.language-picker__label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.language-picker select {
  min-width: 70px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 850;
  padding: 0 30px 0 10px;
  cursor: pointer;
}

.language-picker select:hover,
.language-picker select:focus-visible {
  border-color: var(--brand-red);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle__line {
  width: 20px;
  height: 2px;
  overflow: hidden;
  background: var(--ink);
  border-radius: 999px;
  font-size: 0;
  transition:
    transform 160ms ease,
    opacity 160ms ease;
}

body.nav-open .nav-toggle__line:first-child {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle__line:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle__line:last-child {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 58px 0 44px;
  background: var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 35vw;
  height: 100%;
  min-width: 280px;
  background: var(--brand-red);
  clip-path: polygon(36% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.06;
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: 24px;
  right: 0;
  bottom: 24px;
  width: 32vw;
  min-width: 260px;
  background: var(--brand-red-soft);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(320px, 0.72fr);
  align-items: center;
  gap: 58px;
}

.hero__copy {
  max-width: 690px;
}

.eyebrow {
  margin-bottom: 14px;
  color: var(--brand-red);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.eyebrow--light {
  color: #ffccd6;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  color: var(--ink);
  font-size: 3.6rem;
  line-height: 1.02;
  font-weight: 900;
}

h2 {
  margin-bottom: 18px;
  color: var(--ink);
  font-size: 2.35rem;
  line-height: 1.08;
  font-weight: 900;
}

h3 {
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.2;
  font-weight: 850;
}

.hero__lead {
  max-width: 620px;
  margin-bottom: 28px;
  color: #3f4650;
  font-size: 1.15rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 850;
  line-height: 1.15;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease,
    color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button--primary {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: var(--paper);
}

.button--primary:hover,
.button--primary:focus-visible {
  background: var(--brand-red-dark);
  border-color: var(--brand-red-dark);
}

.button--secondary {
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}

.button--secondary:hover,
.button--secondary:focus-visible {
  border-color: var(--ink);
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 520px;
  margin: 0;
}

.hero__metrics div {
  min-width: 0;
  border-left: 3px solid var(--brand-red);
  background: var(--surface);
  border-radius: 8px;
  padding: 14px 16px;
}

.metric-value {
  display: block;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
}

.metric-label {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.9rem;
}

.hero__visual {
  justify-self: end;
  width: 100%;
  max-width: 430px;
}

.server-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 5px solid var(--brand-red);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: var(--shadow);
  color: var(--paper);
  isolation: isolate;
}

.server-panel::before {
  content: "";
  position: absolute;
  right: -58px;
  bottom: -76px;
  width: 250px;
  height: 250px;
  background: url("../img/siteserver-new-logo-icon.png") center / contain no-repeat;
  opacity: 0.12;
  z-index: -1;
}

.server-panel__top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.server-panel__top img {
  width: 34px;
  height: 34px;
}

.server-panel__top span {
  color: var(--paper);
  font-weight: 850;
}

.server-panel__top .panel-status {
  margin-left: auto;
  border: 1px solid rgba(29, 141, 112, 0.42);
  border-radius: 8px;
  background: rgba(29, 141, 112, 0.16);
  color: #8ee2cc;
  font-size: 0.78rem;
  padding: 5px 8px;
}

.server-panel__screen {
  margin: 22px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: #111316;
  padding: 18px;
}

.screen-row {
  height: 10px;
  width: 74%;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #2c3036;
}

.screen-row:last-child {
  margin-bottom: 0;
}

.screen-row--wide {
  width: 100%;
  background: var(--brand-red);
}

.screen-row--short {
  width: 48%;
}

.rack-list {
  display: grid;
  gap: 10px;
  padding: 0 20px 22px;
}

.rack-row {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 10px 12px;
}

.rack-row span:not(.rack-led) {
  color: var(--muted-dark);
}

.rack-row strong {
  color: var(--paper);
  font-size: 0.9rem;
}

.rack-led {
  width: 10px;
  height: 10px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--ok);
  color: transparent;
  font-size: 0;
  box-shadow: 0 0 0 4px rgba(29, 141, 112, 0.18);
}

.proof-strip {
  background: var(--ink);
  color: var(--paper);
}

.proof-strip__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.proof-strip p {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: center;
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-weight: 800;
  text-align: center;
}

.section {
  padding: 78px 0;
  background: var(--paper);
}

.section:nth-of-type(odd):not(.section--ink) {
  background: var(--surface);
}

.section-head {
  max-width: 720px;
  margin-bottom: 34px;
}

.section-head p:last-child {
  max-width: 640px;
  margin-bottom: 0;
  font-size: 1.05rem;
}

.section-head--narrow {
  max-width: 600px;
  margin-bottom: 0;
}

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

.service-card {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 24px;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(217, 0, 43, 0.32);
  box-shadow: 0 16px 36px rgba(5, 5, 5, 0.08);
}

.service-card p {
  margin-bottom: 0;
}

.shield-feature {
  position: relative;
  scroll-margin-top: calc(var(--header-height) + 22px);
  margin-top: 36px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
  padding: 32px;
}

.shield-feature__brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.shield-feature .shield-feature__mark {
  flex: none;
  margin: 0;
}

.shield-feature__lockup {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.shield-feature__name {
  margin: 0;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.shield-feature__name-accent {
  color: var(--brand-red);
}

.shield-feature__badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-red-soft);
  color: var(--brand-red);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.shield-feature__descriptor {
  flex-basis: 100%;
  max-width: 760px;
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.5;
}

.shield-feature__body {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 36px;
  align-items: stretch;
}

.shield-feature__copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 420px;
}

.shield-feature__copy .shield-feature__lead {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.14;
  text-wrap: balance;
}

.shield-feature h3 {
  margin-bottom: 8px;
  font-size: 1rem;
}

.shield-feature p {
  margin-bottom: 0;
}

.shield-feature__copy > p:not(.shield-feature__lead) {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}

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

.shield-feature__panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
  padding: 18px 18px 20px;
}

.shield-feature__panel p {
  color: var(--muted);
  font-size: 0.96rem;
}

.shield-feature__checks,
.shield-feature__targets {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.shield-feature__targets {
  margin: 0 0 18px;
}

.shield-feature__checks li,
.shield-feature__targets li {
  position: relative;
  min-width: 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.45;
  padding-left: 18px;
}

.shield-feature__checks li::before,
.shield-feature__targets li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-red);
}

.shield-feature__availability {
  margin-top: 14px !important;
  color: var(--ink) !important;
  font-weight: 850;
  text-wrap: balance;
}

.service-icon {
  position: relative;
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 8px;
  background: var(--brand-red-soft);
  color: var(--brand-red);
  font-size: 0;
}

.service-icon::before,
.service-icon::after {
  content: "";
  position: absolute;
  border-radius: 2px;
  background: currentColor;
}

.service-icon--server::before {
  width: 24px;
  height: 8px;
  top: 12px;
  left: 10px;
  box-shadow: 0 12px 0 currentColor;
}

.service-icon--server::after {
  width: 4px;
  height: 4px;
  top: 14px;
  right: 13px;
  background: var(--paper);
  box-shadow: 0 12px 0 var(--paper);
}

.service-icon--move::before {
  width: 23px;
  height: 3px;
  top: 21px;
  left: 9px;
}

.service-icon--move::after {
  width: 12px;
  height: 12px;
  top: 16px;
  right: 10px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  background: transparent;
  transform: rotate(45deg);
}

.service-icon--speed::before {
  width: 22px;
  height: 22px;
  left: 11px;
  top: 11px;
  border: 4px solid currentColor;
  border-bottom-color: transparent;
  background: transparent;
  border-radius: 50%;
}

.service-icon--speed::after {
  width: 14px;
  height: 3px;
  top: 24px;
  left: 21px;
  transform: rotate(-35deg);
}

.service-icon--watch::before {
  width: 22px;
  height: 22px;
  top: 11px;
  left: 11px;
  border: 3px solid currentColor;
  background: transparent;
  border-radius: 50%;
}

.service-icon--watch::after {
  width: 4px;
  height: 12px;
  top: 16px;
  left: 20px;
  transform-origin: bottom center;
  transform: rotate(-45deg);
}

.service-icon--shield::before {
  width: 22px;
  height: 26px;
  top: 9px;
  left: 11px;
  clip-path: polygon(50% 0, 100% 18%, 88% 74%, 50% 100%, 12% 74%, 0 18%);
}

.service-icon--shield::after {
  width: 8px;
  height: 4px;
  top: 22px;
  left: 18px;
  background: var(--paper);
  transform: rotate(-45deg);
  box-shadow: 5px -4px 0 var(--paper);
}

.service-icon--support::before {
  width: 23px;
  height: 18px;
  top: 12px;
  left: 10px;
  border: 3px solid currentColor;
  background: transparent;
  border-radius: 7px;
}

.service-icon--support::after {
  width: 8px;
  height: 8px;
  left: 15px;
  bottom: 9px;
  background: var(--brand-red-soft);
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(-35deg);
}

.section--ink {
  background: var(--ink);
  color: var(--paper);
}

.section--ink h2,
.section--ink h3 {
  color: var(--paper);
}

.section--ink p {
  color: var(--muted-dark);
}

.platform-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1fr);
  gap: 58px;
  align-items: start;
}

.platform-copy {
  position: sticky;
  top: calc(var(--header-height) + 30px);
}

.platform-list {
  display: grid;
  gap: 14px;
}

.platform-item {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  padding: 22px;
}

.platform-item > span {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  background: var(--brand-red);
  color: var(--paper);
  font-weight: 900;
}

.platform-item p {
  margin-bottom: 0;
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.64fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

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

.process-steps article {
  border-top: 4px solid var(--brand-red);
  border-radius: 8px;
  background: var(--surface);
  padding: 22px;
}

.process-steps span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--brand-red);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.process-steps p {
  margin-bottom: 0;
}

.faq-section {
  background: var(--surface);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.64fr) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
}

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

.faq-list details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 0;
}

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

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

.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  color: var(--brand-red);
  font-size: 1.2rem;
  font-weight: 900;
}

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

.faq-list p {
  margin: 0;
  padding: 0 20px 20px;
}

.contact-section {
  padding: 76px 0;
  background: var(--brand-red);
  color: var(--paper);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(340px, 0.72fr);
  gap: 54px;
  align-items: start;
}

.contact-section h2 {
  max-width: 700px;
  color: var(--paper);
}

.contact-section p {
  max-width: 610px;
  color: #fff4f6;
}

.company-address {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-style: normal;
}

.company-address strong {
  color: var(--ink);
}

.company-address a {
  color: var(--brand-red);
  font-weight: 850;
}

.company-facts {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 4px 10px;
  margin: 0;
}

.company-facts dt {
  color: var(--ink-soft);
  font-weight: 900;
}

.company-facts dd {
  min-width: 0;
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.contact-copy {
  max-width: 700px;
}

.contact-details-card {
  display: grid;
  gap: 14px;
  max-width: 610px;
  margin-top: 28px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(5, 5, 5, 0.14);
  padding: 20px;
}

.contact-details-card h3 {
  margin-bottom: 0;
  color: var(--paper);
  font-size: 1.08rem;
}

.contact-details-card .company-address,
.contact-details-card .company-address strong,
.contact-details-card .company-address a,
.contact-details-card .company-facts dt,
.contact-details-card .company-facts dd,
.contact-details-card p {
  color: #fff4f6;
}

.contact-details-card .company-address a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.contact-details-card p {
  margin-bottom: 0;
}

.contact-form {
  display: grid;
  gap: 14px;
  border-radius: 8px;
  background: var(--paper);
  padding: 22px;
  box-shadow: 0 18px 42px rgba(89, 0, 18, 0.28);
}

.contact-form label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--ink);
  padding: 12px 13px;
  outline: none;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.contact-form textarea {
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  background: var(--paper);
  border-color: var(--brand-red);
  box-shadow: 0 0 0 4px rgba(217, 0, 43, 0.12);
}

.contact-form .button {
  width: 100%;
}

.legal-hero {
  position: relative;
  overflow: hidden;
  padding: 66px 0 58px;
  background: var(--paper);
}

.legal-hero::before {
  content: "";
  position: absolute;
  top: 24px;
  right: 0;
  bottom: 24px;
  width: 34vw;
  min-width: 260px;
  background: var(--brand-red-soft);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.legal-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.55fr);
  gap: 52px;
  align-items: start;
}

.legal-updated {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-weight: 800;
}

.legal-summary {
  border-top: 5px solid var(--brand-red);
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  padding: 24px;
  box-shadow: var(--shadow);
}

.legal-summary h2 {
  margin-bottom: 16px;
  color: var(--paper);
  font-size: 1.2rem;
}

.legal-summary ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.legal-summary li {
  color: var(--muted-dark);
}

.legal-section {
  background: var(--surface);
}

.legal-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 38px;
  align-items: start;
}

.legal-nav {
  position: sticky;
  top: calc(var(--header-height) + 24px);
  display: grid;
  gap: 6px;
}

.legal-nav a {
  border-radius: 8px;
  color: var(--ink-soft);
  font-weight: 800;
  padding: 10px 12px;
  transition:
    background 160ms ease,
    color 160ms ease;
}

.legal-nav a:hover,
.legal-nav a:focus-visible {
  background: var(--paper);
  color: var(--brand-red);
}

.legal-nav__home {
  margin-bottom: 10px;
  background: var(--ink);
  color: var(--paper) !important;
}

.legal-nav__home:hover,
.legal-nav__home:focus-visible {
  background: var(--brand-red) !important;
}

.legal-content {
  display: grid;
  gap: 16px;
}

.legal-block {
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand-red);
  border-radius: 8px;
  background: var(--paper);
  padding: 24px;
}

.legal-block h2 {
  margin-bottom: 14px;
  font-size: 1.45rem;
}

.legal-block p {
  margin-bottom: 14px;
}

.legal-block p:last-child {
  margin-bottom: 0;
}

.legal-block a {
  color: var(--brand-red);
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.legal-business .company-address {
  margin-bottom: 16px;
}

.legal-business .company-facts {
  margin: 16px 0;
}

.legal-business .company-address a {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.site-footer {
  padding: 28px 0 24px;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, max-content);
  gap: 22px 34px;
  align-items: start;
}

.footer-grid p {
  margin: 0;
  font-size: 0.94rem;
}

.footer-grid .footer-kicker {
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.footer-company {
  display: grid;
  gap: 8px;
  font-size: 0.9rem;
}

.footer-company__body {
  display: grid;
  grid-template-columns: minmax(160px, 0.8fr) minmax(170px, 1fr);
  gap: 16px;
  align-items: start;
}

.footer-company .company-address,
.footer-company .company-facts dd {
  color: var(--muted);
}

.footer-company .company-address {
  gap: 2px;
}

.footer-company .company-address a {
  color: var(--brand-red);
}

.footer-links {
  display: grid;
  gap: 8px;
  align-content: start;
  justify-items: start;
}

.footer-links__list {
  display: grid;
  gap: 6px;
}

.footer-links a {
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 800;
  line-height: 1.25;
  /* WCAG 2.2 SC 2.5.8: touch target ≥ 24px */
  padding-block: 4px;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--brand-red);
}

.footer-meta {
  grid-column: 1 / -1;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  text-align: left;
}

@media (max-width: 980px) {
  .hero {
    padding-top: 44px;
  }

  h1 {
    font-size: 3rem;
  }

  .hero__grid,
  .shield-feature__body,
  .platform-grid,
  .process-layout,
  .faq-layout,
  .legal-hero__grid,
  .legal-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .hero__copy,
  .section-head,
  .section-head--narrow {
    max-width: none;
  }

  .hero__visual {
    justify-self: stretch;
    max-width: none;
  }

  .server-panel {
    max-width: 600px;
  }

  .platform-copy {
    position: static;
  }

  .legal-nav {
    position: static;
  }

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

  .footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(180px, auto);
    gap: 20px 28px;
  }

  .footer-company__body {
    grid-template-columns: minmax(180px, 0.7fr) minmax(220px, 1fr);
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 880px) {
  body.nav-open::before {
    content: "";
    position: fixed;
    inset: var(--header-height) 0 0;
    z-index: 35;
    background: rgba(5, 5, 5, 0.18);
  }

  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 8px);
    right: 14px;
    left: 14px;
    z-index: 60;
    display: grid;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 18px 42px rgba(5, 5, 5, 0.16);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition:
      opacity 160ms ease,
      transform 160ms ease;
  }

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

  .site-nav a {
    padding: 12px;
  }

  .site-nav .nav-cta {
    margin-left: 0;
    text-align: center;
  }

  .language-picker {
    justify-content: space-between;
    width: 100%;
    margin-left: 0;
    padding: 8px 12px 0;
  }

  .language-picker select {
    min-width: 84px;
  }
}

@media (max-width: 760px) {
  :root {
    --header-height: 68px;
  }

  .container {
    width: min(100% - 28px, 1120px);
  }

  .brand {
    width: 160px;
  }

  .hero {
    padding: 34px 0 28px;
    background: var(--paper);
  }

  .hero::before {
    width: 220px;
    min-width: 220px;
    opacity: 0.05;
  }

  .hero__grid {
    gap: 26px;
  }

  h1 {
    font-size: 2.35rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero__lead {
    font-size: 1.04rem;
  }

  .hero__actions {
    margin-bottom: 18px;
  }

  .hero__actions .button {
    flex: 1 1 100%;
  }

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

  .hero__metrics div {
    padding: 10px 11px;
  }

  .metric-value {
    font-size: 1rem;
  }

  .metric-label {
    font-size: 0.82rem;
  }

  .hero__visual {
    display: none;
  }

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

  .proof-strip p {
    min-height: 58px;
    padding: 0 10px;
    font-size: 0.9rem;
  }

  .section {
    padding: 58px 0;
  }

  .service-grid,
  .process-steps {
    grid-template-columns: 1fr;
  }

  .faq-layout {
    gap: 26px;
  }

  .service-card {
    min-height: auto;
  }

  .shield-feature {
    margin-top: 24px;
    padding: 22px;
  }

  .shield-feature__body {
    gap: 22px;
  }

  .shield-feature__copy {
    max-width: none;
  }

  .shield-feature__details {
    grid-template-columns: 1fr;
  }

  .shield-feature__copy .shield-feature__lead {
    font-size: 1.4rem;
  }

  .platform-item {
    grid-template-columns: 1fr;
  }

  .contact-section {
    padding: 58px 0;
  }

  .contact-form {
    padding: 18px;
  }

  .site-footer {
    padding: 26px 0 22px;
  }

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

  .footer-company__body {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .footer-company .company-facts {
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 4px 10px;
  }

  .footer-company .company-facts dd {
    margin-bottom: 0;
  }

  .footer-links__list {
    gap: 7px;
  }

  .legal-hero {
    padding: 44px 0 40px;
  }

  .legal-summary,
  .legal-block {
    padding: 20px;
  }

  .legal-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .legal-nav a {
    flex: 0 0 auto;
    border: 1px solid var(--line);
    background: var(--paper);
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .legal-nav__home {
    margin-bottom: 0;
    background: var(--ink) !important;
    border-color: var(--ink) !important;
    color: var(--paper) !important;
  }

  .company-facts {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .company-facts dd {
    margin-bottom: 8px;
  }

  .company-facts dd:last-child {
    margin-bottom: 0;
  }
}

@media (max-width: 360px) {
  .legal-hero h1 {
    font-size: 2.1rem;
  }
}

@media (min-width: 1200px) {
  h1 {
    font-size: 4.1rem;
  }

  h2 {
    font-size: 2.65rem;
  }
}

@keyframes page-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

@keyframes page-fade-out {
  to {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@supports (view-transition-name: root) {
  @media (prefers-reduced-motion: no-preference) {
    ::view-transition-old(root) {
      animation: page-fade-out 130ms ease both;
    }

    ::view-transition-new(root) {
      animation: page-fade-in 180ms ease both;
    }
  }
}

@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;
  }
}
