:root {
  --bg-primary: #030706;
  --bg-secondary: #06110f;
  --bg-section: #091a17;
  --bg-card: #081614;
  --bg-elevated: #0c211d;
  --teal: #00d9d0;
  --cyan: #18e7ff;
  --emerald: #20d66b;
  --lime: #a8e600;
  --gold: #ffd21f;
  --text: #f4f8f7;
  --text-secondary: #a7b8b5;
  --text-muted: #687a76;
  --grad: linear-gradient(
    90deg,
    #00d9d0 0%,
    #20d66b 38%,
    #a8e600 72%,
    #ffd21f 100%
  );
  --grad-btn: linear-gradient(105deg, #00d9d0 0%, #20d66b 48%, #a8e600 100%);
}

* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6.5rem;
  overflow-x: clip;
}

section[id] {
  scroll-margin-top: 6.5rem;
}

body {
  background: var(--bg-primary);
  color: var(--text);
  overflow-x: clip;
}

/* Keep paint cost low while the user is scrolling */
html.is-scrolling .glass,
html.is-scrolling .btn-secondary,
html.is-scrolling .nav-links,
html.is-scrolling .nav-shell.scrolled {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

html.is-scrolling #particle-canvas {
  opacity: 0;
  transition: opacity 0.12s linear;
}

@media (prefers-reduced-motion: reduce) {
  #particle-canvas {
    display: none;
  }
}

::selection {
  background: rgba(0, 217, 208, 0.28);
  color: #f4f8f7;
}

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #030706;
}

::-webkit-scrollbar-thumb {
  background: #0c211d;
  border-radius: 99px;
  border: 1px solid rgba(0, 217, 208, 0.2);
}

.container-mod {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 768px) {
  .container-mod {
    padding-left: 2rem;
    padding-right: 2rem;
  }
}

@media (min-width: 1280px) {
  .container-mod {
    max-width: 1200px;
  }
}

@media (min-width: 1680px) {
  .container-mod {
    max-width: 1480px;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

@media (min-width: 1920px) {
  .container-mod {
    max-width: 1680px;
  }
}

/* Atmosphere */
.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 80% 50% at 12% -10%,
      rgba(0, 217, 208, 0.08),
      transparent 55%
    ),
    radial-gradient(
      ellipse 60% 45% at 92% 8%,
      rgba(32, 214, 107, 0.07),
      transparent 50%
    ),
    radial-gradient(
      ellipse 50% 40% at 70% 70%,
      rgba(24, 231, 255, 0.03),
      transparent 55%
    ),
    radial-gradient(
      ellipse 40% 30% at 20% 85%,
      rgba(168, 230, 0, 0.03),
      transparent 50%
    ),
    #030706;
}

.site-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 217, 208, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 217, 208, 0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(
    ellipse 70% 60% at 50% 30%,
    black,
    transparent 75%
  );
  opacity: 0.45;
}

.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cg fill='none' stroke='%2300D9D0' stroke-opacity='0.07' stroke-width='0.6'%3E%3Ccircle cx='40' cy='40' r='3'/%3E%3Ccircle cx='90' cy='70' r='2'/%3E%3Ccircle cx='140' cy='30' r='2.5'/%3E%3Cpath d='M40 40 L90 70 L140 30'/%3E%3C/g%3E%3C/svg%3E");
  opacity: 0.55;
}

#particle-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.25s ease;
  contain: strict;
  transform: translateZ(0);
}

.page {
  position: relative;
  z-index: 2;
}

