@font-face {
  font-family: "Wulu Sans";
  src: url("/assets/NotoSansSC-VariableFont_wght.ttf") format("truetype");
  font-display: swap;
  font-weight: 100 900;
}

@font-face {
  font-family: "Wulu Serif";
  src: url("/assets/ZCOOLXiaoWei-Regular.ttf") format("truetype");
  font-display: swap;
  font-weight: 400;
}

:root {
  color-scheme: light;
  /* Three-tier warm archival paper surfaces */
  --canvas: #f6ecda;
  --paper: #fcf6ea;
  --paper-soft: #f2e6cf;
  --stage: #ece0c8;
  --stage-deep: #e4d4b7;

  /* Five-tier ink hierarchy */
  --ink: #221f1c;
  --ink-strong: #35302a;
  --ink-muted: #5d554b;
  --ink-subtle: #7c7265;
  --ink-faint: #9b8f7f;

  /* Borders & warm shadows */
  --line: rgba(126, 104, 76, 0.22);
  --line-strong: rgba(84, 68, 48, 0.34);
  --shadow-sm: 0 8px 24px rgba(66, 46, 24, 0.06);
  --shadow-md: 0 20px 50px rgba(66, 46, 24, 0.11);
  --shadow-device:
    0 34px 72px rgba(48, 33, 18, 0.22),
    0 12px 26px rgba(48, 33, 18, 0.12),
    0 2px 6px rgba(48, 33, 18, 0.08);

  /* Brand accents drawn directly from WULU App */
  --accent: #b63a25;
  --accent-pressed: #8f291a;
  --accent-soft: rgba(182, 58, 37, 0.1);
  --accent-border: rgba(182, 58, 37, 0.26);
  --sage: #5c7051;
  --sage-soft: rgba(92, 112, 81, 0.12);
  --denim: #567082;
  --ochre: #a87628;

  /* Typography */
  --serif: "Wulu Serif", "Songti SC", "Iowan Old Style", Georgia, serif;
  --sans: "Wulu Sans", system-ui, -apple-system, "PingFang SC", sans-serif;

  /* Radii & layout */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 26px;
  --shell-max: 1180px;
  --nav-height: 76px;
}

html[lang="en"] {
  --serif: "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-height) + 20px);
}

body {
  position: relative;
  margin: 0;
  color: var(--ink);
  background-color: var(--canvas);
  background-image:
    radial-gradient(ellipse 80% 50% at 72% 6%, rgba(255, 250, 238, 0.72), transparent 64%),
    radial-gradient(ellipse 65% 42% at 12% 38%, rgba(232, 214, 182, 0.34), transparent 62%);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

/* Subtle paper grain overlay */
body::before {
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.032;
  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.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  content: "";
}

a {
  color: inherit;
  text-underline-offset: 0.24em;
}

a:focus-visible,
button:focus-visible {
  outline: 2.5px solid var(--ink);
  outline-offset: 3px;
  border-radius: 8px;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4,
p,
figure,
ul,
ol {
  margin-top: 0;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: 16px;
  z-index: 120;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 14px;
}

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

/* ==================== Navigation ==================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  border-bottom: 1px solid transparent;
  background: rgba(246, 236, 218, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(246, 236, 218, 0.94);
  box-shadow: 0 6px 20px rgba(66, 46, 24, 0.05);
}

.nav {
  display: flex;
  min-height: var(--nav-height);
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  text-decoration: none;
}

.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: 0 3px 10px rgba(66, 46, 24, 0.16);
  object-fit: cover;
}

.brand-wordmark {
  height: 21px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-strong);
}

.nav-links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.nav-links a:hover {
  background: rgba(252, 246, 234, 0.9);
  color: var(--ink);
}

.nav-links .nav-lang {
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.nav-links .nav-cta {
  margin-left: 8px;
  padding: 0 16px;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.86rem;
  font-weight: 600;
}

.nav-links .nav-cta:hover {
  background: var(--accent);
  color: #fffaf1;
}

/* ==================== Shared Typography & Eyebrows ==================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  color: var(--ink-muted);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  content: "";
  flex-shrink: 0;
}

.display-title {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.section-header {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: clamp(24px, 5vw, 72px);
  margin-bottom: clamp(30px, 3.8vw, 46px);
}

.section-title {
  margin-bottom: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 3.6vw, 3.1rem);
  line-height: 1.14;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-lede {
  margin-bottom: 4px;
  max-width: 44ch;
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.72;
}

/* ==================== Buttons ==================== */
.btn-primary,
.btn-secondary {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.btn-primary {
  border: 1px solid transparent;
  background: var(--accent);
  color: #fffaf1;
  box-shadow: 0 10px 24px rgba(182, 58, 37, 0.24);
}

.btn-primary:hover {
  background: var(--accent-pressed);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(143, 41, 26, 0.28);
}

.btn-primary:active {
  transform: translateY(0) scale(0.985);
}

.btn-secondary {
  border: 1px solid var(--line-strong);
  background: rgba(252, 246, 234, 0.72);
  color: var(--ink);
}

.btn-secondary:hover {
  border-color: var(--ink);
  background: var(--paper);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0) scale(0.985);
}

.text-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  color: var(--accent-pressed);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-bottom: 1px solid var(--accent-border);
  padding-bottom: 2px;
  transition: border-color 180ms ease, gap 180ms ease;
}

.text-link:hover {
  border-bottom-color: var(--accent-pressed);
  gap: 10px;
}

.store-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  gap: 12px;
}

