/* hwp2md V3 — 서비스 소개 페이지 */

.skip-link {
  position: absolute; left: 16px; top: -48px; z-index: 100;
  padding: 8px 14px; border-radius: var(--radius-sm);
  background: var(--accent-primary); color: var(--text-inverse); text-decoration: none; font-weight: 600;
}
.skip-link:focus { top: 12px; }

main { overflow-x: clip; }

.btn--lg { height: 48px; padding: 0 22px; font-size: 16px; border-radius: var(--radius-md); }

.section-head { max-width: 720px; margin: 0 auto 48px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 750; }
.section-head p { margin-top: 12px; color: var(--text-muted); font-size: 17px; }
.section-head--left { text-align: left; margin-left: 0; }

section { padding: 0 24px; }

/* ================= HERO ================= */
.hero {
  position: relative;
  max-width: 1280px; margin: 0 auto;
  padding-top: clamp(56px, 9vw, 112px); padding-bottom: clamp(64px, 8vw, 120px);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero__title {
  font-size: clamp(40px, 5.6vw, 76px); font-weight: 800; line-height: 1.08; letter-spacing: -0.035em;
}
.hero__line { display: block; }
.hero__md {
  display: inline-block; font-family: var(--font-mono); font-weight: 600; letter-spacing: -0.05em;
  color: var(--accent-text);
}
.hero__lead { margin-top: 24px; font-size: clamp(17px, 1.5vw, 19px); color: var(--text-muted); max-width: 34em; }
.hero__cta { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cta .btn svg { transition: transform var(--t-normal) var(--ease-out); }
.hero__cta .btn--primary:hover svg { transform: translateX(3px); }

html.js .hero__title, html.js .hero__lead, html.js .hero__cta, html.js .hero__facts { visibility: hidden; }

.hero__visual {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.15fr); align-items: center;
}
.hv-card {
  border-radius: var(--radius-lg); border: 1px solid var(--border-subtle);
  background: var(--surface-main); padding: 18px; min-height: 300px; box-shadow: var(--shadow-md);
}
.hv-card--out { background: var(--code-bg); }
.hv-card__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.hv-card__label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.hv-file {
  display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600;
  padding: 8px 10px; border-radius: var(--radius-sm); background: var(--surface-main); border: 1px solid var(--border-subtle);
}
.hv-file svg { width: 16px; height: 16px; color: var(--badge-hwp); flex: none; }
.hv-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hv-doc { margin-top: 12px; padding: 14px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--border-subtle); display: grid; gap: 8px; }
.hv-doc i { display: block; height: 7px; border-radius: 4px; background: var(--paper-line); }
.hv-doc__h { width: 70%; height: 10px !important; background: var(--text-primary) !important; opacity: 0.75; }
.hv-doc__l { width: var(--w); }
.hv-doc__t { display: grid; grid-template-columns: 1fr 2fr; gap: 3px; margin-top: 4px; }
.hv-doc__t i { height: 12px; border-radius: 2px; background: var(--surface-tertiary); }
.hv-doc__img { margin-top: 4px; height: 44px; border-radius: 4px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-text); }
.hv-doc__img svg { width: 20px; height: 20px; }

.hv-link { position: relative; height: 2px; margin: 0 8px; }
.hv-link__line { position: absolute; inset: 0; background: var(--border-strong); border-radius: 2px; transform-origin: left; }
.hv-link__dot {
  position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%;
  background: var(--accent-primary); box-shadow: 0 0 0 4px var(--accent-soft);
}

.hv-md { margin: 0; font-size: 12.5px; line-height: 1.75; color: var(--text-primary); white-space: pre-wrap; word-break: break-all; min-height: 210px; }
.hv-line { display: inline; }
.hv-line .k, .editor .k { color: var(--badge-md); font-style: normal; font-weight: 600; }
.hv-caret {
  display: inline-block; width: 7px; height: 1.1em; vertical-align: text-bottom; margin-left: 1px;
  background: var(--accent-primary); animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.hero__copy, .hero__visual { position: relative; z-index: 1; }
.hero__facts { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--text-muted); }
.hero__facts li { display: inline-flex; align-items: center; gap: 6px; }
.hero__facts code {
  font-size: 12px; padding: 2px 7px; border-radius: var(--radius-xs);
  color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--accent-soft-hover);
}

