/* ============================================================
   HDSH — official site
   ============================================================ */

:root {
  --bg: #05070f;
  --bg-soft: #080d1a;
  --text: #e9eefb;
  --muted: #94a3bd;
  --dim: #6b7a99;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --brand: #4d6bfe;
  --brand-2: #8b5cf6;
  --cyan: #22d3ee;
  --green: #34d399;
  --amber: #f5b544;
  --radius: 22px;
  --max: 1180px;
  --nav-h: 72px;
  --font: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: rgba(77, 107, 254, 0.45); color: #fff; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

code {
  font-family: var(--mono);
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 6px;
  color: #c7d5ff;
  white-space: nowrap;
}

/* 代码块里的 code 不能再 nowrap，否则换行会被吃掉 */
pre code {
  white-space: pre;
  background: none;
  border: 0;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
}

.container {
  width: min(calc(100% - 48px), var(--max));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 100;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 10px;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }

/* ============================================================
   Backdrop
   ============================================================ */

.backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

#stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.75;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  will-change: transform;
}
.orb-a {
  width: 640px; height: 640px;
  top: -240px; left: -180px;
  background: radial-gradient(circle at 40% 40%, #1b3ea8, transparent 68%);
  animation: drift-a 26s ease-in-out infinite alternate;
}
.orb-b {
  width: 560px; height: 560px;
  top: 24%; right: -240px;
  background: radial-gradient(circle at 50% 50%, #5b2bb5, transparent 68%);
  animation: drift-b 32s ease-in-out infinite alternate;
}
.orb-c {
  width: 620px; height: 620px;
  bottom: -280px; left: 32%;
  background: radial-gradient(circle at 50% 50%, #0b5d78, transparent 68%);
  opacity: 0.35;
  animation: drift-c 38s ease-in-out infinite alternate;
}

@keyframes drift-a { to { transform: translate3d(90px, 60px, 0) scale(1.1); } }
@keyframes drift-b { to { transform: translate3d(-80px, -40px, 0) scale(1.14); } }
@keyframes drift-c { to { transform: translate3d(-60px, -70px, 0) scale(1.08); } }

.grid-mask {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 10%, transparent 78%);
}

.spotlight {
  position: fixed;
  width: 720px;
  height: 720px;
  left: 0; top: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 118, 255, 0.13), transparent 62%);
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
  transition: opacity 0.4s;
  will-change: transform;
}
@media (hover: hover) and (pointer: fine) {
  .spotlight { opacity: 1; }
}

/* ============================================================
   Nav
   ============================================================ */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(5, 7, 15, 0.72);
  border-bottom-color: var(--line);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  backdrop-filter: blur(18px) saturate(150%);
}

.nav-inner {
  height: var(--nav-h);
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex: 0 0 auto;
}
.brand-logo {
  width: 32px; height: 32px;
  border-radius: 9px;
  box-shadow: 0 4px 18px rgba(77, 107, 254, 0.35);
}
.brand-name { font-size: 17px; }
.brand-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: #9db4ff;
  border: 1px solid rgba(120, 145, 255, 0.35);
  border-radius: 6px;
  padding: 2px 6px;
  transform: translateY(-1px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}
.nav-links a {
  font-size: 13.5px;
  color: var(--muted);
  position: relative;
  padding: 6px 0;
  transition: color 0.2s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--brand), var(--cyan));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }

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

.icon-link {
  width: 36px; height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--muted);
  border: 1px solid transparent;
  transition: 0.2s;
}
.icon-link:hover { color: var(--text); border-color: var(--line); background: rgba(255, 255, 255, 0.04); }

