:root {
  --bg: #070707;
  --bg-elevated: #0e0e0e;
  --bg-alt: #0b0b0b;
  --text: #f5f4f0;
  --muted: #a8a69e;
  --line: rgba(255, 255, 255, 0.1);
  --orange: #ff5a18;
  --orange-deep: #d9440a;
  --orange-soft: rgba(255, 90, 24, 0.14);
  --ok: #9fd45a;
  --deny: #ff6b6b;
  --font-display: "Syne", sans-serif;
  --font-body: "Sora", sans-serif;
  --pad-x: clamp(16px, 4.5vw, 72px);
  --max: 1120px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 70% 0%, rgba(255, 90, 24, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 40% at 10% 80%, rgba(255, 90, 24, 0.05), transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, var(--bg) 40%, #050505 100%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black 0%, transparent 70%);
}

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

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

button {
  font: inherit;
}

.network-canvas {
  position: fixed;
  inset: 0;
  z-index: -1;
  width: 100%;
  height: 100%;
  opacity: 0.45;
}

/* ——— Top bar ——— */
.topbar {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding:
    calc(12px + var(--safe-top))
    calc(var(--pad-x) + var(--safe-right))
    12px
    calc(var(--pad-x) + var(--safe-left));
  background: linear-gradient(180deg, rgba(7, 7, 7, 0.92), rgba(7, 7, 7, 0.55) 70%, transparent);
  backdrop-filter: blur(8px);
}

.brand-nav {
  display: inline-flex;
  width: min(220px, 46vw);
}

.brand-nav img {
  width: 100%;
  height: auto;
}

.auth-area {
  flex: 0 0 auto;
}

.login-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(255, 90, 24, 0.5);
  border-radius: 6px;
  color: var(--text);
  background: rgba(255, 90, 24, 0.12);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.login-chip:hover,
.login-chip:focus-visible {
  background: rgba(255, 90, 24, 0.22);
  border-color: var(--orange);
  outline: none;
  transform: translateY(-1px);
}

.login-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  animation: statusPulse 2s ease-out infinite;
}

/* ——— Hero: one full-bleed composition ——— */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100svh;
  padding: 0;
  overflow: hidden;
}

.hero-plane {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(7, 7, 7, 0.94) 0%, rgba(7, 7, 7, 0.62) 40%, rgba(7, 7, 7, 0.18) 100%),
    linear-gradient(180deg, transparent 38%, rgba(7, 7, 7, 0.96) 100%),
    radial-gradient(ellipse 65% 70% at 78% 40%, rgba(255, 90, 24, 0.2), transparent 62%);
}

/* Access scene — person → reader → Acesso liberado (dominant hero visual) */
.access-stage {
  position: absolute;
  top: 50%;
  right: 1%;
  width: min(620px, 62vw);
  transform: translateY(-52%);
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.45));
}

.access-stage--inline {
  position: relative;
  top: auto;
  right: auto;
  width: min(280px, 80%);
  margin: 0 auto;
  transform: none;
  filter: none;
}

.access-svg {
  display: block;
  width: 100%;
  height: auto;
}

/* Loop ~8.5s: approach → lock → scan → match → Acesso liberado → reset */
.person-group {
  animation: personApproach 8.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  transform-origin: 278px 360px;
}

.person-photo {
  opacity: 0.98;
}

.person-rim {
  animation: personRimPulse 8.5s ease-in-out infinite;
}

.person-halo {
  animation: personHaloPulse 8.5s ease-in-out infinite;
}

.person-scan-marks {
  opacity: 0;
  animation: personScanVisible 8.5s ease-in-out infinite;
}