/* 히어로 뒤 Markdown 기호 입자 */
.tokens { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.tokens span {
  position: absolute; left: var(--x); top: var(--y); font-family: var(--font-mono); font-weight: 600; white-space: nowrap;
  font-size: calc(18px + 30px * var(--depth, 0.5)); color: var(--surface-tertiary); will-change: transform;
}
.tokens span[data-d="0.9"], .tokens span[data-d="0.8"] { --depth: 0.9; color: var(--accent-soft-hover); }
.tokens span[data-d="0.7"], .tokens span[data-d="0.6"] { --depth: 0.65; }
.tokens span[data-d="0.2"], .tokens span[data-d="0.25"], .tokens span[data-d="0.3"] { --depth: 0.2; }

/* 머리글 스크롤 진행 막대 */
.scroll-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent-primary); transform-origin: left; transform: scaleX(0); }
html:not(.js) .scroll-progress { display: none; }

/* ================= PROBLEM ================= */
.problem { max-width: 980px; margin: 0 auto; padding-top: 48px; padding-bottom: clamp(96px, 12vw, 160px); }
.problem__title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 780; letter-spacing: -0.03em; margin-bottom: 28px; }
.problem__text { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.6; font-weight: 550; letter-spacing: -0.02em; color: var(--text-primary); }
.problem mark {
  color: inherit; padding: 0 0.12em; border-radius: 4px;
  background: linear-gradient(var(--accent-soft-hover), var(--accent-soft-hover)) no-repeat left center / 100% 100%;
}
html.js .problem mark { background-size: 0% 100%; }

/* ================= PIPELINE (focal) ================= */
.pipeline { padding: 0; background: var(--surface-main); border-block: 1px solid var(--border-subtle); }
.pipeline__pin {
  max-width: 1280px; margin: 0 auto; min-height: 100vh;
  padding: clamp(48px, 7vh, 88px) 24px 40px;
  display: flex; flex-direction: column; gap: clamp(24px, 4vh, 40px);
}
.pipeline__head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 32px; align-items: end; }
.pipeline__head h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 780; letter-spacing: -0.03em; }
.pipeline__phases { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.phase {
  position: relative; padding: 12px 0 0; border-top: 2px solid var(--border-subtle);
  font-size: 13px; color: var(--text-muted); transition: color 0.3s var(--ease-std);
}
.phase::before {
  content: ""; position: absolute; left: 0; top: -2px; height: 2px; width: 100%;
  background: var(--accent-primary); transform: scaleX(var(--p, 0)); transform-origin: left;
}
.phase b { display: block; font-size: 15px; color: var(--text-primary); margin-bottom: 2px; }
.phase.is-active b { color: var(--accent-text); }

.pipeline__stage {
  position: relative; flex: 1; min-height: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start;
}

.paper, .editor {
  border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); overflow: hidden;
  box-shadow: var(--shadow-md);
}
.paper { background: var(--surface-secondary); }
.paper__bar, .editor__bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--border-subtle); background: var(--surface-main);
  font-size: 13px; font-weight: 600; min-height: 44px;
}
.paper__name, .editor__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.detect { position: relative; display: inline-grid; font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; color: var(--text-muted); }
.detect > span { grid-area: 1 / 1; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; justify-self: end; }
.detect__a { opacity: 0; }

