:root {
  color-scheme: dark;
  --brand: #84cc16;
  --brand-light: #bef264;
  --ink: #e5e5e5;
  --muted: #a3a3a3;
  --line: rgba(255, 255, 255, .1);
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  font-family: Pretendard, "Instrument Sans", "Noto Sans KR", "Malgun Gothic", sans-serif;
  background:
    radial-gradient(circle at 85% 8%, rgba(132, 204, 22, .08), transparent 24rem),
    #000;
}

body,
a,
button {
  -webkit-tap-highlight-color: transparent;
}

h1,
h2 {
  font-weight: 900;
  letter-spacing: -1px;
}

::selection {
  color: #000;
  background: var(--brand-light);
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  transform: translateY(-180%);
  border-radius: .75rem;
  background: var(--brand);
  padding: .75rem 1rem;
  color: #000;
  font-size: .875rem;
  font-weight: 900;
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header.is-scrolled {
  border-color: rgba(255, 255, 255, .1);
  background: rgba(0, 0, 0, .9);
}

.nav-link {
  position: relative;
  color: #a3a3a3;
  transition: color .2s ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: #fff;
}

.nav-link[aria-current="page"]::after {
  position: absolute;
  right: 0;
  bottom: -.75rem;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--brand);
  content: "";
}

.mobile-menu {
  visibility: hidden;
  max-height: 0;
  opacity: 0;
  transition:
    max-height .3s ease,
    opacity .25s ease,
    visibility .3s;
}

.mobile-menu.is-open {
  visibility: visible;
  max-height: 34rem;
  opacity: 1;
}

.grid-surface {
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(to bottom, #000 55%, transparent);
}

.page-hero::before {
  position: absolute;
  width: 36rem;
  height: 36rem;
  border-radius: 999px;
  background: rgba(132, 204, 22, .16);
  filter: blur(110px);
  content: "";
  top: -16rem;
  right: -10rem;
  pointer-events: none;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  border: 1px solid rgba(132, 204, 22, .22);
  border-radius: 999px;
  background: rgba(132, 204, 22, .06);
  padding: .55rem .8rem;
  color: var(--brand-light);
  font-size: .65rem;
  font-weight: 900;
  letter-spacing: .18em;
}

.eyebrow::before {
  width: .35rem;
  height: .35rem;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 16px rgba(132, 204, 22, .75);
  content: "";
}

.glass-card {
  border: 1px solid var(--line);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .035), transparent 55%),
    #111;
  box-shadow: 0 24px 70px rgba(0, 0, 0, .24);
  transition:
    border-color .3s ease,
    transform .3s ease,
    background-color .3s ease;
}

.glass-card:hover {
  border-color: rgba(132, 204, 22, .3);
  transform: translateY(-3px);
}

.answer-card {
  border: 1px solid rgba(132, 204, 22, .25);
  background:
    radial-gradient(circle at 100% 0, rgba(132, 204, 22, .11), transparent 18rem),
    #0d0d0d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .035);
}

.media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 1.75rem;
  background: #0a0a0a;
  box-shadow: 0 30px 80px rgba(0, 0, 0, .32);
}

.media-frame.is-card {
  aspect-ratio: 4 / 3;
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1);
}

.media-frame:hover img {
  transform: scale(1.025);
}

.media-frame::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, .24), transparent 42%),
    linear-gradient(to top, rgba(0, 0, 0, .64), transparent 45%);
  content: "";
  pointer-events: none;
}

.media-label {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: #d4d4d4;
  font-size: .72rem;
  font-weight: 800;
}

.media-label span:first-child {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}

.media-label span:first-child::before {
  width: .4rem;
  height: .4rem;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 16px rgba(132, 204, 22, .65);
  content: "";
}

.icon-box {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgba(132, 204, 22, .22);
  border-radius: 1rem;
  background: rgba(132, 204, 22, .08);
  color: var(--brand-light);
}

