/* =========================================================
   Ech0 Mobile — paper & ink
   ========================================================= */

:root {
  --paper: #faf6ee;
  --paper-2: #f3ecdf;
  --paper-3: #e7dac6;
  --ink: #1b1611;
  --ink-soft: #5f564b;
  --muted: #766b5d;
  --line: rgba(27, 22, 17, 0.12);
  --line-strong: rgba(27, 22, 17, 0.22);
  --card: #fffcf6;
  --card-2: #f7f0e4;
  --accent: #0b57d0;
  --accent-deep: #0846a8;
  --seal: #b4472f;
  --dark: #17130f;
  --nav-bg: rgba(250, 246, 238, 0.78);
  --glass: rgba(255, 252, 246, 0.74);
  --shadow-soft: 0 20px 50px -28px rgba(52, 35, 19, 0.3);
  --shadow-phone: 0 40px 90px -34px rgba(40, 26, 14, 0.58);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --nav-h: 74px;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.22'/%3E%3C/svg%3E");
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

html[data-theme="dark"] {
  --paper: #14110d;
  --paper-2: #1a1510;
  --paper-3: #211a13;
  --ink: #f2e9da;
  --ink-soft: #c8b9a6;
  --muted: #998a78;
  --line: rgba(242, 233, 218, 0.11);
  --line-strong: rgba(242, 233, 218, 0.2);
  --card: #1e1812;
  --card-2: #251e16;
  --accent: #9dc0ff;
  --accent-deep: #7fa9f4;
  --seal: #c45e45;
  --nav-bg: rgba(20, 17, 13, 0.78);
  --glass: rgba(32, 25, 18, 0.8);
  --shadow-soft: 0 20px 50px -26px rgba(0, 0, 0, 0.7);
  --shadow-phone: 0 40px 90px -30px rgba(0, 0, 0, 0.85);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 18px);
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  background-color: var(--paper);
  background-image:
    var(--grain),
    radial-gradient(1100px 720px at 84% -8%, rgba(11, 87, 208, 0.085), transparent 62%),
    radial-gradient(900px 560px at -8% 18%, rgba(180, 71, 47, 0.055), transparent 60%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 54%, var(--paper-3) 100%);
  background-size: 180px 180px, auto, auto, auto;
  background-attachment: fixed;
  background-blend-mode: soft-light, normal, normal, normal;
  overflow-x: hidden;
  transition: background-color 0.4s ease, color 0.4s ease;
}

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

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

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

.icon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.github-link .icon,
.dl-alt .icon {
  fill: currentColor;
  stroke: none;
}

.wrap {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  position: relative;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 300;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 12px;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 0.25s var(--ease);
}

.skip-link:focus {
  transform: none;
}

.scroll-progress {
  position: fixed;
  inset: 0 0 auto 0;
  height: 2px;
  z-index: 80;
  background: linear-gradient(90deg, var(--accent), var(--seal));
  transform: scaleX(0);
  transform-origin: 0 50%;
  will-change: transform;
}

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

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 70;
  height: var(--nav-h);
  background: var(--nav-bg);
  -webkit-backdrop-filter: blur(18px) saturate(1.15);
  backdrop-filter: blur(18px) saturate(1.15);
  border-bottom: 1px solid transparent;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
}

.nav.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 12px 36px -30px rgba(30, 20, 10, 0.4);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  flex: none;
}

.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  box-shadow: 0 3px 10px -4px rgba(40, 26, 14, 0.4);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.brand-text strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-text span {
  margin-top: 5px;
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  font-size: 12px;
  color: var(--ink-soft);
  text-decoration: none;
  letter-spacing: 0.02em;
  padding: 6px 0;
  transition: color 0.22s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, 4px) scale(0);
  transition: transform 0.25s var(--ease);
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--ink);
}

.nav-links a:hover::after,
.nav-links a.is-active::after {
  transform: translate(-50%, 0) scale(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.icon-btn:hover {
  background: var(--card);
  border-color: var(--line-strong);
  color: var(--ink);
}

.icon-btn .icon {
  width: 17px;
  height: 17px;
}

.theme-toggle .icon-sun {
  display: none;
}

html[data-theme="dark"] .theme-toggle .icon-sun {
  display: block;
}

html[data-theme="dark"] .theme-toggle .icon-moon {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.28s ease, color 0.28s ease, transform 0.28s var(--ease), box-shadow 0.28s ease, border-color 0.28s ease;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn-small {
  height: 40px;
  padding: 0 16px;
  font-size: 12px;
  gap: 7px;
}

.btn-small .icon {
  width: 15px;
  height: 15px;
}

.btn-primary,
.btn-ink {
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 16px 34px -20px rgba(27, 22, 17, 0.65);
}

.btn-primary:hover,
.btn-ink:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 20px 38px -18px rgba(11, 87, 208, 0.55);
}

.btn-note {
  font-size: 9px;
  font-weight: 400;
  opacity: 0.55;
  letter-spacing: 0.04em;
  margin-left: -3px;
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--line-strong);
  background: transparent;
}

.btn-ghost:hover {
  background: var(--card);
  border-color: var(--muted);
  transform: translateY(-2px);
}

.menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-btn span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s var(--ease);
}

.menu-btn[aria-expanded="true"] span:first-child {
  transform: translateY(3.25px) rotate(45deg);
}

.menu-btn[aria-expanded="true"] span:last-child {
  transform: translateY(-3.25px) rotate(-45deg);
}

.mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  padding: 10px 24px 24px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 30px 50px -30px rgba(30, 20, 10, 0.45);
}

.mobile-menu.is-open {
  display: block;
  animation: menuIn 0.26s var(--ease) both;
}

@keyframes menuIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.mobile-menu a {
  display: block;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  color: var(--ink);
  text-decoration: none;
}

.mobile-menu a:last-child {
  border-bottom: 0;
  color: var(--accent);
}

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

