/* ============================================================================================
   iTokenFlow landing — scroll-driven cinematic experience (AIGC 影视开源社区).
   Midnight-cobalt cinema · cream · amber projector light. A canvas pseudo-3D light tunnel sits
   behind parallax scenes + cursor-tilt 3D panels. All motion is transform/opacity + canvas and
   gated by prefers-reduced-motion.
   ============================================================================================ */

@font-face {
  font-family: 'Fraunces';
  src: url(/assets/fonts/Fraunces.woff2) format('woff2');
  font-weight: 400 600;
  font-display: swap;
}

:root {
  --bg: #090c26;
  --bg-2: #0e1442;
  --royal: #3550e0;
  --royal-soft: rgba(70, 96, 220, 0.5);
  --panel: rgba(16, 20, 58, 0.62);
  --panel-2: rgba(18, 22, 62, 0.94);
  --ink: #f3ead0;
  --ink-2: #bfbaa6;
  --muted: #7f7f9a;
  --line: rgba(243, 234, 208, 0.12);
  --line-2: rgba(243, 234, 208, 0.2);
  --cream: #f2e8cb;
  --cream-ink: #0e1440;
  --accent: #e79a4c;
  --accent-hi: #f4b76c;
  --accent-deep: #d98a3f;
  --accent-glow: rgba(231, 154, 76, 0.3);
  --serif: 'Fraunces', 'Tiempos Headline', 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Inter', system-ui, sans-serif;
  --mono: ui-monospace, 'SF Mono', 'JetBrains Mono', Menlo, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.45, 0, 0.55, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, #131a55 0%, transparent 55%),
    linear-gradient(180deg, #0a0e2e 0%, #090c26 60%, #070a1e 100%);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body[data-page='landing'] noscript { display: block; padding: 40px; text-align: center; color: var(--ink-2); }

.lp {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
  --mvx: 0px; --mvy: 0px;
}

/* ---- Ambient layers ------------------------------------------------------------------------ */
.lp-tunnel {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.9;
}
.lp-grain,
.lp-vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.lp-vignette {
  background:
    radial-gradient(120% 90% at 50% 30%, transparent 40%, rgba(6, 8, 24, 0.55) 100%),
    radial-gradient(60% 50% at 50% 8%, rgba(53, 80, 224, 0.16), transparent 70%);
}
.lp-grain {
  opacity: 0.045;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: lp-grain 0.6s steps(2) infinite;
}
@keyframes lp-grain { 0% { transform: translate3d(0,0,0); } 50% { transform: translate3d(-2%,1%,0); } 100% { transform: translate3d(1%,-2%,0); } }

.lp-bar { position: fixed; left: 0; right: 0; height: 40px; z-index: 40; pointer-events: none; background: linear-gradient(var(--dir, 180deg), rgba(4, 6, 18, 0.95), rgba(4, 6, 18, 0)); }
.lp-bar-top { top: 0; }
.lp-bar-bottom { bottom: 0; --dir: 0deg; }

.lp-progress { position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60; background: rgba(243, 234, 208, 0.07); }
.lp-progress span { display: block; height: 100%; transform: scaleX(0); transform-origin: 0 50%; background: linear-gradient(90deg, var(--accent-deep), var(--accent-hi)); box-shadow: 0 0 12px var(--accent-glow); }

/* Persistent aperture brand mark. */
.lp-mark {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  color: var(--accent-hi);
  filter: drop-shadow(0 0 12px var(--accent-glow));
  transition: transform 0.4s var(--ease);
}
.lp-mark svg { display: block; animation: lp-spin 40s linear infinite; }
.lp-mark:hover svg { animation-play-state: paused; }
@keyframes lp-spin { to { transform: rotate(360deg); } }

/* ---- Shells -------------------------------------------------------------------------------- */
.lp-nav, .lp-hero, .lp-section, .lp-cta, .lp-chapters {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 40px;
  padding-right: 40px;
}

.lp-eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--accent-hi); }
.lp-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); animation: lp-pulse 2.6s var(--ease-soft) infinite; }
@keyframes lp-pulse { 0%, 100% { opacity: 0.55; transform: scale(0.85); } 50% { opacity: 1; transform: scale(1.15); } }

