/* NINJA OPS homepage — "Blade" concept prototype.
   One signature gesture (the diagonal blade cut) carries every transition. */

:root {
  --ink-0: #050607;
  --ink-1: #0a0c0f;
  --ink-2: #12151a;
  --ink-3: #1b1f26;
  --bone: #edeff2;
  --mute: rgba(237, 239, 242, 0.66);
  --dim: rgba(237, 239, 242, 0.4);
  --line: rgba(237, 239, 242, 0.12);
  --line-soft: rgba(237, 239, 242, 0.06);
  --blade: #b9d3ff;
  --accent: #4c86ff;
  --up: #ff6f91;
  --down: #6f9bff;
  --font: "Pretendard", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Pretendard", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --gutter: clamp(16px, 4.4vw, 72px);
  --section-y: clamp(96px, 14vw, 200px);
  --radius: 14px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --blade-angle: -28deg;
  color-scheme: dark;
}

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

html {
  background: var(--ink-0);
  -webkit-text-size-adjust: 100%;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: var(--ink-0);
  color: var(--bone);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

body.is-intro {
  overflow: hidden;
}

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

img {
  display: block;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--bone);
  color: var(--ink-0);
}

.skip:focus {
  top: 12px;
}

:focus-visible {
  outline: 2px solid var(--blade);
  outline-offset: 3px;
}

/* ---------- shared atoms ---------- */

/* A short blade dash and plain Korean label; no numbered mono codes. */
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--blade);
  font-size: 15px;
  font-weight: 640;
  letter-spacing: -0.01em;
}

.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
  transform: skewX(var(--blade-angle));
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 640;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  isolation: isolate;
  transition: color 320ms var(--ease-out), border-color 320ms var(--ease-out), scale 160ms var(--ease-out);
}

/* Touch screens have no hover: a press answers instead (desktop keeps the magnetic pull). */
@media (hover: none) and (prefers-reduced-motion: no-preference) {
  .btn:active {
    scale: 0.97;
  }
}

.btn--sm {
  height: 38px;
  padding: 0 16px;
  font-size: 13px;
}

.btn--lg {
  height: 60px;
  padding: 0 30px;
  font-size: 16px;
}

.btn--solid {
  background: var(--bone);
  color: var(--ink-0);
}

/* The blade sweep: a bright diagonal band crosses the button on hover; on touch screens once
   when the button comes into view (.is-swept) and on a press. */
.btn--solid::after {
  content: "";
  position: absolute;
  inset: -40% auto -40% -60%;
  width: 40%;
  z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(76, 134, 255, 0.55), transparent);
  transform: skewX(var(--blade-angle)) translateX(0);
  transition: transform 700ms var(--ease-out);
}

.btn--solid:hover::after,
.btn--solid:active::after,
.btn--solid.is-swept::after {
  transform: skewX(var(--blade-angle)) translateX(520%);
}

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--bone);
}

.btn--ghost:hover {
  border-color: rgba(237, 239, 242, 0.4);
}

.up {
  color: var(--up);
}

.down {
  color: var(--down);
}


/* ---------- intro ---------- */

.intro {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: var(--ink-0);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

/* The intro is removed by script; without scripting it must never cover the page. */
@media (scripting: none) {
  .intro {
    display: none;
  }
}

.intro__count {
  font-family: var(--mono);
  font-size: clamp(56px, 12vw, 160px);
  font-weight: 500;
  letter-spacing: -0.06em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.intro__count small {
  margin-left: 8px;
  font-size: 0.2em;
  letter-spacing: 0;
  color: var(--dim);
}

.intro__mark {
  position: absolute;
  bottom: 32px;
  left: var(--gutter);
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.intro__cut {
  position: absolute;
  left: -10%;
  top: 50%;
  width: 120%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blade) 30%, #fff 50%, var(--blade) 70%, transparent);
  box-shadow: 0 0 24px 4px rgba(140, 180, 255, 0.55);
  transform: rotate(var(--blade-angle)) scaleX(0);
  transform-origin: 0 50%;
}

.progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 60;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--blade));
  transform: scaleX(0);
  transform-origin: 0 50%;
}

/* ---------- nav ---------- */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
  padding: 0 var(--gutter);
  transition: background-color 400ms var(--ease-out), border-color 400ms var(--ease-out), transform 500ms var(--ease-out);
  border-bottom: 1px solid transparent;
}

.nav.is-solid {
  background: rgba(5, 6, 7, 0.72);
  border-bottom-color: var(--line-soft);
  -webkit-backdrop-filter: blur(18px) saturate(120%);
  backdrop-filter: blur(18px) saturate(120%);
}

.nav.is-hidden {
  transform: translateY(-100%);
}

.nav__brand {
  display: inline-flex;
  align-items: center;
}

.nav__logo {
  display: block;
  width: 110px;
  height: auto;
}

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--mute);
}

.nav__links a {
  position: relative;
  transition: color 240ms ease;
}

.nav__links a:hover {
  color: var(--bone);
}

.nav__actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  font-size: 14px;
}

.nav__login {
  color: var(--mute);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 120px var(--gutter) clamp(40px, 6vw, 88px);
  overflow: hidden;
}

.hero__field {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Headline on the left, the Sales Brief it promises on the right. */
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: end;
  gap: clamp(32px, 5vw, 88px);
}

.hero__copy {
  display: grid;
  gap: clamp(20px, 2.6vw, 32px);
}

.hero__title {
  font-size: clamp(52px, 8.6vw, 156px);
  font-weight: 860;
  line-height: 0.98;
  letter-spacing: -0.058em;
}

.hero__line {
  display: block;
}

.hero__title em {
  font-style: normal;
  color: var(--blade);
}