.paper__sheet {
  position: relative; margin: 18px; padding: 26px 28px; background: var(--paper);
  border-radius: 4px; box-shadow: var(--shadow-sm); display: grid; gap: 10px;
  font-family: "Batang", "AppleMyungjo", "Noto Serif KR", serif; color: var(--text-primary);
}
.scan {
  position: absolute; left: 0; right: 0; top: 0; height: 56px; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--accent-primary) 16%, transparent) 85%, var(--accent-primary) 100%);
  border-bottom: 1px solid var(--accent-primary);
}
.blk { position: relative; border-radius: 4px; outline: 1.5px solid transparent; outline-offset: 0; padding: 4px 8px; margin: -4px -8px; }
.blk::after {
  content: attr(data-tag); position: absolute; top: -9px; right: -4px;
  font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; line-height: 18px; padding: 0 6px; border-radius: 4px;
  color: var(--text-inverse); background: var(--accent-primary); opacity: var(--tag, 0); transform: translateY(calc((1 - var(--tag, 0)) * 4px));
}
.blk { outline-color: color-mix(in srgb, var(--accent-primary) calc(var(--tag, 0) * 100%), transparent); }
.p-h1 { font-size: 17px; font-weight: 700; text-align: center; padding-bottom: 6px; border-bottom: 2px double var(--paper-line); font-family: var(--font-base); }
.p-h2 { font-size: 15px; font-weight: 700; font-family: var(--font-base); }
.p-h3 { font-size: 14px; font-weight: 700; font-family: var(--font-base); }
.p-body { font-size: 13.5px; line-height: 1.7; }
.p-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.p-table th, .p-table td { border: 1px solid var(--paper-line); padding: 4px 8px; text-align: left; }
.p-table th { background: var(--surface-secondary); font-family: var(--font-base); }
.p-img { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px dashed var(--paper-line); border-radius: 4px; font-size: 12px; color: var(--text-muted); }
.p-img svg { width: 120px; height: 40px; fill: var(--accent-soft); stroke: var(--accent-primary); stroke-width: 1.5; }

.editor { background: var(--code-bg); display: flex; flex-direction: column; }
.editor__code { margin: 0; padding: 18px 20px; font-size: 13px; line-height: 1.85; white-space: pre-wrap; word-break: break-all; color: var(--text-primary); flex: 1; }
.ln { display: inline; }
html.js .ln { clip-path: inset(0 100% 0 0); }
.tally {
  display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 12px 20px; border-top: 1px solid var(--border-subtle);
  font-size: 13px; color: var(--text-muted); background: var(--surface-main);
}
.tally b { color: var(--text-primary); font-variant-numeric: tabular-nums; font-weight: 700; }

.flyers { position: absolute; inset: 0; pointer-events: none; }
.flyer {
  position: absolute; left: 0; top: 0; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; line-height: 18px;
  padding: 0 6px; border-radius: 4px; white-space: nowrap; color: var(--text-inverse); background: var(--accent-primary);
  box-shadow: 0 6px 14px -4px color-mix(in srgb, var(--accent-primary) 50%, transparent); opacity: 0; will-change: transform;
}

