/* ============================================================
   sg* pipeline — 产品落地页
   设计 DNA 源自经产线拆解的 Warp 主页组件库：
   奶油底 / 黑墨 / 零圆角 / Azeret Mono 标签 / Instrument Serif 衬线强调
   ============================================================ */

:root {
  /* palette */
  --sg-cream: #f8f5ee;
  --sg-cream-2: #efeadd;
  --sg-ink: #121212;
  --sg-ink-deep: #08090a;
  --sg-ink-soft: #1a1c1d;
  --sg-muted: #5c5f60;
  --sg-muted-dark: #9a9d9e;
  --sg-line: #d8d3c4;
  --sg-line-dark: #2e3132;
  --sg-accent: #7a5af8;          /* warp 产品区的薰衣草紫 */
  --sg-accent-soft: #c9befc;
  --sg-pass: #2fbf8f;

  /* type */
  --sg-font-sans: "Inter", -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --sg-font-serif: "Instrument Serif", "Songti SC", Georgia, serif;
  --sg-font-mono: "Azeret Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* metrics */
  --sg-nav-h: 64px;
  --sg-announce-h: 40px;
  --sg-gutter: clamp(20px, 5vw, 64px);
  --sg-maxw: 1240px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sg-font-sans);
  background: var(--sg-ink-deep);
  color: var(--sg-ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--sg-accent); color: #fff; }

a { color: inherit; text-decoration: none; }
code { font-family: var(--sg-font-mono); }

.sg-mono { font-family: var(--sg-font-mono); }
.sg-serif { font-family: var(--sg-font-serif); font-style: italic; font-weight: 400; }

.sg-container {
  max-width: var(--sg-maxw);
  margin: 0 auto;
  padding-left: var(--sg-gutter);
  padding-right: var(--sg-gutter);
  position: relative;
}
.sg-container--front { position: relative; z-index: 2; }

/* ============ eyebrow / headings ============ */
.sg-eyebrow {
  font-family: var(--sg-font-mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sg-muted);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.sg-eyebrow::before {
  content: "";
  width: 32px; height: 1px;
  background: currentColor;
  opacity: .5;
}
.sg-eyebrow--dark { color: var(--sg-accent-soft); }

.sg-h2 {
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}
.sg-h2 .sg-serif { font-weight: 400; letter-spacing: 0; }
.sg-h2--dark { color: var(--sg-cream); }

.sg-section__lead {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--sg-muted);
  max-width: 720px;
  margin-top: 32px;
}
.sg-section__lead code {
  background: rgba(122, 90, 248, .14);
  color: var(--sg-accent-soft);
  padding: 2px 6px;
  font-size: .9em;
}
.sg-section__lead--dark { color: var(--sg-muted-dark); }
.sg-section__lead strong { color: var(--sg-ink); }

/* ============ buttons ============ */
.sg-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--sg-font-mono);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 18px;
  border: 1px solid transparent;
  border-radius: 0;                /* warp：零圆角 */
  cursor: pointer;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
  white-space: nowrap;
}
.sg-btn--solid { background: var(--sg-ink); color: var(--sg-cream); }
.sg-btn--solid:hover { background: var(--sg-accent); color: #fff; transform: translateY(-1px); }
.sg-btn--ghost { border-color: var(--sg-line); color: var(--sg-ink); background: transparent; }
.sg-btn--ghost:hover { border-color: var(--sg-ink); }
.sg-btn--text { color: var(--sg-ink); padding: 10px 4px; position: relative; }
.sg-btn--text::after {
  content: ""; position: absolute; left: 4px; right: 4px; bottom: 6px;
  height: 1px; background: currentColor;
  transform-origin: left; transition: transform .25s ease;
}
.sg-btn--text:hover::after { transform: scaleX(.6); }
.sg-btn--lg { padding: 14px 26px; font-size: 14px; }

/* ============ announcement ============ */
.sg-announce {
  height: var(--sg-announce-h);
  background: var(--sg-ink-deep);
  color: var(--sg-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  position: relative;
  z-index: 60;
}
.sg-announce__link {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 500;
}
.sg-announce__link:hover { color: var(--sg-accent-soft); }

/* ============ nav ============ */
.sg-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--sg-nav-h);
  display: flex;
  align-items: center;
  gap: 40px;
  padding: 0 var(--sg-gutter);
  background: color-mix(in srgb, var(--sg-cream) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sg-line);
}
.sg-nav__logo { display: flex; align-items: baseline; gap: 6px; }
.sg-nav__logo-mark {
  font-family: var(--sg-font-mono);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.sg-nav__logo-star { color: var(--sg-accent); }
.sg-nav__logo-sub {
  font-family: var(--sg-font-mono);
  font-size: 11px;
  color: var(--sg-muted);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sg-nav__links { display: flex; gap: 28px; margin-left: 12px; }
.sg-nav__links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--sg-ink);
  opacity: .75;
  transition: opacity .15s ease;
}
.sg-nav__links a:hover { opacity: 1; }
.sg-nav__actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

