:root {
  color-scheme: dark;
  --black: #0c0c0c;
  --black-soft: #151515;
  --green: #95ff8d;
  --green-deep: #64d85c;
  --purple: #9747ff;
  --white: #ffffff;
  --mist: #dedede;
  --muted: #9c9c9c;
  --line: rgba(255, 255, 255, 0.16);
  --tilt-x: 0;
  --tilt-y: 0;
  --parallax-x: 0;
  --parallax-y: 0;
  --glare-x: 58%;
  --glare-y: 34%;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: "Inter", "Noto Sans KR", system-ui, sans-serif;
  letter-spacing: 0;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(18px, 4vw, 52px);
  background: linear-gradient(180deg, rgba(12, 12, 12, 0.78), rgba(12, 12, 12, 0));
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  display: block;
  width: clamp(132px, 14vw, 188px);
  height: auto;
}

.header-nav {
  display: inline-flex;
  align-items: center;
  gap: clamp(12px, 2vw, 28px);
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.header-nav a {
  color: var(--green);
}

.hero {
  position: relative;
  --stage-max: 1920px;
  --stage-side: max(0px, calc((100vw - var(--stage-max)) / 2));
  --stage-inner: 1698px;
  --stage-object-right: 211px;
  min-height: clamp(820px, 96svh, 980px);
  overflow: hidden;
  display: grid;
  align-items: center;
  background:
    radial-gradient(circle at 72% 30%, rgba(151, 71, 255, 0.18), transparent 34%),
    linear-gradient(180deg, #131313 0%, var(--black) 72%);
  border-bottom: 1px solid var(--line);
}

#brandScene,
.scene-fallback,
.scene-shade,
.grain {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#brandScene {
  z-index: 0;
}

.scene-fallback {
  z-index: 1;
  pointer-events: none;
  perspective: 1300px;
  overflow: hidden;
}

.fallback-stack {
  position: absolute;
  top: clamp(118px, 14.5vh, 160px);
  right: calc(var(--stage-side) + var(--stage-object-right));
  width: clamp(430px, 26vw, 560px);
  aspect-ratio: 1.04;
  transform-style: preserve-3d;
  transform:
    translate3d(calc(var(--parallax-x) * 1px), calc(var(--parallax-y) * 1px), 0)
    rotateX(calc(var(--tilt-y) * -14deg))
    rotateY(calc(var(--tilt-x) * 18deg))
    rotateZ(-5deg);
  transition: transform 90ms ease-out;
  will-change: transform;
}

.fallback-stack::before,
.fallback-stack::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.fallback-stack::before {
  inset: -18% -12%;
  z-index: 8;
  background:
    radial-gradient(circle at var(--glare-x) var(--glare-y), rgba(255, 255, 255, 0.26), transparent 18%),
    linear-gradient(115deg, transparent 10%, rgba(255, 255, 255, 0.1) 46%, transparent 68%);
  mix-blend-mode: screen;
  opacity: 0.58;
  transform: translateZ(180px);
}

.fallback-stack::after {
  left: 12%;
  right: 2%;
  bottom: 0;
  height: 24%;
  z-index: -1;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.72), transparent 66%);
  filter: blur(26px);
  transform:
    translate3d(calc(var(--tilt-x) * -22px), calc(var(--tilt-y) * 16px), -180px)
    rotateX(70deg);
}

.fallback-card {
  position: absolute;
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.32);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  transform-style: preserve-3d;
  will-change: transform;
}