.nav-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 10px;
  flex-direction: column;
  justify-content: space-between;
}
.nav-toggle span {
  display: block;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: 0.25s;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 19px;
  border-radius: 11px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: transform 0.2s, box-shadow 0.25s, background 0.25s, border-color 0.25s;
  white-space: nowrap;
}
.btn svg { flex: 0 0 auto; }
.btn-primary {
  background: linear-gradient(135deg, #4d6bfe 0%, #7357ff 55%, #8b5cf6 100%);
  color: #fff;
  box-shadow: 0 10px 30px rgba(77, 107, 254, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 42px rgba(77, 107, 254, 0.44), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-ghost {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
}
.btn-ghost:hover {
  transform: translateY(-2px);
  border-color: rgba(140, 160, 255, 0.5);
  background: rgba(120, 145, 255, 0.09);
}
.btn-sm { padding: 8px 14px; font-size: 12.5px; border-radius: 9px; }
.btn-lg { padding: 14px 24px; font-size: 14.5px; border-radius: 13px; }
.btn-block { width: 100%; margin-top: 10px; }
.btn.is-disabled { opacity: 0.5; cursor: not-allowed; }
.btn.is-disabled:hover { transform: none; border-color: var(--line-strong); background: rgba(255, 255, 255, 0.035); }

:focus-visible {
  outline: 2px solid #7ea2ff;
  outline-offset: 3px;
  border-radius: 6px;
}

/* ============================================================
   Hero
   ============================================================ */

.hero {
  position: relative;
  z-index: 1;
  padding: calc(var(--nav-h) + 84px) 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.03fr 0.97fr;
  gap: 44px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #a8b8dc;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
  border-radius: 999px;
  padding: 7px 14px;
  margin-bottom: 26px;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.pulse-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); }
  70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

h1 {
  font-size: clamp(38px, 5.4vw, 66px);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 24px;
  font-weight: 700;
}

.grad-text {
  background: linear-gradient(100deg, #7ea2ff 0%, #a78bfa 36%, #22d3ee 68%, #7ea2ff 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: grad-move 9s ease-in-out infinite;
}
@keyframes grad-move {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

.lead {
  font-size: 17px;
  line-height: 1.85;
  color: var(--muted);
  max-width: 540px;
  margin: 0 0 34px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 30px; }

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 12.5px;
  color: var(--dim);
}
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #4f6fd8;
  box-shadow: 0 0 8px rgba(77, 107, 254, 0.9);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 620px;
  perspective: 1200px;
}

.hero-glow {
  position: absolute;
  width: 460px; height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(77, 107, 254, 0.32), rgba(139, 92, 246, 0.12) 48%, transparent 70%);
  filter: blur(50px);
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 2;
  width: 300px;
  aspect-ratio: 9 / 19.5;
  padding: 10px;
  border-radius: 46px;
  background: linear-gradient(155deg, #4b5f93 0%, #10182e 34%, #070b15 62%, #2b3a63 100%);
  box-shadow:
    0 40px 90px -20px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 0 80px rgba(77, 107, 254, 0.18);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  transform-style: preserve-3d;
}

.hero-phone {
  transform: rotate(-5deg) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.02) 42%, rgba(120, 150, 255, 0.35));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 4;
}

.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 37px;
  overflow: hidden;
  background: #000;
  position: relative;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.phone-island {
  position: absolute;
  top: 19px; left: 50%;
  transform: translateX(-50%);
  width: 82px; height: 23px;
  border-radius: 20px;
  background: #000;
  z-index: 3;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.float-card {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 18, 34, 0.72);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  font-size: 11.5px;
  animation: float 7s ease-in-out infinite;
  pointer-events: none;
}
.float-card strong { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.01em; }
.float-card small { display: block; font-size: 10.5px; color: var(--dim); margin-top: 1px; }
.fc-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(52, 211, 153, 0.9);
  flex: 0 0 auto;
}
.fc-dot.cyan { background: var(--cyan); box-shadow: 0 0 10px rgba(34, 211, 238, 0.9); }

.fc-sync { top: 13%; left: -4%; animation-delay: -1s; }
.fc-net { bottom: 27%; left: -7%; animation-delay: -3.5s; }

.fc-approve {
  bottom: 10%;
  right: -8%;
  width: 224px;
  display: block;
  padding: 13px 14px;
  animation-delay: -2.2s;
}
.fc-approve-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 7px;
}
.fc-approve-head em { font-style: normal; font-size: 10px; color: var(--dim); font-weight: 400; }
.fc-approve-tool {
  font-size: 10.5px;
  color: #b9c6e4;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 7px;
  padding: 5px 8px;
  margin-bottom: 9px;
  font-family: var(--mono);
}
.fc-approve-actions { display: flex; gap: 7px; }
.fc-approve-actions span, .fc-approve-actions b {
  flex: 1;
  text-align: center;
  font-size: 10.5px;
  padding: 6px 0;
  border-radius: 7px;
  font-weight: 600;
}
.fc-approve-actions span { background: rgba(255, 255, 255, 0.06); color: #cbd6ee; }
.fc-approve-actions b { background: linear-gradient(135deg, #4d6bfe, #7357ff); color: #fff; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 46px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.stat b {
  display: block;
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(120deg, #fff, #9fb6ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.stat span { font-size: 11.5px; color: var(--dim); letter-spacing: 0.04em; }

/* ============================================================
   Ticker
   ============================================================ */

.ticker {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  padding: 15px 0;
  background: rgba(255, 255, 255, 0.012);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 30px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.ticker-track span {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #7f8dad;
  white-space: nowrap;
}
.ticker-track i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #38456a;
  flex: 0 0 auto;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   Sections
   ============================================================ */

.section {
  position: relative;
  z-index: 1;
  padding: 110px 0;
}

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 12px 0 14px;
  font-weight: 700;
}
.section-head p { color: var(--muted); font-size: 15px; line-height: 1.8; margin: 0; }

.kicker {
  font-size: 11px;
  letter-spacing: 0.24em;
  color: #7e8fbb;
  font-weight: 600;
}

.head-row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
}
.head-row > div:first-child { max-width: 700px; }

.reveal {
  transition: opacity 0.8s cubic-bezier(0.22, 1, 0.36, 1), transform 0.8s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--d, 0ms);
}
.js .reveal {
  opacity: 0;
  transform: translateY(26px);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Bento features
   ============================================================ */

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

.card {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018));
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  isolation: isolate;
}
.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), rgba(110, 140, 255, 0.16), transparent 62%);
  opacity: 0;
  transition: opacity 0.35s;
}
.card:hover { border-color: rgba(130, 155, 255, 0.32); transform: translateY(-3px); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7); }
.card:hover::before { opacity: 1; }