/* ============ hero ============ */
.sg-hero {
  position: relative;
  min-height: calc(100svh - var(--sg-nav-h) - var(--sg-announce-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--sg-cream);
  overflow: hidden;
}
.sg-hero__grid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.sg-hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--sg-maxw);
  margin: 0 auto;
  width: 100%;
  padding: 96px var(--sg-gutter) 120px;
}
.sg-hero__title {
  font-size: clamp(44px, 7.4vw, 104px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin: 10px 0 40px;
}
.sg-hero__title-line { display: block; }
.sg-hero__title-line--serif {
  font-family: var(--sg-font-serif);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.sg-hero__row { display: flex; justify-content: flex-end; }
.sg-hero__sub {
  max-width: 460px;
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--sg-muted);
}
.sg-hero__sub strong { color: var(--sg-ink); font-family: var(--sg-font-mono); font-weight: 600; font-size: .92em; }
.sg-hero__cta {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 48px;
}
.sg-hero__scrollhint {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 2;
}
.sg-hero__scrollhint-label {
  font-family: var(--sg-font-mono);
  font-size: 10px;
  letter-spacing: .3em;
  color: var(--sg-muted);
}
.sg-hero__scrollhint-line {
  width: 1px; height: 44px;
  background: var(--sg-muted);
  transform-origin: top;
  animation: sg-scrollpulse 2s ease-in-out infinite;
}
@keyframes sg-scrollpulse {
  0%, 100% { transform: scaleY(.3); opacity: .3; }
  50% { transform: scaleY(1); opacity: .9; }
}

/* ============ command box（终端感） ============ */
.sg-cmd {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--sg-ink-deep);
  color: var(--sg-cream);
  padding: 12px 16px;
  font-family: var(--sg-font-mono);
  font-size: 13px;
  border: 1px solid var(--sg-ink-deep);
  max-width: 100%;
}
.sg-cmd__prompt { color: var(--sg-pass); }
.sg-cmd__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-cmd__copy {
  background: none; border: none;
  color: var(--sg-muted-dark);
  cursor: pointer;
  padding: 2px;
  display: inline-flex;
  transition: color .15s ease;
}
.sg-cmd__copy:hover { color: var(--sg-cream); }
.sg-cmd--card { width: 100%; margin: 18px 0; }

/* ============ sections ============ */
.sg-section { padding: clamp(90px, 12vw, 160px) 0; position: relative; }
.sg-section--cream { background: var(--sg-cream); color: var(--sg-ink); }
.sg-section--dark { background: var(--sg-ink-deep); color: var(--sg-cream); }
.sg-section--ink { background: var(--sg-ink-soft); color: var(--sg-cream); overflow: hidden; }

.sg-quote {
  font-size: clamp(24px, 3.4vw, 40px);
  line-height: 1.25;
  color: var(--sg-cream);
  border-left: 2px solid var(--sg-accent);
  padding-left: 24px;
  margin-bottom: 40px;
  max-width: 820px;
}
.sg-quote--light { color: var(--sg-ink); }

