/* 睡眠记录官 · 品牌官网
   正式品牌单页：杂志感 / 非说明书
   色板：bg #0A070F · card #1A1425 · primary #6A4CBB–#6B52D1
*/

:root {
  --bg: #0A070F;
  --bg-elevated: #120C1A;
  --card: #1A1425;
  --card-hover: #221A30;
  --primary: #6A4CBB;
  --primary-bright: #6B52D1;
  --primary-soft: #8B7AD8;
  --text: #F5F2FA;
  --text-muted: #A09DB1;
  --text-dim: #6E6A7C;
  --border: rgba(255, 255, 255, 0.08);
  --glow: rgba(106, 76, 187, 0.4);
  --font: "PingFang SC", "Noto Sans SC", "Hiragino Sans GB",
    "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  --serif: "Songti SC", "Noto Serif SC", "STSong", "SimSun", Georgia, serif;
  --max: 1160px;
  --pad-x: clamp(20px, 4vw, 48px);
  --radius-phone: 36px;
  --radius-screen: 28px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-fast: 180ms;
  --dur-med: 320ms;
  --dur-slow: 560ms;
  --dist-enter: 24px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

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

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p, blockquote, figure { margin: 0; }

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.container {
  width: min(100% - 2 * var(--pad-x), var(--max));
  margin-inline: auto;
}

/* ——— Nav ——— */
.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  transition: background 0.35s ease, border-color 0.35s ease, backdrop-filter 0.35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(10, 7, 15, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner {
  width: min(100% - 2 * var(--pad-x), var(--max));
  margin-inline: auto;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px; /* soft squircle · 小程序同源 */
  background: linear-gradient(145deg, #7B65D8, #6A4CBB);
  display: grid;
  place-items: center;
  box-shadow: 0 0 24px var(--glow), 0 0 2px rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.12);
  box-sizing: border-box;
  overflow: hidden;
}
.logo-mark svg { width: 22px; height: 22px; display: block; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a {
  padding: 8px 14px;
  font-size: 14px;
  color: var(--text-muted);
  border-radius: 999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: linear-gradient(135deg, var(--primary-bright), var(--primary)) !important;
  color: #fff !important;
  font-weight: 600;
  box-shadow: 0 6px 24px var(--glow);
}
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
}

/* ——— Buttons ——— */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, border-color 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary-bright), var(--primary));
  color: #fff;
  box-shadow: 0 10px 36px var(--glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 40px var(--glow); }
.btn-ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: rgba(139, 122, 216, 0.55);
  background: rgba(106, 76, 187, 0.12);
}
/* 副 CTA：文字链，弱化，不与主按钮抢视觉 */
.btn-text {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 8px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  border: none;
  background: transparent;
  transition: color 0.2s;
}
.btn-text:hover { color: var(--primary-soft); }
.btn-text::after {
  content: " →";
  opacity: 0.55;
  letter-spacing: 0;
}