.card-wide {
  grid-column: span 2;
  grid-row: span 2;
  display: flex;
  flex-direction: column;
}

.card h3 {
  font-size: 18px;
  letter-spacing: -0.01em;
  margin: 16px 0 8px;
  font-weight: 600;
}
.card p {
  font-size: 13.5px;
  line-height: 1.75;
  color: var(--muted);
  margin: 0;
}

.card-icon {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #a9bdff;
  background: linear-gradient(160deg, rgba(77, 107, 254, 0.24), rgba(139, 92, 246, 0.1));
  border: 1px solid rgba(120, 145, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* mini visuals */

.stream {
  margin-top: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(8, 13, 26, 0.62), rgba(8, 13, 26, 0.22));
  min-height: 220px;
}
.stream-top {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  margin-bottom: 12px;
}
.stream-top em {
  margin-left: auto;
  font-style: normal;
  color: #7ee2b8;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 9px;
}
.live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.9);
}
.stream-foot {
  margin-top: auto;
  padding-top: 14px;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--dim);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.mini-chat {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.bubble {
  font-size: 11.5px;
  line-height: 1.55;
  padding: 10px 13px;
  border-radius: 12px;
  max-width: 88%;
}
.bubble-ai {
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #cfd9ee;
  border-top-left-radius: 4px;
}
.bubble-tool {
  align-self: flex-end;
  background: rgba(77, 107, 254, 0.13);
  border: 1px solid rgba(120, 145, 255, 0.2);
  color: #c8d5f7;
  border-top-right-radius: 4px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.tool-tag {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.04em;
  color: #9db4ff;
  background: rgba(77, 107, 254, 0.2);
  border-radius: 4px;
  padding: 1px 5px;
}
.bubble.typing { display: inline-flex; gap: 4px; width: auto; padding: 12px 14px; }
.bubble.typing i {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: #7e8fbb;
  animation: blink 1.4s infinite;
}
.bubble.typing i:nth-child(2) { animation-delay: 0.2s; }
.bubble.typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

.cursor {
  display: inline-block;
  width: 2px; height: 12px;
  background: #7ea2ff;
  margin-left: 3px;
  vertical-align: -2px;
  animation: caret 1s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

.mini-approve {
  margin-top: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #4d6bfe, #7357ff);
  box-shadow: 0 8px 22px rgba(77, 107, 254, 0.3);
  width: fit-content;
}

.mini-timeline {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 0;
}
.mini-timeline i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #4d6bfe;
  box-shadow: 0 0 0 4px rgba(77, 107, 254, 0.12);
  position: relative;
}
.mini-timeline i:not(:last-child) { margin-right: 34px; }
.mini-timeline i:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 9px; top: 4px;
  width: 34px; height: 1px;
  background: linear-gradient(90deg, rgba(120, 145, 255, 0.5), rgba(120, 145, 255, 0.12));
}
.mini-timeline i:nth-child(2) { background: #8b5cf6; }
.mini-timeline i:nth-child(3) { background: #22d3ee; }

.mini-chips {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.mini-chips span {
  font-size: 10px;
  color: #b7c6ea;
  background: rgba(255, 255, 255, 0.055);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 999px;
  padding: 4px 9px;
}

.mini-signal {
  margin-top: 20px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 22px;
}
.mini-signal span {
  width: 5px;
  border-radius: 3px;
  background: linear-gradient(180deg, #22d3ee, #4d6bfe);
  animation: signal 1.8s ease-in-out infinite;
}
.mini-signal span:nth-child(1) { height: 7px; animation-delay: 0s; }
.mini-signal span:nth-child(2) { height: 12px; animation-delay: 0.15s; }
.mini-signal span:nth-child(3) { height: 17px; animation-delay: 0.3s; }
.mini-signal span:nth-child(4) { height: 22px; animation-delay: 0.45s; }
@keyframes signal { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ============================================================
   Steps
   ============================================================ */

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.step {
  position: relative;
  padding: 26px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  overflow: hidden;
}
.step::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126, 162, 255, 0.6), transparent);
  opacity: 0.6;
}
.step-no {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: #7e8fbb;
}
.step h3 { font-size: 17px; margin: 12px 0 8px; font-weight: 600; }
.step p { font-size: 13.5px; line-height: 1.75; color: var(--muted); margin: 0; }

.code-card {
  margin-top: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(6, 10, 20, 0.78);
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
}
.code-bar, .terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.018);
}
.code-bar i, .terminal-bar i {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #2c3550;
}
.code-bar i:nth-child(1), .terminal-bar i:nth-child(1) { background: #ff5f57; }
.code-bar i:nth-child(2), .terminal-bar i:nth-child(2) { background: #febc2e; }
.code-bar i:nth-child(3), .terminal-bar i:nth-child(3) { background: #28c840; }
.code-bar span, .terminal-bar span {
  margin-left: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--dim);
}
.code-card pre, .terminal pre {
  margin: 0;
  padding: 20px 22px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.9;
  color: #c6d3ee;
  max-width: 100%;
}
.c-dim { color: #5d6b8a; }
.c-prompt { color: #7ea2ff; }
.c-num { color: #22d3ee; }
.c-url { color: #a78bfa; }

/* ============================================================
   Screenshots
   ============================================================ */

.shots-wrap { position: relative; overflow: hidden; }

.shots-rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px max(24px, calc((100vw - var(--max)) / 2)) 26px;
  scrollbar-width: none;
}
.shots-rail::-webkit-scrollbar { display: none; }

.shot {
  flex: 0 0 248px;
  margin: 0;
  scroll-snap-align: center;
  cursor: zoom-in;
  outline-offset: 6px;
}
.shot .phone {
  width: 248px;
  padding: 7px;
  border-radius: 38px;
  box-shadow: 0 26px 60px -18px rgba(0, 0, 0, 0.85), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.4s;
}
.shot .phone-screen { border-radius: 31px; }
.shot .phone-island { width: 62px; height: 18px; top: 14px; }
.shot:hover .phone {
  transform: translateY(-8px) rotate(-1deg);
  box-shadow: 0 40px 80px -20px rgba(0, 0, 0, 0.9), 0 0 42px rgba(77, 107, 254, 0.22);
}
.shot figcaption {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.rail-nav { display: flex; gap: 8px; flex: 0 0 auto; }
.round-btn {
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
  transition: 0.2s;
}
.round-btn:hover { color: var(--text); border-color: rgba(140, 160, 255, 0.5); background: rgba(120, 145, 255, 0.1); }

/* ============================================================
   Plugin
   ============================================================ */

.plugin-grid {
  display: grid;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 52px;
  align-items: start;
}
.plugin-grid > * { min-width: 0; }

.plugin-copy h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin: 12px 0 18px;
}
.plugin-copy h2 code { font-size: 0.82em; white-space: nowrap; }
.plugin-copy > p { color: var(--muted); font-size: 14.5px; line-height: 1.85; margin: 0 0 22px; }

.check-list { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 11px; }
.check-list li {
  position: relative;
  padding-left: 26px;
  font-size: 13.5px;
  color: #b7c4de;
  line-height: 1.7;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 6px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: rgba(52, 211, 153, 0.14);
  box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.4);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 4px; top: 10px;
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--green);
  border-bottom: 1.5px solid var(--green);
  transform: rotate(-45deg);
}

.plugin-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fineprint { font-size: 11.5px; color: var(--dim); margin: 14px 0 0; line-height: 1.7; }

.pair-card {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  padding: 22px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
}
.pair-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 16px;
}
.pair-card-head em {
  margin-left: auto;
  font-style: normal;
  font-size: 10.5px;
  color: var(--dim);
}
.pair-cmd {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(77, 107, 254, 0.1);
  border: 1px solid rgba(120, 145, 255, 0.22);
}
.pair-cmd code {
  font-size: 18px;
  padding: 0;
  background: none;
  border: 0;
  color: #cfe0ff;
}
.pair-cmd span { font-size: 11.5px; color: var(--muted); }
.pair-steps {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 12px;
}
.pair-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 12.5px;
  color: #b7c4de;
  line-height: 1.6;
}
.pair-steps b {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 10.5px;
  color: #7e8fbb;
  padding-top: 2px;
}

.terminal {
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(6, 10, 20, 0.85);
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.9);
  max-width: 100%;
}
.terminal pre { font-size: 11.5px; padding: 18px; line-height: 1.95; max-width: 100%; }

.config-card {
  margin-top: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.028);
  padding: 18px;
}
.config-card h4 { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: #c8d4ec; letter-spacing: 0.02em; }
.config-table { width: 100%; border-collapse: collapse; font-size: 11.5px; }
.config-table th {
  text-align: left;
  font-weight: 500;
  color: var(--dim);
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
  font-size: 10.5px;
  letter-spacing: 0.08em;
}
.config-table td { padding: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.045); color: #aebbd6; vertical-align: top; }
.config-table tr:last-child td { border-bottom: 0; }
.config-table td:first-child code { white-space: nowrap; }

.warn {
  margin-top: 16px;
  display: flex;
  gap: 11px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: 13px;
  border: 1px solid rgba(245, 181, 68, 0.22);
  background: rgba(245, 181, 68, 0.055);
  color: #e8c98a;
}
.warn svg { flex: 0 0 auto; margin-top: 2px; }
.warn p { margin: 0; font-size: 11.5px; line-height: 1.7; }
.warn code { background: rgba(245, 181, 68, 0.1); border-color: rgba(245, 181, 68, 0.16); color: #f0d49a; }

/* ============================================================
   Download
   ============================================================ */

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
/* 两张卡等高：按钮对齐到底部 */
.download-grid .download-card { display: flex; flex-direction: column; }
.download-grid .download-card .btn-block:first-of-type { margin-top: auto; }

/* 平台状态卡：鸿蒙已上线，Android / iOS 敬请期待 */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.platform-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 196px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  overflow: hidden;
}
.platform-card::before {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126, 162, 255, 0.55), transparent);
  opacity: 0.7;
}
.platform-card--live {
  border-color: rgba(77, 107, 254, 0.34);
  background: linear-gradient(160deg, rgba(77, 107, 254, 0.16), rgba(139, 92, 246, 0.06) 58%, rgba(255, 255, 255, 0.012));
}
.platform-card.is-soon { opacity: 0.78; }
.platform-card.is-soon::before { opacity: 0.35; }
.platform-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.platform-icon svg { width: 24px; height: 24px; }
.platform-icon--harmony {
  color: #a9bdff;
  background: linear-gradient(160deg, rgba(77, 107, 254, 0.38), rgba(139, 92, 246, 0.16));
  border-color: rgba(120, 145, 255, 0.28);
}
.platform-icon--android {
  color: #8ee7b0;
  background: linear-gradient(160deg, rgba(43, 182, 115, 0.24), rgba(43, 182, 115, 0.06));
  border-color: rgba(43, 182, 115, 0.2);
}
.platform-icon--ios {
  color: #dce3f2;
  background: linear-gradient(160deg, rgba(220, 227, 242, 0.16), rgba(220, 227, 242, 0.04));
  border-color: rgba(220, 227, 242, 0.16);
}
.platform-kicker {
  display: block;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  color: var(--dim);
}
.platform-copy h3 {
  margin: 4px 0 3px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.platform-copy p {
  margin: 0;
  font-size: 12.5px;
  color: var(--muted);
}
.platform-state {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid transparent;
}
.platform-state.is-live {
  color: #8ff0bd;
  background: rgba(43, 182, 115, 0.12);
  border-color: rgba(43, 182, 115, 0.24);
}
.platform-state.is-soon {
  color: #f0c77a;
  background: rgba(245, 181, 68, 0.1);
  border-color: rgba(245, 181, 68, 0.18);
}
.platform-link {
  margin-top: auto;
  font-size: 12.5px;
  color: #9db4ff;
  transition: 0.2s;
}
.platform-link:hover { color: #c8d4ff; }
.platform-link span { display: inline-block; transition: transform 0.2s; }
.platform-link:hover span { transform: translateX(3px); }
.platform-link.is-muted { color: var(--dim); }

.download-card {
  position: relative;
  padding: 30px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.014));
  overflow: hidden;
}
.download-card::before {
  content: "";
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(126, 162, 255, 0.7), transparent);
}
.download-head { display: flex; align-items: center; gap: 15px; margin-bottom: 16px; }
.download-head img { width: 64px; height: 64px; border-radius: 16px; box-shadow: 0 12px 30px -8px rgba(77, 107, 254, 0.5); }
.download-head h3 { margin: 0 0 4px; font-size: 19px; letter-spacing: -0.01em; }
.pill {
  display: inline-block;
  font-size: 10px;
  font-family: var(--mono);
  color: #9db4ff;
  background: rgba(77, 107, 254, 0.14);
  border: 1px solid rgba(120, 145, 255, 0.2);
  border-radius: 999px;
  padding: 2px 9px;
}
.download-card > p { color: var(--muted); font-size: 13.5px; line-height: 1.75; margin: 0 0 18px; }