/* ============ pain cards ============ */
.sg-paingrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--sg-line);
  border: 1px solid var(--sg-line);
  margin-top: 56px;
}
.sg-paincard {
  background: var(--sg-cream);
  padding: 36px 30px 40px;
  transition: background .25s ease;
}
.sg-paincard:hover { background: #fff; }
.sg-paincard__index {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--sg-accent);
  display: block;
  margin-bottom: 22px;
}
.sg-paincard__title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 12px; }
.sg-paincard__body { font-size: 14.5px; color: var(--sg-muted); }

/* ============ dismantle 展示区（LIVE 动画场景） ============ */
.sg-compare {
  margin-top: 64px;
  max-width: 880px;          /* 收窄演示区，cqw 单位使内部元素等比缩小 */
  margin-left: auto;
  margin-right: auto;
}
.sg-compare__frame {
  position: relative;
  border: 1px solid var(--sg-line-dark);
  overflow: hidden;
  background: #eceaf6;
}
.sg-compare__frame--demo {
  aspect-ratio: 16 / 10;
  container-type: inline-size;   /* cqw 单位随框宽缩放 */
}
.sg-compare__tag {
  position: absolute;
  top: 14px;
  z-index: 4;
  font-size: 10px;
  letter-spacing: .2em;
  padding: 6px 10px;
  background: rgba(8, 9, 10, .78);
  color: var(--sg-cream);
  backdrop-filter: blur(4px);
}
.sg-compare__tag--left { left: 14px; }

/* ---- 场景底座 ---- */
.sg-demo { position: absolute; inset: 0; }

/* ---- 左：代码卡 ---- */
.sg-demo__code {
  position: absolute;
  left: 7%; top: 22%;
  width: 30%; height: 56%;
  background: #fff;
  border: 1px solid #dcd8ec;
  box-shadow: 0 1.2cqw 3cqw rgba(60, 50, 120, .10);
  padding: 3.4cqw 2.6cqw;
  display: flex;
  flex-direction: column;
  gap: 2.1cqw;
}
.sg-demo__code-head {
  position: absolute;
  top: 1.2cqw; left: 1.4cqw;
  display: flex; gap: .6cqw;
}
.sg-demo__code-head i {
  width: .9cqw; height: .9cqw;
  border-radius: 50%;
  background: #d8d4e8;
}
.sg-demo__line { display: flex; align-items: center; }
.sg-demo__line--i1 { padding-left: 2.2cqw; }
.sg-demo__line--i2 { padding-left: 4.4cqw; }
.sg-demo__tag-el {
  font-family: var(--sg-font-mono);
  font-size: 13px;
  font-size: 1.9cqw;
  color: #23203a;
  font-weight: 500;
}
.sg-demo__bar {
  display: block;
  height: 1cqw;
  background: #c9c4de;
}
.sg-demo__bar--lg { width: 15cqw; }
.sg-demo__bar--md { width: 11cqw; }

/* 代码行：拼装 / 崩解相位 */
.sg-demo__line {
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .5s ease, transform .5s ease, filter .5s ease;
}
.sg-demo__line:nth-child(2) { transition-delay: .15s; }
.sg-demo__line:nth-child(3) { transition-delay: .45s; }
.sg-demo__line:nth-child(4) { transition-delay: .75s; }
.sg-demo__line:nth-child(5) { transition-delay: 1.0s; }
.sg-demo__line:nth-child(6) { transition-delay: 1.25s; }
.sg-demo__code.is-assembled .sg-demo__line { opacity: 1; transform: none; }
.sg-demo__code.is-dissolving .sg-demo__line {
  opacity: .1;
  transform: translateX(14px);
  filter: blur(1.5px);
}

