/* Page-specific helpers */
.hero-copy p{max-width:60ch}
.hero-actions{display:flex; gap:10px; flex-wrap:wrap; margin-top:16px}
.hero-bullets{margin:16px 0 0; padding-left:18px}
.hero-bullets li{margin:8px 0; color:var(--muted)}

.stat-row{display:grid; grid-template-columns:repeat(3,1fr); gap:14px; margin-top:18px}
@media (max-width: 900px){.stat-row{grid-template-columns:1fr}}
.stat{
  padding:16px;
  border-radius: var(--radius);
  border:1px solid var(--line);
  background: color-mix(in oklab, var(--card) 78%, transparent);
}
.stat strong{display:block; font-size:26px; letter-spacing:-.02em}
.stat span{color:var(--muted)}

.split{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
  align-items:start;
}
@media (max-width: 900px){.split{grid-template-columns:1fr}}

.notice{
  border-left:3px solid var(--good);
  padding:12px 14px;
  background: color-mix(in oklab, var(--card) 78%, transparent);
  border-radius: 14px;
}

/* Top video hero */
.hero-video{
  position: relative;
  height: 58vh;
  min-height: 440px;
  max-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #08142f;
}

.hero-video::after{
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 110px;
  pointer-events: none;
  z-index: 2;
  background: linear-gradient(
    to bottom,
    rgba(7, 17, 31, 0) 0%,
    rgba(7, 17, 31, 0.10) 38%,
    rgba(7, 17, 31, 0.24) 68%,
    rgba(7, 17, 31, 0.42) 100%
  );
}

.hero-video-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right, rgba(5, 14, 36, 0.9) 0%, rgba(5, 14, 36, 0.68) 46%, rgba(5, 14, 36, 0.78) 100%),
    linear-gradient(to top, rgba(8, 20, 47, 0.78) 0%, rgba(8, 20, 47, 0.26) 42%, rgba(8, 20, 47, 0.45) 100%);
  z-index: 1;
}

.hero-video-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.hero-video-content h1 {
  margin: 0.35rem 0 1rem;
  line-height: 1.02;
  max-width: 760px;
}

.hero-video-content .muted {
  max-width: 620px;
  font-size: 1.05rem;
  line-height: 1.7;
  color: rgba(232, 239, 255, 0.82);
}

.hero-scroll {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 1.4rem;
  color: rgba(255, 255, 255, 0.84);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.01em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  padding-bottom: 0.2rem;
  transition: opacity 0.25s ease, transform 0.25s ease, border-color 0.25s ease, color 0.25s ease;
  animation: floatScrollCue 2.8s ease-in-out infinite;
}

.hero-scroll:hover {
  color: #ffffff;
  transform: translateY(2px);
  border-color: rgba(98, 255, 211, 0.55);
}

.hero-scroll-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.9rem;
  line-height: 1;
  animation: bounceArrow 1.8s ease-in-out infinite;
}

@keyframes floatScrollCue {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@keyframes bounceArrow {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.85;
  }
  50% {
    transform: translateY(4px);
    opacity: 1;
  }
}

html {
  scroll-behavior: smooth;
}

@media (max-width: 900px) {
  .hero-video {
    height: auto;
    min-height: 68vh;
  }

  .hero-video-content {
    padding-top: 7rem;
    padding-bottom: 4rem;
  }

  .hero-video-content h1 {
    font-size: clamp(2rem, 7vw, 3.4rem);
  }

  .hero-video-content .muted {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .hero-video {
    min-height: 72vh;
  }

  .hero-video-content {
    padding-top: 6.5rem;
    padding-bottom: 3.5rem;
  }

  .hero-video-overlay {
    background:
      linear-gradient(to bottom, rgba(5, 14, 36, 0.58), rgba(5, 14, 36, 0.82)),
      linear-gradient(to right, rgba(8, 20, 47, 0.55), rgba(8, 20, 47, 0.55));
  }
}

.backtop {
  position: fixed;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px) + 54px);
  z-index: 50;
  opacity: 0;
  visibility: hidden;
  transform: translateY(14px);
  transition:
    opacity 0.28s ease,
    transform 0.28s ease,
    visibility 0.28s ease,
    box-shadow 0.28s ease;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.backtop.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  animation: softPulseTop 2.8s ease-in-out infinite;
}

.backtop:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.backtop:active {
  transform: translateY(-1px);
}

@keyframes softPulseTop {
  0%, 100% {
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  }
  50% {
    box-shadow: 0 10px 30px rgba(98, 255, 211, 0.16);
  }
}

/* Left video + right copy hero */
.hero-face-layout {
  padding-top: 56px;
  padding-bottom: 44px;
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 28px;
  align-items: center;
}

.hero-media {
  position: relative;
  min-height: 800px;
  overflow: visible;
  background: transparent;
}

.hero-face-video {
  position: absolute;
  inset: 0;
  width:345%;
  height: 245%;
  object-fit: contain;
  object-position: center;
  transform: translate(-10%, -30%) scale(1.5);
  filter: brightness(0.92) contrast(1.04) saturate(1.02);
  opacity: 1;
  mix-blend-mode: screen;
}