/* ——— Phone frame ——— */
.phone { margin: 0; }
.phone-bezel {
  background: linear-gradient(160deg, #2a2238, #12101a 55%, #0d0a14);
  border-radius: var(--radius-phone);
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
}
.phone-notch {
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 18px;
  background: #0a070f;
  border-radius: 0 0 12px 12px;
  z-index: 2;
  opacity: 0.9;
}
.phone-screen {
  border-radius: var(--radius-screen);
  overflow: hidden;
  background: #0a070f;
  aspect-ratio: 9 / 19.2;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}
.phone-hero { width: min(236px, 70vw); }
.phone-float { width: min(240px, 52%); position: absolute; z-index: 2; }
.phone-sm { width: min(200px, 56vw); margin-inline: auto; }
.phone-sm .phone-bezel { padding: 8px; border-radius: 28px; }
.phone-sm .phone-screen { border-radius: 22px; }

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: 76px 0 40px;
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  filter: saturate(0.95) brightness(0.72);
}
.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(10, 7, 15, 0.92) 0%, rgba(10, 7, 15, 0.72) 42%, rgba(10, 7, 15, 0.35) 70%, rgba(10, 7, 15, 0.75) 100%),
    linear-gradient(to top, var(--bg) 0%, transparent 28%),
    radial-gradient(ellipse 70% 55% at 60% 40%, rgba(74, 52, 140, 0.22), transparent 65%);
}
.hero-glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 45% at 72% 38%, rgba(107, 82, 209, 0.28), transparent 60%),
    radial-gradient(ellipse 40% 30% at 18% 70%, rgba(106, 76, 187, 0.18), transparent 55%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: clamp(20px, 3.5vw, 48px);
  width: min(100% - 2 * var(--pad-x), var(--max));
  margin-inline: auto;
  padding-top: 8px;
}
.brand-line {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: none;
  color: var(--primary-soft);
  font-weight: 500;
  margin-bottom: 12px;
}
.moon { font-size: 18px; opacity: 0.9; }
.hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5.2vw, 58px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
  text-shadow: 0 8px 40px rgba(0, 0, 0, 0.35);
}
.slogan {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.22em;
  color: var(--primary-soft);
  margin-bottom: 12px;
}
.hero-lead {
  max-width: 32em;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
  margin-bottom: 20px;
}
.hero-whisper {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}
.hero-device {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-device::before {
  content: "";
  position: absolute;
  width: 70%;
  height: 55%;
  border-radius: 10px;
  background: radial-gradient(circle, rgba(107, 82, 209, 0.45), transparent 70%);
  filter: blur(40px);
  z-index: -1;
}
.hero-scroll {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  display: grid;
  place-items: start center;
  padding-top: 8px;
  opacity: 0.7;
}
.hero-scroll span {
  width: 4px;
  height: 8px;
  border-radius: 4px;
  background: var(--primary-soft);
  animation: drip 1.6s ease-in-out infinite;
}
@keyframes drip {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ——— Manifesto ——— */
.manifesto {
  padding: clamp(80px, 14vh, 140px) 0;
  text-align: center;
  position: relative;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(106, 76, 187, 0.12), transparent 70%);
}
.manifesto-inner { max-width: 820px; }
.manifesto-eyebrow {
  font-size: 13px;
  letter-spacing: 0.28em;
  color: var(--primary-soft);
  margin-bottom: 28px;
  font-weight: 500;
}
.manifesto blockquote p {
  font-family: var(--serif);
  font-size: clamp(26px, 4.2vw, 40px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--text);
}
.manifesto-sign {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.12em;
}

/* ——— Capabilities ——— */
.capabilities { padding-bottom: clamp(48px, 8vh, 80px); }
.cap-intro {
  text-align: center;
  padding: clamp(40px, 8vh, 80px) 0 clamp(48px, 8vh, 72px);
}
.section-kicker {
  font-size: 13px;
  letter-spacing: 0.24em;
  color: var(--primary-soft);
  font-weight: 500;
  margin-bottom: 14px;
}
.cap-intro h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
}
.cap-block {
  padding: clamp(40px, 8vh, 80px) 0;
}
.cap-block:nth-child(even of .cap-block),
.cap-block:nth-of-type(even) {
  background: transparent;
}
.cap-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
}
.cap-reverse .cap-grid {
  grid-template-columns: 0.95fr 1.05fr;
}
.cap-reverse .cap-visual { order: 2; }
.cap-reverse .cap-copy { order: 1; }

.cap-visual {
  position: relative;
  min-height: 420px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cap-mood {
  width: 100%;
  max-width: 520px;
  aspect-ratio: 4 / 5;
  border-radius: 28px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border);
}
.cap-mood img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.92) brightness(0.85);
}
.cap-mood-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(10, 7, 15, 0.62), rgba(74, 52, 140, 0.16) 48%, transparent 72%),
    linear-gradient(135deg, rgba(74, 52, 140, 0.12), transparent 55%);
}
.cap-block .phone-float {
  right: 4%;
  bottom: 6%;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55));
}
.cap-reverse .phone-float {
  right: auto;
  left: 4%;
}