.text-gradient {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grad-deeply {
  background: linear-gradient(90deg, #00d9d0, #20d66b 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.grad-tomorrow,
.grad-gold {
  background: linear-gradient(90deg, #a8e600, #ffd21f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-kicker {
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--teal);
}

.section-title {
  font-family: Sora, sans-serif;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.section-underline {
  width: 72px;
  height: 3px;
  border-radius: 99px;
  background: var(--grad);
  margin: 0.85rem auto 0;
}

/* Glass solid-enough fill so heavy blur isn’t needed while scrolling */
.glass {
  background: linear-gradient(
    180deg,
    rgba(12, 33, 29, 0.88),
    rgba(8, 22, 20, 0.94)
  );
  border: 1px solid rgba(0, 217, 208, 0.16);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.glass-hover {
  transition:
    border-color 0.35s ease,
    transform 0.35s ease,
    box-shadow 0.35s ease;
}

.glass-hover:hover {
  border-color: rgba(0, 217, 208, 0.42);
  transform: translateY(-4px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.35),
    0 0 0 1px rgba(0, 217, 208, 0.08),
    0 0 28px rgba(0, 217, 208, 0.08);
}

.accent-line {
  height: 2px;
  width: 36px;
  border-radius: 99px;
  background: var(--grad);
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1.55rem;
  border-radius: 999px;
  background: var(--grad-btn);
  color: #06110f;
  font-weight: 600;
  font-family: Sora, sans-serif;
  box-shadow:
    0 0 24px rgba(0, 217, 208, 0.22),
    0 8px 24px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease,
    filter 0.25s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.05);
  box-shadow:
    0 0 32px rgba(32, 214, 107, 0.28),
    0 10px 28px rgba(0, 0, 0, 0.3);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.82rem 1.5rem;
  border-radius: 999px;
  background: rgba(8, 22, 20, 0.55);
  border: 1px solid rgba(0, 217, 208, 0.45);
  color: #f4f8f7;
  font-weight: 550;
  font-family: Sora, sans-serif;
  backdrop-filter: blur(12px);
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}

.btn-secondary:hover {
  border-color: rgba(24, 231, 255, 0.75);
  box-shadow: 0 0 22px rgba(0, 217, 208, 0.16);
  background: rgba(12, 33, 29, 0.7);
  transform: translateY(-2px);
}

/* Nav */
.nav-shell {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    backdrop-filter 0.3s ease;
}

.nav-shell.scrolled {
  background: rgba(3, 7, 6, 0.9);
  border-bottom: 1px solid rgba(0, 217, 208, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-links {
  align-items: center;
  gap: 1.75rem;
  padding: 0.65rem 1.75rem;
  border-radius: 9999px;
  background: rgba(8, 16, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 28px rgba(0, 0, 0, 0.22);
}

@media (min-width: 1680px) {
  .nav-links {
    gap: 2rem;
    padding: 0.75rem 2.1rem;
  }
}

.nav-link {
  position: relative;
  color: rgba(244, 248, 247, 0.55);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.35rem 0.1rem;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: -2px;
  right: -2px;
  bottom: -6px;
  height: 3px;
  border-radius: 99px;
  background: #fff;
}

.nav-cta {
  padding: 0.55rem 1.15rem;
  font-size: 0.82rem;
  white-space: nowrap;
  box-shadow: 0 0 18px rgba(0, 217, 208, 0.2);
}

.logo-img {
  height: 44px;
  width: auto;
  mix-blend-mode: lighten;
}

@media (min-width: 768px) {
  .logo-img {
    height: 50px;
  }
}

@media (min-width: 1680px) {
  .logo-img {
    height: 64px;
  }
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(0, 217, 208, 0.18);
  color: var(--text-secondary);
  background: rgba(8, 22, 20, 0.4);
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.icon-btn:hover {
  color: var(--text);
  border-color: rgba(0, 217, 208, 0.4);
  box-shadow: 0 0 16px rgba(0, 217, 208, 0.12);
}

/* Hero */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding-top: 6.5rem;
  padding-bottom: 4.5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 78% center;
  transform: scale(1.04);
  will-change: transform;
  animation: heroDrift 22s ease-in-out infinite;
}

.hero-bg-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    transparent 58%,
    rgba(3, 7, 6, 0.45) 78%,
    #030706 100%
  );
}

.hero-copy {
  position: relative;
}

.hero-atoms {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* Mobile-only hero visual, rendered as its own section below the hero */
.hero-visual-m {
  display: none;
}

.nucleus {
  --nx: 48%;
  --ny: 50%;
  position: absolute;
  right: -2%;
  top: 13%;
  width: 48vw;
  height: 33.5vw;
  max-width: 920px;
  max-height: 640px;
}

.orbit-ring-line {
  position: absolute;
  left: 50%;
  top: 48%;
  width: 86%;
  height: 38%;
  border: 1px solid rgba(0, 217, 208, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 18px rgba(0, 217, 208, 0.08);
}

.orbit-ring-line.r2 {
  width: 72%;
  height: 30%;
  transform: translate(-50%, -50%) rotate(-16deg);
  border-color: rgba(32, 214, 107, 0.2);
}

.orbit-ring-line.r3 {
  width: 78%;
  height: 34%;
  transform: translate(-50%, -50%) rotate(12deg);
  border-color: rgba(255, 210, 31, 0.16);
}

.orbit-ring-line.rv {
  left: var(--nx);
  top: var(--ny);
  width: 15%;
  height: 72%;
  transform: translate(-50%, -50%);
  border-color: rgba(24, 231, 255, 0.28);
}

.electron {
  position: absolute;
  left: 0;
  top: 0;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border-radius: 50%;
  background: radial-gradient(
    circle at 32% 30%,
    #fff 0%,
    #18e7ff 38%,
    #00d9d0 100%
  );
  box-shadow:
    0 0 10px #18e7ff,
    0 0 22px rgba(0, 217, 208, 0.7);
  offset-rotate: 0deg;
  animation: nucleusOrbit 5.5s linear infinite;
}

.electron.p1 {
  offset-path: ellipse(42% 16% at 50% 48%);
  animation-duration: 5.5s;
}

.electron.p2 {
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  background: radial-gradient(
    circle at 32% 30%,
    #fff 0%,
    #20d66b 42%,
    #00d9d0 100%
  );
  box-shadow:
    0 0 10px #20d66b,
    0 0 20px rgba(32, 214, 107, 0.65);
  offset-path: ellipse(42% 16% at 50% 48%);
  animation-duration: 5.5s;
  animation-delay: -1.4s;
}

.electron.p3 {
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  background: radial-gradient(
    circle at 32% 30%,
    #fff 0%,
    #ffd21f 50%,
    #a8e600 100%
  );
  box-shadow:
    0 0 10px #ffd21f,
    0 0 18px rgba(255, 210, 31, 0.6);
  offset-path: ellipse(42% 16% at 50% 48%);
  animation-duration: 5.5s;
  animation-delay: -2.75s;
}

.electron.p4 {
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  offset-path: ellipse(36% 13% at 50% 48%);
  animation-duration: 4.2s;
  animation-direction: reverse;
  animation-delay: -0.5s;
}

.electron.p5 {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: radial-gradient(
    circle at 32% 30%,
    #fff 0%,
    #a8e600 45%,
    #20d66b 100%
  );
  box-shadow: 0 0 8px #a8e600;
  offset-path: ellipse(36% 13% at 50% 48%);
  animation-duration: 4.2s;
  animation-direction: reverse;
  animation-delay: -2.1s;
}

.electron.p6 {
  width: 13px;
  height: 13px;
  margin: -6.5px 0 0 -6.5px;
  background: radial-gradient(
    circle at 32% 30%,
    #fff 0%,
    #20d66b 40%,
    #00d9d0 100%
  );
  box-shadow: 0 0 12px #20d66b;
  offset-path: ellipse(39% 18% at 50% 50%);
  animation-duration: 6.5s;
  animation-delay: -1s;
}

.electron.p7 {
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  background: radial-gradient(
    circle at 32% 30%,
    #fff 0%,
    #ffd21f 55%,
    #a8e600 100%
  );
  box-shadow: 0 0 10px #ffd21f;
  offset-path: ellipse(39% 18% at 50% 50%);
  animation-duration: 6.5s;
  animation-delay: -3.25s;
}

.electron.p8 {
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  offset-path: ellipse(30% 11% at 50% 48%);
  animation-duration: 3.4s;
  animation-delay: -1.75s;
}

.electron.v1,
.electron.v2,
.electron.v3,
.electron.v4,
.electron.v5,
.electron.v6 {
  animation-name: verticalInOut;
}

.electron.v1 {
  width: 13px;
  height: 13px;
  margin: -6.5px 0 0 -6.5px;
  offset-path: ellipse(7% 36% at var(--nx) var(--ny));
  animation-duration: 6s;
}

.electron.v2 {
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  background: radial-gradient(
    circle at 32% 30%,
    #fff 0%,
    #20d66b 42%,
    #00d9d0 100%
  );
  box-shadow:
    0 0 10px #20d66b,
    0 0 18px rgba(32, 214, 107, 0.6);
  offset-path: ellipse(7% 36% at var(--nx) var(--ny));
  animation-duration: 6s;
  animation-delay: -3s;
}

.electron.v3 {
  width: 8px;
  height: 8px;
  margin: -4px 0 0 -4px;
  background: radial-gradient(
    circle at 32% 30%,
    #fff 0%,
    #ffd21f 50%,
    #a8e600 100%
  );
  box-shadow: 0 0 10px #ffd21f;
  offset-path: ellipse(5% 30% at var(--nx) var(--ny));
  animation-duration: 4.8s;
  animation-direction: reverse;
}

.electron.v4 {
  width: 11px;
  height: 11px;
  margin: -5.5px 0 0 -5.5px;
  background: radial-gradient(
    circle at 32% 30%,
    #fff 0%,
    #a8e600 45%,
    #20d66b 100%
  );
  box-shadow: 0 0 10px #a8e600;
  offset-path: ellipse(5% 30% at var(--nx) var(--ny));
  animation-duration: 4.8s;
  animation-direction: reverse;
  animation-delay: -2.4s;
}

.electron.v5 {
  width: 9px;
  height: 9px;
  margin: -4.5px 0 0 -4.5px;
  offset-path: ellipse(9% 40% at var(--nx) var(--ny));
  animation-duration: 7.5s;
  animation-delay: -1.25s;
}

.electron.v6 {
  width: 7px;
  height: 7px;
  margin: -3.5px 0 0 -3.5px;
  background: radial-gradient(
    circle at 32% 30%,
    #fff 0%,
    #18e7ff 40%,
    #00d9d0 100%
  );
  box-shadow: 0 0 8px #18e7ff;
  offset-path: ellipse(9% 40% at var(--nx) var(--ny));
  animation-duration: 7.5s;
  animation-delay: -3.75s;
}

@keyframes nucleusOrbit {
  to {
    offset-distance: 100%;
  }
}

@keyframes verticalInOut {
  0% {
    offset-distance: 0%;
    transform: scale(1.25);
    opacity: 1;
  }
  25% {
    offset-distance: 25%;
    transform: scale(0.35);
    opacity: 0.28;
  }
  50% {
    offset-distance: 50%;
    transform: scale(1.2);
    opacity: 1;
  }
  75% {
    offset-distance: 75%;
    transform: scale(0.35);
    opacity: 0.28;
  }
  100% {
    offset-distance: 100%;
    transform: scale(1.25);
    opacity: 1;
  }
}

@keyframes heroDrift {
  0%,
  100% {
    transform: scale(1.04) translate3d(0, 0, 0);
  }
  50% {
    transform: scale(1.08) translate3d(-1.2%, -1%, 0);
  }
}

@keyframes floatAtom {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
    opacity: 0.55;
  }
  50% {
    transform: translate3d(10px, -18px, 0);
    opacity: 1;
  }
}

@keyframes bondPulse {
  0%,
  100% {
    opacity: 0.2;
  }
  50% {
    opacity: 0.7;
  }
}

@media (max-width: 1023px) {
  .hero {
    min-height: 0;
    padding-top: 7.5rem;
    padding-bottom: 0rem;
  }

  .hero .hero-bg {
    display: none;
  }

  .logo-img {
    height: 64px;
  }

  .hero-visual-m {
    display: block;
  }

  .hero-visual-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 3.5 / 4;
    overflow: hidden;
  }

  .hero-visual-frame > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62%;
  }

  .hero-visual-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(
      180deg,
      #030706 0%,
      rgba(3, 7, 6, 0.35) 12%,
      transparent 30%,
      transparent 72%,
      rgba(3, 7, 6, 0.5) 88%,
      #030706 100%
    );
  }

  .nucleus {
    --nx: 50%;
    --ny: 50%;
    left: 47%;
    right: auto;
    top: 18%;
    width: min(420px, 92vw);
    height: 53%;
    max-width: none;
    max-height: none;
    transform: translateX(-50%);
    opacity: 0.9;
  }

  .hero-cta {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 0.55rem;
  }

  .hero-cta .btn-primary,
  .hero-cta .btn-secondary {
    flex: 1 1 0;
    padding: 0.55rem 0.85rem;
    font-size: 0.82rem;
    white-space: nowrap;
    min-height: 2.5rem;
  }

  .hero-cta .btn-primary svg {
    width: 14px;
    height: 14px;
  }
}

/* Desktop nucleus: track hero M across laptop → 1680 → 1920 */
@media (min-width: 1024px) {
  .nucleus {
    --nx: 46%;
    --ny: 49%;
    right: 0%;
    top: 14%;
    width: 52vw;
    height: 36vw;
  }

  .hero-bg img {
    object-position: 82% center;
  }
}

@media (min-width: 1280px) {
  .nucleus {
    --nx: 47%;
    --ny: 50%;
    right: -3%;
    top: 13%;
    width: 50vw;
    height: 34.5vw;
  }

  .hero-bg img {
    object-position: 80% center;
  }
}

@media (min-width: 1440px) {
  .nucleus {
    --nx: 48%;
    --ny: 50%;
    right: -1.5%;
    top: 12.5%;
    width: 49vw;
    height: 34vw;
  }

  .hero-bg img {
    object-position: 79% center;
  }
}

/* MacBook / 1680 keep orbits locked on the molecule */
@media (min-width: 1600px) and (max-width: 1919px) {
  .nucleus {
    --nx: 48%;
    --ny: 50%;
    right: -1%;
    top: 11%;
    width: 46vw;
    height: 32vw;
    max-width: 820px;
    max-height: 570px;
  }

  .hero-bg img {
    object-position: 76% 48%;
  }
}

@media (min-width: 1920px) {
  .nucleus {
    --nx: 48%;
    --ny: 50%;
    right: -1%;
    top: 13%;
    width: 920px;
    height: 640px;
    max-width: 920px;
    max-height: 640px;
  }

  .hero-bg img {
    object-position: 78% center;
  }
}

@keyframes floatY {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes orbit {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.35;
  }
  50% {
    opacity: 0.7;
  }
}

.orbit-ring {
  position: absolute;
  border: 1px solid rgba(0, 217, 208, 0.18);
  border-radius: 999px;
  animation: orbit 28s linear infinite;
}

/* Feature cards */
.features-section {
  position: relative;
  overflow: hidden;
}

.features-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 55% at 50% 50%,
    rgba(0, 217, 208, 0.05),
    transparent 72%
  );
  pointer-events: none;
}

.features-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
}

