/* ============ FONTS ============ */
@font-face {
  font-family: "Umdot12";
  src: url("https://cdn.jsdelivr.net/gh/gykim80/gulim_font@main/fonts/ko/pixel/Umdot12/400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: block;
}

/* ============ TOKENS ============ */
:root {
  --paper: #f4f1e8;
  --paper-2: #ebe6d8;
  --card: #fffdf6;
  --ink: #0a0c28;
  --ink-2: #34374f;
  --ink-3: #6a6d8a;
  --teal: #03d2bd;
  --teal-deep: #06897c;
  --pink: #fc018a;
  --pink-soft: #fcd2e1;
  --amber: #f6c945;

  --font-display: "Umdot12", "Space Mono", monospace;
  --font-body: "Umdot12", "Space Mono", monospace;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --maxw: 1100px;
  --measure: 60ch;
  --radius: 10px;
  --radius-sm: 6px;
  --bd: 2px solid var(--ink);
  --bd3: 3px solid var(--ink);
  --sh: 5px 5px 0 var(--ink);
  --sh-lg: 8px 8px 0 var(--ink);
  --sh-soft: 4px 4px 0 rgba(10, 12, 40, 0.12);

  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 36px;
  --s-5: 56px;
  --s-section: clamp(76px, 9vw, 132px);
}

/* ============ RESET / BASE ============ */
*,
*::before,
*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  letter-spacing: 0.2px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  word-break: keep-all;
  overflow-wrap: break-word;
}
/* 픽셀 스프라이트가 확대돼도 또렷하게 (안티앨리어싱 블러 제거) */
img { display: block; max-width: 100%; image-rendering: pixelated; }
a { color: inherit; text-decoration: none; }
b { font-weight: 400; }

/* faint pixel-grid paper */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(10, 12, 40, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10, 12, 40, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
}

/* ============ LAYOUT HELPERS ============ */
.wrap { width: min(var(--maxw), 90vw); margin: 0 auto; }
.section { padding: var(--s-section) 0; }
.section-head { max-width: var(--measure); margin-bottom: var(--s-5); }
.band {
  border-top: var(--bd3);
  border-bottom: var(--bd3);
  background: var(--paper-2);
}
/* ============ TYPE ============ */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: var(--s-3);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 10px;
  background: var(--pink);
  box-shadow: 14px 0 0 var(--pink);
  border-radius: 2px;
}
.eyebrow.light { color: var(--teal); }
.eyebrow.light::before { background: var(--teal); box-shadow: 14px 0 0 var(--teal); }

.h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 4.4vw, 50px);
  line-height: 1.34;
  letter-spacing: 0.4px;
  margin-bottom: var(--s-3);
  text-wrap: balance;
}
.lead {
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.9;
  color: var(--ink-2);
  max-width: var(--measure);
}
.hl-teal { color: var(--teal-deep); }
.hl-pink { color: var(--pink); }
.mark-teal { background: rgba(3, 210, 189, 0.22); padding: 0 4px; border-radius: 3px; }
.mark-pink { background: var(--pink-soft); padding: 0 4px; border-radius: 3px; color: var(--ink); }
.strike { text-decoration: line-through; text-decoration-color: var(--pink); text-decoration-thickness: 5px; }
.blink { animation: blink 1.1s steps(2) infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

/* ============ BRAND MARK ============ */
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  background: var(--ink) url("samples/logo.svg") center / cover no-repeat;
  box-shadow: 3px 3px 0 var(--pink);
  cursor: pointer;
  flex: none;
}
.brand-mark.small { width: 26px; height: 26px; box-shadow: 2px 2px 0 var(--pink); }
.brand-name { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.5px; }
.brand-name b { color: var(--pink); }

