:root {
  --font-geist-sans: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", Arial, sans-serif;
  --font-geist-mono: "Geist Mono", "SFMono-Regular", Consolas, monospace;
  --pointer-x: 72%;
  --pointer-y: 34%;
}

html,
body {
  min-height: 100%;
}

body {
  overflow-x: hidden;
}

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

#top-progress {
  position: fixed;
  inset: 0 auto auto 0;
  z-index: 100;
  width: 0;
  height: 2px;
  background: var(--signal);
  box-shadow: 0 0 14px #b8ff3d99;
}

.scanfield {
  position: fixed;
  inset: 0;
  z-index: 19;
  pointer-events: none;
  opacity: 0.11;
  mix-blend-mode: soft-light;
  background:
    repeating-linear-gradient(
      0deg,
      transparent 0 4px,
      rgba(255, 255, 255, 0.035) 4px 5px
    );
}

#ambient-canvas {
  position: fixed;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  opacity: 0.22;
  pointer-events: none;
  mix-blend-mode: screen;
}

.site-header {
  transition: background-color 0.3s ease, border-color 0.3s ease;
}

.site-header nav a {
  position: relative;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -9px;
  left: 0;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.25s ease;
}

.site-header nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta,
.button-primary {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.header-cta:hover,
.button-primary:hover {
  color: var(--ink);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px #b8ff3d2e;
}

.hero {
  isolation: isolate;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(
      circle at var(--pointer-x) var(--pointer-y),
      rgba(184, 255, 61, 0.14),
      transparent 9%,
      transparent 30%
    );
  transition: background-position 0.16s linear;
}

.hero-image {
  will-change: transform;
  animation: hero-image-in 1.6s cubic-bezier(0.2, 0.72, 0.25, 1) backwards;
}

.hero-grid {
  mask-image: linear-gradient(to bottom, #000 25%, transparent 96%);
  animation: grid-in 1.5s 0.15s ease both;
}

.hero-content .eyebrow,
.hero-content h1,
.hero-copy,
.hero-actions,
.hero-index {
  animation: hero-copy-in 0.9s cubic-bezier(0.2, 0.72, 0.25, 1) both;
}

.hero-content h1 {
  animation-delay: 0.08s;
}

.hero-copy {
  animation-delay: 0.18s;
}

.hero-actions {
  animation-delay: 0.28s;
}

.hero-index {
  animation-delay: 0.38s;
}

.hero h1 span {
  position: relative;
  text-shadow: 0 0 46px rgba(245, 248, 249, 0.07);
}

.capability {
  overflow: hidden;
}

.capability::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
}

.capability:hover::after {
  transform: scaleX(1);
}

.product-stage {
  --machine-shift: 0px;
  position: relative;
  isolation: isolate;
  min-height: 980px;
  overflow: hidden;
  border-block: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(5, 7, 8, 0.98) 0 38%, rgba(5, 7, 8, 0.32) 70%),
    radial-gradient(circle at 72% 48%, #222b2e 0, #0a0e10 34%, #050708 68%);
}

.product-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 110px 110px;
  mask-image: linear-gradient(90deg, transparent 14%, #000 48%, #000 100%);
}

.product-stage-word {
  position: absolute;
  top: 5%;
  left: -1.2vw;
  margin: 0;
  color: transparent;
  font-size: clamp(92px, 15vw, 260px);
  font-weight: 850;
  line-height: 0.8;
  letter-spacing: -0.075em;
  white-space: nowrap;
  -webkit-text-stroke: 1px rgba(245, 248, 249, 0.09);
}

.product-stage-copy {
  position: absolute;
  z-index: 4;
  top: 50%;
  left: clamp(20px, 6vw, 110px);
  width: min(560px, 42vw);
  transform: translateY(-50%);
}

.product-stage-copy h2 {
  margin: 0;
  font-size: clamp(48px, 5.8vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.065em;
}

.product-stage-copy > p:not(.eyebrow) {
  max-width: 500px;
  margin: 34px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.product-stage-data {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 50px;
  border-top: 1px solid var(--line);
}

.product-stage-data span {
  min-height: 96px;
  padding: 17px 9px 10px 0;
  border-right: 1px solid var(--line);
  color: #d4dadd;
  font-size: 12px;
}

.product-stage-data span:last-child {
  border-right: 0;
  padding-left: 14px;
}

.product-stage-data span:nth-child(2) {
  padding-left: 14px;
}

.product-stage-data b {
  display: block;
  margin-bottom: 28px;
  color: var(--signal);
  font: 10px var(--font-geist-mono), monospace;
}

.product-machine {
  position: absolute;
  z-index: 3;
  top: 51%;
  right: clamp(-70px, 1vw, 20px);
  width: min(58vw, 790px);
  height: 88%;
  margin: 0;
  transform: translateY(calc(-50% + var(--machine-shift)));
  transition: transform 0.12s linear;
}

.product-machine img {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: auto;
  height: 100%;
  max-width: none;
  filter: drop-shadow(0 38px 55px rgba(0, 0, 0, 0.72));
  animation: machine-breathe 6.5s ease-in-out infinite;
}

.machine-halo {
  position: absolute;
  top: 18%;
  right: 3%;
  width: 72%;
  aspect-ratio: 1;
  border: 1px solid rgba(184, 255, 61, 0.2);
  border-radius: 50%;
  box-shadow:
    0 0 80px rgba(184, 255, 61, 0.05),
    inset 0 0 80px rgba(184, 255, 61, 0.035);
}

.machine-halo::before,
.machine-halo::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;
  inset: 14%;
}

.machine-halo::after {
  inset: 31%;
  border-color: rgba(184, 255, 61, 0.15);
}

.machine-callout {
  position: absolute;
  z-index: 5;
  color: #c4cccf;
  font: 9px var(--font-geist-mono), monospace;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.machine-callout::before {
  content: "";
  position: absolute;
  top: 5px;
  right: calc(100% + 9px);
  width: 90px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--signal));
}

.machine-callout i {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 12px var(--signal);
  animation: callout-pulse 1.7s ease-in-out infinite;
}

.callout-a {
  top: 27%;
  right: 4%;
}

.callout-b {
  right: 13%;
  bottom: 24%;
}

.product-stage-rail {
  position: absolute;
  right: clamp(20px, 3vw, 54px);
  bottom: 28px;
  left: clamp(20px, 3vw, 54px);
  z-index: 5;
  display: flex;
  justify-content: space-between;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: #657074;
  font: 9px var(--font-geist-mono), monospace;
  letter-spacing: 0.14em;
}

.feature-visual img {
  transform: scale(1.03);
  transition: transform 1.15s cubic-bezier(0.2, 0.72, 0.25, 1), filter 0.7s ease;
}

.feature:hover .feature-visual img {
  transform: scale(1.075);
  filter: saturate(0.72) contrast(1.1);
}

.hud-line {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 34%;
  width: 1px;
  background: linear-gradient(transparent, var(--signal), transparent);
  box-shadow: 0 0 18px #b8ff3d80;
  opacity: 0.68;
  animation: hud-sweep 5.8s ease-in-out infinite;
}

.vision-frame {
  transform: translateZ(0);
}

.vision-frame::before {
  animation: reticle-one 12s linear infinite;
}

.vision-frame::after {
  animation: reticle-two 8s linear infinite reverse;
}

.vision-data span {
  padding-right: 8px;
}

.drone-reserve h2 {
  transition: -webkit-text-stroke-color 0.35s ease, filter 0.35s ease;
}

.drone-reserve:hover h2 {
  -webkit-text-stroke-color: var(--signal);
  filter: drop-shadow(0 0 28px #b8ff3d28);
}

.process-list li {
  position: relative;
  transition: background-color 0.25s ease;
}

.process-list li:hover {
  background: #0d1214;
}

.process-list li::before {
  content: "";
  position: absolute;
  top: -1px;
  right: 0;
  left: 0;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.28s ease;
}

.process-list li:hover::before {
  transform: scaleX(1);
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 64px, 0);
  transition:
    opacity 0.9s cubic-bezier(0.2, 0.72, 0.25, 1),
    transform 0.9s cubic-bezier(0.2, 0.72, 0.25, 1);
}

.reveal.reveal-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@keyframes hero-image-in {
  from {
    opacity: 0;
    transform: scale(1.12);
    filter: saturate(0) contrast(1.22) brightness(0.65);
  }
  to {
    opacity: 1;
    transform: scale(1.035);
    filter: saturate(0.72) contrast(1.12);
  }
}

@keyframes grid-in {
  from {
    opacity: 0;
    transform: scale(1.08);
  }
  to {
    opacity: 0.18;
    transform: scale(1);
  }
}

@keyframes hero-copy-in {
  from {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes hud-sweep {
  0%,
  100% {
    left: 8%;
    opacity: 0;
  }
  14%,
  84% {
    opacity: 0.7;
  }
  50% {
    left: 92%;
  }
}

@keyframes machine-breathe {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(0, -8px, 0);
  }
}

@keyframes callout-pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

@keyframes reticle-one {
  to {
    transform: rotate(405deg);
  }
}

@keyframes reticle-two {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 760px) {
  #ambient-canvas {
    opacity: 0.13;
  }

  .scanfield {
    opacity: 0.065;
  }

  .hero::before {
    background: radial-gradient(circle at 72% 34%, rgba(184, 255, 61, 0.11), transparent 24%);
  }

  .feature-visual {
    min-height: 72vw;
  }

  .product-stage {
    min-height: 940px;
    background: radial-gradient(circle at 58% 69%, #20292c 0, #090d0e 35%, #050708 70%);
  }

  .product-stage-word {
    top: 7%;
    font-size: 28vw;
  }

  .product-stage-copy {
    top: 118px;
    right: 20px;
    left: 20px;
    width: auto;
    transform: none;
  }

  .product-stage-copy h2 {
    font-size: 44px;
  }

  .product-stage-copy > p:not(.eyebrow) {
    margin-top: 24px;
    font-size: 15px;
  }

  .product-stage-data {
    margin-top: 28px;
  }

  .product-stage-data span {
    font-size: 10px;
  }

  .product-machine {
    top: auto;
    right: -20%;
    bottom: 44px;
    width: 122%;
    height: 53%;
    transform: none;
  }

  .machine-callout {
    display: none;
  }

  .drone-reserve {
    gap: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-image,
  .hero-grid,
  .hero-content .eyebrow,
  .hero-content h1,
  .hero-copy,
  .hero-actions,
  .hero-index,
  .hud-line,
  .product-machine img,
  .machine-callout i,
  .vision-frame::before,
  .vision-frame::after {
    animation: none !important;
  }

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