.cap-copy { max-width: 420px; }
.cap-reverse .cap-copy { margin-left: auto; }
.cap-index {
  display: block;
  font-family: var(--serif);
  font-size: 48px;
  font-weight: 600;
  color: rgba(139, 122, 216, 0.28);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.04em;
}
.cap-tag {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--primary-soft);
  padding: 6px 12px;
  border: 1px solid rgba(139, 122, 216, 0.35);
  border-radius: 999px;
  margin-bottom: 18px;
}
.cap-copy h3 {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.cap-copy > p:not(.cap-scene) {
  color: var(--primary-soft);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: 0.06em;
  margin-bottom: 0;
}
.cap-block {
  scroll-margin-top: 96px;
}

/* ——— Theater ——— */
.theater {
  padding: clamp(56px, 10vh, 100px) 0 clamp(64px, 12vh, 120px);
  background:
    radial-gradient(ellipse 70% 40% at 50% 0%, rgba(106, 76, 187, 0.14), transparent 65%);
}
.theater-head {
  text-align: center;
  margin-bottom: clamp(36px, 6vh, 56px);
}
.theater-head h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.theater-lead {
  color: var(--text-muted);
  font-size: 15px;
}
.theater-wall {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
  width: min(100% - 2 * var(--pad-x), 1240px);
  margin-inline: auto;
  align-items: end;
}
.theater-tile {
  margin: 0;
  grid-column: span 4;
  position: relative;
}
.theater-tile.tile-wide { grid-column: span 6; }
.theater-tile.tile-phone {
  grid-column: span 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
}
.theater-tile > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: 20px;
  border: 1px solid var(--border);
  filter: saturate(0.9) brightness(0.88);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
.theater-tile.tile-wide > img { aspect-ratio: 16 / 9; }
.theater-tile figcaption {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  text-align: center;
}
.theater-tile.tile-phone figcaption { margin-top: 0; }

/* ——— CTA ——— */
.cta {
  padding: clamp(72px, 14vh, 140px) 0;
}
.cta-panel {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  padding: clamp(40px, 6vw, 64px) clamp(24px, 4vw, 48px);
  background: linear-gradient(180deg, rgba(26, 20, 37, 0.9), rgba(18, 12, 26, 0.6));
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow:
    0 40px 80px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  position: relative;
  overflow: hidden;
}
.cta-panel::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(107, 82, 209, 0.22), transparent 65%);
  pointer-events: none;
}
.cta-panel > * { position: relative; }
.cta-panel h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 12px 0 14px;
}
.cta-sub {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 28px;
}
.qr {
  width: 168px;
  height: 168px;
  margin: 0 auto 28px;
  padding: 10px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(106, 76, 187, 0.25);
}
.qr img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}
.cta-actions { justify-content: center; margin-bottom: 18px; }
.cta-search {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

/* ——— Footer ——— */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  background: var(--bg-elevated);
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: baseline;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-dim);
}
.footer-legal { flex: 1 1 280px; max-width: 520px; line-height: 1.6; }
.footer-copy { white-space: nowrap; }

/* ——— Responsive ——— */
@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 22px;
  }
  .hero-copy { order: 0; }
  .hero-device { order: 1; margin-top: 4px; margin-bottom: 0; }
  .hero-lead { margin-inline: auto; }
  .btn-row { justify-content: center; }
  .brand-line { justify-content: center; }
  .hero-copy h1 { font-size: clamp(34px, 8.5vw, 48px); }
  .phone-hero { width: min(200px, 46vw); }

  .cap-grid,
  .cap-reverse .cap-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .cap-reverse .cap-visual,
  .cap-reverse .cap-copy,
  .cap-visual,
  .cap-copy { order: unset; }
  .cap-copy,
  .cap-reverse .cap-copy {
    max-width: none;
    margin: 0;
    text-align: center;
  }
  .cap-visual { min-height: 360px; }
  .cap-mood {
    max-width: 420px;
    aspect-ratio: 5 / 4;
  }
  .cap-block .phone-float,
  .cap-reverse .phone-float {
    width: min(200px, 42%);
    right: 8%;
    left: auto;
    bottom: -4%;
  }
  .cap-reverse .phone-float { left: 8%; right: auto; }

  .theater-wall { grid-template-columns: repeat(6, 1fr); }
  .theater-tile { grid-column: span 3; }
  .theater-tile.tile-wide { grid-column: span 6; }
  .theater-tile.tile-phone { grid-column: span 2; }
}