/* ============ NAV ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(20px, 5vw, 56px);
  background: rgba(244, 241, 232, 0.82);
  backdrop-filter: blur(10px);
  border-bottom: 2px solid transparent;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.nav.scrolled { border-color: var(--ink); box-shadow: 0 3px 0 rgba(10, 12, 40, 0.08); }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 2.2vw, 30px); }
.nav-links a { font-family: var(--font-display); font-size: 15px; position: relative; }
.nav-links a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 0;
  height: 3px;
  background: var(--teal);
  transition: width 0.2s;
}
.nav-links a:not(.nav-cta):hover::after { width: 100%; }
.nav-cta {
  background: var(--ink);
  color: var(--paper);
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  box-shadow: 3px 3px 0 var(--pink);
  transition: transform 0.12s, box-shadow 0.12s;
}
.nav-cta:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--pink); }

/* Buy me a coffee — amber 픽셀 칩 */
.nav-coffee {
  background: var(--amber);
  color: var(--ink);
  padding: 8px 14px;
  border: var(--bd);
  border-radius: var(--radius-sm);
  box-shadow: 3px 3px 0 var(--ink);
  transition: transform 0.12s, box-shadow 0.12s;
}
.nav-coffee::after { content: none !important; }
.nav-coffee:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); }

/* language toggle */
.lang-toggle {
  display: inline-flex;
  border: var(--bd);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--card);
}
.lang-toggle button {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.5px;
  padding: 7px 11px;
  border: 0;
  background: transparent;
  color: var(--ink-3);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.lang-toggle button + button { border-left: var(--bd); }
.lang-toggle button:hover { color: var(--ink); }
.lang-toggle button.active { background: var(--ink); color: var(--paper); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 16px;
  padding: 14px 24px;
  border-radius: var(--radius-sm);
  border: var(--bd);
  transition: transform 0.12s, box-shadow 0.12s, background 0.15s;
  white-space: nowrap;
}
.btn-primary { background: var(--teal); color: var(--ink); box-shadow: var(--sh); }
.btn-primary:hover { transform: translate(-3px, -3px); box-shadow: var(--sh-lg); }
.btn-primary:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-ghost { background: transparent; }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn.big { font-size: 19px; padding: 19px 32px; }
.btn.big.btn-primary { background: var(--pink); color: #fff; }

/* ============ HERO ============ */
.hero {
  position: relative;
  padding: clamp(120px, 16vh, 168px) 0 clamp(60px, 8vw, 96px);
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.6;
  background-image:
    linear-gradient(rgba(10, 12, 40, 0.06) 2px, transparent 2px),
    linear-gradient(90deg, rgba(10, 12, 40, 0.06) 2px, transparent 2px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(130% 95% at 50% 0%, #000, transparent 72%);
  mask-image: radial-gradient(130% 95% at 50% 0%, #000, transparent 72%);
  animation: grid-drift 7s steps(8) infinite alternate;
}
@keyframes grid-drift {
  from { background-position: 0 0; }
  to { background-position: 46px 23px; }
}
.hero-inner { position: relative; z-index: 1; width: min(var(--maxw), 90vw); margin: 0 auto; }
.hero-kicker {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--ink-3);
  margin-bottom: var(--s-3);
}
.hero-kicker b { color: var(--pink); }
.hero-title {
  font-family: var(--font-display);
  line-height: 1.04;
  letter-spacing: 1px;
  margin-bottom: var(--s-4);
}
.hero-title .line {
  display: block;
  white-space: nowrap;
  font-size: clamp(46px, 11.5vw, 132px);
}
.hero-title .accent-pink { color: var(--pink); }
.hero-body {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero-sub {
  font-size: clamp(16px, 1.7vw, 20px);
  line-height: 1.95;
  color: var(--ink-2);
  max-width: 44ch;
  margin-bottom: var(--s-4);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: var(--s-4); }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-meta span {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  padding: 6px 12px;
  border: var(--bd);
  border-radius: 4px;
  background: var(--card);
}

/* hero stage */
.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 360px;
}
.stage-card {
  width: min(400px, 92%);
  background: var(--card);
  border: var(--bd3);
  border-radius: var(--radius);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  animation: bob 5s ease-in-out infinite;
}
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1deg); }
}
.stage-bar { display: flex; align-items: center; gap: 7px; padding: 11px 15px; background: var(--ink); }
.stage-bar .dot { width: 11px; height: 11px; border-radius: 50%; background: #4a4d70; }
.stage-bar .dot:nth-child(1) { background: var(--pink); }
.stage-bar .dot:nth-child(2) { background: var(--amber); }
.stage-bar .dot:nth-child(3) { background: var(--teal); }
.stage-bar em {
  margin-left: auto;
  color: #b9bcd8;
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 12px;
}
.stage-screen {
  position: relative;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  background: repeating-conic-gradient(var(--paper-2) 0 25%, #fff 0 50%) 0 0 / 34px 34px;
}
.hero-sprite { width: 68%; image-rendering: pixelated; position: relative; z-index: 2; }
.stage-floor {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 16%;
  height: 8px;
  background: rgba(10, 12, 40, 0.14);
  border-radius: 50%;
  filter: blur(3px);
}
.float-sprite {
  position: absolute;
  width: 74px;
  image-rendering: pixelated;
  filter: drop-shadow(3px 3px 0 rgba(10, 12, 40, 0.18));
}
.float-sprite.f1 { top: 2%; right: -2%; animation: floaty 5s ease-in-out infinite; }
.float-sprite.f2 { bottom: 0; left: -4%; width: 62px; animation: floaty 6.2s ease-in-out infinite reverse; }
.float-sprite.f3 { top: 40%; left: -8%; width: 56px; animation: floaty 4.6s ease-in-out infinite 0.5s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 22px;
  color: var(--ink);
  animation: cue 1.7s ease-in-out infinite;
}
@keyframes cue {
  0%, 100% { transform: translate(-50%, 0); opacity: 0.45; }
  50% { transform: translate(-50%, 9px); opacity: 1; }
}

/* ============ ROSTER MARQUEE ============ */
.roster { background: var(--ink); padding: 20px 0; border-top: var(--bd3); border-bottom: var(--bd3); }
.marquee { overflow: hidden; }
.marquee-track {
  display: flex;
  align-items: center;
  gap: 38px;
  width: max-content;
  animation: scroll-x 42s linear infinite;
}
.roster:hover .marquee-track { animation-play-state: paused; }
.marquee-track img { height: 82px; width: auto; image-rendering: pixelated; transition: transform 0.2s; }
.marquee-track img:hover { transform: translateY(-8px) scale(1.12); }
.m-tag {
  font-family: var(--font-display);
  font-size: 16px;
  letter-spacing: 1px;
  color: var(--teal);
  white-space: nowrap;
  padding: 0 6px;
}
.m-tag.pink { color: var(--pink); }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ PROBLEM ============ */
.problem .h2 { max-width: 16ch; }
.fail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: var(--s-5) 0;
}
.fail {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px;
  background: var(--card);
  border: var(--bd);
  border-radius: var(--radius-sm);
  box-shadow: var(--sh-soft);
  transition: transform 0.18s, box-shadow 0.18s;
}
.fail:hover { transform: translate(-3px, -3px); box-shadow: var(--sh); }
.fail .x {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  background: var(--pink);
  color: #fff;
  border-radius: 5px;
  font-size: 15px;
}
.fail-txt { display: flex; flex-direction: column; gap: 2px; line-height: 1.5; }
.fail-txt b { font-size: 17px; }
.fail-txt em { font-style: normal; color: var(--ink-3); font-family: var(--font-mono); font-size: 12px; }
.punch {
  font-size: clamp(17px, 1.9vw, 22px);
  line-height: 1.85;
  max-width: 64ch;
  border-left: 6px solid var(--teal);
  padding: 4px 0 4px 24px;
}

/* ============ PIPELINE ============ */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  margin-bottom: var(--s-5);
  counter-reset: step;
}
.step {
  position: relative;
  background: var(--card);
  border: var(--bd);
  border-radius: var(--radius);
  padding: 26px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--sh); }
