/* =========================================================
   AML Reputacional — Design System
   Mobile-first. Dark hero, editorial light sections.
   ========================================================= */

:root {
  --bg: #f3f4f1;
  --paper: #ffffff;
  --ink: #111514;
  --muted: #606a66;
  --line: rgba(17, 21, 20, 0.12);
  --dark: #0b1110;
  --brand-start: #520ea8;
  --brand-end: #25106f;
  --brand-gradient: linear-gradient(
    135deg,
    var(--brand-start) 0%,
    var(--brand-end) 100%
  );
  --brand-solid: #520ea8;
  /* Lighter tint of the brand purple — for accents on dark backgrounds */
  --brand-accent: #a974f0;
  --radius: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 28px;
}

body {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
img {
  max-width: 100%;
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 160px clamp(24px, 5vw, 72px) 100px;
  isolation: isolate;
  background: #050807;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
  filter: saturate(0.78) brightness(0.78) contrast(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.62) 0%,
      rgba(0, 0, 0, 0.3) 44%,
      rgba(0, 0, 0, 0.56) 100%
    ),
    linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.34) 0%,
      rgba(0, 0, 0, 0.08) 40%,
      rgba(0, 0, 0, 0.78) 100%
    );
}

/* Trust bar */
.trust-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 8;
  height: 28px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: rgba(13, 14, 14, 0.92);
  color: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  white-space: nowrap;
}
.trust-track {
  display: flex;
  align-items: center;
  min-width: max-content;
}
.trust-track span {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 38px;
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}
@keyframes trustScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: absolute;
  z-index: 20;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: min(1120px, calc(100% - 28px));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  color: #ffffff;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-height: 58px;
}
.brand img {
  width: 94px;
  height: auto;
  display: block;
  transform: translateY(2px);
}

/* Text navigation stays visible at every breakpoint. */
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  font-size: 13px;
  font-weight: 500;
}
.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #ffffffd9;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 5px;
  inset-inline: 0;
  height: 1px;
  background: var(--brand-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms var(--ease);
}
.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}
.nav-links a:hover {
  color: #fff;
}

/* =========================================================
   HERO CONTENT
   ========================================================= */
.hero-content {
  position: relative;
  z-index: 5;
  width: min(1180px, 100%);
  text-align: left;
  color: #ffffff;
  animation: heroIn 0.9s var(--ease) both;
}
@keyframes heroIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* High specificity so it beats `.section-heading p` (which set a larger size) */
p.eyebrow,
.section-heading p.eyebrow {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-transform: uppercase;
}
.eyebrow.dark {
  display: inline-block;
  color: var(--brand-solid);
  background: var(--brand-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.eyebrow.light {
  color: var(--brand-accent);
}

h1 {
  max-width: 760px;
  margin: 0 0 26px;
  font-size: clamp(38px, 5vw, 66px);
  line-height: 1.05;
  text-wrap: balance;
  letter-spacing: -0.05em;
  font-weight: 500;
}

.hero-description {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(15px, 4vw, 17px);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease),
    background 0.25s var(--ease);
}
.button.primary {
  background: var(--brand-solid);
  color: #ffffff;
}
.button.primary:hover {
  background: #421086;
}
.button.secondary {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.button.secondary:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* =========================================================
   LAYOUT + SECTIONS
   ========================================================= */
.container {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
}
.section {
  position: relative;
  padding: clamp(64px, 11vw, 110px) 0;
}
.section-heading {
  max-width: 760px;
  margin-bottom: clamp(34px, 5vw, 52px);
}
.section-heading.compact {
  max-width: 820px;
}
/* Alternate alignment for editorial rhythm (large screens only) */
@media (min-width: 760px) {
  .section-heading.align-right {
    margin-left: auto;
    text-align: right;
  }
}

h2 {
  margin-bottom: 16px;
  font-size: clamp(28px, 3vw, 40px);
  text-wrap: balance;
  line-height: 1.12;
  letter-spacing: -0.04em;
  font-weight: 500;
}
h3 {
  margin-bottom: 10px;
  font-size: 19px;
  line-height: 1.18;
  letter-spacing: -0.03em;
  font-weight: 500;
}
.section-heading p {
  color: var(--muted);
  font-size: clamp(15px, 3.6vw, 17px);
  line-height: 1.6;
}

/* ---------- Solutions ---------- */
.solutions {
  position: relative;
  background:
    radial-gradient(
      70% 55% at 88% 60%,
      rgba(82, 14, 168, 0.06) 0%,
      transparent 60%
    ),
    var(--bg);
}

/* Segments — a light editorial section after the full-screen hero. */
.segments {
  position: relative;
  background:
    radial-gradient(
      70% 60% at 8% 110%,
      rgba(82, 14, 168, 0.08) 0%,
      transparent 60%
    ),
    var(--bg);
}

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid #dce0dd;
  border-radius: 5px;
  overflow: hidden;
  transition: border-color 240ms var(--ease);
}
.card:hover {
  border-color: #b2a2c6;
}

/* Landscape image at the top of the card — fills edge to edge, no border */
.card-media {
  margin: 0;
  border-bottom: 1px solid var(--line);
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    rgba(82, 14, 168, 0.1),
    rgba(37, 16, 111, 0.04)
  );
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(20px, 4.4vw, 26px);
}
.card-body p {
  color: var(--muted);
  line-height: 1.55;
  margin-bottom: 0;
}

