:root {
  --bg: #06070a;
  --panel: rgba(14, 16, 23, 0.74);
  --panel-strong: rgba(10, 12, 18, 0.92);
  --line: rgba(255, 255, 255, 0.12);
  --text: #f3efe6;
  --muted: #aeb4bf;
  --muted-strong: #d2d7de;
  --acid: #d5ff58;
  --ice: #89d7ff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
  --radius: 28px;
  --font-display: "Syne", "Noto Sans KR", sans-serif;
  --font-body: "Noto Sans KR", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 12% 10%, rgba(137, 215, 255, 0.08), transparent 24%),
    radial-gradient(circle at 86% 14%, rgba(213, 255, 88, 0.07), transparent 20%),
    linear-gradient(180deg, #050609 0%, #091019 48%, #06070a 100%);
  overflow-x: hidden;
}

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

button,
input,
textarea,
select {
  font: inherit;
}

.field-canvas,
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.field-canvas {
  z-index: 0;
}

.grain {
  z-index: 1;
  opacity: 0.12;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(circle at center, black 48%, transparent 92%);
}

.progress-rail {
  position: fixed;
  top: 18vh;
  right: 14px;
  width: 4px;
  height: 44vh;
  z-index: 4;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-rail__bar {
  display: block;
  width: 100%;
  height: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--acid), var(--ice));
  box-shadow: 0 0 18px rgba(137, 215, 255, 0.4);
}

.site-shell {
  position: relative;
  z-index: 3;
  width: min(1240px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0 56px;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(7, 8, 12, 0.78);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.22);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand__mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  color: #090a0d;
  font-family: var(--font-display);
  font-weight: 800;
  background: linear-gradient(135deg, var(--acid), var(--ice));
  box-shadow: 0 12px 24px rgba(137, 215, 255, 0.22);
}

.brand__text {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}

.brand__text strong {
  font-family: var(--font-display);
  font-size: 1rem;
  line-height: 1;
}

.brand__text small {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-nav {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  color: var(--muted);
  font-size: 0.94rem;
}

.site-nav a {
  padding: 8px 0;
  transition: color 180ms ease;
}

.site-nav a.is-active,
.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--text);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #090a0d;
  font-family: var(--font-display);
  font-weight: 800;
  background: linear-gradient(135deg, var(--acid), #ebff9e);
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease,
    background 180ms ease;
  box-shadow: 0 18px 36px rgba(213, 255, 88, 0.16);
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(213, 255, 88, 0.22);
}

.button--secondary,
.button--ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  box-shadow: none;
}

.text-link {
  display: inline-flex;
  align-items: center;
  color: var(--muted-strong);
  font-weight: 500;
  transition: color 180ms ease;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--acid);
}

.section {
  padding: 56px 0;
}

.eyebrow,
.section-heading__label,
.stage-kicker,
.card-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--acid);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 560px);
  grid-template-areas:
    "intro stage"
    "facts stage";
  gap: 24px 38px;
  align-items: start;
  padding-top: 24px;
}

.hero__intro {
  grid-area: intro;
}

.hero__stage {
  grid-area: stage;
  perspective: 1400px;
}

.hero__facts {
  grid-area: facts;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero h1,
.section-heading h2,
.film-system__intro h2,
.contact-card h2 {
  margin: 18px 0 18px;
  font-family: var(--font-display);
  font-size: clamp(3.1rem, 7vw, 6.2rem);
  line-height: 0.93;
  letter-spacing: -0.06em;
  max-width: 10ch;
}

.section-heading h2,
.film-system__intro h2,
.contact-card h2 {
  max-width: 15ch;
  font-size: clamp(2.2rem, 4.8vw, 4.3rem);
  line-height: 0.98;
}

.hero__lede,
.section-heading p,
.film-system__intro p,
.contact-card p,
.service-card p,
.prompt-card__lede,
.workflow-card li,
.process-card p,
.proof-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.82;
}

.hero__summary,
.service-card ul,
.workflow-card ol {
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero__summary li,
.service-card li,
.workflow-card li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 10px;
  color: var(--muted-strong);
}

.hero__summary li::before,
.service-card li::before,
.workflow-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.76em;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--acid);
}

.hero__actions,
.contact-card__actions,
.prompt-card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.hero__actions {
  margin-top: 28px;
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero__trust span,
.fallback-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.04);
}

.fact-card,
.service-card,
.prompt-card,
.workflow-card,
.process-card,
.proof-card,
.contact-card,
.stage-frame {
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    var(--panel-strong);
  backdrop-filter: blur(20px);
  box-shadow: var(--shadow);
}

.fact-card,
.service-card,
.prompt-card,
.workflow-card,
.process-card,
.proof-card {
  border-radius: 28px;
}