.person-scan-bar,
.person-scan-wash {
  animation: personScanSweep 8.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.person-brackets {
  animation: personBracketsCycle 8.5s ease-in-out infinite;
}

/* Biometric landmarks appear during facial measurement / scan */
.bio-landmarks {
  opacity: 0;
  animation: bioLandmarksCycle 8.5s ease-in-out infinite;
}

.bio-measure-lines {
  animation: bioLinesPulse 8.5s ease-in-out infinite;
}

.bio-points .bio-pt {
  transform-box: fill-box;
  transform-origin: center;
  animation: bioPointPop 8.5s ease-in-out infinite;
}

.bio-points .bio-pt:nth-child(3n) {
  animation-delay: 0.05s;
}

.bio-points .bio-pt:nth-child(3n + 1) {
  animation-delay: 0.1s;
}

.bio-points .bio-pt:nth-child(3n + 2) {
  animation-delay: 0.15s;
}

.reader-body {
  animation: readerIdlePulse 8.5s ease-in-out infinite;
}

.reader-ring {
  animation: ringCycle 8.5s ease-in-out infinite;
}

.reader-led,
.reader-led-halo {
  animation: ledCycle 8.5s ease-in-out infinite;
}

.reader-lens,
.ir-dot {
  animation: irPulse 8.5s ease-in-out infinite;
}

.screen-brackets {
  animation: bracketsPulse 8.5s ease-in-out infinite;
}

.screen-face,
.face-oval {
  animation: ovalBreathe 8.5s ease-in-out infinite;
}

.screen-landmarks,
.face-landmarks .lm {
  animation: landmarkBlink 2.8s ease-in-out infinite;
}

.screen-landmarks .screen-measure {
  animation: bioLinesPulse 8.5s ease-in-out infinite;
}

.screen-scan .scan-bar,
.screen-scan .scan-glow,
.face-scan-beam .scan-bar {
  animation: readerScanSweep 8.5s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.screen-match {
  animation: matchConfirm 8.5s ease-in-out infinite;
}

.scan-link {
  animation: scanLinkCycle 8.5s ease-in-out infinite;
}

.scene-particles .p1 { animation: particleDrift 7s ease-in-out infinite; }
.scene-particles .p2 { animation: particleDrift 9s ease-in-out infinite 0.6s; }
.scene-particles .p3 { animation: particleDrift 8s ease-in-out infinite 1.2s; }
.scene-particles .p4 { animation: particleDrift 10s ease-in-out infinite 0.3s; }
.scene-particles .p5 { animation: particleDrift 7.5s ease-in-out infinite 1.8s; }
.scene-particles .p6 { animation: particleDrift 8.5s ease-in-out infinite 0.9s; }

.status-idle {
  animation: statusIdleCycle 8.5s ease-in-out infinite;
}

.status-scan {
  animation: statusScanCycle 8.5s ease-in-out infinite;
}

.status-ok {
  animation: statusOkCycle 8.5s ease-in-out infinite;
}

.access-stage.is-scanning .reader-body {
  stroke: rgba(255, 90, 24, 0.75);
}

.access-stage.is-scanning .reader-ring {
  stroke: rgba(255, 90, 24, 0.7);
}

.access-stage.is-granted .reader-body {
  stroke: rgba(159, 212, 90, 0.75);
}

.access-stage.is-granted .reader-ring {
  stroke: rgba(159, 212, 90, 0.75);
}

.access-stage.is-granted .reader-led {
  fill: #9fd45a;
}

.face-brackets {
  animation: bracketsPulse 3.6s ease-in-out infinite;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: calc(88px + 4vh) var(--pad-x) clamp(48px, 10vh, 96px);
  animation: riseIn 900ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-hero {
  margin: 0 0 18px;
  max-width: 14ch;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  font-weight: 800;
  line-height: 0.92;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.hero-title {
  margin: 0 0 16px;
  max-width: 18ch;
  color: var(--orange);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

.hero-lead {
  margin: 0 0 32px;
  max-width: 40ch;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  font-weight: 400;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.primary-action {
  border: 0;
  color: #120500;
  background: var(--orange);
}

.primary-action:hover,
.primary-action:focus-visible {
  background: #ff6d33;
  outline: none;
  transform: translateY(-2px);
}

.secondary-action {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.secondary-action:hover,
.secondary-action:focus-visible {
  border-color: rgba(255, 90, 24, 0.55);
  outline: none;
  transform: translateY(-2px);
}

/* ——— Sections ——— */
.section {
  position: relative;
  padding: clamp(72px, 12vh, 120px) 0;
  border-top: 1px solid var(--line);
}

.section-alt {
  background: linear-gradient(180deg, rgba(255, 90, 24, 0.03), transparent 40%),
    var(--bg-alt);
}

.section-inner {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}

.section h2 {
  margin: 0 0 16px;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
}

.section-lead {
  margin: 0;
  max-width: 54ch;
  color: var(--muted);
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.7;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
}

.split.reverse .split-copy {
  order: 2;
}

.split.reverse .visual-anchor {
  order: 1;
}

/* Module rail — editorial line, not cards */
.module-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 0;
  margin: 40px 0 0;
  padding: 28px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.module-rail li {
  position: relative;
  padding: 0 18px 0 0;
  margin-right: 18px;
  color: var(--text);
  font-family: var(--font-display);
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.module-rail li:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--orange);
  transform: translateY(-50%);
  opacity: 0.7;
}

.detail-list {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  max-width: 48ch;
}

.detail-list--wide {
  max-width: 64ch;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px 32px;
}

.detail-list li {
  position: relative;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.detail-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 8px;
  height: 2px;
  background: var(--orange);
}

/* Live feed visual */
.visual-anchor {
  min-width: 0;
}

.live-anchor {
  position: relative;
  padding: 8px 0;
}

.live-feed-strip {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
}

.live-row {
  display: grid;
  grid-template-columns: 48px 1fr 64px 72px;
  gap: 12px;
  align-items: center;
  padding: 14px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--muted);
  transition: opacity 400ms ease, transform 400ms ease;
}

.live-row:last-child {
  border-bottom: 0;
}

.live-row.is-ok .live-state {
  color: var(--ok);
}

.live-row.is-deny .live-state {
  color: var(--deny);
}

.live-row.is-entering {
  animation: rowEnter 520ms ease both;
}

.live-name {
  color: var(--text);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.live-time {
  font-variant-numeric: tabular-nums;
}

.live-method,
.live-state {
  font-weight: 600;
  text-align: right;
}

/* Credentials list — editorial, not cards */
.cred-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.cred-list li {
  display: grid;
  gap: 8px;
  padding: 28px 24px 28px 0;
  border-bottom: 1px solid var(--line);
}

.cred-list li:nth-child(even) {
  padding-left: 24px;
  border-left: 1px solid var(--line);
}

.cred-list strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--orange);
}

.cred-list span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

/* Ops / tech editorial grids */
.ops-grid,
.tech-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.ops-grid li,
.tech-list li {
  display: grid;
  gap: 10px;
  padding: 28px 28px 28px 0;
  border-bottom: 1px solid var(--line);
}

.ops-grid li:nth-child(even),
.tech-list li:nth-child(even) {
  padding-left: 28px;
  border-left: 1px solid var(--line);
}

.ops-grid strong,
.tech-list strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
}

.tech-list strong {
  color: var(--orange);
}

.ops-grid span,
.tech-list span {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Device silhouette */
.device-anchor {
  display: flex;
  justify-content: center;
}

.facial-section-anchor {
  display: flex;
  justify-content: center;
  align-items: center;
}

.device-silhouette {
  display: grid;
  justify-items: center;
  gap: 16px;
  width: min(220px, 70%);
}

.device-screen {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 3 / 4;
  border: 1px solid rgba(255, 90, 24, 0.35);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 90, 24, 0.2), transparent 55%),
    linear-gradient(160deg, #141414, #080808);
}

.scan-ring {
  position: absolute;
  width: 58%;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 90, 24, 0.55);
  border-radius: 50%;
  animation: ringExpand 3s ease-out infinite;
}

.scan-ring.delay {
  animation-delay: 1.5s;
}

.device-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* CTA */
.cta-section {
  background:
    linear-gradient(135deg, rgba(255, 90, 24, 0.12), transparent 50%),
    var(--bg-elevated);
}

.cta-inner {
  display: grid;
  justify-items: start;
  gap: 8px;
}

.cta-inner .section-lead {
  margin-bottom: 20px;
}

/* Footer */
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 28px var(--pad-x) 36px;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.875rem;
  border-top: 1px solid var(--line);
}

.footer-login-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.footer-login-link:hover,
.footer-login-link:focus-visible {
  color: var(--orange);
  outline: none;
}

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

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

/* ——— Login modal (interaction UI — cards allowed) ——— */
.login-modal[hidden] {
  display: none !important;
}

.login-modal {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding:
    calc(16px + var(--safe-top))
    calc(16px + var(--safe-right))
    calc(16px + var(--safe-bottom))
    calc(16px + var(--safe-left));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.login-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
}

.login-modal-panel {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  max-height: min(92dvh, 720px);
  overflow-y: auto;
  padding: 28px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: linear-gradient(165deg, #1a1a1a, #0c0c0c);
  animation: riseIn 380ms ease both;
}

.login-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.login-modal-close:hover,
.login-modal-close:focus-visible {
  color: var(--text);
  outline: none;
}

.login-modal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}

.login-modal-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
}