@media (max-width: 720px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px;
    left: var(--pad-x);
    right: var(--pad-x);
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: rgba(18, 12, 26, 0.96);
    border: 1px solid var(--border);
    border-radius: 16px;
    backdrop-filter: blur(12px);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .br-desk { display: none; }
  .hero {
    padding: 72px 0 40px;
    min-height: auto;
  }
  .hero-scroll { display: none; }
  .manifesto { padding: 64px 0; }
  .cap-visual { min-height: 300px; }
  .cap-mood { aspect-ratio: 4 / 3; border-radius: 20px; }
  .theater-wall {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 12px;
    padding: 0 var(--pad-x) 8px;
    width: 100%;
    -webkit-overflow-scrolling: touch;
  }
  .theater-tile,
  .theater-tile.tile-wide,
  .theater-tile.tile-phone {
    flex: 0 0 min(72vw, 280px);
    grid-column: unset;
    scroll-snap-align: start;
  }
  .theater-tile > img { aspect-ratio: 3 / 4; }
  .theater-tile.tile-wide > img { aspect-ratio: 4 / 3; }
  .footer-row { flex-direction: column; gap: 10px; }
  .footer-copy { white-space: normal; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-scroll span { animation: none; }
  .btn { transition: none; }
}

/* ——— v3 multi-page additions ——— */
.nav-links a.is-active { color: var(--text); background: rgba(255,255,255,0.06); }
.page-hero {
  position: relative;
  padding: 140px 0 72px;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: -1;
}
.page-hero-bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: saturate(0.9) brightness(0.55);
}
.page-hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(10,7,15,0.78), rgba(10,7,15,0.93)),
    radial-gradient(ellipse 60% 50% at 50% 30%, rgba(106,76,187,0.28), transparent 70%);
}
.page-hero .section-kicker { margin-bottom: 16px; }
.page-hero h1 {
  font-family: var(--serif);
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.page-hero-lead {
  max-width: 36em;
  margin-inline: auto;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.75;
}

/* Overview cards (home capabilities strip) */
.overview {
  padding: clamp(56px, 10vh, 96px) 0;
}
.overview-head { text-align: center; margin-bottom: clamp(36px, 6vh, 56px); }
.overview-head h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
}
.overview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.overview-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s, background 0.25s;
}
.overview-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139,122,216,0.35);
  background: var(--card-hover);
}
.overview-card .ov-img {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}
.overview-card .ov-img img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: saturate(0.9) brightness(0.85);
  transition: transform 0.4s;
}
.overview-card:hover .ov-img img { transform: scale(1.04); }
.overview-card .ov-body { padding: 20px 18px 22px; }
.overview-card .ov-tag {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--primary-soft);
  margin-bottom: 8px;
}
.overview-card h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 8px;
}
.overview-card p {
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* Theater rail (full-width scroll accent) */
.theater-rail {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 8px var(--pad-x) 16px;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  margin-top: 28px;
}
.theater-rail .theater-tile {
  flex: 0 0 min(340px, 70vw);
  scroll-snap-align: start;
  grid-column: unset;
}
.theater-rail .theater-tile.tile-wide { flex: 0 0 min(520px, 85vw); }
.theater-rail .theater-tile.tile-phone { flex: 0 0 min(200px, 48vw); }

/* Brand story */
.story {
  padding: clamp(64px, 12vh, 120px) 0;
}
.story-block {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
  margin-bottom: clamp(64px, 12vh, 120px);
}
.story-block:last-child { margin-bottom: 0; }
.story-block.flip .story-visual { order: 2; }
.story-block.flip .story-copy { order: 1; }
.story-visual {
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 30px 70px rgba(0,0,0,0.4);
  aspect-ratio: 4 / 3;
}
.story-visual img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: saturate(0.92) brightness(0.88);
}
.story-copy .section-kicker { margin-bottom: 14px; }
.story-copy h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.35;
  margin-bottom: 18px;
}
.story-copy p {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.85;
  margin-bottom: 14px;
  max-width: 34em;
}
.story-copy p:last-child { margin-bottom: 0; }
.principles {
  padding: clamp(56px, 10vh, 100px) 0;
  background: radial-gradient(ellipse 70% 50% at 50% 0%, rgba(106,76,187,0.12), transparent 65%);
}
.principles-head { text-align: center; margin-bottom: 40px; }
.principles-head h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 600;
}
.prin-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.prin-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 24px;
}
.prin-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}
.prin-card p { color: var(--text-muted); font-size: 14px; line-height: 1.7; }