.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 56px;
  padding: 10px 22px 10px 18px;
  border: 1px solid rgba(34, 31, 28, 0.92);
  border-radius: 14px;
  background: var(--ink);
  color: #fffaf1;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(34, 31, 28, 0.16);
  transition:
    transform 180ms cubic-bezier(0.22, 1, 0.36, 1),
    background-color 180ms ease,
    border-color 180ms ease,
    box-shadow 180ms ease;
}

.store-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fffaf1;
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(182, 58, 37, 0.26);
}

.store-btn:active {
  transform: translateY(0) scale(0.985);
}

.store-btn-icon {
  flex-shrink: 0;
  color: #fffaf1;
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
  text-align: left;
}

.store-btn-eyebrow {
  margin-bottom: 2px;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: rgba(255, 250, 241, 0.78);
}

.store-btn-name {
  font-size: 1.02rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  color: #fffaf1;
}

/* ==================== Precision iPhone Device Frame ==================== */
.device-frame {
  position: relative;
  width: var(--device-w, 292px);
  aspect-ratio: 1320 / 2868;
  padding: 9px;
  border-radius: 44px;
  background: linear-gradient(145deg, #3c3834 0%, #1d1a17 52%, #2f2b27 100%);
  box-shadow:
    var(--shadow-device),
    inset 0 0 0 1.5px rgba(255, 248, 236, 0.22),
    inset 0 0 0 3px rgba(12, 10, 8, 0.72);
}

.device-frame::before {
  position: absolute;
  top: 96px;
  right: -2.5px;
  width: 2.5px;
  height: 52px;
  border-radius: 0 2px 2px 0;
  background: #46413c;
  content: "";
}

.device-frame::after {
  position: absolute;
  top: 84px;
  left: -2.5px;
  width: 2.5px;
  height: 36px;
  border-radius: 2px 0 0 2px;
  background: #46413c;
  box-shadow: 0 48px 0 #46413c;
  content: "";
}

.device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 36px;
  background: #f5edd9;
}

.device-screen img,
.device-screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.device-frame--compact {
  --device-w: 224px;
  padding: 7px;
  border-radius: 34px;
}

.device-frame--compact .device-screen {
  border-radius: 28px;
}

/* ==================== Hero Section ==================== */
.hero {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: clamp(40px, 5.5vw, 76px);
  padding: clamp(34px, 4.5vw, 56px) 0 clamp(68px, 7.5vw, 104px);
}

