/* =====================================================
   智赋传媒 · Zhifu Media — 官网样式
   Design tokens · Reset · Layout · Components · Motion
   ===================================================== */

/* ----------- Design Tokens ----------- */
:root {
  /* Color — 暖色系：米白底 + 朱砂红 */
  --bg: #faf8f5;             /* 主背景：暖米白 */
  --bg-elev: #ffffff;        /* 卡片背景 */
  --bg-soft: #f1ede7;        /* 浅暖色底 */
  --bg-deep: #1a1815;        /* 深色块（页脚） */
  --ink: #1a1a1a;            /* 主文字 */
  --ink-2: #3d3d3d;          /* 次级文字 */
  --ink-3: #6b6b6b;          /* 弱化文字 */
  --ink-4: #9b9b9b;          /* 标签文字 */

  --primary: #d2452e;        /* 主品牌色：朱砂红 */
  --primary-light: #e86a4f;  /* 浅红 */
  --primary-soft: #fdf0ec;   /* 浅红底 */
  --accent: #d2452e;         /* 强调色：同色 */
  --accent-soft: #fdf0ec;    /* 浅红底 */
  --accent-dark: #b33a24;    /* 深红 */

  --line: rgba(0, 0, 0, 0.07);       /* 分隔线 */
  --line-strong: rgba(0, 0, 0, 0.14);

  /* Typography */
  --font-sans: "Noto Sans SC", "Geist", "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", sans-serif;
  --font-mono: "Geist Mono", "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-serif: "Instrument Serif", "Source Han Serif SC", "Songti SC", serif;

  /* Type scale (fluid) */
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-md: 16px;
  --fs-lg: 18px;
  --fs-xl: clamp(20px, 1.6vw, 22px);
  --fs-2xl: clamp(24px, 2.4vw, 30px);
  --fs-3xl: clamp(30px, 3.4vw, 44px);
  --fs-4xl: clamp(36px, 5vw, 64px);
  --fs-5xl: clamp(44px, 7vw, 88px);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;
  --space-10: 128px;

  /* Layout */
  --max-w: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Motion */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 180ms;
  --dur: 320ms;
  --dur-slow: 600ms;
}

/* ----------- Reset ----------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ----------- Layout helpers ----------- */
.section { padding: clamp(72px, 9vw, 128px) 0; position: relative; }
.section__inner { max-width: var(--max-w); margin: 0 auto; padding: 0 var(--gutter); }
.section__inner--center { text-align: center; }
.section--guide { background: var(--bg-soft); }
.section--audience { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
.section--panel { background: var(--bg-deep); color: #fff; }
.section--works { background: var(--bg); }
.section--systems { background: var(--bg-soft); }
.section--updates { background: var(--bg); }
.section--learn { background: var(--bg-soft); }
.section--proof { background: var(--bg); }
.section--end {
  background: var(--bg);
}

.br-desktop { display: inline; }

/* ============== Navigation ============== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(250, 248, 245, 0.82);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background var(--dur) var(--ease-out), border-color var(--dur) var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(250, 248, 245, 0.94);
  border-bottom-color: var(--line);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.nav__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.nav__logo {
  display: inline-flex;
  align-items: baseline;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--primary);
  flex-shrink: 0;
  transition: opacity var(--dur-fast) var(--ease-out);
}
.nav__logo:hover { opacity: 0.75; }
.nav__logo-dot { color: var(--ink-4); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
  flex-wrap: nowrap;
  overflow: hidden;
}
.nav__links a {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  padding: 6px 11px;
  border-radius: 6px;
  white-space: nowrap;
  position: relative;
  transition: color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out);
}
.nav__links a:hover { color: var(--primary); background: rgba(210, 69, 46, 0.06); }
.nav__links a.is-active { color: var(--primary); background: rgba(210, 69, 46, 0.06); }
.nav__links a.is-active::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px;
  bottom: 2px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}
.nav__links a.is-current { color: var(--primary); background: rgba(210, 69, 46, 0.06); }
.nav__links a.is-current::after {
  content: "";
  position: absolute;
  left: 11px; right: 11px;
  bottom: 2px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
}

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: var(--space-3);
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  border-radius: 100px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.nav__cta:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}
.nav__cta svg { transition: transform var(--dur) var(--ease-out); }
.nav__cta:hover svg { transform: translateX(2px); }

.nav__burger {
  display: none;
  width: 36px;
  height: 36px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  border-radius: 8px;
  margin-left: auto;
}
.nav__burger span {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  transition: transform var(--dur) var(--ease-out), opacity var(--dur-fast) var(--ease-out);
}
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  top: 60px; left: 0; right: 0;
  z-index: 99;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  padding: var(--space-5) var(--gutter) var(--space-6);
  transform: translateY(-110%);
  transition: transform var(--dur-slow) var(--ease-out);
  max-height: calc(100dvh - 60px);
  overflow-y: auto;
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: var(--space-5);
}
.mobile-menu__nav a {
  font-size: 17px;
  font-weight: 500;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.mobile-menu__nav a:hover { color: var(--primary); }
.mobile-menu__cta {
  display: block;
  text-align: center;
  padding: 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 12px;
  font-weight: 600;
}

/* ============== Hero ============== */
.hero {
  position: relative;
  min-height: 100dvh;
  padding: 120px var(--gutter) 60px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}

.hero__inner {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
  z-index: 1;
}

.hero__brand-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(210, 69, 46, 0.06);
  border: 1px solid rgba(210, 69, 46, 0.12);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: var(--space-6);
}
.hero__brand-tag .dot {
  width: 6px; height: 6px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(210, 69, 46, 0.2);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(210, 69, 46, 0.2); }
  50% { box-shadow: 0 0 0 10px rgba(210, 69, 46, 0.05); }
}