/* ---- 中：粒子流画布 ---- */
.sg-demo__stream {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ---- 右：组件卡 2×2 ---- */
.sg-demo__cards {
  position: absolute;
  right: 6%; top: 20%;
  width: 34%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.4cqw;
}
.sg-demo__card {
  position: relative;
  aspect-ratio: 1.15;
  background: #fff;
  border: 1px solid #dcd8ec;
  box-shadow: 0 1cqw 2.4cqw rgba(60, 50, 120, .10);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1cqw;
  color: #23203a;
  opacity: 0;
  transform: scale(.55);
  transition: opacity .45s ease, transform .55s cubic-bezier(.2, 1.5, .3, 1), box-shadow .5s ease;
}
.sg-demo__card > svg {
  width: 3.4cqw; height: 3.4cqw;
}
.sg-demo__card.is-on {
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 1cqw 2.4cqw rgba(60, 50, 120, .10), 0 0 0 .35cqw rgba(122, 90, 248, .22);
}
.sg-demo__card.is-settled {
  box-shadow: 0 1cqw 2.4cqw rgba(60, 50, 120, .10);
}
.sg-demo__card-bars { display: flex; flex-direction: column; gap: .7cqw; }
.sg-demo__card-bars i {
  display: block;
  width: 4.6cqw; height: .7cqw;
  background: #23203a;
}
.sg-demo__card-bars i:last-child { width: 3.4cqw; background: #c9c4de; }
.sg-demo__cursor {
  position: absolute;
  right: 18%; bottom: 14%;
  width: 1.6cqw; height: 1.6cqw;
}
.sg-demo__pill {
  border: .22cqw solid #23203a;
  border-radius: 99px;
  padding: .7cqw 2.2cqw;
  font-size: 11px;
  font-size: 1.5cqw;
  font-weight: 500;
  color: #23203a;
}

/* ---- 装饰：绿点 + 爱心 ---- */
.sg-demo__dot {
  position: absolute;
  left: var(--dx); top: var(--dy);
  width: 1cqw; height: 1cqw;
  border-radius: 50%;
  background: var(--sg-pass);
  animation: sg-demo-float 4s ease-in-out var(--dd) infinite;
}
.sg-demo__heart {
  position: absolute;
  right: 9%; top: 7%;
  width: 3cqw; height: 3cqw;
  color: var(--sg-pass);
  animation: sg-demo-float 5s ease-in-out .4s infinite;
}
@keyframes sg-demo-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-1cqw); }
}

/* ---- 静态降级海报（reduced-motion / 无 JS） ---- */
.sg-demo__poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}
.sg-compare__frame--demo.is-static .sg-demo__poster { display: block; }
.sg-compare__frame--demo.is-static .sg-demo__code,
.sg-compare__frame--demo.is-static .sg-demo__cards,
.sg-compare__frame--demo.is-static .sg-demo__stream,
.sg-compare__frame--demo.is-static .sg-demo__dot,
.sg-compare__frame--demo.is-static .sg-demo__heart { display: none; }
.sg-compare__frame--demo.is-static { aspect-ratio: 1600 / 1267; }

@media (max-width: 640px) {
  .sg-compare__frame--demo { aspect-ratio: auto; min-height: 380px; }
  .sg-compare__frame--demo.is-static { aspect-ratio: 1600 / 1267; min-height: 0; }
  .sg-demo__code { left: 5%; width: 34%; }
  .sg-demo__cards { right: 4%; width: 40%; }
}
.sg-compare__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--sg-line-dark);
  border: 1px solid var(--sg-line-dark);
  border-top: none;
}
.sg-metric {
  background: var(--sg-ink-deep);
  padding: 26px 28px;
}
.sg-metric__value {
  display: block;
  font-family: var(--sg-font-mono);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  color: var(--sg-accent-soft);
  letter-spacing: -0.02em;
}
.sg-metric__label {
  display: block;
  font-size: 12.5px;
  color: var(--sg-muted-dark);
  margin-top: 8px;
}