.step-no {
  font-family: var(--font-display);
  font-size: 18px;
  color: #fff;
  background: var(--pink);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: var(--bd);
}
.step:nth-child(odd) .step-no { background: var(--teal); color: var(--ink); }
.step h3 { font-family: var(--font-display); font-size: 18px; letter-spacing: 0.4px; }
.step p { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); }
.hint-card {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 28px 30px;
  box-shadow: var(--sh-lg);
  box-shadow: 8px 8px 0 var(--pink);
}
.hint-label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--teal);
}
.hint-card p { margin-top: 12px; font-size: 16px; line-height: 1.95; }
.hint-card b { color: var(--teal); }

/* ============ TECH ============ */
.tech-list { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 88px); margin-top: var(--s-5); }
.tcard { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 4vw, 60px); align-items: center; }
.tcard.reverse { grid-template-columns: 1.1fr 1fr; }
.tcard.reverse .tcard-media { order: -1; }
.tcard-media {
  border: var(--bd3);
  border-radius: var(--radius);
  box-shadow: var(--sh);
  background: var(--card);
  overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
}
.tcard-media:hover { transform: translate(-3px, -3px); box-shadow: var(--sh-lg); }
.tcard-media img { width: 100%; }
.tcard-index {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--pink);
  margin-bottom: 14px;
}
.tcard h3 { font-family: var(--font-display); font-size: clamp(20px, 2.3vw, 26px); line-height: 1.4; margin-bottom: 14px; }
.tcard p { color: var(--ink-2); font-size: 15.5px; line-height: 1.85; max-width: 46ch; }
.stat {
  margin-top: 24px;
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  background: var(--card);
  border: var(--bd);
  border-radius: var(--radius-sm);
  box-shadow: var(--sh-soft);
}
.stat .num { font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); color: var(--pink); line-height: 1; }
.stat .unit { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }
.stat .unit b { color: var(--teal-deep); font-size: 16px; }