/* ---- Nav ----------------------------------------------------------------------------------- */
.lp-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 26px; padding-bottom: 26px; }
.lp-nav-right { display: flex; align-items: center; gap: 30px; }
.lp-brand { display: grid; line-height: 1.2; }
.lp-brand strong { font-size: 16px; letter-spacing: -0.01em; }
.lp-brand small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--muted); }
.lp-nav-links { display: flex; gap: 28px; }
.lp-nav-links a { position: relative; color: var(--ink-2); text-decoration: none; font-size: 14px; padding: 4px 0; transition: color 0.25s var(--ease); }
.lp-nav-links a::after { content: ''; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.3s var(--ease); }
.lp-nav-links a:hover { color: var(--ink); }
.lp-nav-links a:hover::after { transform: scaleX(1); }
.lp-nav-actions { display: flex; align-items: center; gap: 12px; }

/* ---- Buttons ------------------------------------------------------------------------------- */
.lp-btn {
  --mx: 0px; --my: 0px;
  position: relative;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600; text-decoration: none; white-space: nowrap;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease), color 0.3s var(--ease);
}
.lp-btn.lg { padding: 15px 28px; font-size: 15px; }
.lp-btn .lp-arrow { font-style: normal; transition: transform 0.35s var(--ease); }
.lp-btn:hover .lp-arrow { transform: translateX(4px); }
.lp-btn:active { transform: translate3d(var(--mx), var(--my), 0) scale(0.96); }
.lp-btn.solid { color: #1c1206; background: linear-gradient(140deg, var(--accent-hi), var(--accent-deep)); box-shadow: 0 10px 30px rgba(231, 154, 76, 0.3), inset 0 1px 0 rgba(255, 236, 205, 0.5); }
.lp-btn.solid:hover { box-shadow: 0 14px 42px rgba(231, 154, 76, 0.45), inset 0 1px 0 rgba(255, 236, 205, 0.6); }
.lp-btn.line { color: var(--ink); border: 1px solid var(--line-2); background: rgba(243, 234, 208, 0.02); }
.lp-btn.line:hover { border-color: var(--accent); color: var(--accent-hi); box-shadow: 0 0 26px rgba(231, 154, 76, 0.16); }
.lp-btn.ghost { color: var(--ink-2); }
.lp-btn.ghost:hover { color: var(--ink); }

/* ---- Hero ---------------------------------------------------------------------------------- */
.lp-scene { min-height: 100vh; display: grid; align-content: center; }
.lp-hero {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 56px; align-items: center;
  padding-top: 40px; padding-bottom: 60px;
  perspective: 1400px;
}
.lp-hero-copy { display: grid; gap: 22px; transform: translate3d(calc(var(--mvx) * -0.4), var(--py, 0px), 0); }
.lp-title { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(44px, 7vw, 92px); line-height: 0.98; letter-spacing: -0.035em; color: var(--ink); }
.lp-title em { font-style: normal; color: transparent; background: linear-gradient(120deg, var(--accent-hi), var(--accent-deep)); -webkit-background-clip: text; background-clip: text; }
.lp-lede { margin: 0; max-width: 30em; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
.lp-hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.lp-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 14px 0 0; padding: 0; list-style: none; }
.lp-metrics li { display: grid; gap: 4px; padding: 16px 14px; border: 1px solid var(--line); border-radius: 14px; background: rgba(243, 234, 208, 0.02); }
.lp-metrics b { font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: -0.02em; color: var(--ink); }
.lp-metrics span { font-size: 12px; color: var(--muted); }

/* ---- Cinematic frame (tilt) ---------------------------------------------------------------- */
.lp-stage { transform: translate3d(calc(var(--mvx) * 0.5), var(--py, 0px), 0); transform-style: preserve-3d; }
.lp-frame {
  position: relative; padding: 14px;
  border: 1px solid var(--line-2); border-radius: 20px;
  background: var(--panel);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  box-shadow: 0 46px 100px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(243, 234, 208, 0.07);
  transform: perspective(1000px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s var(--ease);
  transform-style: preserve-3d;
}
.lp-frame-bar { display: flex; align-items: center; gap: 7px; padding: 4px 6px 12px; }
.lp-frame-bar span { width: 9px; height: 9px; border-radius: 50%; background: rgba(243, 234, 208, 0.18); }
.lp-frame-bar span:first-child { background: var(--accent); }
.lp-frame-bar b { margin-left: auto; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: var(--muted); }
.lp-clip { position: relative; aspect-ratio: 2.39 / 1; border-radius: 12px; overflow: hidden; background: linear-gradient(160deg, #131a55, #090c26); animation: lp-fade 0.7s var(--ease); transform: translateZ(24px); }
@keyframes lp-fade { from { opacity: 0; transform: translateZ(24px) scale(1.03); } to { opacity: 1; } }
.lp-clip-swatches { position: absolute; inset: 0; display: flex; }
.lp-clip-swatches span { flex: 1; opacity: 0.92; transform-origin: bottom; animation: lp-rise 0.6s var(--ease) both; animation-delay: calc(var(--i) * 90ms); }
@keyframes lp-rise { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 0.92; } }
.lp-clip-meta { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 18px 20px; background: linear-gradient(0deg, rgba(5, 7, 22, 0.85) 8%, rgba(5, 7, 22, 0.1) 60%, transparent); }
.lp-clip-tag { align-self: flex-start; font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; color: var(--accent-hi); padding: 3px 8px; border: 1px solid var(--line-2); border-radius: 6px; background: rgba(5, 7, 22, 0.4); }
.lp-clip-meta h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: -0.01em; }
.lp-clip-meta dl { display: flex; gap: 22px; margin: 2px 0 0; }
.lp-clip-meta dl div { display: grid; gap: 1px; }
.lp-clip-meta dt { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase; }
.lp-clip-meta dd { margin: 0; font-size: 13px; color: var(--ink); }
.lp-clip-tabs { display: flex; gap: 8px; padding: 12px 4px 4px; }
.lp-clip-tabs button { flex: 1; height: 4px; padding: 0; border: 0; border-radius: 999px; background: rgba(243, 234, 208, 0.12); cursor: pointer; transition: background 0.3s var(--ease); }
.lp-clip-tabs button span { display: none; }
.lp-clip-tabs button.active { background: linear-gradient(90deg, var(--accent-deep), var(--accent-hi)); }

.lp-scroll-cue { position: absolute; left: 50%; bottom: 26px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--muted); }
.lp-scroll-cue i { width: 1px; height: 26px; background: linear-gradient(var(--accent), transparent); animation: lp-cue 1.8s var(--ease-soft) infinite; }
@keyframes lp-cue { 0% { transform: scaleY(0.2); transform-origin: top; opacity: 0.3; } 50% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(0.2); transform-origin: bottom; opacity: 0.3; } }