/* ============ anatomy ============ */
.sg-anatomy { margin-top: 72px; }
.sg-anatomy__label {
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--sg-muted-dark);
  margin-bottom: 20px;
}
.sg-anatomy__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--sg-line-dark);
  border: 1px solid var(--sg-line-dark);
}
.sg-anatomy__item {
  background: var(--sg-ink-deep);
  padding: 22px 26px;
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.sg-anatomy__item code {
  color: var(--sg-accent-soft);
  font-size: 13.5px;
  white-space: nowrap;
}
.sg-anatomy__item span { font-size: 13.5px; color: var(--sg-muted-dark); }

/* ============ particles section ============ */
.sg-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: .9;
}

/* 粒子舞台：为 particle scroll 留出专属叙事空间 */
.sg-particle-stage {
  position: relative;
  height: clamp(340px, 52vh, 520px);
  margin: 24px 0 8px;
}
.sg-particle-stage__caption {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  font-size: 11px;
  letter-spacing: .3em;
  color: var(--sg-muted-dark);
  opacity: .8;
}

.sg-rules {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--sg-line-dark);
  border: 1px solid var(--sg-line-dark);
  margin-top: 56px;
}
.sg-rule {
  background: var(--sg-ink-soft);
  padding: 34px 32px;
  transition: background .25s ease;
}
.sg-rule:hover { background: #222526; }
.sg-rule__no {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--sg-accent-soft);
  display: block;
  margin-bottom: 18px;
}
.sg-rule h3 {
  font-family: var(--sg-font-mono);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--sg-cream);
}
.sg-rule p { font-size: 14px; color: var(--sg-muted-dark); }

.sg-evolution { margin-top: 72px; }
.sg-evolution__flow {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
}
.sg-evolution__node {
  border: 1px solid var(--sg-line-dark);
  padding: 10px 16px;
  color: var(--sg-cream);
  background: rgba(8, 9, 10, .5);
}
.sg-evolution__node--human {
  border-color: var(--sg-accent);
  color: var(--sg-accent-soft);
  box-shadow: 0 0 0 1px var(--sg-accent) inset, 0 0 24px rgba(122, 90, 248, .25);
}
.sg-evolution__node--pass { border-color: var(--sg-pass); color: var(--sg-pass); }
.sg-evolution__arrow { color: var(--sg-muted-dark); }

/* ============ gates ============ */
.sg-gates {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--sg-line);
  border: 1px solid var(--sg-line);
  margin-top: 56px;
}
.sg-gate {
  background: var(--sg-cream);
  padding: 32px 30px 38px;
  position: relative;
  overflow: hidden;
  transition: background .25s ease;
}
.sg-gate:hover { background: #fff; }
.sg-gate::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--sg-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s cubic-bezier(.2, .8, .2, 1);
}
.sg-gate:hover::before { transform: scaleX(1); }
.sg-gate__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.sg-gate__name { font-size: 22px; font-weight: 600; letter-spacing: .06em; }
.sg-gate__badge {
  font-size: 11px;
  color: var(--sg-accent);
  border: 1px solid var(--sg-accent);
  padding: 4px 8px;
  letter-spacing: .08em;
}
.sg-gate__body { font-size: 14px; color: var(--sg-muted); }

/* ============ E-wall ============ */
.sg-ewall { margin-top: 80px; }
.sg-ewall__grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 1px;
  background: var(--sg-line);
  border: 1px solid var(--sg-line);
}
.sg-ewall__chip {
  background: var(--sg-ink-deep);
  color: var(--sg-muted-dark);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .1em;
  padding: 26px 0;
  text-align: center;
  position: relative;
  cursor: default;
  transition: color .3s ease, background .3s ease, box-shadow .3s ease;
}
.sg-ewall__chip.is-lit {
  color: var(--sg-cream);
  background: #151316;
  box-shadow: inset 0 0 0 1px var(--sg-accent), 0 0 18px rgba(122, 90, 248, .35);
}
.sg-ewall__chip:hover { color: var(--sg-accent-soft); }
.sg-ewall__chip::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--sg-ink-deep);
  color: var(--sg-cream);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0;
  padding: 8px 12px;
  width: max-content;
  max-width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  z-index: 10;
  border: 1px solid var(--sg-line-dark);
  font-family: var(--sg-font-sans);
}
.sg-ewall__chip:hover::after { opacity: 1; transform: translateX(-50%) translateY(0); }
.sg-ewall__note {
  margin-top: 22px;
  font-size: 14px;
  color: var(--sg-muted);
}
.sg-ewall .sg-anatomy__label { color: var(--sg-muted); }