.login-modal-brand h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.login-modal-brand p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.875rem;
}

.login-form {
  display: grid;
  gap: 8px;
}

.login-form label {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.login-form input {
  width: 100%;
  min-height: 46px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-size: 16px; /* evita zoom automático no iOS */
}

.login-form input:focus {
  outline: none;
  border-color: rgba(255, 90, 24, 0.7);
  box-shadow: 0 0 0 3px rgba(255, 90, 24, 0.16);
}

.login-password-row {
  position: relative;
}

.login-password-row input {
  padding-right: 64px;
}

.login-toggle-pass {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 6px;
  padding: 8px 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}

.login-error {
  margin: 4px 0 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 80, 80, 0.35);
  border-radius: 8px;
  background: rgba(120, 20, 20, 0.35);
  color: #ffb4b4;
  font-size: 0.86rem;
}

.login-submit {
  margin-top: 12px;
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: var(--orange);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.login-submit:hover,
.login-submit:focus-visible {
  background: #ff6d33;
  outline: none;
}

.login-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

/* ——— Motion ——— */
@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes personApproach {
  0% {
    transform: translateX(-96px) scale(0.94);
    opacity: 0.28;
  }
  20% {
    transform: translateX(-18px) scale(0.99);
    opacity: 1;
  }
  26%,
  80% {
    transform: translateX(0) scale(1);
    opacity: 1;
  }
  90%,
  100% {
    transform: translateX(-96px) scale(0.94);
    opacity: 0.28;
  }
}

@keyframes personScanVisible {
  0%,
  24% {
    opacity: 0;
  }
  28%,
  56% {
    opacity: 1;
  }
  62%,
  100% {
    opacity: 0;
  }
}

@keyframes personScanSweep {
  0%,
  26% {
    transform: translateY(0);
    opacity: 0;
  }
  30% {
    opacity: 0.95;
  }
  46% {
    transform: translateY(118px);
    opacity: 1;
  }
  56% {
    transform: translateY(0);
    opacity: 0.35;
  }
  62%,
  100% {
    opacity: 0;
  }
}

@keyframes personRimPulse {
  0%,
  20% {
    stroke: rgba(255, 90, 24, 0.2);
    opacity: 0.55;
  }
  28%,
  56% {
    stroke: rgba(255, 90, 24, 0.75);
    opacity: 1;
  }
  64%,
  80% {
    stroke: rgba(159, 212, 90, 0.55);
    opacity: 0.9;
  }
  90%,
  100% {
    stroke: rgba(255, 90, 24, 0.2);
    opacity: 0.55;
  }
}

@keyframes personHaloPulse {
  0%,
  22% {
    opacity: 0.35;
  }
  30%,
  55% {
    opacity: 1;
  }
  65%,
  80% {
    opacity: 0.7;
  }
  90%,
  100% {
    opacity: 0.35;
  }
}

@keyframes personBracketsCycle {
  0%,
  22% {
    opacity: 0;
  }
  26%,
  56% {
    opacity: 0.9;
  }
  64%,
  100% {
    opacity: 0;
  }
}

@keyframes bioLandmarksCycle {
  0%,
  24% {
    opacity: 0;
  }
  28% {
    opacity: 0.55;
  }
  32%,
  56% {
    opacity: 1;
  }
  62%,
  100% {
    opacity: 0;
  }
}

@keyframes bioLinesPulse {
  0%,
  24%,
  100% {
    opacity: 0.25;
  }
  32%,
  50% {
    opacity: 0.95;
  }
  58% {
    opacity: 0.4;
  }
}

@keyframes bioPointPop {
  0%,
  24% {
    opacity: 0;
    transform: scale(0.4);
  }
  30% {
    opacity: 1;
    transform: scale(1.25);
  }
  36%,
  54% {
    opacity: 1;
    transform: scale(1);
  }
  60%,
  100% {
    opacity: 0;
    transform: scale(0.6);
  }
}

@keyframes meshPulse {
  0%,
  22%,
  100% {
    opacity: 0.45;
  }
  30%,
  54% {
    opacity: 0.95;
  }
  70% {
    opacity: 0.55;
  }
}

@keyframes readerScanSweep {
  0%,
  26% {
    transform: translateY(0);
    opacity: 0;
  }
  30% {
    opacity: 0.95;
  }
  46% {
    transform: translateY(100px);
    opacity: 1;
  }
  56% {
    transform: translateY(0);
    opacity: 0.3;
  }
  62%,
  100% {
    opacity: 0;
  }
}

@keyframes readerIdlePulse {
  0%,
  24% {
    stroke: rgba(255, 90, 24, 0.32);
  }
  30%,
  56% {
    stroke: rgba(255, 90, 24, 0.78);
  }
  62%,
  84% {
    stroke: rgba(159, 212, 90, 0.72);
  }
  90%,
  100% {
    stroke: rgba(255, 90, 24, 0.32);
  }
}

@keyframes ringCycle {
  0%,
  24% {
    stroke: rgba(255, 90, 24, 0.28);
  }
  30%,
  56% {
    stroke: rgba(255, 90, 24, 0.7);
  }
  62%,
  84% {
    stroke: rgba(159, 212, 90, 0.72);
  }
  90%,
  100% {
    stroke: rgba(255, 90, 24, 0.28);
  }
}

@keyframes ledCycle {
  0%,
  24% {
    fill: #ff5a18;
    stroke: rgba(255, 90, 24, 0.25);
    opacity: 0.5;
  }
  30%,
  56% {
    fill: #ff5a18;
    stroke: rgba(255, 90, 24, 0.45);
    opacity: 1;
  }
  62%,
  84% {
    fill: #9fd45a;
    stroke: rgba(159, 212, 90, 0.45);
    opacity: 1;
  }
  90%,
  100% {
    fill: #ff5a18;
    stroke: rgba(255, 90, 24, 0.25);
    opacity: 0.5;
  }
}

@keyframes irPulse {
  0%,
  24%,
  100% {
    opacity: 0.4;
  }
  30%,
  56% {
    opacity: 1;
  }
  70% {
    opacity: 0.55;
  }
}

@keyframes matchConfirm {
  0%,
  58% {
    opacity: 0;
    transform: scale(0.86);
  }
  64%,
  84% {
    opacity: 1;
    transform: scale(1);
  }
  90%,
  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

@keyframes scanLinkCycle {
  0%,
  24% {
    opacity: 0;
    stroke-dashoffset: 24;
  }
  30%,
  54% {
    opacity: 0.55;
    stroke-dashoffset: 0;
  }
  62%,
  100% {
    opacity: 0;
  }
}

@keyframes particleDrift {
  0%,
  100% {
    transform: translate(0, 0);
    opacity: 0.2;
  }
  50% {
    transform: translate(6px, -10px);
    opacity: 0.45;
  }
}

@keyframes bracketsPulse {
  0%,
  24%,
  100% {
    opacity: 0.4;
  }
  32%,
  54% {
    opacity: 1;
  }
  68% {
    opacity: 0.65;
  }
}

@keyframes ovalBreathe {
  0%,
  100% {
    fill: rgba(255, 90, 24, 0.04);
  }
  40% {
    fill: rgba(255, 90, 24, 0.11);
  }
}

@keyframes landmarkBlink {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

@keyframes statusIdleCycle {
  0%,
  20% {
    opacity: 1;
  }
  26%,
  90% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes statusScanCycle {
  0%,
  24% {
    opacity: 0;
  }
  28%,
  54% {
    opacity: 1;
  }
  60%,
  100% {
    opacity: 0;
  }
}

@keyframes statusOkCycle {
  0%,
  58% {
    opacity: 0;
  }
  64%,
  84% {
    opacity: 1;
  }
  92%,
  100% {
    opacity: 0;
  }
}

@keyframes rowEnter {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ringExpand {
  0% {
    transform: scale(0.72);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}

@keyframes statusPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 90, 24, 0.55);
  }
  100% {
    box-shadow: 0 0 0 10px rgba(255, 90, 24, 0);
  }
}

/* ——— Responsive ——— */
@media (max-width: 1024px) {
  .access-stage {
    width: min(520px, 58vw);
    right: 0;
  }

  .brand-hero {
    max-width: 12ch;
  }
}

@media (max-width: 860px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-height: auto;
    overflow: visible;
  }

  .hero-plane {
    position: relative;
    inset: auto;
    order: 2;
    display: flex;
    justify-content: center;
    padding: 8px var(--pad-x) 40px;
    background:
      radial-gradient(ellipse 70% 60% at 50% 40%, rgba(255, 90, 24, 0.14), transparent 65%);
  }

  .hero-content {
    order: 1;
    padding:
      calc(88px + var(--safe-top) + 2vh)
      var(--pad-x)
      28px;
  }

  .access-stage {
    position: relative;
    top: auto;
    right: auto;
    width: min(420px, 92%);
    margin: 0 auto;
    opacity: 1;
    transform: none;
    filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.4));
  }

  .split,
  .split.reverse {
    grid-template-columns: 1fr;
  }

  .split.reverse .split-copy,
  .split.reverse .visual-anchor {
    order: initial;
  }

  .detail-list--wide {
    grid-template-columns: 1fr;
  }

  .cred-list,
  .ops-grid,
  .tech-list {
    grid-template-columns: 1fr;
  }

  .cred-list li,
  .ops-grid li,
  .tech-list li {
    padding-right: 0;
  }

  .cred-list li:nth-child(even),
  .ops-grid li:nth-child(even),
  .tech-list li:nth-child(even) {
    padding-left: 0;
    border-left: 0;
  }

  .live-row {
    grid-template-columns: 44px minmax(0, 1fr) 56px;
    gap: 10px;
  }

  .live-method {
    display: none;
  }

  .section {
    padding: clamp(56px, 10vh, 88px) 0;
  }

  .module-rail {
    gap: 12px 0;
  }

  .module-rail li {
    margin-right: 14px;
    padding-right: 14px;
  }
}