/* ---- Marquee ------------------------------------------------------------------------------- */
.lp-marquee { position: relative; z-index: 2; margin: 0 0 20px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.lp-marquee-track { display: inline-flex; gap: 40px; white-space: nowrap; animation: lp-marquee 34s linear infinite; }
.lp-marquee-track span { display: inline-flex; align-items: center; gap: 40px; font-family: var(--mono); font-size: 14px; letter-spacing: 0.05em; color: var(--ink-2); }
.lp-marquee-track i { color: var(--accent); font-style: normal; font-size: 8px; }
@keyframes lp-marquee { to { transform: translateX(-50%); } }

/* ---- Chapters (scroll journey) ------------------------------------------------------------- */
.lp-chapters { display: grid; gap: 14px; padding-top: 40px; padding-bottom: 40px; }
.lp-chapter { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 20px; align-items: baseline; padding: 22px 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--panel); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transform: translateY(var(--py, 0px)); }
.lp-chapter-num { font-family: var(--serif); font-size: 40px; line-height: 1; color: transparent; background: linear-gradient(140deg, var(--accent-hi), var(--accent-deep)); -webkit-background-clip: text; background-clip: text; }
.lp-chapter h3 { margin: 0 0 6px; font-family: var(--serif); font-weight: 600; font-size: 24px; letter-spacing: -0.01em; }
.lp-chapter p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }

/* ---- Sections ------------------------------------------------------------------------------ */
.lp-section { padding-top: 96px; padding-bottom: 30px; perspective: 1200px; }
.lp-head { max-width: 640px; margin: 0 0 44px; display: grid; gap: 16px; }
.lp-head h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(28px, 3.8vw, 44px); line-height: 1.08; letter-spacing: -0.02em; }
.lp-head p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--ink-2); }

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

.lp-card {
  position: relative; display: grid; gap: 12px; padding: 26px 24px;
  border: 1px solid var(--line); border-radius: 18px; background: var(--panel);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.lp-card:hover { border-color: var(--line-2); box-shadow: 0 26px 60px rgba(0, 0, 0, 0.5); }
.lp-card-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; color: var(--accent-hi); }
.lp-card h3 { margin: 0; font-size: 19px; letter-spacing: -0.01em; }
.lp-card p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-2); }
.lp-card-glow { position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; opacity: 0; background: radial-gradient(300px 200px at 50% 0%, var(--accent-glow), transparent 70%); transition: opacity 0.4s var(--ease); }
.lp-card:hover .lp-card-glow { opacity: 1; }
.lp-step { padding-top: 30px; }
.lp-step-num { font-family: var(--serif); font-size: 34px; line-height: 1; color: transparent; background: linear-gradient(140deg, var(--accent-hi), var(--accent-deep)); -webkit-background-clip: text; background-clip: text; }
.lp-course-cta { margin-top: 26px; }