.hero {
  position: relative;
  padding: calc(var(--nav-h) + 76px) 0 36px;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 46%;
  height: 100%;
  background-image: radial-gradient(circle, var(--line-strong) 1px, transparent 1px);
  background-size: 27px 27px;
  -webkit-mask-image: radial-gradient(circle at 62% 46%, #000 0%, transparent 68%);
  mask-image: radial-gradient(circle at 62% 46%, #000 0%, transparent 68%);
  opacity: 0.45;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: -16%;
  right: -10%;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 87, 208, 0.14), rgba(180, 71, 47, 0.045) 46%, transparent 68%);
  filter: blur(28px);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 28px;
  align-items: center;
  min-height: 660px;
  z-index: 1;
}

.hero-copy {
  position: relative;
  z-index: 3;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 26px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(11, 87, 208, 0.12);
  animation: pulse 2.6s ease-in-out infinite;
}

.eyebrow .sep {
  opacity: 0.4;
}

.hero h1 {
  margin: 0 0 26px;
  font-family: var(--serif);
  font-size: clamp(48px, 6vw, 84px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.hero h1 em {
  position: relative;
  display: inline-block;
  z-index: 0;
  font-style: normal;
  color: var(--accent);
  white-space: nowrap;
}

.hero h1 em::after {
  content: "";
  position: absolute;
  left: 1%;
  right: 1%;
  bottom: 0.06em;
  height: 0.15em;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(11, 87, 208, 0.24), rgba(11, 87, 208, 0.03));
  z-index: -1;
}

html[data-theme="dark"] .hero h1 em::after {
  background: linear-gradient(90deg, rgba(157, 192, 255, 0.3), rgba(157, 192, 255, 0.03));
}

.lead {
  max-width: 510px;
  margin: 0;
  font-size: 16px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 11px;
  margin: 34px 0 40px;
}

.hero-meta {
  display: flex;
  max-width: 500px;
  margin: 0;
  padding: 23px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero-meta li {
  flex: 1;
  min-width: 0;
  padding-left: 17px;
  border-left: 1px solid var(--line);
}

.hero-meta li:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-meta strong {
  display: block;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.hero-meta strong span {
  margin-left: 1px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}

.hero-meta em {
  display: block;
  margin-top: 9px;
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.09em;
  color: var(--muted);
  white-space: nowrap;
}

.hero-footnote {
  margin: 22px 0 0;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.hero-visual {
  position: relative;
  height: 690px;
  display: flex;
  align-items: center;
  justify-content: center;
  isolation: isolate;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% 1% 7%;
  border: 1px dashed var(--line-strong);
  border-radius: 50%;
  opacity: 0.4;
  transform: rotate(-12deg);
}

.halo {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 44%, rgba(11, 87, 208, 0.17), rgba(180, 71, 47, 0.06) 52%, transparent 70%);
  filter: blur(12px);
  z-index: 0;
}

.phone {
  position: absolute;
  padding: 9px;
  border-radius: 44px;
  background: linear-gradient(150deg, #3b332a, #0e0b08 62%);
  box-shadow: var(--shadow-phone), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.phone::before {
  content: "";
  position: absolute;
  top: 150px;
  right: -2px;
  width: 2px;
  height: 54px;
  border-radius: 2px;
  background: #2a231c;
}

.phone::after {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #090705;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.13);
  transform: translateX(-50%);
  z-index: 2;
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 35px;
  background: #000;
}

.phone-main {
  position: relative;
  width: 272px;
  z-index: 3;
  transform: rotate(-2.5deg);
  animation: float 9s ease-in-out infinite;
}

.phone-left {
  width: 206px;
  left: 0;
  top: 104px;
  z-index: 2;
  opacity: 0.94;
  transform: rotate(-11deg);
}

.phone-right {
  width: 206px;
  right: 0;
  top: 128px;
  z-index: 1;
  opacity: 0.94;
  transform: rotate(10deg);
}

.float-card {
  position: absolute;
  z-index: 6;
  padding: 15px 17px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  backdrop-filter: blur(18px) saturate(1.2);
  box-shadow: 0 26px 54px -26px rgba(50, 32, 16, 0.38);
}

html[data-theme="dark"] .float-card {
  border-color: rgba(255, 255, 255, 0.1);
}

.float-quote {
  left: -16px;
  bottom: 82px;
  max-width: 196px;
}

.float-quote p {
  margin: 7px 0 0;
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
}

.float-kicker {
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--muted);
  text-transform: uppercase;
}

.float-paper {
  right: -12px;
  top: 62px;
  min-width: 180px;
}

.paper-dots {
  display: flex;
  gap: 4px;
  margin: 9px 0 8px;
}

.paper-dots i {
  display: block;
  width: 27px;
  height: 8px;
  border-radius: 99px;
}

.paper-dots i:nth-child(1) {
  background: #fbf8f2;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.paper-dots i:nth-child(2) {
  background: #f3ecdf;
}

.paper-dots i:nth-child(3) {
  background: #e7dac6;
}

.float-paper code {
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.seal {
  position: absolute;
  right: 6px;
  bottom: 32px;
  z-index: 6;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  background: var(--seal);
  color: #fff7ec;
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.05;
  letter-spacing: 0.1em;
  writing-mode: vertical-rl;
  transform: rotate(4deg);
  box-shadow: 0 12px 26px -10px rgba(180, 71, 47, 0.65), inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  opacity: 0.95;
}

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
  padding-top: 24px;
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--muted);
}

.scroll-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--line-strong), transparent);
}

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

.marquee {
  position: relative;
  overflow: hidden;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.32);
}

html[data-theme="dark"] .marquee {
  background: rgba(255, 255, 255, 0.02);
}

.marquee-track {
  display: flex;
  align-items: center;
  gap: 26px;
  width: max-content;
  animation: marquee 44s linear infinite;
}

.marquee span {
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.marquee i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.6;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

/* ---------- section base ---------- */

.section {
  position: relative;
  padding: 118px 0;
}

.section-index {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 10px;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--muted);
  white-space: nowrap;
}

.section-index::before {
  content: "";
  width: 18px;
  height: 1px;
  background: var(--accent);
}

.section-index.light {
  color: rgba(248, 241, 230, 0.5);
}

.section-index.light::before {
  background: #9dc0ff;
}

.section-head {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  margin-bottom: 56px;
}