.prose-copy p {
  color: #a3a3a3;
  font-size: .95rem;
  line-height: 1.95;
}

.prose-copy strong {
  color: #e5e5e5;
}

.check-list {
  display: grid;
  gap: .85rem;
}

.check-list li {
  display: flex;
  gap: .7rem;
  align-items: flex-start;
  color: #d4d4d4;
  font-size: .875rem;
  line-height: 1.7;
}

.check-list svg {
  width: 1rem;
  height: 1rem;
  margin-top: .35rem;
  flex: 0 0 auto;
  color: var(--brand);
}

.metric {
  display: flex;
  gap: .75rem;
  align-items: baseline;
  border-top: 1px solid rgba(255, 255, 255, .08);
  padding-top: 1rem;
}

.metric strong {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 900;
}

.metric span {
  color: #737373;
  font-size: .75rem;
}

.step-line {
  position: relative;
}

.step-line::after {
  position: absolute;
  top: 1.5rem;
  left: calc(100% + .4rem);
  width: calc(100% - 3.8rem);
  height: 1px;
  background: linear-gradient(90deg, rgba(132, 204, 22, .55), rgba(255, 255, 255, .08));
  content: "";
}

.case-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #0a0a0a;
}

.case-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2, .8, .2, 1);
}

.glass-card:hover .case-visual img {
  transform: scale(1.035);
}

.case-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .7), transparent 58%);
  content: "";
}

.notice {
  border-left: 3px solid var(--brand);
  background: rgba(132, 204, 22, .06);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.table-shell {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, .09);
  border-radius: 1.25rem;
  background: rgba(17, 17, 17, .82);
  scrollbar-color: rgba(132, 204, 22, .45) rgba(255, 255, 255, .04);
  scrollbar-width: thin;
}

.data-table caption {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  color: #d4d4d4;
  font-size: .78rem;
  font-weight: 800;
  line-height: 1.65;
  text-align: left;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  padding: 1rem;
  font-size: .82rem;
  line-height: 1.7;
  vertical-align: top;
}

.data-table th {
  color: #d4d4d4;
  background: rgba(255, 255, 255, .025);
  font-weight: 800;
}

.data-table thead th {
  color: #bef264;
  background: rgba(132, 204, 22, .07);
  font-size: .74rem;
  letter-spacing: .02em;
  white-space: nowrap;
}

.data-table tbody th {
  min-width: 9rem;
}

.data-table td {
  color: #a3a3a3;
}

.data-table tbody tr:last-child th,
.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table tbody tr {
  transition: background-color .2s ease;
}

.data-table tbody tr:hover {
  background: rgba(132, 204, 22, .035);
}

.faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, .09);
}

.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition:
    grid-template-rows .3s ease,
    opacity .25s ease;
}

.faq-answer > div {
  overflow: hidden;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-item .faq-chevron {
  transition: transform .3s ease;
}

.faq-item.is-open .faq-chevron {
  transform: rotate(180deg);
}

.related-link {
  position: relative;
  overflow: hidden;
}

.related-link::after {
  position: absolute;
  right: -4rem;
  bottom: -5rem;
  width: 10rem;
  height: 10rem;
  border-radius: 999px;
  background: rgba(132, 204, 22, .08);
  filter: blur(30px);
  content: "";
  transition: background-color .3s ease;
}

.related-link:hover::after {
  background: rgba(132, 204, 22, .16);
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity .75s ease var(--reveal-delay, 0ms),
    transform .75s ease var(--reveal-delay, 0ms);
}

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

.toast {
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, 1rem);
  transition:
    opacity .2s ease,
    transform .2s ease,
    visibility .2s;
}

.toast.is-visible {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 767px) {
  .data-table {
    min-width: 720px;
  }

  .data-table th,
  .data-table td {
    padding: .8rem;
  }

  .step-line::after {
    display: none;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }

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