.hero__lead {
  max-width: 520px;
  color: var(--mute);
  font-size: clamp(17px, 1.4vw, 21px);
  line-height: 1.6;
}

.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.brief {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 22px 22px 18px;
  border: 1px solid rgba(185, 211, 255, 0.22);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(27, 33, 44, 0.86), rgba(10, 12, 15, 0.9));
  box-shadow: 0 30px 90px -30px rgba(76, 134, 255, 0.5);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.brief__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brief__title {
  color: var(--blade);
  font-size: 15px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.brief__copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--mute);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.brief__copy:hover {
  color: var(--bone);
  border-color: rgba(237, 239, 242, 0.32);
}

.brief__copy svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.brief__copy.is-done {
  color: var(--blade);
  border-color: rgba(185, 211, 255, 0.45);
}

.brief__body {
  display: grid;
  gap: 12px;
  font-size: 15px;
  line-height: 1.6;
}

.brief__headline {
  font-size: 18px;
  font-weight: 720;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.brief__lines {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--mute);
}

.brief__lines li::before {
  content: "· ";
}

.brief__lines b {
  font-weight: 600;
}

.brief__why {
  color: var(--mute);
}

.brief__todo {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line-soft);
}

.brief__todo > span {
  color: var(--blade);
  font-weight: 640;
}

.brief__text-btn {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--dim);
  font: inherit;
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.brief__note {
  color: var(--dim);
  font-size: 12px;
}

/* Typing reveal: each line is hidden until the script types it. */
.brief [data-type].is-pending {
  visibility: hidden;
}

.brief .caret::after {
  content: "";
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -0.12em;
  background: var(--blade);
  animation: caret 0.8s steps(1) infinite;
}

@keyframes caret {
  50% { opacity: 0; }
}

.scroll-cue {
  position: absolute;
  top: 50%;
  right: calc(var(--gutter) / 2);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.2em;
  writing-mode: vertical-rl;
}

.scroll-cue span {
  position: relative;
  width: 1px;
  height: 64px;
  background: var(--line);
  overflow: hidden;
}

.scroll-cue span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--blade);
  animation: cue 2.2s var(--ease-out) infinite;
}

@keyframes cue {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

/* ---------- pain ---------- */

.pain {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  padding: var(--section-y) var(--gutter);
}

.pain__list {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.pain__item {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  align-items: center;
  gap: 32px;
  padding: clamp(24px, 3vw, 40px) 0;
  border-bottom: 1px solid var(--line);
}

.pain__problem {
  position: relative;
  width: fit-content;
  font-size: clamp(24px, 3vw, 46px);
  font-weight: 760;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

/* The blade cuts the problem; JS scrubs scaleX and fades the text. */
.pain__cut {
  position: absolute;
  left: -2%;
  top: 52%;
  width: 104%;
  height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--blade), #fff 60%, var(--blade));
  box-shadow: 0 0 18px 2px rgba(140, 180, 255, 0.55);
  transform: rotate(-2deg) scaleX(0);
  transform-origin: 0 50%;
}

.pain__answer {
  color: var(--blade);
  font-size: clamp(18px, 1.8vw, 26px);
  font-weight: 680;
  letter-spacing: -0.02em;
}

/* ---------- real screens ---------- */

.screens {
  display: grid;
  gap: clamp(32px, 4vw, 56px);
  padding: var(--section-y) var(--gutter);
}

.screens__head {
  display: grid;
  gap: 20px;
  max-width: 820px;
}

.screens__title,
.profit__title {
  font-size: clamp(34px, 4.6vw, 76px);
  font-weight: 820;
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.screens__lead,
.profit__lead {
  max-width: 560px;
  color: var(--mute);
  font-size: 17px;
}

.shot {
  position: relative;
  display: grid;
  gap: 12px;
  margin: 0;
}

.shot__frame {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink-1);
  box-shadow: 0 40px 120px -40px rgba(76, 134, 255, 0.4);
}

.shot__frame img {
  display: block;
  width: 100%;
  height: auto;
}

.shot__scan {
  position: absolute;
  inset: -10% -30%;
  background: linear-gradient(90deg, transparent 47%, rgba(185, 211, 255, 0.55) 50%, transparent 53%);
  pointer-events: none;
}

.shot figcaption {
  color: var(--dim);
  font-size: 14px;
}

.shot figcaption b {
  margin-right: 8px;
  color: var(--bone);
  font-weight: 680;
}

.shot__pin {
  position: absolute;
  left: var(--x);
  top: var(--y);
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid rgba(185, 211, 255, 0.45);
  border-radius: 10px;
  background: rgba(5, 6, 7, 0.88);
  color: var(--mute);
  font-size: 13px;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.shot__pin b {
  color: var(--blade);
  font-weight: 700;
}

.screens__row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
}

/* ---------- loop ---------- */

.loop {
  position: relative;
}

.loop__pin {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) 1.4fr;
  align-items: center;
  gap: clamp(32px, 5vw, 96px);
  min-height: 100svh;
  padding: 96px var(--gutter) 48px;
}

.loop__head {
  display: grid;
  gap: 28px;
}

.loop__title {
  font-size: clamp(36px, 4.4vw, 72px);
  font-weight: 820;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.loop__steps {
  display: grid;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.loop__steps > li {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  column-gap: 8px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--dim);
  transition: color 400ms var(--ease-out);
}

.loop__steps > li::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  height: 1px;
  background: var(--blade);
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform 600ms var(--ease-out);
}

.loop__steps > li.is-active {
  color: var(--bone);
}

.loop__steps > li.is-active::before {
  transform: scaleX(1);
}

.loop__steps > li > span {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 26px;
}

.loop__steps > li > b {
  font-size: 18px;
  font-weight: 700;
}

.loop__steps > li > small {
  grid-column: 2;
  max-height: 0;
  color: var(--mute);
  font-size: 14px;
  line-height: 1.55;
  overflow: hidden;
  opacity: 0;
  transition: max-height 500ms var(--ease-out), opacity 400ms ease;
}

.loop__steps > li.is-active > small {
  max-height: 4.8em;
  opacity: 1;
}

/* Steps open as the script scrolls through them; without scripting every step is open. */
@media (scripting: none) {
  .loop__steps > li > small {
    max-height: none;
    opacity: 1;
  }
}

.loop__stage {
  position: relative;
  display: grid;
  place-items: center;
}

.loop__numeral {
  position: absolute;
  right: -2%;
  top: -18%;
  color: transparent;
  font-family: var(--mono);
  font-size: clamp(160px, 22vw, 380px);
  font-weight: 500;
  letter-spacing: -0.08em;
  line-height: 1;
  -webkit-text-stroke: 1px rgba(237, 239, 242, 0.09);
  pointer-events: none;
}

.loop__ring {
  position: absolute;
  left: -36px;
  bottom: -36px;
  width: 92px;
  height: 92px;
  transform: rotate(-90deg);
}

.loop__ring circle {
  fill: none;
  stroke-width: 2;
}

.loop__ring-track {
  stroke: var(--line);
}

.loop__ring-fill {
  stroke: var(--blade);
  stroke-dasharray: 327;
  stroke-dashoffset: 327;
}

.device {
  position: relative;
  width: 100%;
  max-width: 860px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-2), var(--ink-1));
  box-shadow: 0 40px 120px -40px rgba(76, 134, 255, 0.35), 0 0 0 1px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.device__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--mute);
  font-family: var(--mono);
  font-size: 12px;
}