/* ---------- Proof (dark) ---------- */
.proof {
  position: relative;
  background:
    radial-gradient(
      90% 70% at 50% -20%,
      rgba(82, 14, 168, 0.28) 0%,
      transparent 55%
    ),
    var(--dark);
  color: #ffffff;
  overflow: hidden;
}
.proof::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(80% 80% at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(
    80% 80% at 50% 30%,
    #000 0%,
    transparent 75%
  );
  pointer-events: none;
}
.proof .container {
  position: relative;
  z-index: 1;
}
.proof .section-heading p {
  color: rgba(255, 255, 255, 0.72);
}

.metrics-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.metric {
  position: relative;
  padding: clamp(24px, 6vw, 32px);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #ffffff;
  overflow: hidden;
  transition:
    transform 0.4s var(--ease),
    background 0.4s var(--ease),
    border-color 0.4s var(--ease);
}
.metric::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18%;
  width: 3px;
  height: 64%;
  background: var(--brand-gradient);
  border-radius: 3px;
  opacity: 0.85;
}
.metric strong {
  display: block;
  margin-bottom: 8px;
  font-size: clamp(30px, 6vw, 38px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.metric span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
}

/* ---------- Segments — infinite marquee of branded icons ---------- */
.segments-marquee {
  position: relative;
  margin-top: clamp(34px, 5vw, 52px);
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #520ea830 transparent;
  /* fade the edges so items enter/exit smoothly */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 6%,
    #000 94%,
    transparent
  );
}
.segments-track {
  display: flex;
  width: max-content;
  gap: 0;
  padding-block: 8px 22px;
}
.segments-marquee:hover .segments-track {
  animation-play-state: paused;
}
@keyframes segmentsScroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.segment {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: clamp(112px, 16vw, 132px);
  text-align: center;
}
.segment-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(64px, 9vw, 76px);
  height: clamp(64px, 9vw, 76px);
  border-radius: 20px;
  background: var(--brand-gradient);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(37, 16, 111, 0.26);
  transition:
    transform 0.4s var(--ease),
    box-shadow 0.4s var(--ease);
}
.segment-icon svg {
  width: 46%;
  height: 46%;
}
.segment:hover .segment-icon {
  transform: translateY(-4px);
  box-shadow: 0 22px 44px rgba(37, 16, 111, 0.4);
}
.segment-label {
  color: #2c3331;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* ---------- Contact: a single editorial layout, not a floating form card ---------- */
.contact {
  color: #fff;
  background: #111615;
  padding-block: 76px;
}
.contact .container {
  width: min(1080px, calc(100% - 48px));
}
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 36px;
}
.contact-intro h2 {
  max-width: 380px;
  font-size: clamp(28px, 2.7vw, 34px);
  line-height: 1.12;
  margin-bottom: 18px;
}
.contact-intro > p:not(.eyebrow) {
  max-width: 360px;
  color: #b9c0bc;
  font-size: 14px;
  line-height: 1.65;
  margin-bottom: 0;
}
.contact-direct {
  margin-top: 30px;
}
.contact-direct h3 {
  font-size: 12px;
  font-weight: 500;
  color: #aab4ae;
  letter-spacing: 0;
  margin-bottom: 12px;
}
.contact-channels {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 370px;
}
.contact-channels li {
  border-bottom: 1px solid #ffffff1a;
}
.contact-channels a {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding-block: 12px;
}
.channel-icon {
  color: #b9c0bc;
  display: flex;
  flex: 0 0 22px;
}
.channel-icon svg {
  width: 22px;
  height: 22px;
}
.channel-text {
  display: grid;
  gap: 3px;
  font-size: 13px;
  line-height: 1.4;
  overflow-wrap: anywhere;
  min-width: 0;
}
.channel-text strong {
  color: #aab4ae;
  font-size: 11px;
  font-weight: 400;
}
.contact-channels a:hover .channel-text {
  color: #caa3fa;
}
.contact-form {
  margin: 0;
  min-width: 0;
  border-top: 1px solid #ffffff24;
  padding-top: 28px;
}
.contact-form-heading {
  margin-bottom: 24px;
}
.contact-form-heading h3 {
  font-size: 21px;
  font-weight: 500;
  margin-bottom: 8px;
  letter-spacing: -0.025em;
}
.contact-form-heading p {
  font-size: 14px;
  color: #aab4ae;
  line-height: 1.6;
  margin: 0;
}
.contact-fields {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}
.contact-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 8px;
  color: #e3e7e4;
  font-size: 12px;
  line-height: 1.5;
}
.contact-field-full {
  grid-column: 1 / -1;
}
.field-optional {
  color: #aab4ae;
  font-weight: 400;
}
.contact-field input:not([type='radio']),
.contact-field textarea,
.interest-trigger {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid #525b56;
  border-radius: 3px;
  color: #fff;
  background: #1a201e;
  font:
    400 16px/1.4 'Helvetica Neue',
    Helvetica,
    Arial,
    sans-serif;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}