.card-back {
  inset: 7% 18% 5% 4%;
  background: linear-gradient(135deg, #1a1a1a, #393939);
  transform:
    translate3d(calc(var(--tilt-x) * -16px), calc(var(--tilt-y) * -10px), -120px)
    rotateY(calc(-14deg + var(--tilt-x) * 2deg))
    rotateX(calc(var(--tilt-y) * -1deg));
}

.card-purple {
  inset: 18% 2% 38% 28%;
  background: linear-gradient(135deg, #b883ff, var(--purple));
  transform:
    translate3d(calc(var(--tilt-x) * 6px), calc(var(--tilt-y) * -8px), 28px)
    rotateY(calc(-7deg + var(--tilt-x) * 3deg))
    rotateX(calc(var(--tilt-y) * -2deg))
    rotateZ(4deg);
}

.card-green {
  inset: 44% 12% 27% 8%;
  background: linear-gradient(135deg, var(--green), #64d85c);
  transform:
    translate3d(calc(var(--tilt-x) * 18px), calc(var(--tilt-y) * 8px), 88px)
    rotateY(calc(-8deg + var(--tilt-x) * 4deg))
    rotateX(calc(var(--tilt-y) * -4deg))
    rotateZ(-2deg);
}

.card-white {
  inset: 65% 4% 12% 40%;
  background: linear-gradient(135deg, #ffffff, #d7d7d7);
  transform:
    translate3d(calc(var(--tilt-x) * 28px), calc(var(--tilt-y) * 14px), 150px)
    rotateY(calc(-15deg + var(--tilt-x) * 5deg))
    rotateX(calc(var(--tilt-y) * -5deg))
    rotateZ(3deg);
}

.fallback-dot {
  position: absolute;
  top: 20%;
  left: 71%;
  width: clamp(52px, 4.2vw, 76px);
  height: clamp(52px, 4.2vw, 76px);
  background: url("./assets/blingco_dot.svg") center / contain no-repeat;
  filter: drop-shadow(0 0 26px rgba(149, 255, 141, 0.46));
  transform:
    translate3d(calc(var(--tilt-x) * 5px), calc(var(--tilt-y) * -5px), 210px)
    rotate(calc(10deg + var(--tilt-x) * 5deg));
  will-change: transform;
}

.scene-shade {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(12, 12, 12, 0.96) 0%, rgba(12, 12, 12, 0.76) 39%, rgba(12, 12, 12, 0.04) 100%),
    linear-gradient(0deg, rgba(12, 12, 12, 0.96) 0%, rgba(12, 12, 12, 0.2) 36%, rgba(12, 12, 12, 0) 100%);
  pointer-events: none;
}

.grain {
  z-index: 3;
  opacity: 0.22;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, black, transparent 78%);
}

.hero-inner {
  position: relative;
  z-index: 3;
  width: min(var(--stage-inner), calc(100% - clamp(64px, 10vw, 222px)));
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: minmax(500px, 0.9fr) minmax(460px, 1fr);
  gap: clamp(78px, 7vw, 210px);
  align-items: center;
  padding: clamp(104px, 11vh, 132px) 0 clamp(72px, 8vh, 96px);
}

.hero-copy {
  max-width: 760px;
  margin-left: 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 22px;
  color: var(--green);
  font-size: clamp(12px, 1.3vw, 15px);
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  color: var(--white);
  font-size: clamp(58px, 6.9vw, 126px);
  line-height: 0.94;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
}

.hero h1 span:last-child {
  color: var(--green);
}

.lead {
  margin: clamp(26px, 4vw, 42px) 0 0;
  color: var(--white);
  font-size: clamp(24px, 2.2vw, 36px);
  line-height: 1.32;
  font-weight: 800;
  word-break: keep-all;
}

.sublead {
  width: min(560px, 100%);
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(16px, 1.6vw, 19px);
  line-height: 1.72;
  font-weight: 500;
  word-break: keep-all;
}

.status-panel {
  align-self: end;
  width: min(520px, 92%);
  margin-bottom: clamp(14px, 4vh, 54px);
  transform: translateY(clamp(28px, 4vh, 52px));
  border-top: 1px solid rgba(149, 255, 141, 0.72);
  padding-top: 18px;
  color: var(--white);
}

.status-panel span {
  display: block;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
  line-height: 1.4;
  text-transform: uppercase;
}

.status-panel strong {
  display: block;
  max-width: 320px;
  font-size: clamp(21px, 2.3vw, 30px);
  line-height: 1.42;
  font-weight: 900;
  word-break: keep-all;
}

.section-inner {
  width: min(1280px, calc(100% - clamp(36px, 8vw, 160px)));
  margin: 0 auto;
}

.statement {
  background: var(--black);
  padding: clamp(96px, 11vw, 150px) 0;
}

.statement-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.44fr) minmax(0, 1.56fr);
  gap: clamp(96px, 11vw, 190px);
  align-items: start;
}