@media (min-width: 640px) {
  .features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.1rem;
  }
}

@media (min-width: 1024px) {
  .features-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
  }
}

@media (min-width: 1280px) {
  .features-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }
}

.feature-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.5rem 1.35rem 1.4rem;
  border-radius: 18px;
  background: linear-gradient(
    165deg,
    rgba(12, 33, 29, 0.72) 0%,
    rgba(8, 22, 20, 0.92) 100%
  );
  border: 1px solid rgba(0, 217, 208, 0.14);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.3s ease,
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.feature-card:hover {
  border-color: rgba(0, 217, 208, 0.32);
  transform: translateY(-4px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.34),
    0 0 0 1px rgba(0, 217, 208, 0.06),
    0 0 28px rgba(0, 217, 208, 0.08);
}

.feature-icon {
  width: 48px;
  height: 48px;
  margin-left: -3px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(0, 217, 208, 0.08);
  border: 1px solid rgba(0, 217, 208, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.feature-card:hover .feature-icon {
  border-color: rgba(0, 217, 208, 0.38);
  box-shadow: 0 0 18px rgba(0, 217, 208, 0.12);
}

.feature-accent {
  width: 36px;
  height: 2px;
  margin-top: 1.15rem;
  margin-bottom: 0.85rem;
  border-radius: 99px;
  background: var(--grad);
}

.feature-title {
  font-family: Sora, sans-serif;
  /* font-size: 1.02rem; */
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;

  margin-top: 2px;
}

.feature-text {
  margin-top: 5px;
  /* margin-top: 0.55rem; */
  /* font-size: 0.88rem; */
  font-size: 14px;

  line-height: 1.65;
  color: var(--text-secondary);
}

@media (min-width: 768px) {
  .feature-card {
    padding: 1.65rem 1.5rem 1.5rem;
  }

  .feature-title {
    /* font-size: 1.06rem; */
    font-size: 16px;
  }

  .feature-text {
    font-size: 14px;
    /* font-size: 0.9rem; */
  }
}

/* DNA / About Helix Portal */
.dna-wrap {
  position: relative;
  overflow: hidden;
}

.about-grid {
  display: grid;
  /* gap: 2.5rem; */
  align-items: center;
}

@media (min-width: 1024px) {
  .about-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    /* gap: 2.5rem 3.5rem; */
    align-items: center;
  }
}

@media (min-width: 1280px) {
  .about-grid {
    /* gap: 3rem 4.5rem; */
  }
}

.about-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.25rem 1.75rem;
}