.contact-field input::placeholder,
.contact-field textarea::placeholder {
  color: #aab4ae;
  opacity: 1;
}
.contact-field textarea {
  resize: vertical;
  min-height: 88px;
}
.contact-field input:focus-visible,
.contact-field textarea:focus-visible,
.interest-trigger:focus-visible {
  outline: 2px solid #a974f0;
  outline-offset: 3px;
  border-color: #a974f0;
  background: #202724;
}
.contact-form-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 22px;
}
.contact-form-footer p {
  color: #aab4ae;
  font-size: 11px;
  line-height: 1.5;
  margin: 0;
}
.form-button {
  min-width: 184px;
  min-height: 44px;
  gap: 18px;
  background: var(--brand-solid);
  color: #fff;
  font-family: inherit;
}
.form-button svg {
  width: 18px;
  height: 18px;
}
.form-button:hover {
  background: #6422b9;
}
.contact-form {
  display: grid;
}
.contact-form-content,
.contact-success {
  grid-area: 1 / 1;
  min-width: 0;
}
.contact-form-content[hidden],
.contact-success[hidden] {
  display: none;
}
.contact-success {
  align-self: center;
  max-width: 400px;
  padding-block: 28px;
  outline: none;
  animation: heroIn 350ms var(--ease) both;
}
.contact-success-icon {
  width: 40px;
  height: 40px;
  color: #b78ae8;
  margin-bottom: 24px;
}
.contact-success [role='status'] {
  font-size: 26px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 14px;
}
.contact-success p {
  color: #b9c0bc;
  font-size: 14px;
  line-height: 1.7;
  max-width: 340px;
  margin-bottom: 24px;
}
.contact-reset {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 44px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #ffffff42;
  background: transparent;
  color: #e2d0f7;
  font:
    400 13px/1.4 'Helvetica Neue',
    Helvetica,
    Arial,
    sans-serif;
  cursor: pointer;
}
.contact-reset svg {
  width: 18px;
  height: 18px;
}
.interest-picker {
  position: relative;
}
.interest-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  list-style: none;
  cursor: pointer;
  font-size: 14px;
  color: #aab4ae;
}
.interest-trigger::-webkit-details-marker {
  display: none;
}
.interest-trigger > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.interest-trigger > svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  transition: transform 180ms ease;
}
.interest-trigger[aria-expanded='true'] > svg {
  transform: rotate(180deg);
}
.interest-picker:has(input:checked) .interest-trigger {
  color: #fff;
}
.interest-options {
  position: relative;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 10;
  border: 1px solid #525b56;
  border-radius: 3px;
  margin: 0;
  padding: 6px;
  background: #202724;
  box-shadow: 0 12px 28px #0005;
  max-height: 260px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.interest-trigger[hidden],
.interest-options[hidden] {
  display: none;
}
.interest-picker.is-ready .interest-options {
  position: absolute;
}
.interest-picker.opens-up .interest-options {
  top: auto;
  bottom: calc(100% + 6px);
}
.interest-option {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 10px;
  min-height: 42px;
  border-radius: 2px;
  font-size: 13px;
  line-height: 1.4;
  cursor: pointer;
}
.interest-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.interest-option svg {
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  opacity: 0;
  color: #d0b0f9;
}
.interest-option:has(input:checked) {
  background: #a974f01a;
}
.interest-option:has(input:checked) svg {
  opacity: 1;
}
.interest-option:hover {
  background: #ffffff0b;
}
.interest-option:focus-within {
  outline: 1px solid #a974f0;
  outline-offset: -1px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
@media (min-width: 600px) {
  .contact-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 920px) {
  .contact-form.is-complete {
    min-height: var(--submitted-height);
  }
  .contact-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(40px, 5vw, 72px);
  }
  .contact-form {
    border-top: 0;
    border-left: 1px solid #ffffff24;
    padding: 0 0 0 clamp(30px, 3vw, 44px);
  }
}
@media (max-width: 599px) {
  .contact-direct {
    margin-top: 22px;
  }
  .contact.section {
    padding-block: 56px;
  }
  .contact-channels a {
    min-height: 48px;
    padding-block: 10px;
    gap: 12px;
  }
  .channel-text {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 8px;
  }
  .contact-fields {
    gap: 18px;
  }
  .contact-form-footer {
    align-items: stretch;
    flex-direction: column-reverse;
    gap: 16px;
  }
  .form-button {
    width: 100%;
    justify-content: space-between;
  }
}

/* =========================================================
   FOOTER
   ========================================================= */
.footer {
  position: relative;
  padding: clamp(48px, 9vw, 64px) 0 28px;
  background:
    radial-gradient(
      80% 120% at 100% 0%,
      rgba(82, 14, 168, 0.45) 0%,
      transparent 55%
    ),
    linear-gradient(160deg, #25106f 0%, #190a47 60%, #12063a 100%);
  color: rgba(255, 255, 255, 0.78);
  /* Liquid-glass plate: only top & bottom edges, with a soft inner highlight */
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.06);
}
/* Bright glass glints that fade toward the sides, reinforcing the plate edges */
.footer::before,
.footer::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.55),
    transparent
  );
}
.footer::before {
  top: -1px;
}
.footer::after {
  bottom: -1px;
  opacity: 0.6;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 34px;
  align-items: start;
}
.footer-brand img {
  width: 160px;
  height: auto;
  display: block;
  margin-bottom: 20px;
}
.footer-brand p,
.footer-column p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.6;
  font-size: 14px;
}
.footer-column {
  display: grid;
  gap: 10px;
}
.footer-column h4 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.footer-column a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  transition: color 0.25s var(--ease);
}
.footer-column a:hover {
  color: var(--brand-accent);
}
.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
}

