/* =========================================================
   VIBE CODING — "작업대" 컨셉
   전기 블루 + 블루프린트 그리드, 두꺼운 산세리프, 터미널 로그
   ========================================================= */

body[data-page="vibe"] {
  --accent: var(--blue);
  background:
    linear-gradient(rgba(59,108,255,.06) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(59,108,255,.06) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--navy);
}

.section { padding: clamp(84px, 13vw, 150px) 0; position: relative; }

.h2 {
  font-size: clamp(1.9rem, 6.4vw, 3.6rem);
  font-weight: 900; line-height: 1.12; letter-spacing: -0.035em;
}
.lede {
  margin-top: 16px; max-width: 34em;
  color: var(--muted); font-size: clamp(1rem, 2.4vw, 1.12rem);
}

.btn--blue { --bg: var(--blue); --fg: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.12) inset, 0 10px 30px -10px rgba(59,108,255,.8); }
.btn--blue:hover { --bg: #5580ff; }
.btn--xl { min-height: 62px; padding: 0 30px; font-size: 1.08rem; }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--nav-h) + 48px) 0 72px;
  display: flex; align-items: center;
  overflow: hidden;
  background: radial-gradient(60% 50% at 80% 40%, rgba(59,108,255,.22), transparent 70%);
}
.hero__grid { position: relative; display: grid; gap: 44px; }
.hero__tag {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-pixel); font-size: .85rem; letter-spacing: .12em; color: var(--cyan);
}
.blink-block { width: 10px; height: 16px; background: var(--cyan); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.hero__title { margin-top: 18px; }
.hero__not {
  position: relative; display: inline-block;
  font-size: clamp(1.05rem, 3.6vw, 1.5rem); font-weight: 600; color: var(--muted);
}
.hero__not::after {
  content: ""; position: absolute; left: -2px; right: -2px; top: 54%; height: 3px;
  background: var(--blue); transform-origin: left; transform: scaleX(0);
  animation: strike .6s .7s var(--ease-out) forwards;
}
@keyframes strike { to { transform: scaleX(1); } }
.hero__big {
  display: block; margin-top: 10px;
  font-size: clamp(2.7rem, 12.5vw, 6.4rem);
  font-weight: 900; line-height: 1.02; letter-spacing: -0.05em;
  opacity: 0; transform: translateY(24px);
  animation: rise .8s 1.1s var(--ease-out) forwards;
}
.br-m { display: none; }
@keyframes rise { to { opacity: 1; transform: none; } }
.hero__sub {
  margin-top: 22px; font-size: clamp(1.02rem, 2.6vw, 1.2rem); color: #c9d0ec;
  opacity: 0; animation: rise .7s 1.5s var(--ease-out) forwards;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero__cta .btn { flex: 1 1 200px; }
.hero__apply { --accent: var(--cyan); }
.hero__motto { margin-top: 10px; font-family: var(--font-pixel); font-size: .78rem; color: var(--muted); }

.pipeline { margin: 0; }
.pipeline__screen {
  border: 1px solid rgba(160,180,255,.22);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(10,18,50,.9), rgba(5,7,15,.92));
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 6px rgba(59,108,255,.06);
  overflow: hidden;
}
.pipeline__bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .72rem; color: var(--muted);
}
.pipeline__bar i { width: 8px; height: 8px; background: rgba(255,255,255,.18); }
.pipeline__bar span { margin-left: 8px; }
.pipeline__stage {
  position: relative; display: grid; place-items: center;
  min-height: 250px; padding: 22px 16px 14px;
}
.pipeline__zun { height: 120px; width: auto; }
.pipeline__log {
  margin-top: 12px; width: 100%;
  font-family: var(--font-mono); font-size: .8rem; color: #cfe0ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.prompt { color: var(--cyan); }
.caret { display: inline-block; width: 8px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--cyan); animation: blink 1s steps(1) infinite; }