/* ================= ENTRY (세 가지 입구) ================= */
.entry { max-width: 1120px; margin: 0 auto; padding-top: clamp(96px, 12vw, 152px); padding-bottom: clamp(80px, 10vw, 128px); }
.entry__body { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: 24px; align-items: start; perspective: 1400px; }
.entry__tabs { display: flex; flex-direction: column; gap: 8px; }
.entry__tabs button {
  display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px;
  border-radius: var(--radius-lg); border: 1px solid var(--border-subtle); background: var(--surface-main); color: var(--text-muted);
  transition: border-color var(--t-normal) var(--ease-std), background var(--t-normal) var(--ease-std), color var(--t-normal) var(--ease-std);
}
.entry__tabs button svg { width: 22px; height: 22px; flex: none; }
.entry__tabs button b { display: block; font-size: 16px; color: var(--text-primary); }
.entry__tabs button small { display: block; font-size: 13px; color: var(--text-muted); }
.entry__tabs button:hover { border-color: var(--border-strong); }
.entry__tabs button[aria-selected="true"] { border-color: var(--accent-primary); background: var(--accent-soft); color: var(--accent-text); box-shadow: var(--shadow-sm); }
.term {
  border-radius: var(--radius-lg); overflow: hidden; background: var(--code-bg);
  border: 1px solid var(--border-strong); box-shadow: var(--shadow-md); transform-origin: 50% 0;
}
.term__bar { display: flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--border-subtle); background: var(--surface-secondary); }
.term__bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--border-strong); }
.term__title { margin-left: 10px; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.term__panels { min-height: 300px; }
.term__panel { margin: 0; padding: 20px 22px 24px; font-family: var(--font-mono); font-size: 14px; line-height: 1.85; color: var(--text-primary); white-space: pre-wrap; word-break: break-word; }
.term__panel[hidden] { display: none; }
.term .p, .term .k { color: var(--badge-md); font-style: normal; font-weight: 600; }
.term .c { color: var(--text-muted); font-style: normal; }
.term .ok { color: var(--status-success); font-style: normal; font-weight: 600; }
.entry__note { grid-column: 2; font-size: 14px; color: var(--text-muted); }
.entry__note code { font-size: 12.5px; padding: 1px 6px; border-radius: var(--radius-xs); background: var(--surface-secondary); color: var(--text-primary); }

/* ================= FEATURES ================= */
.features { max-width: 1120px; margin: 0 auto; padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(96px, 12vw, 152px);
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.features .section-head { position: sticky; top: 112px; margin: 0; }
.feat-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border-subtle); }
.feat {
  position: relative; display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 6px 18px;
  padding: 24px 4px; border-bottom: 1px solid var(--border-subtle);
}
.feat::before {
  content: ""; position: absolute; inset: -1px 0 -1px; background: var(--surface-hover); border-radius: var(--radius-md);
  opacity: 0; transform: scaleY(0.92); transition: opacity var(--t-normal) var(--ease-std), transform var(--t-normal) var(--ease-out); z-index: -1;
}
.feat:hover::before { opacity: 1; transform: none; }
.feat__icon { width: 24px; height: 24px; color: var(--accent-text); margin-top: 2px; }
.feat h3 { font-size: 18px; font-weight: 700; }
.feat p { margin-top: 4px; color: var(--text-muted); max-width: 38em; }
.feat__sample {
  grid-column: 2; justify-self: start; margin-top: 8px; font-size: 12px; padding: 3px 8px; border-radius: var(--radius-xs);
  color: var(--badge-md); background: var(--badge-md-soft);
}

/* ================= CASES (가로 스크롤) ================= */
.cases { padding: 0; overflow: hidden; }
.cases__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; gap: 40px; padding: clamp(56px, 8vh, 96px) 0; }
.cases__head { max-width: 1120px; width: 100%; margin: 0 auto; padding: 0 24px; }
.cases__head h2 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 780; letter-spacing: -0.03em; }
.cases__head p { margin-top: 12px; color: var(--text-muted); font-size: 17px; }
.cases__track { display: flex; gap: 28px; padding: 0 max(24px, calc((100vw - 1120px) / 2)); width: 100%; }
.case {
  flex: 0 0 min(560px, 78vw); display: flex; flex-direction: column; gap: 12px;
  padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-xl);
  background: var(--surface-main); border: 1px solid var(--border-subtle); box-shadow: var(--shadow-md);
}
.case__who { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--accent-text); }
.case h3 { font-size: clamp(22px, 2.2vw, 28px); font-weight: 760; letter-spacing: -0.025em; }
.case p { color: var(--text-muted); }
.case__snip {
  margin: auto 0 0; padding: 16px 18px; border-radius: var(--radius-md); background: var(--code-bg); border: 1px solid var(--border-subtle);
  font-family: var(--font-mono); font-size: 13px; line-height: 1.8; white-space: pre-wrap; word-break: break-all;
}
.case__snip .k { color: var(--badge-md); font-style: normal; font-weight: 600; }

/* ================= PRIVACY ================= */
.privacy { padding-top: clamp(96px, 12vw, 152px); padding-bottom: clamp(96px, 12vw, 152px); background: var(--surface-main); border-block: 1px solid var(--border-subtle); }
.privacy__body { max-width: 960px; margin: 0 auto; }