@media (min-width: 768px) {
  .about-actions {
    justify-content: flex-start;
  }
}

.about-contact {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-secondary);
  transition: color 0.25s ease;
}

.about-contact:hover {
  color: var(--text);
}

.about-contact-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(0, 217, 208, 0.22);
  background: rgba(8, 22, 20, 0.55);
  color: var(--teal);
  flex-shrink: 0;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.about-contact:hover .about-contact-icon {
  border-color: rgba(0, 217, 208, 0.45);
  box-shadow: 0 0 16px rgba(0, 217, 208, 0.12);
}

.about-contact-number {
  position: relative;
  display: inline-block;
  vertical-align: middle;
  min-width: 10rem;
  height: 1.35em;
  overflow: hidden;
  font-family: Sora, sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.about-contact-vanity,
.about-contact-digits {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  white-space: nowrap;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.about-contact-digits {
  transform: translateY(100%);
}

.about-contact:hover .about-contact-vanity {
  transform: translateY(-100%);
}

.about-contact:hover .about-contact-digits {
  transform: translateY(0);
}

.dna-visual {
  position: relative;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* .dna-visual::before {
  content: "";
  position: absolute;
  inset: -12% -8%;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    circle at 48% 46%,
    rgba(0, 224, 176, 0.18) 0%,
    rgba(0, 224, 176, 0.08) 35%,
    transparent 70%
  );
  filter: blur(8px);
} */

.dna-visual .dna-img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: contrast(1.05) saturate(1.08);
  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      #000 8%,
      #000 92%,
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      #000 10%,
      #000 88%,
      transparent 100%
    ),
    radial-gradient(ellipse 78% 72% at 50% 48%, #000 48%, transparent 100%);
  mask-image:
    linear-gradient(
      to right,
      transparent 0%,
      #000 8%,
      #000 92%,
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0%,
      #000 10%,
      #000 88%,
      transparent 100%
    ),
    radial-gradient(ellipse 78% 72% at 50% 48%, #000 48%, transparent 100%);
  -webkit-mask-composite: source-in, source-in;
  mask-composite: intersect;
}

.dna-img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

@media (min-width: 1024px) {
  .about-copy {
    padding-left: 0.25rem;
  }
}

@media (max-width: 1023px) {
  .dna-visual {
    max-width: 520px;
    margin-inline: auto;
  }
}

/* Process steps  numbered row with title line */
.process-highlight {
  display: inline;
}

.process-highlight-num {
  color: var(--teal);
}

.process-highlight-word {
  background: linear-gradient(90deg, #a8e600, #ffd21f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.steps-timeline {
  position: relative;
  width: 100%;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  width: 100%;
}

.step-item {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
  width: 100%;
}

.step-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}

.step-node {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: var(--bg-primary);
  border: 1px solid rgba(0, 217, 208, 0.55);
  box-shadow: 0 0 18px rgba(0, 217, 208, 0.12);
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--teal);
}

.step-title {
  margin: 0;
  flex-shrink: 0;
  font-family: Sora, sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
  line-height: 1.2;
  text-transform: capitalize;
}

.step-line {
  flex: 1 1 auto;
  height: 1px;
  min-width: 1rem;
  background: linear-gradient(
    90deg,
    rgba(0, 217, 208, 0.45),
    rgba(168, 230, 0, 0.25),
    rgba(255, 210, 31, 0.15),
    transparent
  );
}

.step-text {
  margin: 0;
  padding-left: calc(44px + 0.75rem);
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 100%;
  text-transform: capitalize;
}

@media (min-width: 480px) {
  .step-node {
    width: 48px;
    height: 48px;
    font-size: 0.82rem;
  }

  .step-title {
    font-size: 1.15rem;
  }

  .step-text {
    padding-left: calc(48px + 0.85rem);
    font-size: 0.95rem;
  }

  .step-head {
    gap: 0.85rem;
  }
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.25rem 1.75rem;
  }

  .step-item {
    gap: 0.85rem;
  }

  .step-title {
    white-space: nowrap;
  }
}