.statement h2 {
  max-width: 820px;
  margin: 0;
  color: var(--white);
  font-size: clamp(42px, 5.2vw, 78px);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
  word-break: keep-all;
}

.statement p:not(.section-kicker) {
  width: min(720px, 100%);
  margin: 28px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.74;
  font-weight: 500;
  word-break: keep-all;
}

.flow {
  background: var(--white);
  color: var(--black);
  padding: clamp(58px, 8vw, 98px) 0;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: rgba(12, 12, 12, 0.18);
  border: 1px solid rgba(12, 12, 12, 0.18);
}

.flow-grid article {
  min-height: 280px;
  display: flex;
  flex-direction: column;
  background: var(--white);
  padding: clamp(22px, 3vw, 34px);
}

.flow-grid span {
  color: var(--purple);
  font-size: 13px;
  font-weight: 900;
}

.flow-grid h3 {
  margin: auto 0 0;
  color: var(--black);
  font-size: clamp(44px, 5.4vw, 72px);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: 0;
}

.flow-grid p {
  margin: 20px 0 0;
  color: #505050;
  font-size: 17px;
  line-height: 1.66;
  font-weight: 600;
  word-break: keep-all;
}

.site-footer {
  padding: 26px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  background: var(--black);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .hero {
    --stage-side: 0px;
    --stage-object-right: -108px;
    min-height: 92svh;
  }

  .scene-shade {
    background:
      linear-gradient(0deg, rgba(12, 12, 12, 0.96) 0%, rgba(12, 12, 12, 0.82) 50%, rgba(12, 12, 12, 0.12) 100%),
      linear-gradient(90deg, rgba(12, 12, 12, 0.82), rgba(12, 12, 12, 0.16));
  }

  .fallback-stack {
    top: 9%;
    right: var(--stage-object-right);
    width: min(430px, 104vw);
    opacity: 0.9;
  }

  .grain {
    mask-image: linear-gradient(0deg, black, transparent 88%);
  }

  .hero-inner {
    width: calc(100% - 36px);
    grid-template-columns: 1fr;
    padding-top: 40svh;
  }

  .hero-copy {
    margin-left: 0;
  }

  .status-panel {
    width: min(420px, 100%);
    transform: none;
  }

  .statement-layout {
    grid-template-columns: 1fr;
  }

  .flow-grid {
    grid-template-columns: 1fr;
  }

  .flow-grid article {
    min-height: 220px;
  }
}

@media (max-width: 620px) {
  .site-header {
    padding: 18px;
  }

  .brand img {
    width: 124px;
  }

  .header-nav {
    justify-content: flex-end;
    gap: 10px;
    font-size: 11px;
  }

  .header-nav span {
    display: none;
  }

  .hero {
    min-height: 94svh;
  }

  .hero-inner {
    width: calc(100% - 32px);
    padding-top: 38svh;
    padding-bottom: 38px;
  }

  .hero h1 {
    font-size: clamp(48px, 15vw, 72px);
    line-height: 0.94;
  }

  .lead {
    font-size: 24px;
    line-height: 1.38;
  }

  .sublead {
    max-width: 330px;
    font-size: 16px;
    line-height: 1.68;
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  .statement h2 {
    font-size: 40px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