.section h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(34px, 4.3vw, 54px);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.section-lead {
  max-width: 580px;
  margin: 20px 0 0;
  font-size: 14px;
  line-height: 1.9;
  color: var(--ink-soft);
}

.section-lead code,
.faq-list code {
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(11, 87, 208, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
  color: var(--accent-deep);
}

html[data-theme="dark"] .section-lead code,
html[data-theme="dark"] .faq-list code {
  background: rgba(157, 192, 255, 0.1);
  color: var(--accent);
}

/* ---------- why ---------- */

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

.why-card {
  position: relative;
  min-height: 274px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, var(--card), var(--card-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
  transition: transform 0.4s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease;
}

html[data-theme="dark"] .why-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.why-card::after {
  content: attr(data-n);
  position: absolute;
  right: 12px;
  bottom: -30px;
  font-family: var(--serif);
  font-size: 112px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  opacity: 0.045;
  pointer-events: none;
}

.why-card:hover {
  transform: translateY(-6px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.why-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
  color: var(--accent);
}

.why-icon .icon {
  width: 21px;
  height: 21px;
}

.why-card h3 {
  margin: 48px 0 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.why-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

/* ---------- publish split ---------- */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 76px;
  align-items: center;
}

.split-visual {
  position: relative;
  min-height: 650px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.visual-blob {
  position: absolute;
  width: 480px;
  height: 570px;
  border-radius: 48% 52% 44% 56% / 55% 42% 58% 45%;
  background: linear-gradient(150deg, rgba(11, 87, 208, 0.13), rgba(231, 218, 198, 0.72));
  filter: blur(2px);
  transform: rotate(-6deg);
  z-index: 0;
}

html[data-theme="dark"] .visual-blob {
  background: linear-gradient(150deg, rgba(11, 87, 208, 0.24), rgba(255, 255, 255, 0.035));
}

.phone-stage {
  position: relative;
  width: 300px;
  margin: 0;
  z-index: 2;
  transform: rotate(-1.5deg);
}

.card-chip {
  position: absolute;
  right: -4px;
  bottom: 66px;
  z-index: 4;
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 176px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.card-chip strong {
  margin-top: 4px;
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 600;
}

.card-chip small {
  font-size: 9px;
  line-height: 1.7;
  color: var(--muted);
}

.upload-chip {
  position: absolute;
  left: 2px;
  top: 96px;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2e9e6b;
  box-shadow: 0 0 0 5px rgba(46, 158, 107, 0.13);
}

.upload-chip strong {
  display: block;
  font-size: 12px;
  line-height: 1.2;
}

.upload-chip small {
  display: block;
  margin-top: 3px;
  font-size: 8px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.split-copy h2 {
  margin-top: 26px;
}

.feature-list {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  display: flex;
  gap: 14px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}

.feature-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.feature-k {
  flex: none;
  width: 24px;
  padding-top: 2px;
  font-family: var(--serif);
  font-size: 11px;
  color: var(--accent);
}

.feature-list strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.feature-list div span {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}

.metric-row {
  display: flex;
  gap: 26px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.metric-row strong {
  margin-right: 3px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* ---------- bento ---------- */

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

.bento-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 438px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(160deg, var(--card), var(--card-2));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transition: transform 0.4s var(--ease), border-color 0.4s ease, box-shadow 0.4s ease;
}

html[data-theme="dark"] .bento-card {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.bento-card:hover {
  transform: translateY(-5px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.bento-card:nth-child(1) {
  grid-column: span 7;
}

.bento-card:nth-child(2) {
  grid-column: span 5;
}

.bento-card:nth-child(3),
.bento-card:nth-child(4),
.bento-card:nth-child(5) {
  grid-column: span 4;
}

.bento-wide {
  flex-direction: row;
  align-items: stretch;
  gap: 20px;
  min-height: 438px;
}

.bento-copy {
  position: relative;
  z-index: 2;
}

.bento-wide .bento-copy {
  width: 46%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 4px 0;
}

.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(11, 87, 208, 0.22);
  border-radius: 999px;
  font-size: 8px;
  font-weight: 500;
  letter-spacing: 0.16em;
  color: var(--accent);
}

html[data-theme="dark"] .tag {
  border-color: rgba(157, 192, 255, 0.25);
}

.bento-card h3 {
  margin: 15px 0 8px;
  font-family: var(--serif);
  font-size: 23px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.015em;
}

.bento-card p {
  max-width: 330px;
  margin: 0;
  font-size: 12.5px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.bento-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 22px;
  font-size: 10px;
  letter-spacing: 0.03em;
  color: var(--accent);
}

.bento-link .icon {
  width: 14px;
  height: 14px;
}

.bento-screen {
  flex: none;
  width: 198px;
  margin: 26px -12px -172px auto;
  padding: 7px;
  border-radius: 26px;
  background: linear-gradient(150deg, #3b332a, #0e0b08);
  box-shadow: 0 30px 60px -28px rgba(40, 26, 14, 0.55);
  transform: rotate(3deg);
  transition: transform 0.5s var(--ease);
}

.bento-card:hover .bento-screen {
  transform: rotate(2deg) translateY(-5px);
}

.bento-screen img {
  display: block;
  width: 100%;
  border-radius: 20px;
}

.bento-wide .bento-screen {
  position: relative;
  width: 245px;
  margin: -24px -40px -120px auto;
  transform: rotate(3deg);
}

.bento-wide:hover .bento-screen {
  transform: rotate(2deg) translateY(-5px);
}

/* ---------- gallery ---------- */

.gallery-section {
  padding-top: 112px;
}

.gallery-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.filter {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  font-size: 11px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: background 0.22s ease, color 0.22s ease, border-color 0.22s ease;
}

.filter span {
  font-size: 8px;
  opacity: 0.55;
}

.filter:hover {
  border-color: var(--line-strong);
  background: var(--card);
}

.filter.is-active {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}

.filter.is-active span {
  opacity: 0.5;
}

.gallery-count {
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
  white-space: nowrap;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px 16px;
}

.gallery-item {
  margin: 0;
  transition: transform 0.4s var(--ease);
}

.gallery-item.is-hidden {
  display: none;
}

.gallery-item a {
  display: block;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
  overflow: hidden;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item a:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-soft);
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 20;
  object-fit: cover;
  object-position: top center;
  border-radius: 16px;
  background: var(--card-2);
  transition: transform 0.6s var(--ease);
}

.gallery-item:hover img {
  transform: scale(1.02);
}

.gallery-item figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 7px 3px;
}

.gallery-item figcaption strong {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}

.gallery-item figcaption span {
  font-family: var(--serif);
  font-size: 10px;
  color: var(--muted);
}

.gallery-item.is-entering {
  animation: cardIn 0.45s var(--ease) both;
}

/* ---------- design (dark band) ---------- */

.design {
  overflow: hidden;
  padding: 120px 0;
  background:
    radial-gradient(900px 500px at 82% 4%, rgba(11, 87, 208, 0.22), transparent 62%),
    linear-gradient(155deg, #1d1812 0%, #100d0a 62%);
  color: #f4ecdf;
}

.design::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--grain);
  opacity: 0.035;
  pointer-events: none;
}

.design .wrap {
  z-index: 1;
}

.design .section-index {
  color: rgba(244, 236, 223, 0.48);
}

.design .section-index::before {
  background: #9dc0ff;
}

.design h2 {
  color: #fbf6ec;
}

.design .section-lead {
  color: rgba(244, 236, 223, 0.62);
}

.design .section-lead code {
  background: rgba(157, 192, 255, 0.1);
  color: #9dc0ff;
}

.design-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
}

.design-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.design-col-right {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-content: start;
}

.design-card {
  padding: 25px;
  border: 1px solid rgba(244, 236, 223, 0.1);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.035);
}

.design-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.design-card .tag {
  border-color: rgba(157, 192, 255, 0.24);
  color: #9dc0ff;
}

.design-card .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8.5px;
  letter-spacing: 0.03em;
  color: rgba(244, 236, 223, 0.42);
}

.paper-preview {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  height: 212px;
  padding: 15px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fbf8f2 0%, #f3ecdf 52%, #e7dac6 100%);
  box-shadow: inset 0 0 0 1px rgba(27, 22, 17, 0.05);
}

.paper-preview span {
  padding: 6px 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.4);
  font-family: var(--sans);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: rgba(27, 22, 17, 0.48);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}

.paper-card > p,
.dark-paper > p {
  margin: 18px 0 0;
  font-size: 11.5px;
  line-height: 1.8;
  color: rgba(244, 236, 223, 0.55);
}

.type-specimen {
  margin: 4px 0 26px;
  font-family: var(--serif);
  font-size: clamp(40px, 4.6vw, 58px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.04em;
  color: #fbf6ec;
}

.type-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.type-meta span {
  padding: 6px 10px;
  border: 1px solid rgba(244, 236, 223, 0.12);
  border-radius: 999px;
  font-size: 9px;
  color: rgba(244, 236, 223, 0.52);
}

.dark-paper {
  grid-column: span 2;
}

.dark-preview {
  height: 152px;
  border: 1px solid rgba(244, 236, 223, 0.08);
  border-radius: 16px;
  background: linear-gradient(135deg, #2a241d, #1a1511);
  box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.25);
}

.wheel-card,
.radius-card {
  display: flex;
  flex-direction: column;
}

.wheel {
  position: relative;
  width: 116px;
  height: 116px;
  margin: 4px auto 17px;
  border-radius: 50%;
  background: conic-gradient(#ff5a5a, #ffd75a, #7ee787, #5ad7ff, #7a7aff, #ff5ad7, #ff5a5a);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.wheel::after {
  content: "";
  position: absolute;
  inset: 23px;
  border-radius: 50%;
  background: #17130f;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.wheel span {
  position: absolute;
  top: 18%;
  left: 50%;
  z-index: 2;
  width: 13px;
  height: 13px;
  border: 3px solid #0b57d0;
  border-radius: 50%;
  background: #fff;
  transform: translate(-50%, -50%);
}

.wheel-card > .mono,
.radius-card > .mono {
  display: block;
  text-align: center;
  font-size: 11px;
  color: #fbf6ec;
}

.wheel-card p,
.radius-card p {
  margin: 6px 0 0;
  text-align: center;
  font-size: 9.5px;
  color: rgba(244, 236, 223, 0.45);
}

.shapes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 116px;
}

.shapes i {
  display: block;
  border: 1px solid rgba(244, 236, 223, 0.24);
  background: rgba(244, 236, 223, 0.06);
}

.shapes i:nth-child(1) {
  width: 52px;
  height: 52px;
  border-radius: 16px;
}

.shapes i:nth-child(2) {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.shapes i:nth-child(3) {
  width: 22px;
  height: 22px;
  border-radius: 999px;
}

.token-strip {
  display: flex;
  flex-wrap: wrap;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid rgba(244, 236, 223, 0.1);
  border-radius: 20px;
}

.token-strip span {
  flex: 1;
  min-width: 150px;
  padding: 17px 20px;
  border-right: 1px solid rgba(244, 236, 223, 0.08);
  font-size: 10px;
  color: rgba(244, 236, 223, 0.5);
}

.token-strip span:last-child {
  border-right: 0;
}

.token-strip strong {
  margin-right: 4px;
  font-family: var(--serif);
  font-size: 17px;
  font-weight: 600;
  color: #fbf6ec;
}

.design-quote {
  max-width: 780px;
  margin: 56px 0 0;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: -0.015em;
  color: #fbf6ec;
}

.design-quote cite {
  display: block;
  margin-top: 18px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(244, 236, 223, 0.42);
}

/* ---------- stats ---------- */

.stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.34);
}

html[data-theme="dark"] .stats {
  background: rgba(255, 255, 255, 0.018);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
}

.stat {
  padding: 44px 14px;
  border-left: 1px solid var(--line);
  text-align: center;
}

.stat:first-child {
  border-left: 0;
}

.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(32px, 3.6vw, 48px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
}

.stat strong em {
  margin-left: 2px;
  font-family: var(--sans);
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}

.stat span {
  display: block;
  margin-top: 11px;
  font-size: 8px;
  letter-spacing: 0.17em;
  color: var(--muted);
}

/* ---------- download ---------- */

.download-section {
  padding: 110px 0 115px;
}

.download-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  padding: 56px;
  overflow: hidden;
  border-radius: 36px;
  background: linear-gradient(140deg, #1e1812 0%, #0f0c09 72%);
  color: #f8f1e6;
  box-shadow: 0 50px 110px -50px rgba(30, 20, 10, 0.65);
  isolation: isolate;
}

.download-card::before {
  content: "";
  position: absolute;
  top: -190px;
  right: -90px;
  z-index: -1;
  width: 540px;
  height: 540px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(11, 87, 208, 0.38), transparent 66%);
}

.download-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grain);
  opacity: 0.045;
  pointer-events: none;
}