@media (min-width: 1024px) {
  .steps-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem 1.5rem;
  }

  .step-node {
    width: 52px;
    height: 52px;
    font-size: 0.88rem;
  }

  .step-title {
    font-size: 1.1rem;
  }

  .step-text {
    padding-left: calc(52px + 0.85rem);
    font-size: 0.875rem;
    line-height: 1.6;
  }
}

@media (min-width: 1280px) {
  .steps-grid {
    gap: 2rem 1.75rem;
  }

  .step-title {
    font-size: 1.15rem;
  }

  .step-text {
    font-size: 0.9rem;
  }
}

/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  animation: revealUp 0.8s ease forwards;
}

.reveal-d1 {
  animation-delay: 0.08s;
}
.reveal-d2 {
  animation-delay: 0.16s;
}
.reveal-d3 {
  animation-delay: 0.24s;
}
.reveal-d4 {
  animation-delay: 0.32s;
}
.reveal-d5 {
  animation-delay: 0.4s;
}

@keyframes revealUp {
  to {
    opacity: 1;
    transform: none;
  }
}

/* Search modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
  background: rgba(3, 7, 6, 0.72);
  backdrop-filter: blur(10px);
}

.modal.open {
  display: flex;
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 70;
  padding-top: 20px;
  background: rgba(3, 7, 6, 0.92);
  backdrop-filter: blur(16px);
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.mobile-drawer.open {
  transform: none;
}

.mobile-drawer .nav-cta {
  font-size: 16px;
}

input,
textarea,
select {
  outline: none;
}

.field {
  background: rgba(8, 22, 20, 0.7);
  border: 1px solid rgba(0, 217, 208, 0.18);
  color: #f4f8f7;
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  width: 100%;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.field:focus {
  border-color: rgba(0, 217, 208, 0.5);
  box-shadow: 0 0 0 3px rgba(0, 217, 208, 0.1);
}

.field-box {
  border-radius: 16px;
}

/* Contact */
.contact-section {
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 55% 45% at 78% 50%,
    rgba(0, 217, 208, 0.07),
    transparent 72%
  );
  pointer-events: none;
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .contact-grid {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.05fr);
    /* gap: 3.5rem; */
    align-items: center;
  }
}

.contact-copy {
  max-width: 34rem;
}

.contact-lead {
  color: var(--text-secondary);
  line-height: 1.75;
  max-width: 32rem;
}

.contact-details {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  color: inherit;
  transition: color 0.25s ease;
}

a.contact-item:hover .contact-item-value {
  color: var(--teal);
}

a.contact-item:hover .contact-item-icon {
  border-color: rgba(0, 217, 208, 0.45);
  box-shadow: 0 0 16px rgba(0, 217, 208, 0.12);
}

.contact-item-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(0, 217, 208, 0.18);
  background: rgba(0, 217, 208, 0.08);
  color: var(--teal);
  flex-shrink: 0;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.contact-item-label {
  display: block;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 0.15rem;
}

.contact-item-value {
  display: block;
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.4;
}