/* Lab cards */
.lab-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: clamp(40px, 8vh, 72px) 0 clamp(72px, 12vh, 120px);
}
.lab-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 140px 1fr;
  min-height: 180px;
  transition: border-color 0.2s, transform 0.2s;
}
.lab-card:hover { border-color: rgba(139,122,216,0.35); transform: translateY(-2px); }
.lab-card .lab-thumb {
  overflow: hidden;
  min-height: 100%;
}
.lab-card .lab-thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
  filter: saturate(0.9) brightness(0.85);
}
.lab-card .lab-body { padding: 22px 22px 24px; display: flex; flex-direction: column; justify-content: center; }
.lab-card .lab-meta {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--primary-soft);
  margin-bottom: 8px;
}
.lab-card h3 {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 10px;
}
.lab-card p { color: var(--text-muted); font-size: 14px; line-height: 1.65; }

/* FAQ accordion */
.faq-list {
  max-width: 720px;
  margin: clamp(40px, 8vh, 64px) auto clamp(72px, 12vh, 120px);
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-item:first-child { border-top: 1px solid var(--border); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 8px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color 0.2s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-family: var(--font);
  font-size: 22px;
  font-weight: 400;
  color: var(--primary-soft);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item summary:hover { color: var(--primary-soft); }
.faq-item .faq-a {
  padding: 0 8px 22px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}

/* Experience page */
.xp {
  padding: clamp(48px, 8vh, 80px) 0 clamp(80px, 14vh, 140px);
}
.xp-panel {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
  padding: clamp(40px, 6vw, 72px) clamp(24px, 4vw, 56px);
  background: linear-gradient(180deg, rgba(26,20,37,0.95), rgba(18,12,26,0.7));
  border: 1px solid var(--border);
  border-radius: 32px;
  box-shadow: 0 40px 80px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}
.xp-panel::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(107,82,209,0.25), transparent 65%);
  pointer-events: none;
}
.xp-panel > * { position: relative; }
.xp-panel h2 {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 600;
  margin: 12px 0 14px;
}
.xp-qr {
  width: 220px; height: 220px;
  margin: 28px auto;
  padding: 14px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(106,76,187,0.3);
}
.xp-qr img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; }
.xp-search {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin: 8px 0 28px;
  color: var(--text);
}
.xp-search span { color: var(--primary-soft); }
.xp-hints {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  text-align: left;
  margin-top: 32px;
}
.xp-hint {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}
.xp-hint .n {
  font-family: var(--serif);
  font-size: 22px;
  color: rgba(139,122,216,0.45);
  margin-bottom: 6px;
}
.xp-hint p { font-size: 13px; color: var(--text-muted); line-height: 1.55; }

/* Footer links */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 16px;
  font-size: 13px;
}
.footer-nav a { color: var(--text-muted); }
.footer-nav a:hover { color: var(--primary-soft); }