.download-copy {
  position: relative;
  z-index: 1;
}

.download-copy h2 {
  margin: 22px 0 18px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 52px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.03em;
  color: #fbf6ec;
}

.download-copy > p {
  max-width: 430px;
  margin: 0;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(248, 241, 230, 0.6);
}

.download-points {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.download-points li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  color: rgba(248, 241, 230, 0.7);
}

.download-points .icon {
  width: 14px;
  height: 14px;
  color: #9dc0ff;
}

.seal-download {
  position: static;
  margin-top: 34px;
  width: 52px;
  height: 52px;
  font-size: 15px;
  transform: rotate(-3deg);
}

.download-panel {
  position: relative;
  z-index: 1;
  align-self: center;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.055);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.dl-app {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
}

.dl-app img {
  border-radius: 13px;
  box-shadow: 0 10px 26px -12px rgba(0, 0, 0, 0.65);
}

.dl-app strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
}

.dl-app span {
  display: block;
  margin-top: 3px;
  font-size: 9.5px;
  color: rgba(248, 241, 230, 0.48);
}

.dl-badge {
  margin-left: auto;
  padding: 4px 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 8px;
  letter-spacing: 0.1em;
  color: rgba(248, 241, 230, 0.55);
}

.btn-light {
  width: 100%;
  height: 50px;
  background: #f8f1e6;
  color: #17130f;
}