/* =========================================================
   REVEAL ON SCROLL
   ========================================================= */
.reveal-ready [data-reveal],
.reveal-ready [data-reveal-group] > * {
  opacity: 0;
  transform: translateY(26px);
  transition:
    opacity 0.7s var(--ease),
    transform 0.7s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal-ready [data-reveal].is-visible,
.reveal-ready [data-reveal-group] > .is-visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   RESPONSIVE — tablet & up
   ========================================================= */
@media (min-width: 600px) {
  .hero-description {
    font-size: 17px;
  }
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    gap: 20px;
  }
}

@media (min-width: 920px) {
  .hero {
    padding: 160px clamp(24px, 5vw, 72px) 100px;
  }
  .site-header {
    top: 58px;
    width: min(1120px, calc(100% - 96px));
    align-items: center;
    gap: 24px;
  }
  .brand {
    min-height: 0;
  }
  .brand img {
    width: 117px;
  }

  .hero-content {
    margin-top: 0;
  }
  .cards-grid {
    gap: 22px;
  }
  .metrics-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1.2fr;
    gap: 56px;
  }
}

@media (max-width: 599px) {
  .hero {
    padding: 168px 24px 80px;
    min-height: 100svh;
  }
  .hero h1 {
    font-size: clamp(32px, 8.9vw, 42px);
    line-height: 1.08;
  }
  .site-header {
    top: 52px;
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }
  .brand {
    min-height: 0;
  }
  .brand img {
    width: 100px;
  }
  .nav-links {
    width: 100%;
    justify-content: center;
    gap: clamp(16px, 5vw, 26px);
    font-size: 12px;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 28px;
  }
  .hero-actions .button {
    padding-inline: 10px;
    min-height: 48px;
    font-size: 12px;
    text-align: center;
  }
  .hero-motion {
    bottom: 24px;
  }
}

@media (max-width: 919px) {
  .byaskora-preview-back {
    position: static;
    align-self: flex-start;
    flex: 0 0 auto;
    margin-top: 8px;
    box-shadow: none;
    background: transparent;
    border-radius: 4px;
  }
  .footer-bottom {
    flex-wrap: wrap;
  }
  .contact-success {
    padding-block: 12px;
  }
}