/* ============ GALLERY ============ */
.g-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: var(--s-5); }
.g-item {
  position: relative;
  background: repeating-conic-gradient(var(--paper-2) 0 25%, #fff 0 50%) 0 0 / 26px 26px;
  border: var(--bd);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.g-item:hover { transform: translateY(-6px) rotate(-1deg); box-shadow: var(--sh); z-index: 2; }
.g-item img { width: 76%; image-rendering: pixelated; }
.g-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  background: var(--ink);
  color: var(--paper);
  padding: 7px 8px;
  text-align: center;
  transform: translateY(100%);
  transition: transform 0.2s;
}
.g-item:hover figcaption { transform: translateY(0); }
.gallery-note { margin-top: var(--s-4); font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); }

/* ============ COMPARE ============ */
.vs { color: var(--pink); }
.table {
  border: var(--bd3);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  margin-top: var(--s-5);
  box-shadow: var(--sh);
}
.trow { display: grid; grid-template-columns: 0.85fr 1.15fr 1.4fr; border-bottom: var(--bd); }
.trow:last-child { border-bottom: 0; }
.trow > span { padding: 18px 20px; font-size: 14.5px; line-height: 1.6; border-right: 2px solid rgba(10, 12, 40, 0.1); }
.trow > span:last-child { border-right: 0; }
.trow.thead { background: var(--ink); color: var(--paper); }
.trow.thead > span { font-family: var(--font-display); font-size: 15px; letter-spacing: 0.5px; }
.trow:not(.thead) > span:first-child { font-family: var(--font-display); font-size: 15px; }
.trow .bad { color: var(--ink-3); }
.trow .bad::before { content: "✕ "; color: var(--pink); }
.trow .good { color: var(--ink); background: rgba(3, 210, 189, 0.1); }
.trow .good::before { content: "✓ "; color: var(--teal-deep); }

/* ============ CTA ============ */
.cta { background: var(--ink); color: var(--paper); text-align: center; position: relative; overflow: hidden; }
.cta-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 2px, transparent 2px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 2px, transparent 2px);
  background-size: 42px 42px;
  -webkit-mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent);
  mask-image: radial-gradient(80% 80% at 50% 50%, #000, transparent);
  animation: grid-drift 9s steps(8) infinite alternate-reverse;
}
.cta-inner { position: relative; z-index: 1; }
.cta-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 6vw, 64px);
  line-height: 1.22;
  letter-spacing: 1px;
  margin: 16px 0 var(--s-3);
}
.cta-sub { color: #c7caea; max-width: 52ch; margin: 0 auto var(--s-4); font-size: 16px; line-height: 1.9; }

/* ============ FOOTER ============ */
.foot { background: var(--paper); border-top: var(--bd3); padding: var(--s-5) 0; }
.foot-inner { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.foot-by { font-size: 16px; }
.foot-by b { font-family: var(--font-display); color: var(--pink); }
.foot-fine { color: var(--ink-3); font-size: 14px; max-width: 60ch; line-height: 1.8; }
.foot-gh {
  margin-top: 6px;
  font-family: var(--font-display);
  font-size: 15px;
  color: var(--ink);
  border: var(--bd);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  box-shadow: 3px 3px 0 var(--teal);
  transition: transform 0.12s, box-shadow 0.12s;
}
.foot-gh:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--teal); }