.hero__title {
  font-family: var(--font-sans);
  font-size: var(--fs-5xl);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: var(--space-6);
  max-width: 16ch;
  color: var(--ink);
}
.hero__title-prefix {
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 500;
  margin-right: 0.2em;
}

.hero__desc {
  max-width: 56ch;
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.7;
  color: var(--ink-2);
  margin-bottom: var(--space-6);
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  border-radius: 100px;
  border: 1px solid transparent;
  transition: all var(--dur) var(--ease-out);
  cursor: pointer;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 30px -10px rgba(210, 69, 46, 0.35);
}
.btn--primary svg { transition: transform var(--dur) var(--ease-out); }
.btn--primary:hover svg { transform: translateX(3px); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn--small { padding: 11px 18px; font-size: 13.5px; }

.hero__scroll {
  position: absolute;
  bottom: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-4);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  display: none;
}
@media (min-width: 1024px) {
  .hero__scroll { display: flex; }
}
.hero__scroll-line {
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, var(--ink-4), transparent);
  animation: scrollLine 2.4s ease-in-out infinite;
}
@keyframes scrollLine {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ============== Section heads ============== */
.section__head {
  max-width: 760px;
  margin-bottom: clamp(40px, 5vw, 72px);
}
.section__head .section__tag { margin-bottom: var(--space-4); }

.section__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: var(--space-4);
}
.section__tag--accent { color: var(--primary); }

.section__title {
  font-size: var(--fs-4xl);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: var(--space-4);
  color: var(--ink);
}
.section__title--medium { font-size: var(--fs-3xl); font-weight: 600; }
.section__title--xl { font-size: var(--fs-5xl); line-height: 1.02; }
.section__title .hash {
  font-family: var(--font-mono);
  font-weight: 500;
  color: var(--primary);
  margin-right: 0.3em;
}

.section__desc {
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--ink-3);
  max-width: 60ch;
}
.section__desc--wide { max-width: 68ch; font-size: 17px; }

.section--panel .section__desc,
.section--end .section__desc { color: rgba(255, 255, 255, 0.7); }

.section__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-7);
  padding: 12px 20px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  transition: all var(--dur) var(--ease-out);
}
.section__more:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-1px);
}
.section__more svg { transition: transform var(--dur) var(--ease-out); }
.section__more:hover svg { transform: translateX(3px); }

/* ============== Stats（数字条） ============== */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-top: clamp(40px, 5vw, 64px);
}
.stat {
  padding: clamp(28px, 3.5vw, 44px) clamp(20px, 2.5vw, 32px);
  border-right: 1px solid var(--line);
  position: relative;
  transition: background var(--dur) var(--ease-out);
  text-align: center;
}
.stat:last-child { border-right: none; }
.stat:hover { background: rgba(210, 69, 46, 0.02); }