.mode-tabs {
  position: relative; display: grid; grid-template-columns: 1fr 1fr; max-width: 440px; margin: 0 auto 32px;
  padding: 4px; border-radius: var(--radius-pill); background: var(--surface-secondary); border: 1px solid var(--border-subtle);
}
.mode-tab {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; border: 0; background: none; border-radius: var(--radius-pill);
  font-size: 14px; font-weight: 600; color: var(--text-muted); transition: color var(--t-normal) var(--ease-std);
}
.mode-tab small { font-size: 11px; font-weight: 600; color: var(--text-subtle); }
.mode-tab[aria-selected="true"] { color: var(--text-primary); }
.mode-tab__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--status-success); }
.mode-tab[data-mode="browser"] .mode-tab__dot { background: var(--accent-primary); }
.mode-tabs__ind {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px);
  border-radius: var(--radius-pill); background: var(--surface-main); box-shadow: var(--shadow-sm); border: 1px solid var(--border-subtle);
  transition: transform 0.38s var(--ease-out);
}
.mode-tabs[data-mode="browser"] .mode-tabs__ind { transform: translateX(100%); }

.flow {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(80px, 1.2fr) minmax(0, 1fr); align-items: center;
  padding: 40px clamp(16px, 4vw, 48px); border-radius: var(--radius-xl); background: var(--bg-page); border: 1px solid var(--border-subtle);
  min-height: 240px;
}
.flow__node {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  padding: 22px 12px; border-radius: var(--radius-lg); background: var(--surface-main); border: 1px solid var(--border-strong);
}
.flow__node > svg { width: 30px; height: 30px; color: var(--accent-text); }
.flow__node b { font-size: 14px; }
.flow__mem, .flow__disk { font-size: 12px; color: var(--text-muted); display: inline-flex; align-items: center; gap: 4px; }
.flow__mem { font-family: var(--font-mono); padding: 1px 8px; border: 1px dashed var(--border-strong); border-radius: var(--radius-xs); }
.flow__disk svg { width: 14px; height: 14px; }
.flow__slot { height: 22px; }
.flow__wire { position: relative; height: 2px; margin: 0 12px; }
.flow__wire-line { position: absolute; inset: 0; border-top: 2px dashed var(--border-strong); }
.flow[data-mode="browser"] .flow__node--server { opacity: 0.55; }
.packet {
  position: absolute; left: 0; top: 0; display: inline-flex; align-items: center; gap: 4px; white-space: nowrap;
  height: 24px; padding: 0 8px; border-radius: var(--radius-sm); font-size: 12px; font-weight: 600;
  background: var(--badge-hwp-soft); color: var(--badge-hwp); border: 1px solid currentColor; opacity: 0; pointer-events: none;
}
.packet svg { width: 13px; height: 13px; }
.packet--md { font-family: var(--font-mono); background: var(--badge-md-soft); color: var(--badge-md); }
.packet--code { font-family: var(--font-mono); background: var(--surface-secondary); color: var(--text-muted); }

.mode-panels { margin: 28px auto 0; max-width: 680px; text-align: center; }
.mode-panel h3 { font-size: 20px; font-weight: 700; }
.mode-panel p { margin-top: 10px; color: var(--text-muted); }
.mode-panel__note { font-size: 14px; color: var(--text-muted); }
.mode-panel__note::before { content: "※ "; }

/* ================= LIMITS (한계 + 예정) ================= */
.limits { max-width: 1120px; margin: 0 auto; padding-top: clamp(80px, 10vw, 128px); padding-bottom: clamp(80px, 10vw, 128px); }
.limits__box { padding: clamp(24px, 3vw, 40px); border-radius: var(--radius-xl); background: var(--surface-main); border: 1px solid var(--border-subtle); }
.limits__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px; }
.limits h2 { display: flex; align-items: center; gap: 10px; font-size: 24px; font-weight: 750; letter-spacing: -0.02em; }
.limits h2 svg { width: 24px; height: 24px; color: var(--status-warning); flex: none; }
.limits__head p { color: var(--text-muted); font-size: 15px; }
.limits ul { margin: 24px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; }
.limits li {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 14px 0; border-top: 1px solid var(--border-subtle); font-size: 15px; color: var(--text-primary);
}
.limits li code { font-size: 13px; color: var(--badge-md); }
.chip {
  flex: none; display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: var(--radius-pill);
  font-size: 12px; font-weight: 700; white-space: nowrap;
}
.chip--plan { color: var(--accent-text); background: var(--accent-soft); border: 1px solid var(--accent-soft-hover); }
.chip--out { color: var(--text-muted); background: var(--surface-secondary); border: 1px solid var(--border-subtle); }
.limits__head .chip { vertical-align: 1px; }