/* Cream-inverted chapter (like the reference's light scenes). */
.lp-invert { position: relative; color: var(--cream-ink); background: linear-gradient(180deg, #f5edd4, #ece1c0); margin: 60px 0; padding-top: 70px; padding-bottom: 70px; max-width: none; border-radius: 0; }
.lp-invert > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.lp-invert .lp-eyebrow { color: var(--accent-deep); }
.lp-invert .lp-head h2 { color: var(--cream-ink); }
.lp-invert .lp-head p { color: #4a4636; }

/* ---- Craft --------------------------------------------------------------------------------- */
.lp-craft-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 18px; }
.lp-style-card, .lp-prompt-card {
  position: relative; display: grid; gap: 16px; padding: 26px 24px;
  border: 1px solid rgba(14, 20, 64, 0.14); border-left: 2px solid var(--accent-deep); border-radius: 18px;
  background: #fbf5e4;
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.25s var(--ease);
}
.lp-style-head, .lp-prompt-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lp-style-head .lp-card-tag, .lp-prompt-head .lp-card-tag { color: var(--accent-deep); }
.lp-style-head b { font-size: 13px; color: var(--cream-ink); }
.lp-style-palette { display: flex; gap: 6px; }
.lp-style-palette span { position: relative; flex: 1; height: 54px; border-radius: 8px; border: 1px solid rgba(0, 0, 0, 0.25); transform-origin: bottom; animation: lp-rise 0.5s var(--ease) both; animation-delay: calc(var(--i) * 70ms); transition: transform 0.3s var(--ease); }
.lp-style-palette span:hover { transform: translateY(-4px) scaleY(1.06); }
.lp-style-palette small { position: absolute; left: 0; right: 0; bottom: 4px; text-align: center; font-family: var(--mono); font-size: 8px; color: rgba(255, 255, 255, 0.82); opacity: 0; transition: opacity 0.3s var(--ease); }
.lp-style-palette span:hover small { opacity: 1; }
.lp-style-look { margin: 0; font-size: 14.5px; line-height: 1.6; color: #4a4636; }
.lp-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.lp-tags span { font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(14, 20, 64, 0.18); color: #4a4636; }
.lp-prompt-text { margin: 0; padding: 16px 18px; border-radius: 12px; background: #0d1240; border: 1px solid rgba(14, 20, 64, 0.2); font-family: var(--mono); font-size: 13px; line-height: 1.7; color: #e7dcc9; white-space: pre-wrap; overflow-wrap: anywhere; }
.lp-copy { padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(14, 20, 64, 0.2); background: transparent; color: var(--cream-ink); font-size: 12px; cursor: pointer; transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background 0.3s var(--ease); }
.lp-copy:hover { border-color: var(--accent-deep); color: var(--accent-deep); }
.lp-copy.is-done { border-color: var(--accent-deep); color: var(--accent-deep); background: rgba(217, 138, 63, 0.14); }
.lp-prompt-foot { display: flex; flex-wrap: wrap; gap: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: #6b6650; }

/* ---- CTA ----------------------------------------------------------------------------------- */
.lp-cta { padding-top: 110px; padding-bottom: 0; perspective: 1200px; }
.lp-cta-inner {
  display: grid; gap: 22px; justify-items: center; text-align: center; padding: 60px 40px 70px;
  border: 1px solid var(--line); border-radius: 26px;
  background: radial-gradient(60% 120% at 50% 0%, rgba(231, 154, 76, 0.14), transparent 70%), var(--panel);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.3s var(--ease);
}
.lp-cta-inner h2 { margin: 0; font-family: var(--serif); font-weight: 600; font-size: clamp(30px, 4.6vw, 56px); line-height: 1.06; letter-spacing: -0.025em; }
.lp-cta-inner p { margin: 0; max-width: 34em; font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.lp-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; max-width: 1200px; margin: 40px auto 0; padding: 28px 40px 48px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.lp-foot-links { display: flex; gap: 22px; }
.lp-foot-links a { color: var(--ink-2); text-decoration: none; transition: color 0.3s var(--ease); }
.lp-foot-links a:hover { color: var(--accent-hi); }

/* ---- Reveal -------------------------------------------------------------------------------- */
.lp-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft); transition-delay: calc(var(--i, 0) * 70ms); }
.lp-reveal.is-in { opacity: 1; transform: none; }

/* ---- Focus / selection --------------------------------------------------------------------- */
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: rgba(231, 154, 76, 0.34); color: #fff; }

/* ---- Responsive ---------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .lp-hero { grid-template-columns: 1fr; gap: 40px; }
  .lp-grid.three { grid-template-columns: 1fr; }
  .lp-craft-grid { grid-template-columns: 1fr; }
  .lp-nav-links { display: none; }
  .lp-chapter { grid-template-columns: 56px 1fr; }
}
@media (max-width: 640px) {
  .lp-nav, .lp-hero, .lp-section, .lp-cta, .lp-chapters { padding-left: 20px; padding-right: 20px; }
  .lp-foot { padding-left: 20px; padding-right: 20px; }
  .lp-metrics { grid-template-columns: repeat(2, 1fr); }
  .lp-brand small { display: none; }
  .lp-nav-actions .lp-btn.ghost { display: none; }
}

/* ---- Reduced motion / transparency --------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .lp-reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .lp-grain, .lp-marquee-track, .lp-dot, .lp-clip, .lp-clip-swatches span, .lp-style-palette span, .lp-mark svg, .lp-scroll-cue i { animation: none !important; }
  .lp-frame, .lp-card, .lp-style-card, .lp-prompt-card, .lp-cta-inner { transform: none !important; }
  * { transition-duration: 0.001ms !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .lp-frame, .lp-card, .lp-chapter, .lp-cta-inner { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--panel-2); }
  .lp-grain { display: none; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .lp-frame, .lp-card, .lp-chapter, .lp-cta-inner { background: var(--panel-2); }
}