.device__bar i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ink-3);
}

.device__bar span {
  margin-left: 10px;
}

.device__bar em {
  margin-left: auto;
  color: var(--dim);
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.1em;
}

.device__screen {
  position: relative;
  display: grid;
  height: clamp(400px, 31vw, 470px);
}

.device__wipe {
  position: absolute;
  inset: -20% -30%;
  z-index: 3;
  background: linear-gradient(90deg, transparent 47%, rgba(185, 211, 255, 0.7) 50%, transparent 53%);
  transform: skewX(var(--blade-angle)) translateX(-120%);
  pointer-events: none;
  mix-blend-mode: screen;
}

/* Every scene fills the fixed screen: the last block takes the remaining height. */
.scene {
  grid-area: 1 / 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  min-height: 0;
  padding: clamp(18px, 2.4vw, 32px);
  opacity: 0;
  visibility: hidden;
}

.scene:has(> :only-child) {
  grid-template-rows: minmax(0, 1fr);
}

.scene.is-active {
  opacity: 1;
  visibility: visible;
}

/* A console capture as the scene (example data): it fills the screen from its top. */
.scene > picture {
  display: block;
  min-height: 0;
}

.scene__shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}

/* The pinned device can be dragged to the next or previous step. */
.loop__stage .device {
  cursor: grab;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}

.panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 18px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.panel__label {
  color: var(--dim);
  font-size: 12px;
}

.panel__value {
  margin-top: 4px;
  font-size: clamp(22px, 2.2vw, 32px);
  font-weight: 760;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.panel__value span {
  margin-left: 6px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.scene__search {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 8px 0 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--ink-0);
  font-size: 15px;
}

.scene__search span {
  color: var(--dim);
}

.scene__search kbd {
  margin-left: auto;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 640;
}

.scene__split {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}

.area,
.line {
  flex: 1;
  width: 100%;
  min-height: 110px;
  margin-top: 12px;
}

.area__line,
.line__path {
  fill: none;
  stroke: #8fb4ff;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.line__grid {
  stroke: var(--line-soft);
  vector-effect: non-scaling-stroke;
}

.rank {
  display: grid;
  gap: 12px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.rank li {
  display: grid;
  grid-template-columns: 16px 1fr auto;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
}

.rank i,
.channels i {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--blade));
  transform: scaleX(var(--w));
  transform-origin: 0 50%;
}

.rank b,
.channels b {
  color: var(--bone);
  font-weight: 500;
}

.shelf {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: minmax(0, 1fr);
  gap: 14px;
}

.shelf__card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 10px 10px 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.shelf__card img {
  display: block;
  flex: 1;
  width: 100%;
  min-height: 0;
  border-radius: 6px;
  object-fit: cover;
}

.shelf__card p {
  margin-top: 10px;
  font-size: 13px;
  color: var(--mute);
}

.tag {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 4px 9px;
  border: 1px solid rgba(185, 211, 255, 0.4);
  border-radius: 999px;
  background: rgba(5, 6, 7, 0.82);
  color: var(--blade);
  font-family: var(--mono);
  font-size: 11px;
  white-space: nowrap;
}

.tag--up {
  border-color: rgba(255, 111, 145, 0.45);
  color: var(--up);
}

.tag--down {
  border-color: rgba(111, 155, 255, 0.45);
  color: var(--down);
}

.shelf__scan {
  position: absolute;
  inset: -12px -40%;
  background: linear-gradient(90deg, transparent 46%, rgba(185, 211, 255, 0.35) 50%, transparent 54%);
  transform: skewX(var(--blade-angle)) translateX(-100%);
  pointer-events: none;
}

.kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.kpis > div {
  padding: 16px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.kpis p {
  color: var(--dim);
  font-size: 12px;
}

.kpis b {
  display: block;
  margin-top: 4px;
  font-size: clamp(17px, 1.7vw, 24px);
  font-weight: 760;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.kpis span {
  font-family: var(--mono);
  font-size: 12px;
}

.ads {
  display: grid;
  grid-template-columns: 220px 1fr;
  align-items: center;
  gap: 32px;
  padding-top: 12px;
}

.gauge {
  position: relative;
  display: grid;
  place-items: center;
}

.gauge svg {
  width: 100%;
  transform: rotate(-90deg);
}

.gauge circle {
  fill: none;
  stroke-width: 7;
}

.gauge__track {
  stroke: var(--line-soft);
}

.gauge__fill {
  stroke: var(--blade);
  stroke-linecap: round;
  stroke-dasharray: 302;
  stroke-dashoffset: 302;
}

.gauge p {
  position: absolute;
  display: grid;
  text-align: center;
}

.gauge b {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.gauge span {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
}

.channels {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.channels li {
  display: grid;
  grid-template-columns: 84px 1fr 52px;
  align-items: center;
  gap: 14px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
}

.actions {
  display: grid;
  align-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.actions li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  column-gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: linear-gradient(100deg, rgba(76, 134, 255, 0.08), rgba(255, 255, 255, 0.015) 40%);
}

.actions p {
  font-size: 15px;
  font-weight: 680;
}

.actions small {
  grid-column: 2;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 11px;
}

.actions__kind {
  grid-row: span 2;
  padding: 5px 10px;
  border: 1px solid rgba(185, 211, 255, 0.35);
  border-radius: 999px;
  color: var(--blade);
  font-size: 12px;
  font-weight: 640;
}

.actions__kind--risk {
  border-color: rgba(255, 111, 145, 0.45);
  color: var(--up);
}

.actions em {
  grid-row: span 2;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--bone);
  color: var(--ink-0);
  font-size: 12px;
  font-style: normal;
  font-weight: 700;
}

.draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

/* ---------- profit (waterfall) ---------- */

.profit {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) 1.3fr;
  align-items: center;
  gap: clamp(32px, 5vw, 96px);
  padding: var(--section-y) var(--gutter);
}

.profit__copy {
  display: grid;
  gap: 22px;
}

.profit__title em {
  font-style: normal;
  color: var(--blade);
}

.profit__kpis {
  display: flex;
  gap: 32px;
  margin: 0;
}

.profit__kpis dt {
  color: var(--dim);
  font-size: 14px;
}

.profit__kpis dd {
  margin: 4px 0 0;
  font-size: clamp(26px, 2.6vw, 40px);
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}

.profit__kpis small {
  color: var(--blade);
  font-size: 0.5em;
  font-weight: 700;
  letter-spacing: 0;
}

.profit__formula {
  color: var(--dim);
  font-size: 13px;
}

.fall {
  display: grid;
  gap: 12px;
  margin: 0;
}

/* Each row is a floating bar from --from% to --to% of 결제 매출. */
.fall__bars {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fall__bars li {
  position: relative;
  display: grid;
  grid-template-columns: 112px 1fr 96px;
  align-items: center;
  gap: 14px;
  font-size: 14px;
}

.fall__bars li::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  height: 30px;
  margin-left: calc(var(--from) * 1%);
  width: calc((var(--to) - var(--from)) * 1%);
  border-radius: 6px;
  background: linear-gradient(90deg, rgba(255, 111, 145, 0.75), rgba(255, 111, 145, 0.45));
  transform-origin: 100% 50%;
  transform: scaleX(var(--grow, 1));
}

.fall__bars li.is-total::before {
  background: linear-gradient(90deg, rgba(185, 211, 255, 0.4), rgba(185, 211, 255, 0.2));
  transform-origin: 0 50%;
}

.fall__bars li.is-result::before {
  background: linear-gradient(90deg, var(--accent), var(--blade));
  box-shadow: 0 0 40px -6px rgba(76, 134, 255, 0.7);
  transform-origin: 0 50%;
}

.fall__bars span {
  grid-column: 1;
  grid-row: 1;
  color: var(--mute);
}

.fall__bars b {
  grid-column: 3;
  grid-row: 1;
  color: var(--dim);
  text-align: right;
  font-weight: 640;
  font-variant-numeric: tabular-nums;
}

.fall__bars li:is(.is-total, .is-result) b {
  color: var(--bone);
}

.fall__bars li:not(.is-total, .is-result) span {
  color: var(--dim);
}

.fall__bars li.is-result span,
.fall__bars li.is-result b {
  color: var(--bone);
  font-weight: 760;
}

.fall figcaption {
  color: var(--dim);
  font-size: 12px;
  text-align: right;
}

/* ---------- CS hub ---------- */

.cs {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) 1.3fr;
  align-items: center;
  gap: clamp(32px, 5vw, 96px);
  padding: var(--section-y) var(--gutter);
}

.cs__copy {
  display: grid;
  gap: 22px;
}

.cs__title {
  font-size: clamp(34px, 4.6vw, 76px);
  font-weight: 820;
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.cs__lead {
  max-width: 480px;
  color: var(--mute);
  font-size: 17px;
}

.cs__offer {
  max-width: 480px;
  padding: 16px 18px;
  border: 1px solid rgba(185, 211, 255, 0.4);
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(76, 134, 255, 0.16), transparent 70%);
  font-size: 16px;
}

.cs__offer b {
  color: var(--blade);
}

.badge {
  padding: 3px 9px;
  border: 1px solid rgba(255, 111, 145, 0.5);
  border-radius: 999px;
  color: var(--up);
  font-size: 12px;
  font-weight: 700;
}

.inbox {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  min-height: 360px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-2), var(--ink-1));
  box-shadow: 0 40px 120px -40px rgba(76, 134, 255, 0.35);
  overflow: hidden;
}