/* ============ loop ============ */
.sg-loopchain {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 64px;
  font-size: 14px;
}
.sg-loopchain__node {
  border: 1px solid var(--sg-line-dark);
  padding: 14px 20px;
  color: var(--sg-cream);
  background: rgba(248, 245, 238, .03);
}
.sg-loopchain__arrow { color: var(--sg-accent-soft); font-size: 16px; }
.sg-loopchain__arrow--loop {
  color: var(--sg-accent);
  animation: sg-spin 6s linear infinite;
  display: inline-block;
}
@keyframes sg-spin { to { transform: rotate(360deg); } }

/* ============ CTA ============ */
.sg-cta__cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.sg-repocard {
  border: 1px solid var(--sg-line);
  background: #fff;
  padding: 36px 34px 34px;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.sg-repocard:hover {
  transform: translateY(-4px);
  box-shadow: 0 24px 48px -24px rgba(18, 18, 18, .25);
}
.sg-repocard__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.sg-repocard__name {
  font-family: var(--sg-font-mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.sg-repocard__role { font-size: 11px; letter-spacing: .16em; color: var(--sg-accent); }
.sg-repocard__body { font-size: 14.5px; color: var(--sg-muted); }
.sg-repocard .sg-btn { align-self: flex-start; }

/* ============ footer ============ */
.sg-footer {
  background: var(--sg-ink-deep);
  color: var(--sg-cream);
  padding: 80px 0 0;
  border-top: 1px solid var(--sg-line-dark);
}
.sg-footer__inner {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  flex-wrap: wrap;
  padding-bottom: 64px;
}
.sg-footer__brand .sg-nav__logo-mark { font-size: 24px; }
.sg-footer__tag {
  font-family: var(--sg-font-serif);
  font-style: italic;
  color: var(--sg-muted-dark);
  margin-top: 14px;
  font-size: 16px;
}
.sg-footer__cols { display: flex; gap: 72px; flex-wrap: wrap; }
.sg-footer__col { display: flex; flex-direction: column; gap: 12px; }
.sg-footer__coltitle {
  font-size: 11px;
  letter-spacing: .2em;
  color: var(--sg-muted-dark);
  margin-bottom: 6px;
}
.sg-footer__col a { font-size: 14px; color: var(--sg-cream); opacity: .8; transition: opacity .15s ease; }
.sg-footer__col a:hover { opacity: 1; color: var(--sg-accent-soft); }
.sg-footer__base {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  padding-bottom: 28px;
  border-top: 1px solid var(--sg-line-dark);
  font-size: 11.5px;
  color: var(--sg-muted-dark);
  letter-spacing: .04em;
}

/* ============ reveal animations ============ */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
[data-decrypt] { white-space: pre-wrap; }

/* ============ responsive ============ */
@media (max-width: 960px) {
  .sg-paingrid, .sg-gates, .sg-compare__meta { grid-template-columns: 1fr; }
  .sg-rules, .sg-anatomy__grid, .sg-cta__cards { grid-template-columns: 1fr; }
  .sg-ewall__grid { grid-template-columns: repeat(4, 1fr); }
  .sg-nav__links { display: none; }
  .sg-hero__row { justify-content: flex-start; }
  .sg-compare { max-width: none; }
}
@media (max-width: 560px) {
  .sg-ewall__grid { grid-template-columns: repeat(4, 1fr); }
  .sg-hero__cta { flex-direction: column; align-items: flex-start; }
  .sg-announce__text { max-width: 70vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .sg-hero__scrollhint-line, .sg-loopchain__arrow--loop { animation: none; }
}