.stat__num {
  font-size: clamp(36px, 4.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--space-3);
  font-feature-settings: "tnum";
  color: var(--ink);
  display: inline-flex;
  align-items: baseline;
}
.stat__num--text {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  color: var(--primary);
  font-size: clamp(32px, 4vw, 56px);
}
.stat__label {
  font-size: 13px;
  color: var(--ink-3);
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ============== Panel grid ============== */
.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.panel-card {
  position: relative;
  background: var(--bg-deep);
  padding: clamp(28px, 3.5vw, 44px);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  transition: background var(--dur) var(--ease-out);
}
.panel-card:hover { background: #2a2724; }
.panel-card:hover .panel-card__no { color: var(--primary-light); }

.panel-card__no {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-4);
  letter-spacing: 0.08em;
  transition: color var(--dur) var(--ease-out);
}
.panel-card__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  margin-bottom: var(--space-2);
}
.panel-card__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #fff;
}
.panel-card__desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.65);
  flex: 1;
}
.panel-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--primary-light);
  margin-top: var(--space-3);
  transition: gap var(--dur) var(--ease-out), color var(--dur) var(--ease-out);
}
.panel-card__link:hover {
  gap: 10px;
  color: #fff;
}
.panel-card__link svg { transition: transform var(--dur) var(--ease-out); }
.panel-card__link:hover svg { transform: translateX(2px); }

/* ============== Works（核心板块） ============== */
.works {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.work-card {
  position: relative;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  transition: all var(--dur-slow) var(--ease-out);
  overflow: hidden;
}
.work-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out-quart);
}
.work-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.18);
}
.work-card:hover::before { transform: scaleX(1); }

.work-card__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  border-bottom: 1px dashed var(--line-strong);
}
.work-card__no {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  letter-spacing: 0.08em;
}
.work-card__price {
  font-size: 12px;
  color: var(--ink-3);
  text-align: right;
}
.work-card__price strong {
  color: var(--accent-dark);
  font-weight: 600;
  font-feature-settings: "tnum";
}

.work-card__title {
  font-size: clamp(26px, 2.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--ink);
}

.work-card__desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-2);
  flex: 1;
}

.work-card__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: var(--space-4);
  margin-top: auto;
}
.work-card__list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}
.work-card__bullet {
  width: 5px; height: 5px;
  background: var(--primary);
  border-radius: 50%;
  flex-shrink: 0;
}

.work-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: var(--space-3);
  padding: 12px 18px;
  background: var(--primary);
  color: #fff;
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  transition: all var(--dur) var(--ease-out);
}
.work-card__cta:hover {
  background: var(--accent-dark);
  transform: translateX(2px);
}

/* ============== Systems ============== */
.systems {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}

.system-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "no arrow"
    "title arrow"
    "desc arrow";
  align-items: center;
  gap: 4px var(--space-4);
  padding: clamp(24px, 2.5vw, 32px);
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: all var(--dur) var(--ease-out);
  overflow: hidden;
}
.system-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(210, 69, 46, 0.02) 100%);
  opacity: 0;
  transition: opacity var(--dur) var(--ease-out);
  pointer-events: none;
}
.system-card:hover {
  border-color: var(--primary);
  transform: translateX(4px);
}
.system-card:hover::after { opacity: 1; }
.system-card:hover .system-card__arrow {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
}