.hero-media-fade {
 display: none;
}


.hero-copy-right {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 760px;
}

.hero-copy-right h1 {
  max-width: 15ch;
  margin-bottom: 16px;
  line-height: 1.03;
}

.hero-copy-right .muted {
  max-width: 62ch;
}

.hero-copy-right .pill-row {
  margin-top: 18px;
}

@media (max-width: 1200px) {
  .hero-shell {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 24px;
  }

  .hero-face-video {
    width: 120%;
    height: 120%;
    transform: translate(-9%, -6%);
  }

  .hero-copy-right h1 {
    max-width: 14ch;
  }
}

@media (max-width: 1100px) {
  .hero-shell {
    grid-template-columns: 0.85fr 1.15fr;
    gap: 22px;
  }

  .hero-media {
    min-height: 560px;
  }

  .hero-face-video {
    width: 118%;
    height: 118%;
    transform: translate(-8%, -5%);
  }

  .hero-copy-right h1 {
    max-width: 13.5ch;
  }
}

@media (max-width: 900px) {
  .hero-shell {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .hero-media {
    min-height: 360px;
  }

  .hero-face-video {
    width: 112%;
    height: 112%;
    object-position: center;
    transform: translate(-2%, -15%);
  }

  .hero-copy-right {
    max-width: none;
  }

  .hero-copy-right h1,
  .hero-copy-right .muted {
    max-width: none;
  }
  
}
@media (max-width: 640px) {
  .hero-face-layout {
    background: transparent !important;
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .hero-media {
    min-height: 260px;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }

  .hero-face-video {
    background: transparent !important;
    mix-blend-mode: screen;
    transform: translate(-2%, -4%);
  }

  .hero-media-fade {
    display: none !important;
  }

  .backtop {
    right: 16px;
    bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  }
}

/* Process showcase */
.process-showcase .process-intro {
  max-width: 760px;
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: stretch;
  margin-top: 24px;
}

.process-steps {
  display: grid;
  gap: 14px;
}

.process-step {
  position: relative;
  border: 1px solid rgba(120, 166, 255, 0.14);
  border-radius: 22px;
  padding: 20px 20px 18px;
  background:
    linear-gradient(180deg, rgba(10, 24, 56, 0.88), rgba(7, 18, 42, 0.92));
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
  overflow: hidden;
}

.process-step::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(98, 255, 211, 0.10), transparent 28%),
    linear-gradient(135deg, rgba(90, 140, 255, 0.06), rgba(90, 140, 255, 0.00));
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

.process-step:hover {
  transform: translateY(-2px) scale(1.015);
  border-color: rgba(98, 255, 211, 0.34);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.20);
  background:
    linear-gradient(180deg, rgba(12, 28, 64, 0.96), rgba(8, 21, 49, 0.98));
}

.process-step:hover::before {
  opacity: 1;
}

.process-step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
  position: relative;
  z-index: 1;
}

.process-step-number {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: rgba(170, 194, 255, 0.78);
}

.process-step-icon {
  width: 44px;
  height: 44px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  border: 1px solid rgba(120, 166, 255, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: #9fbeff;
  font-size: 1.15rem;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease;
  position: relative;
  z-index: 1;
}

.process-step:hover .process-step-icon {
  transform: scale(1.06);
  border-color: rgba(98, 255, 211, 0.34);
  color: #dffcff;
  background: rgba(98, 255, 211, 0.08);
  box-shadow: 0 0 24px rgba(98, 255, 211, 0.12);
}

.process-step h3 {
  margin: 0 0 10px;
  position: relative;
  z-index: 1;
}

.process-step p {
  margin: 0;
  position: relative;
  z-index: 1;
}

.process-visual-wrap {
  display: flex;
}

.process-visual {
  position: relative;
  width: 100%;
  min-height: 100%;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(120, 166, 255, 0.14);
  background: #091a3a;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.18);
  isolation: isolate;
}

.process-visual-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.process-visual-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(6, 16, 40, 0.84) 0%, rgba(6, 16, 40, 0.20) 40%, rgba(6, 16, 40, 0.12) 100%),
    linear-gradient(to right, rgba(10, 28, 68, 0.22), rgba(10, 28, 68, 0.04));
  z-index: 1;
}

.process-visual-caption {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  padding: 18px 18px 16px;
  border-radius: 18px;
  background: rgba(7, 18, 42, 0.72);
  border: 1px solid rgba(120, 166, 255, 0.14);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.process-visual-caption h3 {
  margin: 0 0 8px;
}

.process-visual-caption p {
  margin: 0;
  color: rgba(232, 239, 255, 0.84);
}

@media (max-width: 980px) {
  .process-layout {
    grid-template-columns: 1fr;
  }

  .process-visual {
    min-height: 520px;
  }
}

@media (max-width: 640px) {
  .process-step {
    padding: 18px 16px 16px;
  }

  .process-visual {
    min-height: 420px;
    border-radius: 22px;
  }

  .process-visual-caption {
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 16px 14px 14px;
  }

  .process-visual-chip {
    top: 16px;
    left: 16px;
  }
}