@media (max-width: 359px) {
  .metrics-grid .metric {
    padding-inline: 14px;
  }
  .metrics-grid .metric strong {
    font-size: 20px;
  }
}

/* =========================================================
   TOUCH DEVICES — bring the hover motion to mobile
   (:hover never fires on touch, so we use scroll reveal + :active)
   ========================================================= */
@media (hover: none) {
  /* Richer reveal for the cards: rise + slight scale + soft fade-up image */
  .reveal-ready [data-reveal-group] > * {
    transform: translateY(30px) scale(0.97);
  }
  .reveal-ready [data-reveal-group] > .is-visible {
    transform: none;
  }

  .segment:active .segment-icon {
    transform: translateY(-4px);
    box-shadow: 0 22px 44px rgba(37, 16, 111, 0.4);
  }
  .button:active,
  .form-button:active {
    transform: translateY(1px) scale(0.985);
  }
}

/* =========================================================
   ACCESSIBILITY
   ========================================================= */
:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

/* Content rhythm and controlled motion. */
.container {
  width: min(1180px, calc(100% - 48px));
}
.site-header {
  width: min(1180px, calc(100% - 48px));
  align-items: center;
}
.hero-description {
  line-height: 1.65;
  text-wrap: pretty;
}
.section-heading > p:last-child {
  max-width: 620px;
  margin-bottom: 0;
}
.section-heading.align-right > p:last-child {
  margin-left: auto;
}
.card-body {
  padding: 24px 22px 28px;
}
.card-body h3 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
}
.card-body p {
  font-size: 14px;
  line-height: 1.65;
}
.card-media {
  aspect-ratio: 16 / 10;
}
.metric span {
  font-size: 13px;
  line-height: 1.5;
}
.metric strong {
  line-height: 1.15;
}
.footer {
  padding-bottom: 76px;
}
.skip-link {
  position: fixed;
  top: 10px;
  left: 16px;
  z-index: 100;
  padding: 12px 18px;
  background: #fff;
  color: var(--brand-solid);
  opacity: 0;
  pointer-events: none;
}
.skip-link:focus {
  opacity: 1;
  pointer-events: auto;
}
.segments-group {
  list-style: none;
  display: flex;
  gap: clamp(20px, 3vw, 40px);
  margin: 0;
  padding: 0 clamp(20px, 3vw, 40px) 0 0;
}
.segments-group[aria-hidden] {
  display: none;
}
.motion-enabled .segments-group[aria-hidden] {
  display: flex;
}
.motion-enabled .segments-track {
  animation: segmentsScroll 48s linear infinite;
}
.motion-enabled .trust-track {
  animation: trustScroll 34s linear infinite;
}
.motion-paused .segments-track,
.motion-paused .trust-track {
  animation-play-state: paused;
}
.trust-bar:hover .trust-track {
  animation-play-state: paused;
}
.segments-marquee:focus-within .segments-track {
  animation-play-state: paused;
}
.segments-controls {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
.motion-toggle {
  border: 0;
  border-bottom: 1px solid currentColor;
  padding: 8px 0;
  font:
    500 11px/1.4 'Helvetica Neue',
    Helvetica,
    Arial,
    sans-serif;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  min-height: 32px;
}
.motion-toggle[hidden] {
  display: none;
}
.hero-motion {
  position: absolute;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 32px;
  color: #ffffffc9;
  z-index: 5;
}
@media (min-width: 1200px) {
  .cards-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .card-body h3 {
    min-height: 2.6em;
  }
}
@media (max-width: 599px) {
  .section {
    padding-block: 64px;
  }
  .section-heading {
    margin-bottom: 32px;
  }
  .section-heading p {
    font-size: 15px;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .metric {
    padding: 22px 16px;
  }
  .metric strong {
    font-size: clamp(22px, 6vw, 30px);
  }
  .metric span {
    font-size: 12px;
  }
  .cards-grid {
    gap: 20px;
  }
  .card-media {
    aspect-ratio: 16 / 9;
  }
  .contact-grid {
    gap: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-reveal],
  .reveal-ready [data-reveal-group] > * {
    opacity: 1;
    transform: none;
  }
  .segments-group[aria-hidden] {
    display: none;
  }
  .segments-track,
  .trust-track {
    animation: none !important;
  }
}
@media print {
  .hero-video,
  .motion-toggle,
  .byaskora-preview-back {
    display: none;
  }
  .reveal-ready [data-reveal],
  .reveal-ready [data-reveal-group] > * {
    opacity: 1;
    transform: none;
  }
}