@media (max-width: 980px) {
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .story-block, .story-block.flip {
    grid-template-columns: 1fr;
  }
  .story-block.flip .story-visual,
  .story-block.flip .story-copy { order: unset; }
  .prin-grid { grid-template-columns: repeat(2, 1fr); }
  .timeline-track { grid-template-columns: 1fr; }
  .timeline-track::before { display: none; }
  .lab-grid { grid-template-columns: 1fr; }
  .xp-hints { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .page-hero { padding: 120px 0 56px; }
  .overview-grid { grid-template-columns: 1fr; }
  .lab-card { grid-template-columns: 1fr; }
  .lab-card .lab-thumb { aspect-ratio: 16 / 9; min-height: auto; }
  .nav-links { max-height: 70vh; overflow-y: auto; }
}

/* ——— v4 motion & content thicken ——— */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

/* Hero Ken Burns + staggered entrance */
.hero-bg img {
  animation: kenBurns 28s ease-in-out infinite alternate;
}
@keyframes kenBurns {
  0% { transform: scale(1.04); }
  100% { transform: scale(1.1); }
}
.hero-copy {
  animation: heroIn 0.7s ease both;
}
.hero-device {
  animation: heroIn 0.75s ease 0.06s both;
}
@keyframes heroIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* CTA soft breath */
.btn-primary {
  animation: ctaBreath 3.6s ease-in-out infinite;
}
@keyframes ctaBreath {
  0%, 100% { box-shadow: 0 10px 36px rgba(106, 76, 187, 0.35); }
  50% { box-shadow: 0 12px 44px rgba(107, 82, 209, 0.55); }
}

.phone-tilt {
  transition: transform 0.35s ease-out;
  will-change: transform;
}

/* Trust bar */
.trust-bar {
  padding: 28px 0 8px;
  border-bottom: 1px solid var(--border);
  background: rgba(18, 12, 26, 0.45);
}
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 18px;
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}
.trust-item .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-bright), var(--primary));
  box-shadow: 0 0 10px var(--glow);
  flex-shrink: 0;
}
.trust-note {
  text-align: center;
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* Night flow timeline */
.night-flow {
  padding: clamp(64px, 12vh, 110px) 0;
  background:
    radial-gradient(ellipse 60% 45% at 50% 20%, rgba(106, 76, 187, 0.14), transparent 65%);
}
.night-flow-head {
  text-align: center;
  margin-bottom: clamp(36px, 6vh, 52px);
}
.night-flow-head h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.night-flow-lead {
  color: var(--text-muted);
  font-size: 15px;
  max-width: 32em;
  margin-inline: auto;
}
.flow-track {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  position: relative;
}
.flow-track::before {
  content: "";
  position: absolute;
  top: 28px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 122, 216, 0.35), transparent);
  pointer-events: none;
}
.flow-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px 20px 26px;
  text-align: center;
  position: relative;
}
.flow-num {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  margin-bottom: 16px;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--text);
  background: linear-gradient(145deg, var(--primary-bright), var(--primary));
  box-shadow: 0 8px 24px var(--glow);
  position: relative;
  z-index: 1;
}
.flow-step h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.flow-step p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
  letter-spacing: 0.02em;
}
.night-flow-end {
  text-align: center;
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}

/* Quotes carousel */
.quotes {
  padding: clamp(64px, 12vh, 110px) 0;
}
.quotes-head {
  text-align: center;
  margin-bottom: clamp(28px, 5vh, 44px);
}
.quotes-head h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.quotes-note {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}
.quotes-stage {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  min-height: 220px;
}
.quote-slide {
  display: none;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(32px, 5vw, 48px) clamp(24px, 4vw, 40px);
  text-align: center;
}
.quote-slide.is-active {
  display: block;
  animation: quoteFade 0.7s ease both;
}
@keyframes quoteFade {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.quote-slide blockquote {
  font-family: var(--serif);
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 600;
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.quote-slide .quote-body {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.quote-meta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--primary-soft);
}
.quote-meta .pill {
  padding: 4px 10px;
  border: 1px solid rgba(139, 122, 216, 0.35);
  border-radius: 999px;
}
.quotes-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 22px;
}
.quotes-controls button,
.rail-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font-size: 18px;
  display: grid;
  place-items: center;
  transition: border-color 0.2s, background 0.2s;
}
.quotes-controls button:hover,
.rail-btn:hover {
  border-color: rgba(139, 122, 216, 0.45);
  background: var(--card-hover);
}
.quotes-dots {
  display: flex;
  gap: 8px;
}
.quotes-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
}
.quotes-dots button.is-active {
  background: var(--primary-soft);
  box-shadow: 0 0 10px var(--glow);
}