.hero-copy-col {
  max-width: 560px;
}

.hero h1 {
  margin-bottom: 22px;
  font-size: clamp(2.85rem, 5vw, 4.35rem);
  line-height: 1.08;
  color: var(--ink);
}

html[lang="en"] .hero h1 {
  font-size: clamp(2.55rem, 4.5vw, 3.85rem);
  line-height: 1.07;
}

.hero-lead {
  margin-bottom: 30px;
  max-width: 46ch;
  color: var(--ink-muted);
  font-size: clamp(1rem, 1.28vw, 1.1rem);
  line-height: 1.76;
}

.hero-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 20px;
}

.hero-sublink {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 6px;
  color: var(--ink-muted);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 180ms ease, border-color 180ms ease;
}

.hero-sublink:hover {
  color: var(--accent-pressed);
  border-bottom-color: var(--accent-border);
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.proof-item strong {
  display: block;
  margin-bottom: 3px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 650;
}

.proof-item span {
  display: block;
  color: var(--ink-subtle);
  font-size: 0.82rem;
  line-height: 1.48;
}

/* Hero Multi-Device Visual Composition */
.hero-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 600px;
  padding: 16px 0;
}

.hero-stage-halo {
  position: absolute;
  inset: 8% 4%;
  border-radius: 36px;
  background:
    radial-gradient(circle at 50% 42%, rgba(252, 246, 234, 0.92) 0%, rgba(235, 221, 196, 0.56) 58%, transparent 78%);
  pointer-events: none;
}

.hero-devices {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 540px;
}

.hero-phone-main {
  position: relative;
  z-index: 3;
  --device-w: 274px;
}

.hero-phone-side {
  position: absolute;
  z-index: 2;
  --device-w: 204px;
  opacity: 0.94;
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1), opacity 240ms ease;
}

.hero-phone-side--left {
  left: -4px;
  top: 56px;
  transform: rotate(-7deg) translateY(10px);
}

.hero-phone-side--right {
  right: -4px;
  top: 74px;
  transform: rotate(7deg) translateY(10px);
}

.hero-devices:hover .hero-phone-side--left {
  transform: rotate(-8.5deg) translate(-6px, 4px);
}

.hero-devices:hover .hero-phone-side--right {
  transform: rotate(8.5deg) translate(6px, 4px);
}

.hero-video-badge {
  position: absolute;
  left: 50%;
  bottom: -18px;
  z-index: 5;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(252, 246, 234, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-strong);
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 180ms ease, transform 180ms ease;
}

.hero-video-badge:hover {
  background: #fffdf8;
  transform: translateX(-50%) translateY(-1px);
}

.live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(182, 58, 37, 0.2);
}

/* ==================== Section 2: Interactive Video Walkthrough Studio ==================== */
.band-stage {
  position: relative;
  padding: clamp(56px, 6vw, 84px) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #efe3cd 0%, #f3e8d4 100%);
}

.walkthrough-grid {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: clamp(36px, 5vw, 72px);
}

.chapter-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chapter-card {
  position: relative;
  width: 100%;
  padding: 20px 22px 22px 24px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: rgba(252, 246, 234, 0.56);
  text-align: left;
  cursor: pointer;
  transition:
    background-color 200ms ease,
    border-color 200ms ease,
    box-shadow 200ms ease,
    transform 200ms ease;
}

.chapter-card:hover {
  background: rgba(252, 246, 234, 0.88);
  border-color: var(--line);
}