.inbox__list {
  display: grid;
  align-content: start;
  border-right: 1px solid var(--line-soft);
}

.inbox__item {
  display: grid;
  gap: 4px;
  padding: 16px;
  border-bottom: 1px solid var(--line-soft);
}

.inbox__item.is-open {
  background: rgba(76, 134, 255, 0.12);
  box-shadow: inset 2px 0 0 var(--blade);
}

.inbox__ch {
  width: fit-content;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ink-3);
  color: var(--blade);
  font-size: 11px;
  font-weight: 700;
}

.inbox__item b {
  font-size: 14px;
  font-weight: 680;
}

.inbox__item small {
  color: var(--dim);
  font-size: 12px;
}

.inbox__thread {
  display: grid;
  align-content: end;
  gap: 12px;
  padding: 20px;
}

.inbox__q,
.inbox__a {
  max-width: 88%;
  padding: 12px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.inbox__q {
  background: var(--ink-3);
}

.inbox__a {
  justify-self: end;
  background: var(--accent);
  color: #fff;
}

.inbox__send {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--dim);
  font-size: 13px;
}

.inbox__send em {
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--bone);
  color: var(--ink-0);
  font-style: normal;
  font-weight: 700;
}

/* ---------- brands ---------- */

.brands {
  display: grid;
  gap: 32px;
  padding: var(--section-y) var(--gutter) 0;
}

.brands[hidden] {
  display: none;
}

.logos {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.logos__track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: logos 40s linear infinite;
}

@keyframes logos {
  to { transform: translateX(calc(-50% - 8px)); }
}

/* One real customer logo per tile (rendered from #brand-logos). */
.logos__item {
  display: grid;
  place-items: center;
  width: 180px;
  height: 84px;
  padding: 18px 22px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
}

.logos__item img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* ---------- loop scene: market (as the Console 시장 분석 page) ---------- */

.market {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
}

.market .panel {
  padding: 12px;
  gap: 6px;
}

.market .panel__value {
  font-size: clamp(16px, 1.5vw, 22px);
}

.spark {
  flex: 1;
  width: 100%;
  min-height: 40px;
}

.spark__line {
  fill: none;
  stroke: #8fb4ff;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.season {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  min-height: 40px;
}

.season i {
  flex: 1;
  height: calc(var(--h) * 100%);
  border-radius: 2px;
  background: rgba(185, 211, 255, 0.28);
  transform-origin: 50% 100%;
}

.season i.is-peak {
  background: linear-gradient(180deg, var(--blade), var(--accent));
}

.market__brief-text {
  color: var(--bone);
  font-size: 13px;
  line-height: 1.55;
}

.attr {
  display: grid;
  grid-template-columns: 30px 1fr;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--dim);
}

.attr__bar {
  display: flex;
  height: 16px;
  border-radius: 4px;
  overflow: hidden;
}

.attr__bar b {
  flex: var(--w) 1 0;
  display: flex;
  align-items: center;
  padding-left: 5px;
  overflow: hidden;
  color: var(--ink-0);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  background: var(--blade);
}

.attr__bar b:nth-child(2) {
  background: rgba(185, 211, 255, 0.55);
}

.attr__bar b:nth-child(3) {
  background: rgba(185, 211, 255, 0.22);
}

.market__top .rank {
  gap: 7px;
  margin-top: 4px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--mute);
  font-size: 11px;
}

.seo {
  margin-top: auto;
  padding: 8px;
  border-radius: 6px;
  background: rgba(76, 134, 255, 0.12);
  color: var(--bone);
  font-size: 12px;
  line-height: 1.45;
}

/* ---------- loop scene: sales KPI cards (as the Console 판매 현황) ---------- */

.kcards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(0, 1fr);
  gap: 10px;
  min-height: 0;
}

.kcard {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
  padding: 14px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.02);
}

.kcard p {
  color: var(--dim);
  font-size: 12px;
}

.kcard b {
  font-size: clamp(18px, 1.7vw, 26px);
  font-weight: 760;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.kcard b span {
  font-size: 0.5em;
  font-weight: 600;
  letter-spacing: 0;
}

.kcard svg {
  flex: 1;
  width: 100%;
  min-height: 34px;
  margin-top: auto;
}

.kcard path {
  fill: none;
  stroke: #ff6f91;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

/* ---------- extension ---------- */

.ext {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) 1.4fr;
  align-items: center;
  gap: clamp(32px, 5vw, 96px);
  padding: var(--section-y) var(--gutter);
  overflow: hidden;
}

.ext__copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 24px;
}

.ext__title {
  font-size: clamp(36px, 4.4vw, 72px);
  font-weight: 820;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.ext__lead {
  max-width: 420px;
  color: var(--mute);
  font-size: 17px;
}

.ext__table {
  position: relative;
  height: clamp(420px, 44vw, 640px);
  perspective: 1400px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 40%, transparent 100%);
}

.ext__plane {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  grid-template-columns: repeat(6, 128px);
  gap: 14px;
  transform: translate(-50%, -50%) rotateX(48deg) rotateZ(-24deg);
  transform-style: preserve-3d;
}

.ext__item {
  position: relative;
  padding: 8px 8px 10px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--ink-1);
}

.ext__item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 6px;
  object-fit: cover;
  filter: saturate(0.5) brightness(0.6);
  transition: filter 400ms var(--ease-out);
}

.ext__item p {
  height: 6px;
  margin-top: 9px;
  border-radius: 3px;
  background: var(--ink-3);
}

.ext__item p + p {
  width: 60%;
  margin-top: 6px;
}