/* Theater rail wrap + drag */
.theater-rail-wrap {
  position: relative;
  margin-top: 28px;
}
.theater-rail-wrap .theater-rail {
  margin-top: 0;
  cursor: grab;
  scrollbar-width: thin;
  scrollbar-color: rgba(139, 122, 216, 0.35) transparent;
}
.theater-rail.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  user-select: none;
}
.theater-rail-wrap .rail-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 0 var(--pad-x);
  margin-bottom: 12px;
}

/* Lab peek on home */
.lab-peek {
  padding: clamp(56px, 10vh, 96px) 0;
}
.lab-peek-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.lab-peek-head h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.4vw, 36px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.lab-peek-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lab-peek-card {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.25s, border-color 0.25s;
}
.lab-peek-card:hover {
  transform: translateY(-3px);
  border-color: rgba(139, 122, 216, 0.35);
}
.lab-peek-card .thumb {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}
.lab-peek-card .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.9) brightness(0.85);
}
.lab-peek-card .body {
  padding: 18px 18px 22px;
}
.lab-peek-card .meta {
  font-size: 11px;
  letter-spacing: 0.16em;
  color: var(--primary-soft);
  margin-bottom: 8px;
}
.lab-peek-card h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
}

/* Product tabs */
.product-tabs {
  padding: 8px 0 clamp(48px, 8vh, 72px);
}
.product-tabs-bar {
  position: sticky;
  top: 68px;
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 14px 0;
  margin-bottom: 28px;
  background: rgba(10, 7, 15, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.product-tabs-bar [data-tab] {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.product-tabs-bar [data-tab]:hover {
  color: var(--text);
  border-color: rgba(139, 122, 216, 0.4);
}
.product-tabs-bar [data-tab].is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-bright), var(--primary));
  border-color: transparent;
  box-shadow: 0 8px 24px var(--glow);
}
.product-tabs-preview {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 5vw, 56px);
  align-items: center;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  padding: clamp(24px, 4vw, 40px);
}
.product-tabs-preview .preview-phone {
  display: flex;
  justify-content: center;
}
.product-tabs-preview .preview-phone .phone {
  width: min(220px, 55vw);
}
.product-tabs-preview .preview-copy .cap-tag {
  margin-bottom: 14px;
}
.product-tabs-preview .preview-copy h3 {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 32px);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}
.product-tabs-preview .preview-copy p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
}
.product-tabs-preview .preview-jump {
  margin-top: 20px;
}

/* Cap scene story */
.cap-scene {
  margin-top: 18px;
  padding: 16px 18px;
  background: rgba(106, 76, 187, 0.08);
  border: 1px solid rgba(139, 122, 216, 0.22);
  border-radius: 16px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.75;
  letter-spacing: 0.02em;
  text-align: left;
}
.cap-scene::before {
  content: "场景";
  display: block;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--primary-soft);
  margin-bottom: 8px;
}
.cap-reverse .cap-scene { text-align: left; }

/* Lab filter chips */
.lab-filters,
.lab-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin: 8px 0 28px;
}
.lab-filters [data-filter],
.lab-chip {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition:
    color var(--dur-fast) ease,
    border-color var(--dur-fast) ease,
    background var(--dur-fast) ease,
    box-shadow var(--dur-fast) ease;
}
.lab-filters [data-filter]:hover,
.lab-chip:hover {
  color: var(--text);
  border-color: rgba(139, 122, 216, 0.4);
}
.lab-filters [data-filter].is-active,
.lab-chip.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--primary-bright), var(--primary));
  border-color: transparent;
  box-shadow: 0 8px 22px var(--glow);
}
.lab-card.is-filtered-out,
.lab-card[hidden] {
  display: none !important;
}