/* ================= CTA ================= */
.cta { position: relative; padding: clamp(96px, 12vw, 152px) 24px; text-align: center; overflow: hidden; border-top: 1px solid var(--border-subtle); background: var(--surface-main); }
.marquee { position: absolute; inset: 50% 0 auto; transform: translateY(-50%); display: grid; gap: 8px; opacity: 0.6; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__row { overflow: hidden; }
.marquee__track { display: flex; gap: 48px; width: max-content; padding-right: 48px; font-family: var(--font-mono); font-size: clamp(32px, 5.4vw, 80px); font-weight: 600; color: var(--surface-tertiary); white-space: nowrap; }
.marquee__row[data-dir="1"] .marquee__track { color: var(--accent-soft-hover); }
.cta__title { position: relative; font-size: clamp(34px, 5vw, 64px); font-weight: 800; letter-spacing: -0.035em; margin-bottom: 32px; }
.cta .btn { position: relative; }

/* ================= FOOTER ================= */
.site-footer { border-top: 1px solid var(--border-subtle); background: var(--bg-page); }
.site-footer__inner { max-width: 1280px; margin: 0 auto; padding: 28px 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; font-size: 14px; color: var(--text-muted); }
.site-footer b { color: var(--text-primary); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--text-primary); }

/* ================= RESPONSIVE ================= */
@media (max-width: 1023px) {
  .hero { grid-template-columns: minmax(0, 1fr); }
  .pipeline__head { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .features { grid-template-columns: minmax(0, 1fr); }
  .features .section-head { position: static; }
}
@media (max-width: 899px) {
  .entry__body { grid-template-columns: minmax(0, 1fr); }
  .entry__tabs { flex-direction: row; overflow-x: auto; }
  .entry__tabs button { flex: 1 0 auto; padding: 10px 12px; }
  .entry__tabs button small { display: none; }
  .entry__note { grid-column: 1; }
  .cases__pin { min-height: 0; }
  .cases__track { flex-direction: column; padding: 0 16px; }
  .case { flex-basis: auto; }
  .pipeline__stage { grid-template-columns: minmax(0, 1fr); }
  .pipeline__pin { min-height: 0; }
  .blk::after { display: none; }
}
@media (max-width: 720px) {
  section { padding-left: 16px; padding-right: 16px; }
  .pipeline__pin { padding-left: 16px; padding-right: 16px; }
  .hero__visual { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hv-link { height: 32px; width: 2px; margin: 8px auto; }
  .hv-link__line { transform-origin: top; }
  .hv-link__dot { left: 50%; top: 0; margin: -5px 0 0 -5px; }
  .hv-card { min-height: 0; }
  .hv-md { min-height: 180px; }
  .pipeline__phases { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .paper__sheet { margin: 12px; padding: 18px 16px; }
  .flow { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 72px auto; padding: 24px 16px; }
  .flow__wire { width: 2px; height: auto; margin: 8px auto; }
  .flow__wire-line { border-top: 0; border-left: 2px dashed var(--border-strong); }
  .limits ul { grid-template-columns: minmax(0, 1fr); }
  .tokens span:nth-child(n+8) { display: none; }
  .term__panel { font-size: 12.5px; padding: 16px; }
  .cases__head { padding: 0 16px; }
  .site-footer__inner { padding: 24px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .hv-caret { animation: none; }
  html.js .ln { clip-path: none; }
  .mode-tabs__ind { transition: none; }
}