.ext__item .tag {
  top: 14px;
  left: 14px;
  opacity: 0;
  transform: translateY(6px) scale(0.92);
  transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-out);
}

/* Unscanned cards sit in the dark; the beam lights each card it has passed. */
.ext__item {
  opacity: 0.4;
  transition: opacity 400ms var(--ease-out), border-color 400ms var(--ease-out), background-color 400ms var(--ease-out), box-shadow 400ms var(--ease-out);
}

.ext__item.is-lit {
  opacity: 1;
  border-color: rgba(185, 211, 255, 0.5);
  background-color: var(--ink-2);
  box-shadow: 0 0 44px -8px rgba(76, 134, 255, 0.7);
}

.ext__item.is-lit img {
  filter: none;
}

.ext__item .tag {
  font-size: 13px;
  font-weight: 500;
}

.ext__item.is-lit .tag {
  opacity: 1;
  transform: none;
}

/* The scan beam lights cards by script; without scripting every card and signal is shown lit. */
@media (scripting: none) {
  .ext__item {
    opacity: 1;
  }

  .ext__item .tag {
    opacity: 1;
    transform: none;
  }
}

.ext__beam {
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--blade), #fff, var(--blade), transparent);
  box-shadow: 0 0 30px 6px rgba(140, 180, 255, 0.45);
  transform: rotate(18deg);
  pointer-events: none;
}

/* ---------- marquee ---------- */

.marquee {
  padding: 40px 0;
  border-block: 1px solid var(--line-soft);
  overflow: hidden;
}

.marquee__track {
  display: flex;
  align-items: center;
  gap: 0.4em;
  width: max-content;
  font-size: clamp(64px, 10vw, 168px);
  font-weight: 860;
  letter-spacing: -0.05em;
  line-height: 1;
  white-space: nowrap;
  will-change: transform;
}

.marquee__track span {
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 239, 242, 0.32);
}

.marquee__track span:nth-of-type(5n + 3) {
  color: var(--bone);
  -webkit-text-stroke: 0;
}

.marquee__track i {
  color: var(--accent);
  font-style: normal;
  font-weight: 300;
}

/* ---------- system ---------- */

.system {
  display: grid;
  gap: 40px;
  padding: var(--section-y) var(--gutter);
}

.system__title,
.pricing__title {
  font-size: clamp(34px, 4.4vw, 72px);
  font-weight: 820;
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.system__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

/* Eight feature cards sit four across; the 1080px and 720px rules below still set two and one columns. */
.system__grid--four {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  --sweep: -30%;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 320px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ink-1), var(--ink-0));
  overflow: hidden;
  isolation: isolate;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(115deg, transparent calc(var(--sweep) - 12%), rgba(76, 134, 255, 0.16) var(--sweep), transparent calc(var(--sweep) + 12%));
  transition: --sweep 900ms var(--ease-out);
}

/* Hover sweeps the card; touch screens sweep it once as it comes into view (.is-swept). */
.card:hover,
.card.is-swept {
  --sweep: 130%;
}

@property --sweep {
  syntax: "<percentage>";
  inherits: false;
  initial-value: -30%;
}

.card__index {
  color: var(--blade);
  font-family: var(--mono);
  font-size: 12px;
}

.card h3 {
  font-size: 24px;
  font-weight: 760;
  letter-spacing: -0.03em;
}

.card > p {
  color: var(--mute);
  font-size: 15px;
}

/* Each feature card shows the console screen it describes (example data), cropped from the top. */
.card__shot {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 0;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
}

.card__list,
.card__chips {
  display: grid;
  gap: 8px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
  color: var(--mute);
}

.card__list li {
  display: flex;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
}

.card__list b {
  color: var(--bone);
  font-weight: 640;
}

.card__chips {
  display: flex;
  flex-wrap: wrap;
}

.card__chips li {
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
}

.card__career {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
  word-break: keep-all;
}

.card__career li::before {
  content: "— ";
  color: var(--blade);
}

.card__link {
  margin-top: auto;
  color: var(--blade);
  font-weight: 640;
}

/* ---------- founder story ---------- */

.story {
  display: grid;
  gap: 40px;
  padding: var(--section-y) var(--gutter);
  border-top: 1px solid var(--line-soft);
}

.story__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(32px, 6vw, 96px);
}

.story__title {
  font-size: clamp(30px, 3.6vw, 56px);
  font-weight: 820;
  line-height: 1.1;
  letter-spacing: -0.05em;
  word-break: keep-all;
}

.story__copy {
  display: grid;
  gap: 18px;
  max-width: 62ch;
}

.story__copy p {
  color: var(--mute);
  font-size: 17px;
  line-height: 1.8;
  word-break: keep-all;
}

.story__copy p:last-child {
  color: var(--bone);
}

/* ---------- FAQ (same layout as the founder story; answers mirror the FAQPage JSON-LD) ---------- */

.faq {
  display: grid;
  gap: 40px;
  padding: var(--section-y) var(--gutter);
  border-top: 1px solid var(--line-soft);
}

.faq__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  align-items: start;
  gap: clamp(32px, 6vw, 96px);
}

.faq__title {
  font-size: clamp(30px, 3.6vw, 56px);
  font-weight: 820;
  line-height: 1.1;
  letter-spacing: -0.05em;
  word-break: keep-all;
}

.faq__list {
  display: grid;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__item summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 22px 0;
  color: var(--bone);
  font-size: 18px;
  line-height: 1.5;
  word-break: keep-all;
  list-style: none;
  cursor: pointer;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: "+";
  flex: none;
  color: var(--dim);
  font-family: var(--mono);
  transition: transform 0.3s var(--ease-out);
}

.faq__item[open] summary::after {
  transform: rotate(45deg);
}