.contact-form-card {
  padding: 1.75rem;
  border-radius: 22px;
  background: linear-gradient(
    165deg,
    rgba(12, 33, 29, 0.72) 0%,
    rgba(8, 22, 20, 0.92) 100%
  );
  border: 1px solid rgba(0, 217, 208, 0.18);
  box-shadow:
    0 16px 48px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

@media (min-width: 768px) {
  .contact-form-card {
    padding: 2rem 2rem 1.85rem;
  }
}

.contact-field {
  display: grid;
  gap: 0.45rem;
  margin-bottom: 1.1rem;
}

.contact-field label {
  font-family: Sora, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.contact-input {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 217, 208, 0.16);
  background: rgba(3, 7, 6, 0.55);
  color: var(--text);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.contact-input::placeholder {
  color: var(--text-muted);
}

.contact-input:focus {
  outline: none;
  border-color: rgba(0, 217, 208, 0.45);
  background: rgba(6, 17, 15, 0.85);
  box-shadow: 0 0 0 3px rgba(0, 217, 208, 0.1);
}

.contact-textarea {
  min-height: 132px;
  resize: vertical;
}

.contact-submit {
  margin-top: 0.35rem;
  padding-block: 1rem;
  min-width: 10.5rem;
}

.contact-submit-spinner {
  display: none;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(6, 17, 15, 0.2);
  border-top-color: #06110f;
  border-radius: 50%;
  animation: contactSpin 0.7s linear infinite;
}

.contact-submit.is-loading .contact-submit-spinner {
  display: inline-block;
}

.contact-submit.is-loading {
  pointer-events: none;
  opacity: 0.92;
}

@keyframes contactSpin {
  to {
    transform: rotate(360deg);
  }
}

.contact-note {
  margin-top: 0.85rem;
  font-size: 0.88rem;
  color: var(--emerald);
  text-align: center;
}

.contact-note.contact-note-error {
  color: #c44;
}

footer a {
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

footer a:hover {
  color: var(--teal);
}

.footer-logo-link {
  display: inline-flex;
  flex-shrink: 0;
  isolation: isolate;
}

.footer-logo {
  height: 80px;
  width: auto;
  mix-blend-mode: lighten;
}

.footer-link-cols ul:not(.footer-contact) li a {
  display: inline-block;
  line-height: 1.35;
}

.footer-contact {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}

.footer-contact li {
  display: flex;
}

.footer-link-cols .footer-contact .footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  width: 100%;
  color: var(--text-secondary);
  font-size: 0.875rem;
  line-height: 1.5;
  transition: color 0.2s ease;
}

.footer-link-cols .footer-contact a.footer-contact-item:hover {
  color: var(--teal);
}

.footer-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  min-width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
  color: var(--teal);
}

.footer-contact-item > span:not(.footer-contact-icon) {
  flex: 1;
  min-width: 0;
}

@media (max-width: 1023px) {
  .footer-link-cols {
    width: 100%;
    margin-top: 2rem;
  }
}

/* Testimonials */
.testimonial-section {
  position: relative;
  overflow: hidden;
}

/* .testimonial-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 45% 35% at 8% 18%,
      rgba(32, 214, 107, 0.1),
      transparent 70%
    ),
    radial-gradient(
      ellipse 45% 35% at 92% 18%,
      rgba(32, 214, 107, 0.08),
      transparent 70%
    );
  pointer-events: none;
} */

.testimonial-head {
  text-align: center;
  margin-bottom: 2.75rem;
}

.testimonial-head .section-underline {
  margin-top: 0.85rem;
}

.testimonial-slider {
  width: 100%;
}

.testimonial-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.testimonial-swiper {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.testimonial-swiper .swiper-wrapper {
  align-items: stretch;
}

.testimonial-swiper .swiper-slide {
  height: auto;
  display: flex;
  box-sizing: border-box;
}

.testimonial-arrow {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(32, 214, 107, 0.45);
  color: var(--emerald);
  background: rgba(6, 17, 15, 0.85);
  transition:
    color 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    opacity 0.25s ease;
}

.testimonial-arrow:hover:not(.swiper-button-disabled) {
  color: var(--text);
  border-color: rgba(32, 214, 107, 0.75);
  box-shadow: 0 0 18px rgba(32, 214, 107, 0.18);
}

.testimonial-arrow.swiper-button-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.testimonial-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 250px;
  padding: 1.65rem 1.5rem 1.35rem;
  border-radius: 18px;
  background: linear-gradient(
    160deg,
    rgba(10, 24, 21, 0.95) 0%,
    rgba(6, 14, 12, 0.98) 100%
  );
  border: 1px solid rgba(32, 214, 107, 0.22);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 24px rgba(32, 214, 107, 0.04);
  box-sizing: border-box;
}

.testimonial-quote-icon {
  display: block;
  margin-bottom: 0.85rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  line-height: 0.75;
  color: #20d66b;
  text-shadow: 0 0 12px rgba(32, 214, 107, 0.7);
  user-select: none;
}

.testimonial-text {
  flex: 1;
  /* font-size: 0.92rem; */
  font-size: 10px;
  line-height: 1.7;
  color: rgba(244, 248, 247, 0.88);
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 1.35rem;
}

.testimonial-photo {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid rgba(32, 214, 107, 0.25);
}

.testimonial-name {
  font-family: Sora, sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.3;
}

.testimonial-role {
  margin-top: 0.1rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.3;
}

#testimonial-pagination.testimonial-dots,
.testimonial-dots.swiper-pagination {
  position: static !important;
  inset: auto !important;
  bottom: auto !important;
  left: auto !important;
  width: 100% !important;
  height: auto !important;
  margin-top: 1.75rem;
  transform: none !important;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
}

.testimonial-dots .swiper-pagination-bullet,
#testimonial-pagination .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  margin: 0 !important;
  border-radius: 999px;
  border: 1px solid rgba(32, 214, 107, 0.55);
  background: transparent;
  opacity: 1;
  transition:
    background 0.3s ease,
    border-color 0.3s ease,
    transform 0.3s ease;
}

.testimonial-dots .swiper-pagination-bullet-active,
#testimonial-pagination .swiper-pagination-bullet-active {
  background: var(--emerald);
  border-color: var(--emerald);
  box-shadow: 0 0 10px rgba(32, 214, 107, 0.45);
}

@media (min-width: 600px) {
  .testimonial-card {
    min-height: 250px;
    padding: 1.75rem 1.65rem 1.5rem;
  }

  .testimonial-text {
    font-size: 0.95rem;
    font-size: 14px;
  }
}

@media (min-width: 900px) {
  .testimonial-row {
    gap: 1.25rem;
  }
}

@media (max-width: 639px) {
  .testimonial-row {
    gap: 0;
  }

  .testimonial-arrow {
    display: none;
  }

  .testimonial-dots {
    margin-top: 1.35rem;
  }

  .testimonial-card {
    min-height: auto;
    padding: 1.25rem 1.15rem 1.1rem;
  }

  .testimonial-quote-icon {
    font-size: 1.65rem;
    margin-bottom: 0.6rem;
  }

  .testimonial-text {
    font-size: 13px;
    line-height: 1.6;
  }

  .testimonial-author {
    padding-top: 1rem;
    gap: 0.65rem;
  }

  .testimonial-photo {
    width: 42px;
    height: 42px;
  }

  .testimonial-name {
    font-size: 0.82rem;
  }

  .testimonial-role {
    font-size: 0.72rem;
  }
}

[data-aos]:not(.aos-animate) {
  will-change: transform, opacity;
}