/* ============ HERO STAGE READOUT ============ */
.stage-readout {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 13px;
  background: var(--ink);
  border-top: var(--bd);
}
.stage-readout .rd {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: #b9bcd8;
}
.stage-readout .rd.ok { color: var(--teal); }
.stage-readout .rd.score {
  margin-left: auto;
  color: var(--ink);
  background: var(--teal);
  padding: 1px 8px;
  border-radius: 4px;
}

/* ============ ANATOMY ============ */
.ana-flow {
  display: grid;
  grid-template-columns: 1fr auto 1.5fr auto 1fr;
  align-items: center;
  gap: clamp(10px, 1.8vw, 22px);
  margin-top: var(--s-5);
}
.ana-step { position: relative; display: flex; flex-direction: column; gap: 12px; }
.ana-no {
  position: absolute;
  top: -12px;
  left: -10px;
  z-index: 3;
  font-family: var(--font-display);
  font-size: 13px;
  color: #fff;
  background: var(--pink);
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  border: var(--bd);
}
.ana-media {
  border: var(--bd3);
  border-radius: var(--radius);
  box-shadow: var(--sh);
  overflow: hidden;
  background: repeating-conic-gradient(var(--paper-2) 0 25%, #fff 0 50%) 0 0 / 22px 22px;
  display: grid;
  place-items: center;
  transition: transform 0.22s, box-shadow 0.22s;
}
.ana-media:hover { transform: translate(-3px, -3px); box-shadow: var(--sh-lg); }
.ana-media img { width: 100%; image-rendering: pixelated; }
.ana-media.base { aspect-ratio: 1 / 1; }
.ana-media.base img { width: 88%; }
.ana-media.strip { background: var(--card); }
.ana-media.result { aspect-ratio: 1 / 1; position: relative; }
.ana-media.result img { width: 74%; position: relative; z-index: 2; }
.anchor-x {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 0;
  border-left: 2px dashed var(--pink);
  z-index: 1;
  opacity: 0.7;
}
.ana-step figcaption { display: flex; flex-direction: column; gap: 2px; line-height: 1.45; }
.ana-step figcaption b { font-family: var(--font-display); font-size: 15px; }
.ana-step figcaption em { font-style: normal; color: var(--ink-3); font-family: var(--font-mono); font-size: 11.5px; }
.ana-arrow { font-family: var(--font-mono); font-size: 26px; color: var(--teal-deep); text-align: center; }
.ana-bullets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: var(--s-5);
}
.ana-bullet {
  display: flex;
  gap: 14px;
  padding: 20px 22px;
  background: var(--card);
  border: var(--bd);
  border-radius: var(--radius);
  box-shadow: var(--sh-soft);
  transition: transform 0.18s, box-shadow 0.18s;
}
.ana-bullet:hover { transform: translate(-3px, -3px); box-shadow: var(--sh); }
.ana-bullet .ab-ico {
  flex: none;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 18px;
  color: var(--ink);
  background: var(--teal);
  border: var(--bd);
  border-radius: var(--radius-sm);
}
.ana-bullet b { font-family: var(--font-display); font-size: 16px; }
.ana-bullet p { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); margin-top: 3px; }
.ana-bullet em { font-style: normal; color: var(--pink); }