.faq__item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.faq__item p {
  max-width: 62ch;
  padding-bottom: 24px;
  color: var(--mute);
  font-size: 16px;
  line-height: 1.8;
  word-break: keep-all;
}

/* ---------- pricing ---------- */

.pricing {
  display: grid;
  gap: 40px;
  padding: var(--section-y) var(--gutter);
}

.pricing__title {
  font-size: clamp(34px, 4.4vw, 72px);
  font-weight: 820;
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.plans {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-1);
  /* Narrow cards wrap Korean copy between words, never inside one. */
  word-break: keep-all;
  overflow-wrap: break-word;
}

.plan.is-recommended {
  border-color: rgba(185, 211, 255, 0.55);
  background: linear-gradient(170deg, rgba(76, 134, 255, 0.18), var(--ink-1) 55%);
}

.plan__flag {
  position: absolute;
  top: -11px;
  right: 16px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--blade);
  color: var(--ink-0);
  font-size: 11px;
  font-weight: 800;
}

.plan__name {
  font-size: 18px;
  font-weight: 760;
}

.plan__aud {
  color: var(--dim);
  font-size: 13px;
}

.plan__price {
  font-size: clamp(22px, 1.9vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.plan__price small,
.plan__price s {
  color: var(--dim);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

/* A sale stacks the struck list price over the n% badge and the charged amount, aligned left like
   the plain price; "/ 월" stays on the price line. */
.plan__sale {
  display: grid;
  justify-items: start;
  gap: 4px;
}

.plan__deal {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  white-space: nowrap;
}

.plan__discount {
  align-self: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(185, 211, 255, 0.16);
  color: var(--blade);
  font-size: 12px;
  font-style: normal;
  font-weight: 760;
  letter-spacing: 0;
}

.plan__summary {
  color: var(--mute);
  font-size: 13px;
  line-height: 1.55;
}

.plan__bullets,
.plan__features,
.plan__limits {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 13px;
}

.plan__features:empty {
  display: none;
}

.plan__bullets li::before,
.plan__features li::before {
  content: "✓ ";
  color: var(--blade);
}

/* Planned features are listed, never ticked: automation is not live yet. */
.plan__features .is-planned {
  color: var(--mute);
}

.plan__features .is-planned::before {
  content: "○ ";
  color: var(--dim);
}

.plan__badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--dim);
  font-size: 11px;
  font-style: normal;
  font-weight: 640;
  white-space: nowrap;
}

.plan__limits {
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  color: var(--mute);
}

.plan__limits li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.plan__limits b {
  color: var(--bone);
  font-weight: 640;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.plan__more summary {
  color: var(--dim);
  font-size: 12px;
  cursor: pointer;
}

.plan__more[open] summary {
  margin-bottom: 10px;
}

.pricing__note {
  max-width: 64ch;
  color: var(--dim);
  font-size: 13px;
  line-height: 1.6;
  word-break: keep-all;
}

.plan .btn {
  justify-content: center;
  margin-top: auto;
}

/* ---------- final ---------- */

.final {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 40px;
  padding: var(--section-y) var(--gutter);
  text-align: center;
  overflow: hidden;
}

.final__word {
  position: relative;
  width: 100%;
  font-size: clamp(64px, 17.5vw, 330px);
  font-weight: 880;
  line-height: 0.9;
  letter-spacing: -0.065em;
  white-space: nowrap;
}

.final__half {
  display: block;
}

/* Both halves print the same word; each keeps one side of the diagonal cut. */
.final__half--top {
  clip-path: polygon(0 0, 100% 0, 100% 32%, 0 68%);
}

.final__half--bottom {
  position: absolute;
  inset: 0;
  color: transparent;
  -webkit-text-stroke: 1px rgba(237, 239, 242, 0.5);
  clip-path: polygon(0 68%, 100% 32%, 100% 100%, 0 100%);
}

.final__cut {
  position: absolute;
  left: -5%;
  top: 50%;
  width: 110%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--blade) 20%, #fff 50%, var(--blade) 80%, transparent);
  box-shadow: 0 0 28px 4px rgba(140, 180, 255, 0.5);
  transform: rotate(-8.5deg) scaleX(0);
  transform-origin: 0 50%;
}

.final__title {
  font-size: clamp(30px, 3.6vw, 56px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.final__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---------- notice (one line above the footer) ---------- */

.notice {
  padding: 20px var(--gutter);
  border-top: 1px solid var(--line-soft);
}

.notice p {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
  color: var(--mute);
  font-size: 14px;
  line-height: 1.6;
  word-break: keep-all;
}

.notice__tag {
  flex: none;
  padding: 2px 9px;
  border: 1px solid rgba(185, 211, 255, 0.4);
  border-radius: 999px;
  color: var(--blade);
  font-size: 12px;
  font-weight: 700;
}

.notice a {
  flex: none;
  color: var(--blade);
  text-decoration: underline;
  text-decoration-color: rgba(185, 211, 255, 0.4);
  text-underline-offset: 3px;
}

.notice a:hover {
  color: var(--bone);
}

/* ---------- footer ---------- */

.footer {
  display: grid;
  grid-template-columns: 1.2fr 1.8fr;
  gap: 40px;
  padding: 56px var(--gutter) 64px;
  border-top: 1px solid var(--line-soft);
  color: var(--mute);
  font-size: 13px;
}

.footer__company {
  display: grid;
  gap: 10px;
}

.footer__brand {
  display: inline-block;
}

.footer__brand img {
  display: block;
  width: 128px;
  height: auto;
}

.footer address {
  display: grid;
  gap: 4px;
  color: var(--dim);
  font-size: 12px;
  font-style: normal;
}

.footer small {
  color: var(--dim);
}

.footer__nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.footer__nav div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer__nav p {
  color: var(--dim);
  font-size: 12px;
}

.footer__nav a:hover,
.footer address a:hover,
.footer__analytics:hover {
  color: var(--bone);
}

/* Reopens the web analytics consent panel (ninja-analytics.js binds it). */
.footer__analytics {
  justify-self: start;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

/* ---------- web analytics consent panel (rendered by ninja-analytics.js) ---------- */

.ninja-analytics-consent {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  /* Above the nav and progress bar, below the intro (90). */
  z-index: 70;
  display: grid;
  width: min(21rem, calc(100vw - 36px));
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ink-2);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.4);
  color: var(--mute);
  font-size: 12px;
  line-height: 1.55;
}

.ninja-analytics-consent__title {
  color: var(--bone);
  font-size: 13px;
  font-weight: 650;
}

.ninja-analytics-consent__policy {
  width: fit-content;
  color: var(--mute);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.ninja-analytics-consent__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.ninja-analytics-consent__button {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: transparent;
  color: var(--mute);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.ninja-analytics-consent__button--primary {
  border-color: rgba(76, 134, 255, 0.5);
  background: rgba(76, 134, 255, 0.16);
  color: var(--bone);
}

.ninja-analytics-consent__button:hover,
.ninja-analytics-consent__button:focus-visible {
  border-color: var(--blade);
  color: var(--bone);
}

/* ---------- reveal base (JS animates from these) ---------- */

[data-reveal] {
  will-change: transform, opacity;
}

/* ---------- tablet & mobile ---------- */

@media (max-width: 1080px) {
  .nav__links {
    display: none;
  }

  .nav {
    grid-template-columns: 1fr auto;
  }

  .loop__pin,
  .ext,
  .hero__inner,
  .profit,
  .cs,
  .story__body,
  .faq__body {
    grid-template-columns: 1fr;
  }

  .system__grid,
  .plans {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav {
    height: 60px;
  }

  .ninja-analytics-consent {
    left: 18px;
    width: auto;
  }

  .nav__login {
    display: none;
  }

  .hero {
    padding-top: 112px;
  }

  .hero__title {
    font-size: clamp(46px, 14.6vw, 72px);
    letter-spacing: -0.06em;
  }

  .hero__cta .btn {
    flex: 1 1 auto;
    justify-content: center;
  }

  .brief {
    padding: 18px 16px 14px;
  }

  .brief__headline {
    font-size: 16px;
  }

  .pain__item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .screens__row,
  .inbox {
    grid-template-columns: 1fr;
  }

  /* Five plans swipe sideways instead of stacking five tall cards. */
  .plans {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 82%;
    margin: 0 calc(var(--gutter) * -1);
    padding: 12px var(--gutter) 8px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }

  .plan {
    scroll-snap-align: start;
  }

  .device__screen--slot .attr__bar b {
    color: transparent;
  }

  .inbox__list {
    border-right: 0;
    border-bottom: 1px solid var(--line-soft);
  }

  .device__screen--slot .market,
  .device__screen--slot .kcards {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: auto;
  }

  .device__screen--slot .market__brief,
  .device__screen--slot .market__seo {
    grid-column: 1 / -1;
  }

  .logos__item {
    width: 132px;
    height: 64px;
    padding: 12px 16px;
  }

  .shot__pin {
    display: none;
  }

  .fall__bars li {
    grid-template-columns: 76px 1fr 78px;
    gap: 8px;
    font-size: 12px;
  }

  .fall__bars li::before {
    height: 22px;
  }

  .scroll-cue {
    display: none;
  }

  .loop__pin {
    min-height: 0;
    padding-top: var(--section-y);
  }

  .loop__steps > li {
    padding: 22px 0;
  }

  .loop__numeral {
    top: -12%;
    font-size: 140px;
  }

  .loop__ring {
    display: none;
  }

  .device__bar em {
    display: none;
  }

  .scene__split,
  .kpis {
    grid-template-columns: 1fr;
  }

  .shelf {
    grid-template-columns: repeat(2, 1fr);
  }

  .ads {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .gauge {
    width: 180px;
  }

  .channels {
    width: 100%;
  }

  .actions li {
    grid-template-columns: 1fr auto;
  }

  .actions__kind {
    grid-row: auto;
    justify-self: start;
    margin-bottom: 8px;
  }

  .actions p,
  .actions small {
    grid-column: 1;
  }

  .actions em {
    grid-row: 2 / span 2;
    grid-column: 2;
  }

  .ext__table {
    height: 380px;
  }

  .ext__plane {
    grid-template-columns: repeat(6, 110px);
    gap: 12px;
  }

  .system__grid,
  .pricing__plans,
  .footer,
  .footer__nav {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 0;
  }
}

/* Mobile stacks the loop: every scene is shown under its step, no pinning. */
@media (max-width: 1080px) {
  .loop__stage {
    display: none;
  }

  .loop__steps .scene-slot {
    grid-column: 1 / -1;
    margin-top: 16px;
  }

  /* Stacked scenes size to their content instead of filling a fixed screen. */
  .device__screen--slot {
    height: auto;
  }

  .device__screen--slot .scene {
    grid-template-rows: none;
  }

  .device__screen--slot .shelf {
    grid-auto-rows: auto;
  }

  .device__screen--slot .area,
  .device__screen--slot .line {
    flex: none;
    height: 120px;
  }

  .device__screen--slot .shelf__card img {
    flex: none;
    aspect-ratio: 4 / 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  .scroll-cue span::after {
    animation: none;
  }

  .btn--solid::after,
  .card::before {
    transition: none;
  }
}