.btn-light:hover {
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -18px rgba(0, 0, 0, 0.55);
}

.btn-light span {
  margin-left: 1px;
  font-size: 9px;
  opacity: 0.5;
}

.btn-outline-light {
  width: 100%;
  height: 48px;
  margin-top: 9px;
  border-color: rgba(255, 255, 255, 0.17);
  color: #f8f1e6;
  background: transparent;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.3);
  transform: translateY(-2px);
}

.hash-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.hash-label {
  display: block;
  margin-bottom: 5px;
  font-size: 7.5px;
  letter-spacing: 0.18em;
  color: rgba(248, 241, 230, 0.38);
}

.hash-row code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 8.5px;
  line-height: 1.6;
  color: rgba(248, 241, 230, 0.5);
  word-break: break-all;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  flex: none;
  padding: 6px 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: transparent;
  font-size: 9px;
  color: rgba(248, 241, 230, 0.58);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.copy-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.copy-btn .icon {
  width: 12px;
  height: 12px;
}

.dl-note {
  margin: 14px 0 0;
  font-size: 8.5px;
  line-height: 1.6;
  color: rgba(248, 241, 230, 0.3);
}

/* ---------- faq ---------- */

.faq {
  padding-top: 110px;
}

.faq-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 72px;
  align-items: start;
}

.faq-head h2 {
  margin-top: 22px;
}

.faq-head .section-lead a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 87, 208, 0.25);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list details:first-child {
  border-top: 1px solid var(--line);
}

.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 21px 0;
  list-style: none;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  cursor: pointer;
}

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

.faq-list summary::after {
  content: "+";
  flex: none;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  line-height: 1;
  color: var(--muted);
  transition: transform 0.3s var(--ease), color 0.3s ease;
}

.faq-list details[open] summary::after {
  transform: rotate(45deg);
  color: var(--accent);
}

.faq-list details p {
  max-width: 570px;
  margin: 0;
  padding: 0 0 24px;
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

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

.footer {
  padding: 64px 0 30px;
  border-top: 1px solid var(--line);
  background: rgba(255, 252, 246, 0.32);
}

html[data-theme="dark"] .footer {
  background: rgba(255, 255, 255, 0.015);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.6fr 0.75fr 0.6fr;
  gap: 40px;
}

.footer-brand p {
  margin: 17px 0 18px;
  font-size: 11.5px;
  line-height: 1.8;
  color: var(--muted);
}

.footer-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.footer-tags span {
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 8px;
  letter-spacing: 0.03em;
  color: var(--muted);
}

.footer-col h3 {
  margin: 4px 0 13px;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.19em;
  color: var(--muted);
}

.footer-col a {
  display: block;
  padding: 5px 0;
  font-size: 11.5px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 28px;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* ---------- lightbox ---------- */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 64px;
  align-items: center;
  padding: 26px;
  background: rgba(14, 11, 8, 0.95);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  visibility: visible;
}

.lb-top {
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 26px;
}

.lb-counter {
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: 0.2em;
  color: rgba(248, 241, 230, 0.5);
}

.lb-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #f8f1e6;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lb-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.lb-close .icon {
  width: 18px;
  height: 18px;
}

.lb-nav {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: #f8f1e6;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lb-nav:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.28);
}

.lb-nav .icon {
  width: 20px;
  height: 20px;
}

.lb-prev {
  justify-self: start;
}

.lb-next {
  justify-self: end;
}

.lb-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  min-height: 0;
  max-height: 100%;
  margin: 0;
}

.lb-stage img {
  display: block;
  width: auto;
  max-width: 100%;
  max-height: min(76vh, 900px);
  border-radius: 22px;
  background: #000;
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.6);
}

.lb-stage figcaption {
  max-width: 620px;
  text-align: center;
}

.lb-stage strong {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
  color: #f8f1e6;
}

.lb-stage span {
  display: block;
  margin-top: 4px;
  font-size: 10px;
  line-height: 1.6;
  color: rgba(248, 241, 230, 0.48);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 300;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 11px;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 16px);
  transition: opacity 0.3s ease, transform 0.3s var(--ease);
}