.chapter-card.is-active {
  background: var(--paper);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.chapter-card::before {
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 3.5px;
  border-radius: 0 4px 4px 0;
  background: transparent;
  transition: background-color 200ms ease;
  content: "";
}

.chapter-card.is-active::before {
  background: var(--accent);
}

.chapter-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.chapter-kicker {
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  color: var(--ink-subtle);
  font-variant-numeric: tabular-nums;
}

.chapter-card.is-active .chapter-kicker {
  color: var(--accent-pressed);
}

.chapter-duration {
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--ink-subtle);
  font-size: 0.74rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.chapter-card h3 {
  margin-bottom: 6px;
  font-family: var(--sans);
  font-size: 1.14rem;
  font-weight: 650;
  line-height: 1.35;
  color: var(--ink);
}

.chapter-card p {
  margin-bottom: 0;
  color: var(--ink-muted);
  font-size: 0.92rem;
  line-height: 1.62;
}

.chapter-progress {
  position: relative;
  height: 2.5px;
  margin-top: 14px;
  border-radius: 999px;
  background: rgba(126, 104, 76, 0.16);
  overflow: hidden;
  opacity: 0;
  transition: opacity 200ms ease;
}

.chapter-card.is-active .chapter-progress {
  opacity: 1;
}

.chapter-progress-bar {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: 999px;
  background: var(--accent);
  transition: width 120ms linear;
}

/* Video Player Stage */
.player-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.player-stage .device-frame {
  --device-w: 274px;
}

.player-controls {
  display: flex;
  width: min(360px, 100%);
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.ctrl-btn {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: var(--canvas);
  color: var(--ink);
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.ctrl-btn:hover {
  border-color: var(--accent);
  background: var(--accent);
  color: #fffaf1;
}

.player-meta {
  flex: 1;
  min-width: 0;
}

.player-meta-title {
  display: block;
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-meta-sub {
  display: block;
  font-size: 0.74rem;
  color: var(--ink-subtle);
  font-variant-numeric: tabular-nums;
}

/* ==================== Section 3: Real-Device Screen Gallery ==================== */
.section {
  padding: clamp(78px, 8.5vw, 118px) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

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

.screen-card {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
  transition: transform 240ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 240ms ease, border-color 240ms ease;
}

.screen-card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

/* Top two cards: spacious split spotlight */
.screen-card--featured {
  grid-column: span 6;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: center;
  gap: 20px;
  padding: 28px 28px 0;
}

.screen-card--featured .screen-card-copy {
  padding-bottom: 28px;
}

.screen-card--featured .screen-card-media {
  align-self: end;
  padding-top: 6px;
}

/* Bottom four cards: clean vertical showcase */
.screen-card--compact {
  grid-column: span 3;
  padding: 22px 20px 0;
  justify-content: space-between;
}

.screen-card--compact .screen-card-copy {
  margin-bottom: 20px;
}

.screen-tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--paper-soft);
  color: var(--ink-muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.screen-card--featured .screen-tag {
  background: var(--accent-soft);
  color: var(--accent-pressed);
}

.screen-card h3 {
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 1.18rem;
  font-weight: 650;
  line-height: 1.32;
  color: var(--ink);
}

.screen-card--compact h3 {
  font-size: 1.04rem;
}

.screen-card p {
  margin-bottom: 0;
  color: var(--ink-muted);
  font-size: 0.9rem;
  line-height: 1.62;
}

.screen-card--compact p {
  font-size: 0.86rem;
}

.screen-trigger {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  text-align: left;
}

.phone-crop {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 12.6;
  overflow: hidden;
  border-radius: 26px 26px 0 0;
  padding: 7px 7px 0;
  background: linear-gradient(155deg, #37332f 0%, #1c1917 100%);
  box-shadow: 0 14px 32px rgba(48, 33, 18, 0.16);
}

.screen-card--compact .phone-crop {
  aspect-ratio: 9 / 13.5;
  border-radius: 22px 22px 0 0;
  padding: 6px 6px 0;
}

.phone-crop img {
  width: 100%;
  height: 100%;
  border-radius: 20px 20px 0 0;
  object-fit: cover;
  object-position: center top;
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.screen-card--compact .phone-crop img {
  border-radius: 17px 17px 0 0;
}

.screen-trigger:hover .phone-crop img {
  transform: scale(1.02);
}

.zoom-hint {
  position: absolute;
  right: 14px;
  bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(34, 31, 28, 0.78);
  color: #fffaf1;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.screen-trigger:hover .zoom-hint,
.screen-trigger:focus-visible .zoom-hint {
  opacity: 1;
  transform: translateY(0);
}

/* ==================== Section 4: Object Lifecycle Timeline ==================== */
.lifecycle-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1.32fr) minmax(280px, 0.68fr);
  gap: clamp(36px, 5vw, 68px);
}

.timeline {
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.moment {
  display: grid;
  align-items: baseline;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 16px 28px;
  padding: 28px 0 30px;
  border-bottom: 1px solid var(--line);
}

.moment-stage {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.moment-num {
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  color: var(--accent-pressed);
  font-variant-numeric: tabular-nums;
}

.moment-time {
  font-family: var(--serif);
  font-size: clamp(1.55rem, 2.3vw, 2.05rem);
  line-height: 1.1;
  color: var(--ink);
}

.moment-body h3 {
  margin-bottom: 8px;
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--ink);
}

.moment-body p {
  margin-bottom: 14px;
  max-width: 52ch;
  color: var(--ink-muted);
  font-size: 0.95rem;
}

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

.datum {
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-muted);
  font-size: 0.76rem;
  font-weight: 500;
}

.lifecycle-aside {
  position: sticky;
  top: calc(var(--nav-height) + 28px);
}

.editorial-frame {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

.editorial-frame img {
  width: 100%;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-md);
  object-fit: cover;
}

.editorial-frame figcaption {
  padding: 14px 4px 4px;
  color: var(--ink-subtle);
  font-size: 0.82rem;
  line-height: 1.55;
}

/* ==================== Section 5: Local-First Privacy Panel ==================== */
.privacy-panel {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-md);
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
}

.privacy-copy {
  padding: clamp(32px, 5vw, 60px);
}

.privacy-copy h2 {
  margin-bottom: 16px;
}

.privacy-copy > p {
  max-width: 48ch;
  margin-bottom: 26px;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

.privacy-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 20px;
  margin: 0 0 30px;
  padding: 22px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.privacy-list li {
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--ink-muted);
}

.privacy-list strong {
  display: block;
  margin-bottom: 2px;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 650;
}

.privacy-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
}

.privacy-visual {
  position: relative;
  margin: 0;
  min-height: 440px;
  background: var(--stage);
}

.privacy-visual > img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
}

.privacy-inset {
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 156px;
  height: 276px;
  padding: 6px;
  border: 1px solid rgba(255, 250, 238, 0.45);
  border-radius: 22px;
  background: linear-gradient(155deg, #37332f 0%, #1c1917 100%);
  box-shadow: 0 18px 36px rgba(24, 18, 12, 0.34);
  cursor: zoom-in;
  overflow: hidden;
  transition: transform 220ms ease;
}

.privacy-inset:hover {
  transform: translateY(-3px);
}

.privacy-inset img {
  width: 100%;
  height: 100%;
  border-radius: 17px;
  object-fit: cover;
  object-position: center 56%;
}

/* ==================== Section 6: Download CTA ==================== */
.section--download {
  padding: clamp(56px, 6vw, 84px) 0;
}

.download-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 36px;
  padding: clamp(28px, 4.5vw, 48px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-md);
}

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

.download-copy h2 {
  margin-bottom: 10px;
}

.download-copy p {
  margin-bottom: 0;
  color: var(--ink-muted);
  font-size: 0.98rem;
}

/* ==================== Footer ==================== */
.site-footer {
  margin-top: 24px;
  border-top: 1px solid var(--line);
  padding: 56px 0 44px;
}

.footer-grid {
  display: grid;
  align-items: end;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.footer-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
}

.footer-tagline {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3.2vw, 2.65rem);
  line-height: 1.1;
  color: var(--ink);
}

.footer-meta {
  color: var(--ink-subtle);
  font-size: 0.84rem;
}

.footer-meta a {
  text-decoration: none;
}

.footer-meta a:hover {
  color: var(--ink);
  text-decoration: underline;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px 18px;
  font-size: 0.88rem;
  color: var(--ink-muted);
}

.footer-links a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  text-decoration: none;
}

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

/* ==================== Lightbox Modal ==================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(24, 21, 18, 0.82);
  backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 200ms ease, visibility 200ms ease;
}

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

.lightbox-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  max-width: min(460px, 100%);
  max-height: 92dvh;
}

.lightbox-frame {
  --device-w: min(318px, 72vw);
  max-height: 76dvh;
}

.lightbox-caption {
  text-align: center;
  color: #f6ecda;
}

.lightbox-caption strong {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 3px;
}

.lightbox-caption span {
  font-size: 0.86rem;
  color: rgba(246, 236, 218, 0.78);
}

.lightbox-close,
.lightbox-nav {
  position: fixed;
  display: inline-flex;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(252, 246, 234, 0.25);
  border-radius: 50%;
  background: rgba(34, 31, 28, 0.78);
  color: #fffaf1;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background: var(--accent);
}

.lightbox-close {
  top: 20px;
  right: 20px;
}

.lightbox-nav--prev {
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
}

.lightbox-nav--next {
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
}

/* ==================== Subtle Scroll Reveal ==================== */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 520ms cubic-bezier(0.22, 1, 0.36, 1), transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js-ready .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ==================== Responsive Breakpoints ==================== */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 54px;
    padding-top: 28px;
  }

  .hero-copy-col {
    max-width: 640px;
  }

  .hero-stage {
    min-height: 540px;
  }

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

  .player-stage {
    order: -1;
  }

  .screen-card--featured {
    grid-column: span 12;
  }

  .screen-card--compact {
    grid-column: span 6;
  }

  .lifecycle-layout,
  .privacy-panel {
    grid-template-columns: 1fr;
  }

  .lifecycle-aside {
    position: static;
    max-width: 440px;
  }
}