[data-aos].aos-animate {
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Application modal */
.apply-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  padding: 1.5rem;
  overflow-y: auto;
  background: rgba(3, 7, 6, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.apply-overlay.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  animation: applyFade 0.22s ease;
}

@keyframes applyFade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.apply-modal {
  position: relative;
  width: 100%;
  max-width: 680px;
  margin: auto;
  border-radius: 22px;
  background: linear-gradient(
    165deg,
    rgba(12, 33, 29, 0.94) 0%,
    rgba(6, 17, 15, 0.98) 100%
  );
  border: 1px solid rgba(0, 217, 208, 0.18);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: applyRise 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
}

@keyframes applyRise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.apply-head {
  padding: 1.5rem 1.75rem 0;
}

.apply-head-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.apply-head-copy {
  min-width: 0;
  flex: 1;
}

.apply-close {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(0, 217, 208, 0.18);
  background: rgba(0, 217, 208, 0.06);
  color: var(--text-secondary);
  transition:
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.apply-close:hover {
  border-color: rgba(0, 217, 208, 0.45);
  color: var(--text);
  box-shadow: 0 0 16px rgba(0, 217, 208, 0.12);
}

.apply-title {
  font-family: Sora, sans-serif;
  font-weight: 700;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  letter-spacing: -0.03em;
  line-height: 1.14;
  margin: 0 0 0.4rem;
}

.apply-sub {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

.apply-progress {
  display: flex;
  gap: 0.35rem;
  margin-top: 1.25rem;
}

.apply-progress i {
  flex: 1;
  height: 3px;
  border-radius: 999px;
  background: rgba(0, 217, 208, 0.12);
  transition: background 0.35s ease;
}

.apply-progress i.done {
  background: var(--grad-btn);
}

.apply-progress i.now {
  background: var(--gold);
}

.apply-count {
  margin-top: 0.7rem;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.apply-body {
  padding: 1.5rem 1.75rem 0.5rem;
}

.apply-step {
  display: none;
  animation: applySlide 0.3s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.apply-step.active {
  display: block;
}

@keyframes applySlide {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.apply-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}

@media (min-width: 640px) {
  .apply-grid {
    grid-template-columns: 1fr 1fr;
    gap: 1.1rem 1.25rem;
  }
}

.apply-field {
  display: grid;
  gap: 0.45rem;
  align-content: start;
}

.apply-field.full,
.apply-option.full {
  grid-column: 1 / -1;
}

.apply-field > label {
  font-family: Sora, sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.apply-field > label .req {
  color: var(--gold);
  margin-left: 0.15rem;
}

.apply-field select {
  appearance: none;
  cursor: pointer;
  padding-right: 2.4rem;
  grid-column: 1 / -1;
  grid-row: 2;
}

.apply-field:has(select) {
  grid-template-columns: 1fr;
}

.apply-field:has(select)::after {
  content: "\f078";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  grid-column: 1;
  grid-row: 2;
  justify-self: end;
  align-self: center;
  margin-right: 1.1rem;
  pointer-events: none;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1;
  z-index: 1;
}

.apply-field:has(select) > .apply-error {
  grid-column: 1 / -1;
}

.apply-field select option {
  background: var(--bg-secondary);
  color: var(--text);
}

.apply-hint {
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.apply-error {
  display: none;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  color: #ff8a6b;
}

.apply-field.invalid .apply-error,
.apply-check.invalid .apply-error {
  display: block;
}

.apply-field.invalid .contact-input,
.apply-field.invalid .apply-option input:not(:checked) + span {
  border-color: rgba(255, 138, 107, 0.5);
}

.apply-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.apply-option {
  position: relative;
  display: flex;
}

.apply-option input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
}

.apply-option span {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 0.95rem;
  border-radius: 14px;
  border: 1px solid rgba(0, 217, 208, 0.16);
  background: rgba(3, 7, 6, 0.55);
  font-size: 0.9rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.apply-option span::before {
  content: "";
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: 999px;
  background: var(--dot, var(--teal));
  opacity: 0.35;
  transition:
    opacity 0.2s ease,
    box-shadow 0.2s ease;
}

.apply-option span:hover {
  border-color: rgba(0, 217, 208, 0.4);
  color: var(--text);
}

.apply-option input:checked + span {
  border-color: rgba(0, 217, 208, 0.55);
  background: rgba(0, 217, 208, 0.09);
  color: var(--text);
}

.apply-option input:checked + span::before {
  opacity: 1;
  box-shadow: 0 0 0 4px rgba(0, 217, 208, 0.16);
}

.apply-option input:focus-visible + span {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.apply-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(0, 217, 208, 0.12);
}

.apply-check input {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  accent-color: var(--emerald);
  cursor: pointer;
}

.apply-check label {
  font-size: 0.84rem;
  line-height: 1.55;
  color: var(--text-secondary);
  cursor: pointer;
}

.apply-check .apply-error {
  grid-column: 2;
}

.apply-check a {
  color: var(--teal);
}

.apply-secure {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 1rem 0 0;
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.apply-secure i {
  flex-shrink: 0;
  margin-top: 0.15rem;
  font-size: 0.72rem;
  color: var(--emerald);
}

.apply-foot {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.25rem;
  padding: 1.15rem 1.75rem 1.15rem;
  border-top: 1px solid rgba(0, 217, 208, 0.12);
}

.apply-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  margin-left: auto;
  min-width: 10.5rem;
}

.apply-next-spinner {
  display: none;
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(6, 17, 15, 0.2);
  border-top-color: #06110f;
  border-radius: 50%;
  animation: contactSpin 0.7s linear infinite;
}

.apply-next.is-loading .apply-next-spinner {
  display: inline-block;
}

.apply-next.is-loading {
  pointer-events: none;
  opacity: 0.92;
}

.apply-back[hidden] {
  display: none;
}

.apply-saved {
  flex: 1;
  overflow: hidden;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #c44;
}

.apply-saved[hidden] {
  display: none;
}

.apply-done {
  display: none;
  padding: 3rem 2rem 3.25rem;
  text-align: center;
}

.apply-done.active {
  display: block;
  animation: applyThankYou 0.35s cubic-bezier(0.2, 0.8, 0.3, 1);
}

@keyframes applyThankYou {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.apply-modal.is-thank-you {
  overflow: hidden;
}

.apply-done-lead {
  margin: 0 auto 0.85rem !important;
  font-family: Sora, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
}

.apply-tick {
  width: 66px;
  height: 66px;
  margin: 0 auto 1.4rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--grad-btn);
  color: var(--bg-secondary);
  font-size: 1.7rem;
  box-shadow: 0 0 32px rgba(32, 214, 107, 0.28);
}

.apply-done h3 {
  margin: 0 0 0.7rem;
  font-family: Sora, sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.apply-done p {
  max-width: 44ch;
  margin: 0 auto 0.5rem;
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.apply-ref {
  margin-top: 1.25rem;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  color: var(--gold);
}

/* Leave confirmation, raised above the application modal */
.apply-confirm {
  position: fixed;
  inset: 0;
  z-index: 2;
  display: none;
  padding: 1.5rem;
  background: rgba(3, 7, 6, 0.72);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.apply-confirm.open {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: applyFade 0.18s ease;
}

.apply-confirm-panel {
  width: 100%;
  max-width: 460px;
  padding: 1.6rem 1.6rem 1.5rem;
  border-radius: 20px;
  background: linear-gradient(
    165deg,
    rgba(12, 33, 29, 0.98) 0%,
    rgba(6, 17, 15, 1) 100%
  );
  border: 1px solid rgba(0, 217, 208, 0.22);
  box-shadow:
    0 26px 64px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  animation: applyRise 0.24s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.apply-confirm-title {
  margin: 0 0 0.6rem;
  font-family: Sora, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.apply-confirm-text {
  margin: 0 0 1.4rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.apply-confirm-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

/* Match the two buttons in height: same padding, and a placeholder border
   on the primary to offset the secondary's 1px outline */
.apply-confirm-actions .btn-primary,
.apply-confirm-actions .btn-secondary {
  padding-block: 0.85rem;
}

.apply-confirm-actions .btn-primary {
  border: 1px solid transparent;
}

.apply-quit {
  border-color: rgba(167, 184, 181, 0.35);
  color: var(--text-secondary);
}

.apply-quit:hover {
  border-color: rgba(255, 138, 107, 0.6);
  box-shadow: none;
  color: var(--text);
}

@media (max-width: 639px) {
  .apply-overlay {
    padding: 0;
  }

  .apply-confirm {
    padding: 1.15rem;
  }

  .apply-confirm-actions .btn-primary,
  .apply-confirm-actions .btn-secondary {
    flex: 1;
  }

  .apply-modal {
    max-width: none;
    min-height: 100vh;
    margin: 0;
    display: flex;
    flex-direction: column;
    border: 0;
    border-radius: 0;
  }

  .apply-head {
    padding: 1.15rem 1.15rem 0;
  }

  .apply-body {
    flex: 1;
    padding: 1.25rem 1.15rem 0.5rem;
  }

  .apply-foot {
    position: sticky;
    bottom: 0;
    padding: 1rem 1.15rem;
    background: var(--bg-secondary);
  }

  .apply-saved {
    display: none;
  }

  .apply-foot .btn-primary,
  .apply-foot .btn-secondary {
    padding-inline: 1.15rem;
    padding-block: 0.7rem;
  }

  .apply-modal .contact-input,
  .apply-option span {
    font-size: 13px;
  }

  .apply-option span {
    gap: 0;
  }

  .apply-option span::before {
    display: none;
  }
}

/* Legal pages: privacy policy, terms and disclosures */
.legal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.legal-wrap {
  flex: 1;
  padding-top: 6.5rem;
  padding-bottom: 2rem;
}

@media (min-width: 768px) {
  .legal-wrap {
    padding-top: 7rem;
    padding-bottom: 3rem;
  }
}

.legal-head {
  margin-bottom: 2rem;
  margin-top: 16px;
}

@media (min-width: 768px) {
  .legal-head {
    margin-bottom: 2.5rem;
    margin-top: 16px;
  }
}

.legal-lead {
  width: 100%;
  max-width: none;
  margin: 1rem 0 0.75rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.legal-updated {
  margin: 0;
  font-family: "Space Mono", ui-monospace, monospace;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
}

.legal-section {
  scroll-margin-top: 7rem;
}

.legal-section + .legal-section {
  margin-top: 1.85rem;
  padding-top: 1.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.legal-section h2 {
  margin: 0 0 0.75rem;
  font-family: Sora, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
}

.legal-section h3 {
  margin: 1.25rem 0 0.5rem;
  font-family: Sora, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--teal);
}

.legal-section p {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.legal-section p:last-child,
.legal-section ul:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.legal-section li {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.legal-section li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.68em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--teal);
}

.legal-section li strong {
  color: var(--text-secondary);
  font-weight: 600;
}

.legal-section a {
  color: var(--teal);
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 217, 208, 0.3);
}

.legal-section a:hover {
  border-bottom-color: var(--teal);
}

.legal-contact {
  margin-top: 2.25rem;
  /* padding: 1.25rem 1.35rem; */
  /* border-radius: 16px; */
  /* background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05); */
}

.legal-contact p {
  margin: 0 0 0.3rem;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.legal-contact p:last-child {
  margin-bottom: 0;
}

.legal-contact a.legal-contact-location {
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: none;
  transition: color 0.2s ease;
}

.legal-contact a.legal-contact-location:hover {
  color: #00d9d0;
}

/* Narrow phones: keep Quit and Continue side by side */
@media (max-width: 420px) {
  .apply-confirm-panel {
    padding: 1.35rem 1.25rem 1.25rem;
  }

  .apply-confirm-actions {
    flex-direction: row;
    align-items: stretch;
    gap: 0.6rem;
  }

  .apply-confirm-actions .btn-primary,
  .apply-confirm-actions .btn-secondary {
    flex: 1;
    min-width: 0;
    padding-inline: 0.75rem;
    font-size: 0.85rem;
  }
}