.toast.is-show {
  opacity: 1;
  transform: translate(-50%, 0);
}

body.is-locked {
  overflow: hidden;
}

/* ---------- reveal ---------- */

.reveal {
  opacity: 1;
}

.js .reveal {
  opacity: 0;
}

.js .reveal.is-visible {
  opacity: 1;
  animation: revealIn 0.8s var(--ease) var(--d, 0s) backwards;
}

@keyframes revealIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes float {
  0%,
  100% {
    transform: rotate(-2.5deg) translateY(0);
  }
  50% {
    transform: rotate(-1.5deg) translateY(-11px);
  }
}

@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 0 0 4px rgba(11, 87, 208, 0.1);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(11, 87, 208, 0.03);
  }
}

@keyframes marquee {
  to {
    transform: translateX(-50%);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- responsive ---------- */

@media (max-width: 1120px) {
  .hero-visual {
    height: 650px;
  }

  .phone-main {
    width: 252px;
  }

  .phone-left,
  .phone-right {
    width: 190px;
  }

  .phone-left {
    left: -6px;
  }

  .phone-right {
    right: -6px;
  }

  .float-paper {
    right: -2px;
  }

  .float-quote {
    left: 0;
  }

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

  .why-card {
    min-height: 240px;
  }

  .why-card h3 {
    margin-top: 38px;
  }

  .split {
    gap: 48px;
  }

  .split-visual {
    min-height: 610px;
  }

  .phone-stage {
    width: 278px;
  }
}

@media (max-width: 980px) {
  .section {
    padding: 96px 0;
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 42px;
  }

  .section-index {
    padding-top: 0;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 54px);
  }

  .hero-grid {
    grid-template-columns: 1fr;
    min-height: 0;
    gap: 4px;
  }

  .hero-copy {
    max-width: 660px;
  }

  .hero-visual {
    height: 590px;
    margin-top: 18px;
  }

  .phone-main {
    width: 246px;
  }

  .phone-left {
    width: 182px;
    left: 12%;
    top: 92px;
  }

  .phone-right {
    width: 182px;
    right: 12%;
    top: 112px;
  }

  .float-quote {
    left: 7%;
    bottom: 50px;
  }

  .float-paper {
    right: 6%;
    top: 44px;
  }

  .seal {
    right: 9%;
    bottom: 12px;
  }

  .hero-scroll {
    display: none;
  }

  .split {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .split-visual {
    order: 1;
    min-height: 600px;
  }

  .split-copy {
    order: 2;
    max-width: 660px;
  }

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

  .bento-card:nth-child(1),
  .bento-card:nth-child(2) {
    grid-column: span 2;
  }

  .bento-card:nth-child(3),
  .bento-card:nth-child(4),
  .bento-card:nth-child(5) {
    grid-column: span 1;
  }

  .bento-card:nth-child(3) {
    grid-column: span 2;
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

  .design-grid {
    grid-template-columns: 1fr;
  }

  .design-col-right {
    grid-template-columns: 1fr 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .stat:nth-child(4) {
    border-left: 0;
  }

  .stat:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .download-card {
    grid-template-columns: 1fr;
    gap: 36px;
    padding: 42px;
  }

  .download-panel {
    max-width: 520px;
  }

  .faq-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 34px;
  }

  .nav-links {
    display: none;
  }

  .menu-btn {
    display: flex;
  }
}

@media (max-width: 900px) {
  .nav-download {
    display: none;
  }
}

@media (max-width: 760px) {
  .wrap {
    width: calc(100% - 40px);
  }

  .hero h1 {
    font-size: clamp(42px, 10.5vw, 62px);
  }

  .lead {
    font-size: 14.5px;
  }

  .hero-meta {
    flex-wrap: wrap;
    row-gap: 20px;
  }

  .hero-meta li {
    flex: 0 0 50%;
    padding-left: 0;
    border-left: 0;
  }

  .hero-meta li:nth-child(n + 3) {
    padding-top: 18px;
    border-top: 1px solid var(--line);
  }

  .hero-visual {
    height: 530px;
  }

  .phone-main {
    width: 218px;
  }

  .phone-left {
    width: 150px;
    left: 0;
    top: 78px;
  }

  .phone-right {
    width: 150px;
    right: 0;
    top: 96px;
  }

  .float-quote {
    left: 0;
    bottom: 30px;
    max-width: 176px;
    padding: 12px 14px;
  }

  .float-quote p {
    font-size: 13px;
  }

  .float-paper {
    right: 0;
    top: 20px;
    min-width: 158px;
    padding: 12px 14px;
  }

  .seal {
    right: 4px;
    bottom: 2px;
    width: 48px;
    height: 48px;
    font-size: 14px;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-card {
    min-height: 0;
  }

  .why-card h3 {
    margin-top: 30px;
  }

  .split-visual {
    min-height: 530px;
  }

  .phone-stage {
    width: 244px;
  }

  .card-chip {
    right: 0;
    bottom: 42px;
    width: 158px;
  }

  .upload-chip {
    left: 0;
    top: 70px;
  }

  .bento {
    grid-template-columns: 1fr;
  }

  .bento-card:nth-child(1),
  .bento-card:nth-child(2),
  .bento-card:nth-child(3),
  .bento-card:nth-child(4),
  .bento-card:nth-child(5) {
    grid-column: span 1;
  }

  .bento-wide {
    flex-direction: column;
    min-height: 440px;
  }

  .bento-wide .bento-copy {
    width: 100%;
  }

  .bento-wide .bento-screen {
    width: 205px;
    margin: 20px -18px -170px auto;
  }

  .bento-card {
    min-height: 410px;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px 12px;
  }

  .gallery-item a {
    padding: 5px;
    border-radius: 18px;
  }

  .gallery-item img {
    border-radius: 13px;
  }

  .gallery-toolbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .design-col-right {
    grid-template-columns: 1fr;
  }

  .dark-paper {
    grid-column: span 1;
  }

  .token-strip span {
    flex: 0 0 50%;
    border-bottom: 1px solid rgba(244, 236, 223, 0.08);
  }

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

  .stat {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-top: 0;
  }

  .stat:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .download-section {
    padding: 84px 0 90px;
  }

  .download-card {
    padding: 32px 24px;
    border-radius: 28px;
  }

  .download-card h2 {
    font-size: 34px;
  }

  .seal-download {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px;
  }

  .footer-brand {
    grid-column: span 2;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 7px;
  }

  .lightbox {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .lb-nav {
    position: absolute;
    top: 50%;
    z-index: 4;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(20, 16, 12, 0.72);
  }

  .lb-prev {
    left: 12px;
  }

  .lb-next {
    right: 12px;
  }

  .lb-stage img {
    max-height: 72vh;
  }

  .lb-top {
    padding: 0 18px;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .brand-text strong {
    font-size: 14px;
  }

  .brand-text span {
    font-size: 7px;
  }

  .brand img {
    width: 31px;
    height: 31px;
  }

  .icon-btn {
    width: 37px;
    height: 37px;
  }

  .hero {
    padding-top: calc(var(--nav-h) + 42px);
  }

  .hero h1 {
    font-size: 40px;
    line-height: 1.12;
  }

  .eyebrow {
    font-size: 8px;
    letter-spacing: 0.14em;
  }

  .hero-actions {
    margin: 28px 0 32px;
  }

  .btn {
    height: 48px;
    padding: 0 18px;
    font-size: 12px;
  }

  .btn-note {
    display: none;
  }

  .hero-visual {
    height: 480px;
  }

  .phone-main {
    width: 196px;
    padding: 7px;
    border-radius: 36px;
  }

  .phone-main img {
    border-radius: 29px;
  }

  .phone-left,
  .phone-right {
    width: 126px;
    padding: 6px;
    border-radius: 30px;
    top: 68px;
  }

  .phone-left img,
  .phone-right img {
    border-radius: 24px;
  }

  .float-quote {
    bottom: 18px;
    max-width: 160px;
  }

  .float-paper {
    display: none;
  }

  .seal {
    display: none;
  }

  .section {
    padding: 78px 0;
  }

  .section h2 {
    font-size: 31px;
  }

  .split-visual {
    min-height: 470px;
  }

  .phone-stage {
    width: 214px;
  }

  .card-chip {
    display: none;
  }

  .upload-chip {
    display: none;
  }

  .upload-chip strong {
    font-size: 11px;
  }

  .bento-card {
    padding: 22px;
    min-height: 390px;
  }

  .bento-card h3 {
    font-size: 21px;
  }

  .bento-screen {
    width: 174px;
    margin-bottom: -150px;
  }

  .bento-wide .bento-screen {
    width: 180px;
    margin-bottom: -150px;
  }

  .gallery-item figcaption strong {
    font-size: 11px;
  }

  .design {
    padding: 84px 0;
  }

  .type-specimen {
    font-size: 38px;
  }

  .paper-preview {
    height: 180px;
  }

  .token-strip span {
    flex: 0 0 100%;
    border-right: 0;
  }

  .design-quote {
    margin-top: 38px;
    font-size: 21px;
  }

  .stat {
    padding: 30px 10px;
  }

  .stat strong {
    font-size: 34px;
  }

  .download-card {
    padding: 28px 18px;
  }

  .download-copy h2 {
    font-size: 30px;
  }

  .download-panel {
    padding: 18px;
  }

  .dl-app img {
    width: 46px;
    height: 46px;
  }

  .hash-row {
    flex-direction: column;
  }

  .copy-btn {
    align-self: flex-start;
  }

  .faq-list summary {
    font-size: 13.5px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .lb-stage figcaption {
    padding: 0 12px;
  }

  .lb-stage strong {
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .reveal,
  .js .reveal {
    opacity: 1;
  }

  .phone-main {
    animation: none;
  }

  .marquee-track {
    animation: none;
  }
}

/* =========================================================
   Research / article page
   ========================================================= */

.article-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  padding-bottom: 4px;
  border-bottom: 1px solid rgba(157, 192, 255, 0.35);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: #9dc0ff;
  text-decoration: none;
}

.article-link .icon {
  width: 15px;
  height: 15px;
}

.article-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

.article-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.article-back {
  margin-right: 6px;
  font-size: 11px;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-back:hover {
  color: var(--accent);
}

.article-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--nav-h) + 84px) 0 68px;
  border-bottom: 1px solid var(--line);
}

.article-hero::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 44%;
  height: 100%;
  background-image: radial-gradient(circle, var(--line-strong) 1px, transparent 1px);
  background-size: 27px 27px;
  -webkit-mask-image: radial-gradient(circle at 60% 45%, #000, transparent 68%);
  mask-image: radial-gradient(circle at 60% 45%, #000, transparent 68%);
  opacity: 0.4;
  pointer-events: none;
}

.article-hero .wrap {
  position: relative;
  z-index: 1;
}

.article-hero h1 {
  max-width: 960px;
  margin: 24px 0 24px;
  font-family: var(--serif);
  font-size: clamp(40px, 5.4vw, 72px);
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.04em;
}

.article-hero h1 em {
  font-style: normal;
  color: var(--accent);
}

.article-lead {
  max-width: 700px;
  margin: 0;
  font-size: 15px;
  line-height: 1.95;
  color: var(--ink-soft);
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
}

.article-meta span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 8.5px;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.article-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 66px;
  width: min(1040px, calc(100% - 48px));
  margin: 0 auto;
  padding: 64px 0 96px;
}

.article-toc {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
  align-self: start;
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.toc-title {
  display: block;
  margin-bottom: 14px;
  font-size: 8px;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.article-toc a {
  display: block;
  padding: 6px 0;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

.article-toc a:hover,
.article-toc a.is-active {
  color: var(--accent);
}

.article-toc .toc-back {
  margin-top: 18px;
  font-size: 10px;
  color: var(--accent);
}

.article-body {
  min-width: 0;
  max-width: 760px;
}

.article-body section {
  scroll-margin-top: calc(var(--nav-h) + 24px);
}

.article-body h2 {
  margin: 68px 0 18px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-family: var(--serif);
  font-size: clamp(28px, 3.2vw, 39px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.article-body section:first-child h2 {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.article-body h2 .num {
  display: block;
  margin-bottom: 12px;
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.2em;
  color: var(--accent);
}

.article-body h3 {
  margin: 32px 0 10px;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.4;
}

.article-body p {
  margin: 0 0 16px;
  font-size: 13.8px;
  line-height: 1.95;
  color: var(--ink-soft);
}

.article-body strong {
  color: var(--ink);
  font-weight: 600;
}

.article-body a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(11, 87, 208, 0.25);
}

.article-body a.btn {
  border-bottom: 0;
}

.article-body a.btn-primary {
  color: var(--paper);
}

.article-body a.btn-primary:hover {
  color: #fff;
}

.article-body ul,
.article-body ol {
  margin: 0 0 20px;
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 13.2px;
  line-height: 1.9;
}

.article-body li {
  margin: 5px 0;
}

.article-body li::marker {
  color: var(--accent);
}

.article-body code {
  padding: 2px 5px;
  border-radius: 5px;
  background: rgba(11, 87, 208, 0.07);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: var(--accent-deep);
}

html[data-theme="dark"] .article-body code {
  background: rgba(157, 192, 255, 0.09);
  color: var(--accent);
}

.article-body pre {
  margin: 20px 0 24px;
  padding: 18px 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.article-body pre code {
  padding: 0;
  background: transparent;
  font-size: 11px;
  line-height: 1.8;
  color: var(--ink-soft);
}

.table-wrap {
  margin: 22px 0 28px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.article-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: 11.5px;
  line-height: 1.7;
}

.article-table th {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--card);
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

.article-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  color: var(--ink-soft);
}

.article-table tr:last-child td {
  border-bottom: 0;
}

.article-table td:first-child {
  color: var(--ink);
  font-weight: 500;
  white-space: nowrap;
}

.callout {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 2px solid var(--accent);
  border-radius: 0 14px 14px 0;
  background: var(--card);
  font-size: 12.5px;
  line-height: 1.85;
  color: var(--ink-soft);
}

.callout.warn {
  border-left-color: var(--seal);
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout strong {
  color: var(--ink);
}

.article-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 26px 0 30px;
}

.article-stat {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.article-stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.article-stat span {
  display: block;
  margin-top: 8px;
  font-size: 7.5px;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.article-swatches {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 22px 0 26px;
}

.paper-sample {
  position: relative;
  height: 130px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.paper-sample span {
  position: absolute;
  left: 9px;
  bottom: 9px;
  padding: 4px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.42);
  font-size: 8px;
  letter-spacing: 0.03em;
  color: rgba(27, 22, 17, 0.55);
}

.paper-light {
  background: linear-gradient(180deg, #fbf8f2, #f3ecdf 55%, #e7dac6);
}

.paper-dark {
  background: linear-gradient(135deg, #2a241d, #1a1511);
}

.paper-dark span {
  background: rgba(255, 255, 255, 0.07);
  color: rgba(244, 236, 223, 0.6);
}

.engineering-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 22px 0 28px;
}

.engineering-item {
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--card);
}

.engineering-item strong {
  display: block;
  margin-bottom: 5px;
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 600;
}

.engineering-item p {
  margin: 0;
  font-size: 11.3px;
  line-height: 1.8;
}

.version-list {
  margin: 22px 0 30px;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.version-list li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.75;
  color: var(--ink-soft);
}

.version-list strong {
  font-family: var(--serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.version-list .vtag {
  display: inline-block;
  margin-left: 6px;
  font-family: var(--sans);
  font-size: 7.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.article-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 58px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(160deg, var(--card), var(--card-2));
}

.article-cta h3 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 600;
}

.article-cta p {
  margin: 0;
  font-size: 10.5px;
  color: var(--muted);
}

.article-footer {
  padding: 26px 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.article-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.article-footer p {
  margin: 0;
  font-size: 9px;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.article-footer a {
  font-size: 10px;
  color: var(--ink-soft);
  text-decoration: none;
}

.article-footer a:hover {
  color: var(--accent);
}

@media (max-width: 980px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 44px;
  }

  .article-toc {
    position: static;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 16px;
    padding: 15px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--card);
  }

  .toc-title {
    width: 100%;
    margin-bottom: 4px;
  }

  .article-toc .toc-back {
    margin-top: 4px;
  }
}

@media (max-width: 760px) {
  .article-hero {
    padding-top: calc(var(--nav-h) + 54px);
    padding-bottom: 48px;
  }

  .article-hero h1 {
    font-size: 38px;
  }

  .article-lead {
    font-size: 13.5px;
  }

  .article-layout {
    width: calc(100% - 40px);
    padding-bottom: 70px;
  }

  .article-body h2 {
    margin-top: 52px;
    font-size: 28px;
  }

  .article-stat-grid {
    grid-template-columns: 1fr 1fr;
  }

  .engineering-grid {
    grid-template-columns: 1fr;
  }

  .article-swatches {
    grid-template-columns: 1fr;
  }

  .article-back {
    display: none;
  }

  .article-nav-actions .btn {
    display: none;
  }
}

@media (max-width: 520px) {
  .article-hero h1 {
    font-size: 33px;
  }

  .article-meta span {
    font-size: 8px;
  }

  .article-layout {
    width: calc(100% - 32px);
  }

  .article-body p {
    font-size: 13.2px;
  }

  .article-table {
    min-width: 500px;
  }

  .article-cta {
    padding: 22px;
  }
}

@media (min-width: 981px) and (max-height: 820px) {
  .hero {
    padding-top: calc(var(--nav-h) + 40px);
    padding-bottom: 18px;
  }

  .hero-grid {
    min-height: 590px;
  }

  .hero-visual {
    height: 590px;
  }

  .hero h1 {
    font-size: clamp(46px, 5.3vw, 76px);
  }

  .hero-actions {
    margin: 26px 0 30px;
  }

  .hero-meta {
    padding-top: 18px;
  }

  .hero-footnote {
    margin-top: 14px;
  }

  .phone-main {
    width: 236px;
  }

  .phone-left,
  .phone-right {
    width: 176px;
    top: 84px;
  }

  .float-quote {
    bottom: 46px;
  }

  .float-paper {
    top: 26px;
  }

  .seal {
    bottom: 8px;
  }
}