.pipeline__rail {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
}
.pipeline__rail li {
  position: relative; padding: 12px 4px 14px; text-align: center;
  font-size: .72rem; color: var(--muted);
  transition: color .3s, background .3s;
}
.pipeline__rail li + li { border-left: 1px solid var(--line); }
.pipeline__rail b { display: block; font-family: var(--font-pixel); font-weight: 400; font-size: .82rem; letter-spacing: .06em; }
.pipeline__rail li::before {
  content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 3px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out);
}
.pipeline__rail li.is-on { color: var(--white); background: rgba(59,108,255,.12); }
.pipeline__rail li.is-on::before { transform: scaleX(1); }
.pipeline__rail li.is-on b { color: var(--cyan); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%);
  width: 44px; height: 44px; display: grid; place-items: center;
}
.px-down {
  width: 14px; height: 14px; animation: zun-bounce 1.4s steps(2, jump-none) infinite;
  background:
    linear-gradient(var(--white) 0 0) 6px 0 / 2px 8px no-repeat,
    linear-gradient(var(--white) 0 0) 2px 6px / 2px 2px no-repeat,
    linear-gradient(var(--white) 0 0) 10px 6px / 2px 2px no-repeat,
    linear-gradient(var(--white) 0 0) 4px 8px / 2px 2px no-repeat,
    linear-gradient(var(--white) 0 0) 8px 8px / 2px 2px no-repeat,
    linear-gradient(var(--white) 0 0) 6px 10px / 2px 2px no-repeat;
}

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.25fr 1fr; align-items: center; gap: 56px; }
  .hero__cta .btn { flex: 0 0 auto; }
  .pipeline__stage { min-height: 330px; }
  .pipeline__zun { height: 160px; }
}
@media (max-width: 380px) {
  .br-m { display: inline; }
}