@media (max-width: 560px) {
  .topbar {
    gap: 10px;
    padding-top: calc(10px + var(--safe-top));
    padding-bottom: 10px;
  }

  .brand-nav {
    width: min(148px, 48vw);
  }

  .login-chip {
    min-height: 44px;
    padding: 0 14px;
    font-size: 0.82rem;
  }

  .hero-content {
    padding-top: calc(72px + var(--safe-top) + 1.5vh);
    padding-bottom: 20px;
  }

  .brand-hero {
    margin-bottom: 14px;
    max-width: none;
    font-size: clamp(2.35rem, 11.5vw, 3.1rem);
    line-height: 0.95;
  }

  .hero-title {
    max-width: none;
    font-size: clamp(1.15rem, 5.2vw, 1.45rem);
  }

  .hero-lead {
    max-width: none;
    margin-bottom: 24px;
    font-size: 0.98rem;
    line-height: 1.6;
  }

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

  .primary-action,
  .secondary-action {
    width: 100%;
    min-height: 48px;
  }

  .access-stage {
    width: min(100%, 360px);
  }

  .access-stage--inline {
    width: min(260px, 88%);
  }

  .section h2 {
    max-width: none;
    font-size: clamp(1.55rem, 7vw, 2.1rem);
  }

  .section-lead {
    max-width: none;
    font-size: 1rem;
  }

  .module-rail {
    margin-top: 28px;
    padding-top: 20px;
  }

  .module-rail li {
    margin-right: 10px;
    padding-right: 12px;
    font-size: 0.88rem;
  }

  .cred-list li,
  .ops-grid li,
  .tech-list li {
    padding: 22px 0;
    gap: 6px;
  }

  .cred-list strong,
  .ops-grid strong,
  .tech-list strong {
    font-size: 1.15rem;
  }

  .live-row {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 8px 12px;
    padding: 12px 0;
  }

  .live-state {
    text-align: right;
  }

  .device-silhouette {
    width: min(180px, 58%);
  }

  .cta-inner .primary-action {
    width: 100%;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding:
      24px
      calc(var(--pad-x) + var(--safe-right))
      calc(28px + var(--safe-bottom))
      calc(var(--pad-x) + var(--safe-left));
  }

  .login-modal-panel {
    padding: 24px 18px 20px;
  }

  .login-modal-brand {
    gap: 12px;
    margin-bottom: 18px;
  }

  .login-modal-icon {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 380px) {
  .brand-hero {
    font-size: clamp(2.1rem, 12vw, 2.6rem);
  }

  .live-feed-strip {
    font-size: 0.76rem;
  }

  .module-rail li::after {
    display: none;
  }

  .module-rail li {
    margin-right: 0;
    padding-right: 0;
    width: 100%;
  }
}

/* Landscape phones / short viewports */
@media (max-height: 520px) and (orientation: landscape) {
  .hero {
    min-height: auto;
  }

  .hero-content {
    padding-top: calc(64px + var(--safe-top));
    padding-bottom: 16px;
  }

  .brand-hero {
    font-size: clamp(1.8rem, 6vw, 2.6rem);
  }

  .access-stage {
    width: min(280px, 42vw);
  }

  .hero-plane {
    padding-bottom: 20px;
  }
}

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

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

  .person-group {
    transform: none !important;
    opacity: 1 !important;
  }

  .person-photo {
    opacity: 1 !important;
  }

  .person-rim {
    stroke: rgba(159, 212, 90, 0.65) !important;
    opacity: 1 !important;
  }

  .person-brackets,
  .scan-link,
  .screen-scan,
  .person-scan-marks,
  .bio-landmarks {
    opacity: 0 !important;
  }

  .screen-match {
    opacity: 1 !important;
  }

  .status-idle {
    opacity: 0 !important;
  }

  .status-scan {
    opacity: 0 !important;
  }

  .status-ok {
    opacity: 1 !important;
  }

  .reader-led {
    fill: #9fd45a !important;
  }

  .reader-ring {
    stroke: rgba(159, 212, 90, 0.7) !important;
  }
}