.spec-list { list-style: none; padding: 0; margin: 0 0 22px; }
.spec-list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.045);
  font-size: 12.5px;
}
.spec-list li span { color: var(--dim); }
.spec-list li b { font-weight: 500; color: #c6d2e9; text-align: right; }

.plug-mark {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #a9bdff;
  background: linear-gradient(160deg, rgba(77, 107, 254, 0.3), rgba(139, 92, 246, 0.14));
  border: 1px solid rgba(120, 145, 255, 0.25);
}

/* 三款插件的卡片：复用 download-card 的外观，排成三列 */
.plugin-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.plugin-cards .download-card {
  display: flex;
  flex-direction: column;
  padding: 26px;
}
.plugin-cards .download-head { gap: 13px; margin-bottom: 14px; }
.plugin-cards .download-head h3 { font-size: 15px; margin-bottom: 7px; }
.plugin-cards .download-head h3 code {
  font-family: var(--mono);
  font-size: 0.98em;
  background: none;
  border: 0;
  padding: 0;
  color: #dbe4ff;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.plugin-cards .plug-mark { flex: 0 0 auto; width: 54px; height: 54px; border-radius: 14px; }
.plugin-cards .download-card > p { font-size: 13px; }
.plugin-cards .spec-list { margin-bottom: 20px; }
.plugin-cards .spec-list li { font-size: 12px; padding: 8px 0; }
.plugin-cards .spec-list li b { font-size: 11.5px; }
.plugin-cards .spec-list code { font-size: 11px; }
.plugin-cards .btn-block { margin-top: 0; }
.plugin-cards .btn-block:first-of-type { margin-top: auto; }
.plugin-cards .btn-block + .btn-block { margin-top: 8px; }
.plugin-cards .download-card > .fineprint:last-child { margin-top: 10px; }

/* 正文里的行内链接：默认继承颜色，这里给出可辨识的强调色 */
.check-list a,
.faq-a a,
.spec-list a {
  color: #9db4ff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.check-list a:hover,
.faq-a a:hover,
.spec-list a:hover { color: #c8d4ff; }

.download-qr-strip {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 24px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.022);
}
.qr-frame {
  flex: 0 0 auto;
  width: 104px;
  height: 104px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.6);
}
.qr-frame img { width: 100%; height: 100%; object-fit: contain; }
.qr-strip-copy strong { display: block; font-size: 16px; margin: 2px 0 4px; letter-spacing: -0.01em; }
.qr-strip-copy p { margin: 0; font-size: 12.5px; color: var(--muted); }
.download-qr-strip .pill { margin-left: auto; flex: 0 0 auto; }

/* ============================================================
   FAQ
   ============================================================ */

.faq-grid {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 60px;
  align-items: start;
}
.faq-grid .section-head { position: sticky; top: calc(var(--nav-h) + 40px); margin-bottom: 0; }

.faq-list { display: grid; gap: 0; }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 0;
  text-align: left;
  font-size: 14.5px;
  font-weight: 500;
  color: #dbe4f7;
  transition: color 0.2s;
}
.faq-q:hover { color: #fff; }
.faq-q span {
  position: relative;
  width: 16px; height: 16px;
  flex: 0 0 auto;
}
.faq-q span::before, .faq-q span::after {
  content: "";
  position: absolute;
  background: #7e8fbb;
  border-radius: 2px;
  transition: transform 0.3s, background 0.3s;
}
.faq-q span::before { left: 0; top: 7px; width: 16px; height: 1.5px; }
.faq-q span::after { left: 7px; top: 0; width: 1.5px; height: 16px; }
.faq-q[aria-expanded="true"] span::after { transform: rotate(90deg); opacity: 0; }
.faq-q[aria-expanded="true"] span::before { background: #7ea2ff; }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s ease;
}
.faq-a > p {
  overflow: hidden;
  margin: 0;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
}
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-item.open .faq-a > p { padding-bottom: 20px; }

/* ============================================================
   Contact
   ============================================================ */

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.contact-card {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  grid-template-areas:
    "icon label copy"
    "icon value copy";
  align-items: center;
  column-gap: 14px;
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
  transition: border-color 0.25s, transform 0.25s;
}
.contact-card:hover { border-color: rgba(130, 155, 255, 0.3); transform: translateY(-2px); }
.contact-icon {
  grid-area: icon;
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #a9bdff;
  background: rgba(77, 107, 254, 0.12);
  border: 1px solid rgba(120, 145, 255, 0.18);
}
.contact-label { grid-area: label; font-size: 11px; color: var(--dim); letter-spacing: 0.08em; align-self: end; }
.contact-value {
  grid-area: value;
  font-size: 14.5px;
  color: #dbe4f7;
  align-self: start;
  word-break: break-all;
}
a.contact-value:hover { color: #9db4ff; }
.copy-btn {
  grid-area: copy;
  font-size: 11px;
  color: #9db4ff;
  border: 1px solid rgba(120, 145, 255, 0.25);
  border-radius: 8px;
  padding: 6px 10px;
  background: rgba(77, 107, 254, 0.07);
  transition: 0.2s;
}
.copy-btn:hover { background: rgba(77, 107, 254, 0.18); }
.copy-btn.copied { color: var(--green); border-color: rgba(52, 211, 153, 0.35); }

.contact-qr {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 22px 24px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background:
    radial-gradient(520px circle at 8% 50%, rgba(77, 107, 254, 0.14), transparent 62%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.012));
}
.contact-qr .qr-frame { width: 132px; height: 132px; }
.qr-info { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.qr-info strong { font-size: 17px; letter-spacing: -0.01em; }
.qr-info small { font-size: 12px; color: var(--dim); }
.qr-info small span { color: #c6d2e9; font-family: var(--mono); }
.qr-info .copy-btn { margin-top: 10px; }
.qr-note {
  margin-left: auto;
  max-width: 320px;
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}
.qr-note span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: var(--dim);
}
.qr-note p { margin: 6px 0 0; font-size: 12.5px; line-height: 1.7; color: var(--muted); }

/* ============================================================
   Footer
   ============================================================ */

.footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  padding: 46px 0 54px;
  background: rgba(4, 6, 12, 0.6);
}
.footer-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.footer-brand img { border-radius: 8px; }
.footer-note { font-size: 11.5px; color: var(--dim); max-width: 640px; margin: 0; line-height: 1.7; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; font-size: 12.5px; color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.copyright { font-size: 11px; color: #4e5b78; margin: 6px 0 0; }

/* ============================================================
   Lightbox / toast
   ============================================================ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 5vh 20px;
  background: rgba(3, 5, 12, 0.9);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s, visibility 0.25s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lb-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; max-height: 100%; }
.lb-figure img {
  max-height: 82vh;
  max-width: 90vw;
  width: auto;
  border-radius: 20px;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: scale(0.97);
  transition: transform 0.3s;
}
.lightbox.open .lb-figure img { transform: scale(1); }
.lb-figure figcaption { font-size: 13px; color: var(--muted); }
.lb-close {
  position: absolute;
  top: 22px; right: 26px;
  width: 42px; height: 42px;
  border-radius: 50%;
  font-size: 26px;
  line-height: 1;
  color: #cfd9ee;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}
.lb-close:hover { background: rgba(255, 255, 255, 0.12); }
.lb-arrow {
  width: 48px; height: 48px;
  border-radius: 50%;
  font-size: 30px;
  line-height: 1;
  color: #cfd9ee;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  flex: 0 0 auto;
}
.lb-arrow:hover { background: rgba(255, 255, 255, 0.12); }

.toast {
  position: fixed;
  left: 50%;
  bottom: 34px;
  transform: translate(-50%, 20px);
  z-index: 100;
  padding: 10px 18px;
  border-radius: 10px;
  background: rgba(20, 28, 48, 0.95);
  border: 1px solid rgba(120, 145, 255, 0.3);
  color: #dbe4f7;
  font-size: 12.5px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ============================================================
   Document pages (privacy etc.)
   ============================================================ */

.doc-page { background: var(--bg); }

.doc-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 7, 15, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.doc-nav-inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.doc-back {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--muted);
  transition: color 0.2s;
}
.doc-back:hover { color: var(--text); }

.doc-wrap {
  width: min(calc(100% - 48px), 860px);
  margin: 0 auto;
  padding: 56px 0 90px;
}
.doc-head { margin-bottom: 30px; }
.doc-head h1 {
  font-size: clamp(30px, 4.4vw, 44px);
  letter-spacing: -0.03em;
  margin: 14px 0 10px;
  line-height: 1.15;
}
.doc-meta { font-size: 12px; color: var(--dim); margin: 0; }

.doc-summary {
  padding: 16px 18px;
  border-radius: 14px;
  border: 1px solid rgba(120, 145, 255, 0.22);
  background: rgba(77, 107, 254, 0.07);
  color: #c3d1ec;
  font-size: 13px;
  line-height: 1.8;
  margin: 0 0 30px;
}

.doc-body h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 36px 0 12px;
  color: #e3ebfa;
}
.doc-body p {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.9;
  color: #a9b6d0;
}
.doc-body ul {
  margin: 0 0 12px;
  padding-left: 18px;
  display: grid;
  gap: 7px;
}
.doc-body li {
  font-size: 14px;
  line-height: 1.8;
  color: #a9b6d0;
}
.doc-body li::marker { color: #4f6fd8; }
.doc-body code { font-size: 12.5px; }
.doc-body a { color: #9db4ff; }
.doc-body a:hover { text-decoration: underline; }

.doc-footer {
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--dim);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
}
.doc-footer a { color: #9db4ff; }
.doc-footer a:hover { text-decoration: underline; }


/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { min-height: 580px; order: 2; }
  .hero-copy { max-width: 680px; }
  .float-card.fc-sync { left: 6%; }
  .float-card.fc-net { left: 2%; }
  .float-card.fc-approve { right: 2%; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card-wide { grid-column: span 2; grid-row: auto; }
  .plugin-grid { grid-template-columns: 1fr; gap: 34px; }
  .plugin-cards { grid-template-columns: repeat(2, 1fr); }
  .faq-grid { grid-template-columns: 1fr; gap: 30px; }
  .faq-grid .section-head { position: static; }
}

@media (max-width: 860px) {
  .nav-links {
    position: fixed;
    top: var(--nav-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px 24px 22px;
    background: rgba(5, 7, 15, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: 0.25s;
  }
  .nav-links a { padding: 13px 0; font-size: 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
  .nav-links a::after { display: none; }
  .nav.open .nav-links { transform: none; opacity: 1; visibility: visible; }
  .nav-toggle { display: flex; }
  .icon-link { display: none; }

  .hero { padding-top: calc(var(--nav-h) + 60px); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; }
  .stat b { font-size: 27px; }
  .steps { grid-template-columns: 1fr; }
  .download-grid, .contact-grid, .platform-grid { grid-template-columns: 1fr; }
  .head-row { flex-direction: column; align-items: flex-start; }
  .section { padding: 84px 0; }
}

@media (max-width: 620px) {
  .container { width: calc(100% - 36px); }
  h1 { font-size: clamp(34px, 9vw, 44px); }
  .lead { font-size: 15.5px; }
  .eyebrow { font-size: 10px; letter-spacing: 0.08em; padding: 6px 11px; white-space: nowrap; }
  .hero-visual { min-height: 520px; }
  .hero-glow { width: 300px; height: 300px; filter: blur(42px); }
  .phone { width: 256px; border-radius: 40px; padding: 8px; }
  .phone-screen { border-radius: 33px; }
  .float-card { display: none; }
  .hero-phone { transform: rotate(-3deg); }
  .bento { grid-template-columns: 1fr; }
  .card-wide { grid-column: auto; }
  .card { padding: 24px; }
  .plugin-cards { grid-template-columns: 1fr; }
  .brand-tag { display: none; }
  .stats { gap: 16px 10px; }
  .shot { flex-basis: 220px; }
  .shot .phone { width: 220px; }
  .lb-arrow { display: none; }
  .lightbox { padding: 4vh 16px; }
  .lb-figure img { max-height: 84vh; }
  .code-card pre, .terminal pre { font-size: 11px; padding: 16px; }
  .config-table { font-size: 11px; }
  .contact-card { grid-template-columns: 40px 1fr auto; padding: 18px; }
  .contact-icon { width: 40px; height: 40px; }
  .download-qr-strip { padding: 16px; gap: 14px; }
  .download-qr-strip .qr-frame { width: 88px; height: 88px; padding: 6px; }
  .download-qr-strip .pill { display: none; }
  .contact-qr { flex-direction: column; align-items: flex-start; gap: 16px; }
  .contact-qr .qr-frame { width: 120px; height: 120px; }
  .qr-note { display: none; }
}

@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 { opacity: 1; transform: none; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-phone { transform: rotate(-5deg); }
}