/* FAQ button accordion */
.faq-item {
  transition: background var(--dur-med) var(--ease-out);
}
.faq-item.is-open {
  background: rgba(106, 76, 187, 0.06);
  border-radius: 12px;
}
.faq-item > button.faq-q,
.faq-q {
  width: 100%;
  appearance: none;
  background: transparent;
  border: none;
  color: inherit;
  text-align: left;
  list-style: none;
  cursor: pointer;
  padding: 22px 12px;
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  transition: color var(--dur-med) var(--ease-out);
}
.faq-item > button.faq-q:hover,
.faq-q:hover {
  color: var(--primary-soft);
}
.faq-item > button.faq-q::after,
.faq-q::after {
  content: "+";
  font-family: var(--font);
  font-size: 22px;
  font-weight: 400;
  color: var(--primary-soft);
  flex-shrink: 0;
  transition: transform var(--dur-med) var(--ease-out), color var(--dur-med) var(--ease-out);
}
.faq-item.is-open > button.faq-q::after,
.faq-item.is-open .faq-q::after {
  content: "−";
  transform: rotate(180deg);
}
.faq-item .faq-panel,
.faq-item .faq-a {
  padding: 0 12px 22px;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.75;
  overflow: hidden;
  transition:
    opacity var(--dur-med) var(--ease-out),
    transform var(--dur-med) var(--ease-out);
}
.faq-item.is-open .faq-panel,
.faq-item.is-open .faq-a {
  opacity: 1;
  transform: translateY(0);
}
.faq-item:not(.is-open) .faq-panel,
.faq-item:not(.is-open) .faq-a {
  opacity: 0;
  transform: translateY(-4px);
}
.faq-item:not(.is-open) .faq-panel[hidden],
.faq-item:not(.is-open) .faq-a[hidden] {
  display: none;
}
.faq-item .faq-panel p,
.faq-item .faq-a p {
  margin: 0;
}

@media (max-width: 980px) {
  .flow-track {
    grid-template-columns: repeat(2, 1fr);
  }
  .flow-track::before { display: none; }
  .lab-peek-grid { grid-template-columns: 1fr; }
  .product-tabs-preview {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .product-tabs-preview .preview-copy .cap-scene { text-align: left; }
}
@media (max-width: 720px) {
  .flow-track { grid-template-columns: 1fr; }
  .trust-item { font-size: 12px; padding: 10px 14px; }
  .product-tabs-bar {
    top: 68px;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    padding-inline: var(--pad-x);
    margin-inline: calc(-1 * var(--pad-x));
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .hero-bg img,
  .hero-copy,
  .hero-device,
  .btn-primary,
  .quote-slide.is-active {
    animation: none !important;
  }
  .phone-tilt { transition: none; }
  .overview-card:hover,
  .lab-peek-card:hover,
  .lab-card:hover {
    transform: none;
  }
}


/* Brand timeline */
.brand-timeline {
  padding: clamp(56px, 10vh, 100px) 0 clamp(64px, 12vh, 120px);
  background:
    radial-gradient(ellipse 60% 45% at 50% 10%, rgba(106, 76, 187, 0.12), transparent 65%);
}
.brand-timeline-head {
  text-align: center;
  margin-bottom: clamp(36px, 6vh, 52px);
}
.brand-timeline-head h2 {
  font-family: var(--serif);
  font-size: clamp(26px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -0.02em;
}
.timeline-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  position: relative;
}
.timeline-track::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(139, 122, 216, 0.4), transparent);
  pointer-events: none;
}
.timeline-node {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 26px 18px 24px;
  text-align: center;
  position: relative;
  transition: border-color var(--dur-fast) ease, transform var(--dur-fast) ease;
}
.timeline-node:hover {
  border-color: rgba(139, 122, 216, 0.35);
}
.tl-no {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 28px;
  padding: 0 10px;
  margin-bottom: 14px;
  border-radius: 999px;
  font-family: var(--serif);
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--text);
  background: linear-gradient(145deg, var(--primary-bright), var(--primary));
  box-shadow: 0 8px 22px var(--glow);
  position: relative;
  z-index: 1;
}
.timeline-node h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 8px;
}
.timeline-node p {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.65;
}

@media (max-width: 980px) {
  .timeline-track {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .timeline-track::before {
    display: none;
  }
  .timeline-node { text-align: left; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: start; }
  .timeline-node .tl-no { grid-row: 1 / span 2; margin: 0; }
  .timeline-node h3 { margin: 0; }
}
@media (max-width: 720px) {
  .prin-grid { grid-template-columns: 1fr; }
}