/* ============ STUDIO (app shot) ============ */
.appshot {
  border: var(--bd3);
  border-radius: var(--radius);
  box-shadow: var(--sh-lg);
  overflow: hidden;
  background: var(--card);
  margin-top: var(--s-5);
}
.app-bar { display: flex; align-items: center; gap: 8px; padding: 11px 16px; background: var(--ink); }
.app-bar .ab-dot { width: 11px; height: 11px; border-radius: 50%; background: #4a4d70; }
.app-bar .ab-dot:nth-child(1) { background: var(--pink); }
.app-bar .ab-dot:nth-child(2) { background: var(--amber); }
.app-bar .ab-dot:nth-child(3) { background: var(--teal); }
.app-name { font-family: var(--font-display); font-size: 14px; color: var(--paper); margin-left: 6px; }
.appshot-full { display: block; width: 100%; height: auto; }

/* 실제 앱 스크린샷 그리드 */
.shots { display: grid; gap: 16px; margin-top: var(--s-4); }
.shots-3 { grid-template-columns: repeat(3, 1fr); }
.shots-2 { grid-template-columns: repeat(2, 1fr); }
.shot {
  margin: 0;
  border: var(--bd3);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--sh-lg);
  display: flex;
  flex-direction: column;
}
.shot img { display: block; width: 100%; height: auto; object-fit: cover; }
.shots-3 .shot img { aspect-ratio: 0.62 / 1; object-position: top; }
.shot figcaption {
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-3);
  padding: 11px 14px;
  border-top: var(--bd3);
  background: var(--paper);
}
.app-actions { margin-left: auto; display: flex; gap: 7px; }
.app-btn {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #c7caea;
  background: #232645;
  padding: 5px 10px;
  border-radius: 5px;
}
.app-btn.ghost { background: transparent; border: 1px solid #3a3d63; }
.app-btn.chip { background: var(--teal); color: var(--ink); }
.app-body {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  background: rgba(10, 12, 40, 0.08);
  gap: 2px;
}
.app-panel { background: var(--card); padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.ap-title { font-family: var(--font-display); font-size: 14px; display: flex; align-items: center; gap: 8px; }
.ap-no {
  width: 22px; height: 22px;
  display: grid; place-items: center;
  font-size: 12px; color: #fff; background: var(--ink);
  border-radius: 5px;
}
.ap-score { margin-left: auto; font-family: var(--font-mono); font-size: 12px; color: var(--ink); background: var(--teal); padding: 2px 9px; border-radius: 5px; }
.ap-field label { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--ink-3); }
.ap-textarea {
  margin-top: 6px;
  padding: 10px 12px;
  border: var(--bd);
  border-radius: var(--radius-sm);
  background: var(--paper);
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink-2);
  min-height: 56px;
}
.ap-styles { display: flex; gap: 6px; flex-wrap: wrap; }
.ap-pill { font-family: var(--font-mono); font-size: 11px; font-weight: 700; padding: 5px 11px; border: var(--bd); border-radius: 20px; color: var(--ink-3); background: var(--paper); }
.ap-pill.on { background: var(--ink); color: var(--paper); }
.ap-base {
  position: relative;
  aspect-ratio: 1 / 1;
  border: var(--bd);
  border-radius: var(--radius-sm);
  background: repeating-conic-gradient(var(--paper-2) 0 25%, #fff 0 50%) 0 0 / 18px 18px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ap-base img { width: 70%; image-rendering: pixelated; }
.ap-base-tag { position: absolute; left: 0; bottom: 0; font-family: var(--font-mono); font-size: 10px; font-weight: 700; background: var(--ink); color: var(--teal); padding: 4px 8px; }
.app-cta {
  margin-top: auto;
  text-align: center;
  font-family: var(--font-display);
  font-size: 13px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--teal);
  color: var(--ink);
  border: var(--bd);
}
.app-cta.ghost { background: transparent; }
.ap-list { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.ap-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 11px;
  border: var(--bd);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12.5px;
  background: var(--paper);
}
.ap-list li em { margin-left: auto; font-style: normal; font-size: 10.5px; color: var(--ink-3); }
.ap-list .st { width: 16px; text-align: center; color: var(--ink-3); }
.ap-list li.done { background: rgba(3, 210, 189, 0.1); }
.ap-list li.done .st { color: var(--teal-deep); }
.ap-list li.gen { background: var(--pink-soft); }
.ap-list li.gen .st, .ap-list li.gen em { color: var(--pink); }
.ap-list .spin { display: inline-block; animation: spin 1.1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.ap-rowbtns { display: flex; gap: 6px; flex-wrap: wrap; }
.app-pillbtn { font-family: var(--font-mono); font-size: 11px; font-weight: 700; padding: 7px 11px; border: var(--bd); border-radius: 6px; background: var(--card); }
.app-pillbtn.hot { background: var(--ink); color: var(--paper); }
.ap-note { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); margin-top: auto; }
.ap-stage {
  aspect-ratio: 4 / 3;
  border: var(--bd);
  border-radius: var(--radius-sm);
  background: repeating-conic-gradient(var(--paper-2) 0 25%, #fff 0 50%) 0 0 / 20px 20px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.ap-stage img { width: 56%; image-rendering: pixelated; }
.ap-frames { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.ap-frames span {
  aspect-ratio: 1 / 1;
  border: var(--bd);
  border-radius: 4px;
  background: repeating-conic-gradient(var(--paper-2) 0 25%, #fff 0 50%) 0 0 / 10px 10px;
}
.ap-frames span:first-child { outline: 2px solid var(--pink); outline-offset: 1px; }
.ap-dirgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.ap-dirgrid .d {
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
  border: var(--bd);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--ink-3);
  background: var(--paper);
}
.ap-dirgrid .d.c { background: var(--ink); }
.ap-dirgrid .d.c img { width: 78%; image-rendering: pixelated; }

/* platform feature row */
.platform { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: var(--s-4); }
.plat-card {
  background: var(--card);
  border: var(--bd);
  border-radius: var(--radius);
  padding: 22px 22px 24px;
  box-shadow: var(--sh-soft);
  transition: transform 0.18s, box-shadow 0.18s;
}
.plat-card:hover { transform: translate(-3px, -3px); box-shadow: var(--sh); }
.plat-h { font-family: var(--font-display); font-size: 17px; margin-bottom: 12px; }
.plat-shot { display: block; width: 100%; height: auto; border: var(--bd); border-radius: var(--radius-sm); margin: 4px 0 2px; image-rendering: pixelated; }
.plat-p { font-size: 13.5px; line-height: 1.7; color: var(--ink-2); margin-top: 12px; }
.plat-p code { font-family: var(--font-mono); font-size: 12px; background: var(--paper-2); padding: 1px 5px; border-radius: 3px; }
.prov-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.prov { font-family: var(--font-mono); font-size: 11px; font-weight: 700; padding: 6px 11px; border: var(--bd); border-radius: 5px; background: var(--paper); }
.prov.tk { background: rgba(3, 210, 189, 0.12); color: var(--teal-deep); }

/* ============ REVEAL / MOTION ============ */
/* 스텝 단위로 끊어지는 전환 → 부드러운 웹 모션 대신 레트로 픽셀 느낌 */
[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.42s steps(6), transform 0.5s steps(6);
}
[data-reveal].in { opacity: 1; transform: none; }

/* 픽셀 폰트가 준비되기 전엔 제목을 숨겨 폴백 폰트 플래시 방지.
   JS가 켜진 경우(html.js)에만 숨김 → no-JS 환경에서도 제목이 보인다. */
html.js [data-pixel] { visibility: hidden; }
html.js.fonts-ready [data-pixel] { visibility: visible; }

/* 글자별 "픽셀 빌드업": 납작하게 깔렸다가 스텝으로 솟아오르며 색수차 플래시 */
[data-pixel] .pl {
  display: inline-block;
  opacity: 0;
  transform-origin: bottom center;
  animation:
    pixin 0.34s steps(4) forwards,
    pixflash 0.34s steps(2) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes pixin {
  0%   { opacity: 0; transform: translateY(-16px) scaleY(0.28); }
  55%  { opacity: 1; transform: translateY(3px) scaleY(1.14); }
  100% { opacity: 1; transform: translateY(0) scaleY(1); }
}
@keyframes pixflash {
  0%   { text-shadow: none; }
  55%  { text-shadow: 3px 3px 0 var(--teal), -3px -3px 0 var(--pink); }
  100% { text-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  [data-pixel] { visibility: visible; }
  [data-pixel] .pl { opacity: 1; transform: none; text-shadow: none; }
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .hero-body { grid-template-columns: 1fr; }
  .hero-stage { min-height: 320px; margin-top: var(--s-3); }
  .nav-links a:not(.nav-cta):not(.nav-coffee) { display: none; }
  .fail-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .tcard, .tcard.reverse { grid-template-columns: 1fr; }
  .tcard.reverse .tcard-media { order: 0; }
  .g-grid { grid-template-columns: repeat(2, 1fr); }
  .trow, .trow.thead { grid-template-columns: 1fr; }
  .trow > span { border-right: 0; border-bottom: 2px solid rgba(10, 12, 40, 0.1); }
  .trow > span:last-child { border-bottom: 0; }
  .trow.thead { display: none; }
  .ana-flow { grid-template-columns: 1fr; }
  .ana-arrow { transform: rotate(90deg); }
  .ana-bullets { grid-template-columns: 1fr; }
  .app-body { grid-template-columns: 1fr; }
  .platform { grid-template-columns: 1fr; }
  .shots-3 { grid-template-columns: 1fr 1fr; }
  .shots-2 { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
  .g-grid { grid-template-columns: 1fr 1fr; }
  .hero-title .line { font-size: clamp(40px, 13vw, 64px); }
}