@media (max-width: 680px) {
  .shell {
    width: min(100% - 28px, var(--shell-max));
  }

  .nav {
    min-height: 66px;
  }

  .nav-links a:not(.nav-lang):not(.nav-cta) {
    display: none;
  }

  .hero-proof {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hero-actions .store-actions,
  .download-panel .store-actions {
    width: 100%;
  }

  .store-btn {
    flex: 1 1 168px;
    justify-content: center;
  }

  .download-panel {
    padding: 26px 22px;
  }

  .hero-stage {
    min-height: 460px;
  }

  .hero-phone-main {
    --device-w: 226px;
  }

  .hero-phone-side {
    --device-w: 152px;
  }

  .hero-phone-side--left {
    left: 0;
  }

  .hero-phone-side--right {
    right: 0;
  }

  .section-header {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .screen-card--featured {
    grid-template-columns: 1fr;
    padding: 24px 22px 0;
  }

  .screen-card--featured .screen-card-copy {
    padding-bottom: 0;
  }

  .screen-card--featured .screen-card-media {
    width: min(230px, 80%);
    margin: 0 auto;
  }

  .screen-card--compact {
    grid-column: span 12;
  }

  .screen-card--compact .screen-card-media {
    width: min(230px, 80%);
    margin: 0 auto;
  }

  .moment {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .privacy-list {
    grid-template-columns: 1fr;
  }

  .privacy-visual,
  .privacy-visual > img {
    min-height: 320px;
  }

  .privacy-inset {
    width: 114px;
    height: 176px;
    right: 14px;
    bottom: 14px;
  }

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

  .footer-links {
    justify-content: flex-start;
  }

  .lightbox-nav {
    top: auto;
    bottom: 18px;
    transform: none;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }

  .js-ready .reveal {
    opacity: 1;
    transform: none;
  }
}