.system-card__no {
  grid-area: no;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-4);
  letter-spacing: 0.1em;
}
.system-card__title {
  grid-area: title;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.system-card__desc {
  grid-area: desc;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 52ch;
}
.system-card__arrow {
  grid-area: arrow;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: all var(--dur) var(--ease-out);
}

/* ============== Updates ============== */
.updates {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}
.update {
  display: grid;
  grid-template-columns: 130px 110px 1fr;
  align-items: start;
  gap: var(--space-5);
  padding: var(--space-5) 0;
  border-bottom: 1px solid var(--line);
  transition: padding-left var(--dur) var(--ease-out);
  position: relative;
}
.update::before {
  content: "";
  position: absolute;
  left: -16px;
  top: 50%;
  width: 0;
  height: 1px;
  background: var(--primary);
  transition: width var(--dur-slow) var(--ease-out-quart);
}
.update:hover { padding-left: 24px; }
.update:hover::before { width: 12px; }

.update__date {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-4);
  font-feature-settings: "tnum";
  letter-spacing: 0.02em;
}
.update__tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  white-space: nowrap;
  width: fit-content;
  align-self: start;
  margin-top: 1px;
}
.update__tag--refactor { background: rgba(210, 69, 46, 0.1); color: var(--primary); }
.update__tag--chat { background: rgba(34, 197, 94, 0.12); color: #15803d; }
.update__tag--trading { background: rgba(210, 69, 46, 0.14); color: var(--accent-dark); }
.update__tag--community { background: rgba(210, 69, 46, 0.12); color: var(--primary); }

.update__title {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  color: var(--ink);
}
.update__desc {
  font-size: 14px;
  color: var(--ink-3);
  line-height: 1.6;
}

/* ============== Learn paths ============== */
.learn-paths {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3);
  list-style: none;
  padding: 0;
  margin: 0;
}

.learn-path {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  transition: all var(--dur) var(--ease-out);
  position: relative;
  overflow: hidden;
}
.learn-path::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--dur-slow) var(--ease-out-quart);
}
.learn-path:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -20px rgba(0, 0, 0, 0.18);
}
.learn-path:hover::before { transform: scaleX(1); }

.learn-path__link {
  display: flex;
  flex-direction: column;
  padding: clamp(28px, 3vw, 36px);
  text-decoration: none;
  color: inherit;
  height: 100%;
  gap: var(--space-3);
}

.learn-path__head {
  display: flex;
  align-items: baseline;
  gap: var(--space-3);
}

.learn-path__no {
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 500;
  color: var(--primary);
  letter-spacing: 0.02em;
  line-height: 1;
}

.learn-path__title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1.2;
}

.learn-path__desc {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-2);
  flex: 1;
}

.learn-path__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.learn-path__chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 100px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.04em;
}

.learn-path__arrow {
  align-self: flex-end;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: all var(--dur) var(--ease-out);
}
.learn-path:hover .learn-path__arrow {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.1);
}

/* ============== Proof ============== */
.proof-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: start;
}
.proof-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.proof-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-2);
}
.proof-list li:last-child { border-bottom: none; }
.proof-list__check {
  color: var(--primary);
  font-family: var(--font-mono);
  font-weight: 600;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============== End section ============== */
.section--end .section__title { color: #fff; }
.section--end .section__tag { color: rgba(255, 255, 255, 0.5); }

.end-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-6);
}

/* ============== Footer ============== */
.footer {
  background: var(--bg-deep);
  color: #fff;
  padding: clamp(60px, 7vw, 96px) 0 32px;
}
.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.footer__brand { margin-bottom: var(--space-7); }
.footer__logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-3);
}
.footer__logo span { color: var(--primary-light); }
.footer__brand p {
  font-size: 15px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.55);
  max-width: 50ch;
}
.footer__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 24px;
  padding: var(--space-5) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: var(--space-5);
}
.footer__nav a {
  font-size: 13.5px;
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__nav a:hover { color: var(--primary-light); }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.02em;
  flex-wrap: wrap;
  gap: var(--space-3);
}
.footer__icp {
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--dur-fast) var(--ease-out);
}
.footer__icp:hover {
  color: var(--primary-light);
}

/* ============== Reveal animations ============== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
  transition-delay: 0s;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============== Responsive ============== */
@media (max-width: 1024px) {
  .works { grid-template-columns: 1fr; }
  .systems { grid-template-columns: 1fr; }
  .learn-grid, .proof-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .nav__links { display: none; }
  .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .panel-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { padding: 20px 12px; }
  .stat__num { font-size: 28px; }
  .update {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
  .update__date { font-size: 12px; }
  .section--end .section__title { font-size: var(--fs-4xl); }
  .br-desktop { display: none; }
  .hero { padding-top: 100px; }
  .hero__title { font-size: clamp(36px, 9vw, 56px); }
  .hero__ctas { flex-direction: column; align-items: stretch; }
  .hero__ctas .btn { justify-content: center; }
}
@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: none; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: none; }
  .stat__num { font-size: 36px; }
  .footer__bottom { flex-direction: column; align-items: center; text-align: center; }
}