.fact-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  background:
    linear-gradient(180deg, rgba(137, 215, 255, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(10, 12, 18, 0.9);
}

.fact-card span {
  color: var(--muted);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fact-card strong {
  font-family: var(--font-display);
  font-size: 1.08rem;
  line-height: 1.2;
}

.stage-frame {
  padding: 18px;
  border-radius: 34px;
  transform-style: preserve-3d;
}

.stage-frame__top,
.stage-frame__bottom {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.stage-frame__top h2 {
  margin: 8px 0 0;
  font-family: var(--font-display);
  font-size: 1.46rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--acid);
  border: 1px solid rgba(213, 255, 88, 0.24);
  background: rgba(213, 255, 88, 0.08);
  white-space: nowrap;
}

.stage-screen {
  position: relative;
  margin: 18px 0 14px;
  aspect-ratio: 16 / 10.5;
  min-height: 420px;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    radial-gradient(circle at 18% 16%, rgba(137, 215, 255, 0.14), transparent 24%),
    radial-gradient(circle at 86% 22%, rgba(213, 255, 88, 0.12), transparent 20%),
    linear-gradient(180deg, rgba(9, 12, 18, 0.96), rgba(5, 7, 11, 0.96));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.stage-screen::before,
.stage-screen::after {
  content: "";
  position: absolute;
}

.stage-screen::before {
  left: 34px;
  top: 36px;
  right: 168px;
  bottom: 118px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(7, 9, 13, 0.84), rgba(5, 7, 11, 0.98)),
    radial-gradient(circle at 18% 12%, rgba(137, 215, 255, 0.14), transparent 30%);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.24);
}

.stage-screen::after {
  width: 140px;
  height: 140px;
  top: 34px;
  right: 34px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(213, 255, 88, 0.18), transparent 72%);
  filter: blur(2px);
}

.stage-video,
.stage-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.stage-video {
  display: none;
  object-fit: cover;
}

.stage-video.is-loaded {
  display: block;
}

.stage-fallback {
  display: grid;
  align-content: space-between;
  gap: 18px;
  padding: 28px;
  background:
    radial-gradient(circle at 20% 24%, rgba(137, 215, 255, 0.14), transparent 26%),
    radial-gradient(circle at 88% 70%, rgba(213, 255, 88, 0.12), transparent 24%),
    linear-gradient(180deg, rgba(11, 15, 23, 0.76), rgba(7, 9, 13, 0.94));
  z-index: 1;
}

.stage-fallback.is-hidden {
  display: none;
}

.fallback-copy,
.fallback-note {
  position: relative;
  z-index: 1;
  max-width: 18rem;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 22px;
  background: rgba(8, 11, 16, 0.78);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.fallback-copy span,
.fallback-note span {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.fallback-copy strong,
.fallback-note strong {
  display: block;
  margin: 12px 0 10px;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.fallback-copy p,
.fallback-note p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.68;
}

.fallback-note {
  margin-left: auto;
  max-width: 15rem;
}

.fallback-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  position: relative;
  z-index: 1;
}

.fallback-strip span {
  background: rgba(8, 11, 16, 0.78);
}

.stage-frame__bottom {
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.6;
}

.section-heading {
  max-width: 760px;
}

.services__grid,
.film-system__grid,
.process__grid,
.proof__grid {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}

.services__grid,
.proof__grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.service-card,
.prompt-card,
.workflow-card,
.proof-card {
  padding: 28px;
}

.service-card h3,
.prompt-card h3,
.workflow-card h3,
.process-card h3,
.proof-card h3 {
  margin: 18px 0 12px;
  font-family: var(--font-display);
  font-size: 1.6rem;
  line-height: 1.05;
}

.film-system {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 20px;
  align-items: start;
}

.film-system__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  margin-top: 0;
}

.workflow-card {
  grid-column: 1 / -1;
}

.copy-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.copy-button:hover,
.copy-button:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(213, 255, 88, 0.34);
  color: var(--acid);
}

.copy-button.is-copied {
  color: #090a0d;
  border-color: transparent;
  background: linear-gradient(135deg, var(--acid), var(--ice));
}

.prompt-block {
  margin: 20px 0 0;
  padding: 20px;
  overflow: auto;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(5, 7, 11, 0.86);
  color: var(--muted-strong);
  font-family: "Courier New", monospace;
  font-size: 0.94rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.process__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-card {
  padding: 26px;
}

.process-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--acid);
  border: 1px solid rgba(213, 255, 88, 0.24);
  background: rgba(213, 255, 88, 0.08);
  font-family: var(--font-display);
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 32px;
  border-radius: 32px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 20px;
  padding: 18px 2px 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

@media (max-width: 1180px) {
  .hero,
  .film-system,
  .contact-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "intro"
      "stage"
      "facts";
  }

  .hero__facts,
  .services__grid,
  .proof__grid,
  .film-system__grid,
  .process__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 20px, 1240px);
    padding-top: 12px;
  }

  .site-header {
    flex-wrap: wrap;
    justify-content: center;
  }

  .site-nav {
    gap: 12px;
  }

  .hero h1 {
    font-size: clamp(2.8rem, 18vw, 4.9rem);
  }

  .stage-frame {
    padding: 14px;
  }

  .stage-fallback {
    padding: 18px;
  }

  .fallback-note {
    margin-left: 0;
  }

  .contact-card {
    padding: 24px;
  }
}

@media (max-width: 520px) {
  .section {
    padding: 42px 0;
  }

  .progress-rail {
    right: 8px;
    height: 34vh;
  }

  .button,
  .copy-button,
  .text-link {
    width: 100%;
    justify-content: center;
  }

  .hero__actions,
  .contact-card__actions,
  .prompt-card__head,
  .stage-frame__top,
  .stage-frame__bottom {
    flex-direction: column;
    align-items: stretch;
  }

  .stage-screen {
    aspect-ratio: 3 / 4;
  }
}

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

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