/* ---------- WHAT ---------- */
.chat {
  position: relative; margin-top: 44px;
  border: 1px dashed rgba(160,180,255,.25); border-radius: 22px;
  padding: 26px 16px 18px;
  background: rgba(5,7,15,.35);
}
.chat__stage {
  position: relative;
  display: flex; flex-direction: column; gap: 10px;
}
.chat__b, .chat__code {
  max-width: 88%;
  opacity: 0; transform: translateY(10px) scale(.97);
  transition: opacity .4s, transform .45s var(--ease-spring);
}
.chat__b.is-on, .chat__code.is-on { opacity: 1; transform: none; }
.chat__b {
  padding: 11px 15px; border-radius: 16px; font-weight: 600; font-size: 1rem; line-height: 1.45;
}
.chat__b--me { align-self: flex-start; background: var(--white); color: var(--ink); border-bottom-left-radius: 4px; }
.chat__b--ai { align-self: flex-end; background: var(--blue); color: #fff; border-bottom-right-radius: 4px; }
.chat__who { font-family: var(--font-pixel); font-size: .7rem; margin-right: 8px; opacity: .8; }
.chat__b--wow { font-size: 1.15rem; box-shadow: 0 0 0 3px rgba(98,227,234,.5); }
.chat__code {
  align-self: flex-end; margin: 0;
  padding: 12px 14px; border-radius: 12px;
  background: #050814; border: 1px solid var(--line);
  font-family: var(--font-mono); font-size: .74rem; line-height: 1.6; color: #c7d2f5;
  overflow-x: auto;
}
.t-k { color: var(--violet); } .t-f { color: var(--cyan); } .t-t { color: #ffcf6b; }
.chat__zun { align-self: center; height: 90px; width: auto; margin-top: 8px; order: -1; }
.chat__replay {
  display: block; margin: 16px auto 0;
  min-height: 40px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line); background: transparent; color: var(--muted);
  font-family: var(--font-pixel); font-size: .75rem; cursor: pointer;
}
.chat__replay:hover { color: var(--white); border-color: rgba(238,241,251,.4); }

.steps3 { display: grid; gap: 12px; margin-top: 18px; counter-reset: s; }
.steps3__card {
  position: relative; padding: 20px 20px 22px;
  border-radius: 16px; border: 1px solid var(--line);
  background: rgba(11,20,51,.7);
  transition: border-color .35s, background .35s, transform .35s var(--ease-out);
}
.steps3__card.is-active { border-color: var(--blue); background: rgba(59,108,255,.14); }
.steps3__n { font-family: var(--font-pixel); font-size: .8rem; color: var(--cyan); }
.steps3__card h3 { margin-top: 6px; font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; }
.steps3__card p { margin-top: 4px; color: #c9d0ec; }

@media (min-width: 760px) {
  .chat { padding: 40px 40px 20px; }
  .chat__stage {
    display: grid; grid-template-columns: 1fr 190px 1fr; grid-template-rows: auto auto auto;
    align-items: center; gap: 14px 24px; min-height: 320px;
  }
  .chat__zun { grid-column: 2; grid-row: 1 / 4; height: 130px; order: 0; justify-self: center; }
  .chat__b--me[data-bubble="0"] { grid-column: 1; grid-row: 1; justify-self: end; }
  .chat__b--ai { grid-column: 3; grid-row: 1; justify-self: start; }
  .chat__code { grid-column: 3; grid-row: 2; justify-self: start; max-width: 100%; }
  .chat__b--wow { grid-column: 1; grid-row: 3; justify-self: end; }
  .chat__b, .chat__code { max-width: 100%; }
  .steps3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- WHY ---------- */
.versus { display: grid; gap: 16px; margin-top: 44px; }
.versus__col { border-radius: 20px; padding: 24px 22px; }
.versus__h { font-family: var(--font-pixel); font-weight: 400; font-size: 1.05rem; letter-spacing: .04em; }
.versus__col--tut { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.07); color: #8b93b3; }
.versus__col--tut .versus__list li { padding: 9px 0; border-bottom: 1px dashed rgba(255,255,255,.08); }
.versus__col--tut .is-end { color: #5d6485; text-decoration: line-through; border-bottom: 0; }
.versus__sleep { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: .9rem; }
.versus__sleep img { width: 48px; height: auto; opacity: .6; }

.versus__col--vibe {
  background: #050814; border: 1px solid rgba(59,108,255,.45);
  box-shadow: 0 30px 60px -30px rgba(59,108,255,.45);
}
.versus__col--vibe .versus__h { color: var(--cyan); }
.term { margin-top: 12px; font-family: var(--font-mono); font-size: .92rem; }
.term li {
  display: flex; gap: 10px; padding: 6px 0; color: #d7defa;
  opacity: .25; transition: opacity .3s, color .3s;
}
.term li.is-on { opacity: 1; }
.term .p { width: 1.1em; color: var(--muted); flex: none; }
.term .is-err.is-on { color: #ff8a8a; }
.term .is-err .p { color: #ff6b6b; }
.term .is-ok.is-on { color: var(--cyan); }
.term .is-loop.is-on { color: var(--violet); }
.term .is-loop.is-on .p { display: inline-block; animation: spin 1.2s linear infinite; }
@keyframes spin { to { transform: rotate(-360deg); } }
.versus__punch {
  margin-top: 30px; font-size: clamp(1.25rem, 4vw, 1.8rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.35;
}
@media (min-width: 760px) {
  .versus { grid-template-columns: .8fr 1.2fr; align-items: start; }
  .versus__col { padding: 32px; }
}

/* ---------- AI 쓰는 법 ---------- */
.plab {
  display: grid; margin-top: 40px; border-radius: 20px; overflow: hidden;
  border: 1px solid rgba(59,108,255,.4); background: #050814;
}
.plab__in { padding: 24px 20px; border-bottom: 1px solid var(--line); }
.plab__label, .plab__meter span { font-family: var(--font-pixel); font-size: .72rem; color: var(--muted); }
.plab__prompt {
  margin-top: 10px; min-height: 5.2em;
  font-size: clamp(1.1rem, 3.4vw, 1.35rem); font-weight: 700; line-height: 1.55;
}
.plab__prompt mark { background: none; color: var(--cyan); }
.plab__hint { margin-top: 14px; font-size: .88rem; color: var(--muted); }
.plab__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.chip {
  min-height: 42px; padding: 0 14px; border-radius: 999px; cursor: pointer;
  border: 1px dashed rgba(98,227,234,.5); background: transparent; color: var(--white);
  font-weight: 700; font-size: .9rem; transition: background .2s, border-color .2s, color .2s;
}
.chip::before { content: "+ "; color: var(--cyan); }
.chip[aria-pressed="true"] { background: var(--cyan); border: 1px solid var(--cyan); color: var(--ink); }
.chip[aria-pressed="true"]::before { content: "✓ "; color: var(--ink); }
.plab__out { padding: 24px 20px; background: linear-gradient(180deg, rgba(59,108,255,.1), transparent); }
.plab__meter { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plab__meter b {
  font-family: var(--font-pixel); font-weight: 400; font-size: 1.6rem; color: #ff8a8a; transition: color .3s;
}
.plab__meter b.is-zero { color: var(--cyan); }
.plab__ans { margin-top: 14px; display: grid; gap: 8px; }
.plab__ans p {
  padding: 10px 14px; border-radius: 12px 12px 12px 4px; background: rgba(255,255,255,.06);
  font-size: .95rem; line-height: 1.6; color: #dfe6ff;
  animation: zun-pop .35s var(--ease-spring);
}
.plab__ans p.is-generic { color: var(--muted); font-style: italic; }
@media (min-width: 900px) {
  .plab { grid-template-columns: 1fr 1fr; }
  .plab__in { border-bottom: 0; border-right: 1px solid var(--line); padding: 36px; }
  .plab__out { padding: 36px; }
}
.skills { display: grid; gap: 10px; margin-top: 18px; }
.skill { padding: 18px 20px; border-radius: 14px; background: rgba(11,20,51,.7); border: 1px solid var(--line); }
.skill h3 { font-size: 1.1rem; font-weight: 800; }
.skill p { margin-top: 4px; font-size: .9rem; color: #c3cae8; }
@media (min-width: 700px) { .skills { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .skills { grid-template-columns: repeat(5, 1fr); } }
.ai__more { margin-top: 20px; color: var(--muted); font-size: .95rem; max-width: 46em; }
.ai__more a { color: var(--white); text-underline-offset: 3px; }
.ai__more a:hover { color: var(--cyan); }

/* ---------- MAKE (horizontal) ---------- */
.make { position: relative; padding: clamp(84px, 13vw, 130px) 0; }
.make__head { display: grid; gap: 12px; }
.make__hint { color: var(--muted); max-width: 32em; }
.make__viewport {
  margin-top: 32px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.make__viewport::-webkit-scrollbar { display: none; }
.make__track {
  display: flex; gap: 14px; width: max-content;
  padding: 6px max(20px, calc((100vw - 1180px) / 2)) 20px;
}
.pcard {
  position: relative; scroll-snap-align: center;
  display: flex; flex-direction: column;
  width: min(80vw, 320px); min-height: 0;
  border-radius: 20px; overflow: hidden;
  border: 1px solid var(--line);
  background:
    radial-gradient(90% 60% at 50% 0%, color-mix(in srgb, var(--tint, var(--blue)) 22%, transparent), transparent 70%),
    linear-gradient(170deg, #101a45, #070b1c 75%);
  transition: border-color .3s, transform .35s var(--ease-out);
}
.pcard:hover, .pcard:focus-within { border-color: color-mix(in srgb, var(--tint, var(--blue)) 70%, transparent); }
.pcard__browser {
  position: relative; display: flex; align-items: center; gap: 8px;
  margin: 12px 12px 0; padding: 8px 12px; border-radius: 10px;
  background: rgba(5,7,15,.7);
  font-family: var(--font-mono); font-size: .74rem; color: #c7d2f5; overflow: hidden;
}
.pcard__browser i { flex: none; width: 8px; height: 8px; background: var(--tint, var(--blue)); }
.pcard__browser span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard__browser::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--tint, var(--blue)); transform: scaleX(0); transform-origin: left;
}
.pcard:hover .pcard__browser::after, .pcard:focus-within .pcard__browser::after { animation: load 1s var(--ease-out) forwards; }
@keyframes load { 0% { transform: scaleX(0); } 70% { transform: scaleX(.85); } 100% { transform: scaleX(1); opacity: 0; } }

.pcard__body { display: flex; flex-direction: column; gap: 6px; padding: 22px 22px 0; flex: 1; }
.pcard__emoji { font-size: 2.6rem; line-height: 1; margin-bottom: 10px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.5)); }
.pcard__cat { font-family: var(--font-pixel); font-size: .72rem; color: var(--tint, var(--cyan)); }
.pcard h3 { font-size: 1.6rem; font-weight: 900; letter-spacing: -.03em; line-height: 1.2; }
.pcard__desc { color: #c3cae8; font-size: .94rem; line-height: 1.6; }
.pcard__badge {
  align-self: flex-start; margin-top: 6px; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.08); font-size: .8rem; font-weight: 700; color: var(--white);
}
.pcard__badge::before { content: "▶ "; font-size: .7em; color: var(--tint, var(--cyan)); }
.pcard__actions { display: flex; gap: 8px; padding: 18px 22px 22px; }
.pcard__open, .pcard__gh {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
  border-radius: 10px; font-weight: 700; font-size: .92rem; text-decoration: none;
}
.pcard__open { flex: 1; background: var(--white); color: var(--ink); }
.pcard__open:hover { background: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--tint, var(--blue)) 60%, transparent); }
.pcard__open--ghost { flex: none; margin-top: auto; background: transparent; color: var(--white); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--font-mono); font-size: .8rem; }
.pcard__open--ghost:hover { background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(238,241,251,.4); }
.pcard__gh { color: var(--muted); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--font-mono); font-size: .8rem; }
.pcard__gh:hover { color: var(--white); }

.pcard--more { padding: 24px 22px 22px; gap: 14px; background: #060a1a; }
.more { display: grid; gap: 2px; }
.more li { display: flex; flex-direction: column; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.more a { font-weight: 700; text-decoration: none; }
.more a:hover { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.more span { font-size: .8rem; color: var(--muted); }

.pcard--you {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px;
  padding: 28px; border: 2px dashed rgba(98,227,234,.45); background: transparent;
}
.pcard--you img { height: 90px; width: auto; }
.pcard__you-t { font-size: 1.9rem; font-weight: 900; line-height: 1.15; letter-spacing: -.03em; }
.pcard--you p:last-child { color: var(--muted); }

/* 데스크톱: 세로 스크롤을 가로 이동으로 */
.make.is-pinned { padding: 0; }
.make.is-pinned .make__pin {
  position: sticky; top: 0; height: 100vh;
  display: flex; flex-direction: column; justify-content: center; overflow: hidden;
}
.make.is-pinned .make__viewport { overflow: visible; scroll-snap-type: none; }
.make.is-pinned .make__track { will-change: transform; }
@media (min-width: 900px) {
  .pcard { width: 330px; min-height: 460px; }
}

/* ---------- CYCLE ---------- */
.cycle__grid { display: grid; gap: 36px; }
.cycle__monitor {
  display: none;
}
.cycle__list { position: relative; display: grid; gap: 0; padding-left: 26px; }
.cycle__list::before {
  content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px;
  background: repeating-linear-gradient(to bottom, var(--line) 0 6px, transparent 6px 10px);
}
.cycle__step {
  position: relative; padding: 22px 0 30px;
  opacity: .38; transition: opacity .4s;
}
.cycle__step::before {
  content: ""; position: absolute; left: -26px; top: 28px; width: 14px; height: 14px;
  background: var(--navy); box-shadow: inset 0 0 0 2px var(--muted);
  transition: background .3s, box-shadow .3s;
}
.cycle__step.is-active { opacity: 1; }
.cycle__step.is-done { opacity: .7; }
.cycle__step.is-active::before, .cycle__step.is-done::before { background: var(--blue); box-shadow: 0 0 14px var(--blue); }
.cycle__k { font-family: var(--font-pixel); font-size: .8rem; letter-spacing: .06em; color: var(--cyan); }
.cycle__step h3 { margin-top: 4px; font-size: clamp(1.5rem, 5vw, 2.1rem); font-weight: 900; letter-spacing: -.03em; }
.cycle__step p { margin-top: 6px; max-width: 30em; color: #c9d0ec; }

@media (min-width: 900px) {
  .cycle__grid { grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
  .cycle__side { position: sticky; top: 110px; }
  .cycle__monitor {
    position: relative; display: grid; place-items: center; margin-top: 34px;
    height: 330px; border-radius: 20px; border: 1px solid var(--line);
    background:
      radial-gradient(50% 60% at 50% 60%, rgba(59,108,255,.25), transparent 70%),
      #060a1a;
  }
  .cycle__monitor img { height: 150px; width: auto; }
  .cycle__code {
    position: absolute; top: 16px; left: 18px;
    font-family: var(--font-pixel); color: var(--cyan); font-size: .95rem;
  }
  .cycle__meter { position: absolute; left: 18px; right: 18px; bottom: 16px; height: 8px; background: rgba(255,255,255,.06); }
  .cycle__meter i {
    display: block; height: 100%; width: calc(var(--m, 1) / 6 * 100%);
    background: repeating-linear-gradient(90deg, var(--blue) 0 10px, transparent 10px 12px);
    transition: width .5s var(--ease-out);
  }
  .cycle__step { padding: 60px 0; }
  .cycle__step:first-child { padding-top: 20px; }
  .cycle__step::before { top: 66px; }
  .cycle__step:first-child::before { top: 26px; }
}

/* ---------- TOOLS ---------- */
.free {
  position: relative; display: grid; gap: 18px; margin-top: 36px;
  padding: 26px 22px; border-radius: 22px; overflow: hidden;
  background: linear-gradient(135deg, rgba(59,108,255,.22), rgba(98,227,234,.08) 60%, rgba(5,7,15,.6));
  border: 1px solid rgba(98,227,234,.45);
}
.free::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(rgba(98,227,234,.06) 1px, transparent 1px) 0 0 / 22px 22px;
}
.free__icon { position: relative; z-index: 1; width: 56px; height: auto; }
.free__body { position: relative; z-index: 1; }
.free__tag {
  display: inline-block; padding: 4px 10px; border-radius: 6px;
  background: var(--cyan); color: var(--ink); font-weight: 800; font-size: .82rem;
}
.free__title { margin-top: 12px; font-size: clamp(1.45rem, 4.6vw, 2.2rem); font-weight: 900; line-height: 1.25; letter-spacing: -.035em; }
.free__body > p:not(.free__tag) { margin-top: 12px; max-width: 40em; color: #d3daf5; }
.free__body b { color: var(--white); box-shadow: inset 0 -.4em 0 rgba(98,227,234,.35); }
.free__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 20px; }
.free__actions .btn { flex: 1 1 240px; }
.free__note { font-size: .8rem; color: var(--muted); flex: 1 1 220px; }
@media (min-width: 900px) {
  .free { grid-template-columns: auto 1fr; gap: 36px; padding: 40px 44px; align-items: center; }
  .free__icon { width: 110px; }
  .free__actions .btn { flex: 0 0 auto; }
}

.tools__grid { display: grid; gap: 12px; margin-top: 16px; }
.tool {
  display: flex; flex-direction: column; gap: 10px;
  padding: 22px; border-radius: 16px;
  background: #060a1a; border: 1px solid var(--line);
}
.tool__name { font-size: 1.3rem; font-weight: 800; letter-spacing: -.02em; }
.tool p { color: #c3cae8; font-size: .96rem; }
.tool__cmd {
  margin-top: auto; padding: 10px 12px; border-radius: 8px;
  background: rgba(59,108,255,.1);
  font-family: var(--font-mono); font-size: .78rem !important; color: #dfe6ff !important; line-height: 1.5;
}
.tool__cmd span { color: var(--cyan); margin-right: 6px; }
@media (min-width: 700px) {
  .tools__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1040px) {
  .tools__grid { grid-template-columns: repeat(6, 1fr); }
  .tool { grid-column: span 2; }
  .tool:nth-child(1), .tool:nth-child(2) { grid-column: span 3; }
}

/* ---------- WHO ---------- */
.who__grid { display: grid; gap: 30px; }
.checks { border: 0; margin: 28px 0 0; padding: 0; display: grid; gap: 8px; }
.check {
  position: relative; display: flex; align-items: center; gap: 14px;
  min-height: 56px; padding: 12px 16px; border-radius: 12px;
  background: rgba(5,7,15,.45); border: 1px solid var(--line);
  font-weight: 600; font-size: 1.02rem; cursor: pointer;
  transition: background .2s, border-color .2s;
}
.check input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.check__box {
  flex: none; width: 22px; height: 22px;
  box-shadow: inset 0 0 0 2px var(--muted);
  display: grid; place-items: center;
}
.check input:checked + .check__box { background: var(--blue); box-shadow: none; }
.check input:checked + .check__box::after {
  content: ""; width: 10px; height: 8px;
  background:
    linear-gradient(#fff 0 0) 0 4px / 2px 2px no-repeat,
    linear-gradient(#fff 0 0) 2px 6px / 2px 2px no-repeat,
    linear-gradient(#fff 0 0) 4px 4px / 2px 2px no-repeat,
    linear-gradient(#fff 0 0) 6px 2px / 2px 2px no-repeat,
    linear-gradient(#fff 0 0) 8px 0 / 2px 2px no-repeat;
}
.check:has(input:checked) { background: rgba(59,108,255,.14); border-color: rgba(59,108,255,.55); }
.check:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }

.who__zun { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.who__meter { font-family: var(--font-pixel); color: var(--muted); text-align: center; font-size: .85rem; }
.who__meter b { color: var(--cyan); font-weight: 400; font-size: 1.3rem; }
.who__meter span { display: block; margin-top: 4px; font-family: var(--font-sans); font-size: 1rem; color: var(--white); font-weight: 600; }
.who__bubble {
  position: relative; padding: 12px 18px; border-radius: 14px;
  background: var(--white); color: var(--ink); font-weight: 800; font-size: 1.15rem;
  box-shadow: 5px 5px 0 var(--blue);
}
.who__bubble::after {
  content: ""; position: absolute; left: 50%; bottom: -10px; width: 12px; height: 10px;
  background: var(--white); clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.who__zun img { height: 110px; width: auto; }
@media (min-width: 900px) {
  .who__grid { grid-template-columns: 1.3fr 1fr; align-items: center; gap: 60px; }
  .who__zun img { height: 150px; }
}

/* ---------- ABOUT ---------- */
.about { padding-top: 40px; }
.about__card {
  display: grid; gap: 22px; align-items: center;
  padding: 28px 24px; border-radius: 24px;
  background: linear-gradient(135deg, #0e1a47, #060916);
  border: 1px solid var(--line);
}
.about__zun { height: 90px; width: auto; }
.about__role { font-family: var(--font-pixel); font-size: .78rem; color: var(--cyan); line-height: 1.6; }
.about__name { margin-top: 6px; font-family: var(--font-sans); font-weight: 800; letter-spacing: .2em; font-size: 3rem; line-height: 1; }
.about__motto { margin-top: 10px; font-size: 1.25rem; font-weight: 800; }
.about__keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 20px 0; }
.about__keys li {
  padding: 12px 10px; border-radius: 12px; background: rgba(255,255,255,.04);
  font-size: .68rem; color: var(--muted); line-height: 1.35; letter-spacing: .03em;
}
.about__keys b { display: block; font-family: var(--font-pixel); font-weight: 400; font-size: 1rem; color: var(--white); }
.about__story { margin-top: 8px; color: #c9d0ec; max-width: 34em; }
.about__stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 18px; }
.about__stats li {
  padding: 14px; border-radius: 12px; background: rgba(5,7,15,.5); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 2px;
}
.about__stats b { font-size: clamp(1.5rem, 5vw, 2rem); font-weight: 900; letter-spacing: -.03em; color: var(--white); line-height: 1.1; font-variant-numeric: tabular-nums; }
.about__stats span { font-size: .78rem; color: var(--muted); }
.about__stats li:nth-child(2) b { color: var(--cyan); }
.about__asof { margin-top: 8px; font-size: .74rem; color: #6d76a0; }
@media (min-width: 1040px) { .about__stats { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 760px) {
  .about__card { grid-template-columns: auto 1fr; padding: 40px 48px; gap: 44px; }
  .about__zun { height: 130px; }
  .about__keys li { font-size: .74rem; padding: 14px; }
}

/* ---------- FINAL ---------- */
.final {
  position: relative; overflow: hidden;
  padding: clamp(100px, 16vw, 180px) 0 0;
  background: radial-gradient(70% 60% at 50% 30%, rgba(59,108,255,.3), transparent 70%), var(--ink);
  text-align: center;
}
.final__inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.final__q {
  display: block; font-size: clamp(1.4rem, 5vw, 2.4rem); font-weight: 700; color: var(--muted); line-height: 1.35; letter-spacing: -.02em;
}
.final__a {
  display: block; margin-top: 14px;
  font-size: clamp(2.3rem, 10vw, 5.6rem); font-weight: 900; letter-spacing: -.05em; line-height: 1.05;
}
.final__sub { margin-top: 22px; color: #c9d0ec; font-size: 1.05rem; }
.final__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 26px 0 30px; }
.final__chips li {
  padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px;
  font-size: .84rem; color: #cdd5f3;
}
.final .btn--xl { width: min(100%, 420px); }
.final .apply { --accent: var(--cyan); }
.final__road {
  position: relative; width: 100%; height: 150px; margin-top: 40px;
  border-bottom: 4px solid rgba(59,108,255,.5);
  background: repeating-linear-gradient(90deg, rgba(98,227,234,.35) 0 20px, transparent 20px 44px) bottom 10px left 0 / 100% 3px no-repeat;
}
.final__walker {
  position: absolute; bottom: 30px; height: 70px; width: auto; left: -120px;
  transform: rotate(90deg);
  animation: cross 12s linear infinite;
}
@keyframes cross { to { left: calc(100% + 20px); } }
@media (prefers-reduced-motion: reduce) {
  .final__walker { left: 50%; transform: translateX(-50%) rotate(90deg); }
  .hero__big, .hero__sub { opacity: 1; transform: none; }
  .hero__not::after { transform: scaleX(1); }
}
