/* =========================================================================
   VoiceBridge landing stylesheet
   Batch 2: page styles and interaction visuals
   Source of truth: docs/superpowers/specs/2026-08-01-landing-page-design.md (v4)
   ========================================================================= */

/* -------------------------------------------------------------------------
   1. Font faces ( reuse PWA hosted font files )
   ------------------------------------------------------------------------- */
@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/Nunito-Variable.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/fonts/JetBrainsMono-Variable.woff2") format("woff2");
}

/* -------------------------------------------------------------------------
   2. Design tokens ( spec §8 lines 491-548 )
   ------------------------------------------------------------------------- */
:root {
  /* Fonts: Nunito covers Latin subset; Chinese must have explicit fallback stack */
  --font-display: "Nunito", "MiSans", "PingFang SC", "Microsoft YaHei UI", "Noto Sans SC", sans-serif;
  --font-body: "Nunito", "MiSans", "PingFang SC", "Microsoft YaHei UI", "Noto Sans SC", sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

  /* Light sections ( product / commands / how / download ) */
  --landing-bg: #fffbf5;
  --landing-surface: #ffffff;
  --landing-surface-muted: #fff5eb;
  --landing-text: #1c1917;
  --landing-text-muted: #625b55;
  --landing-accent: #c2410c;
  --landing-accent-hover: #9a3412;
  --landing-on-accent: #fffaf5;
  --landing-border: rgba(120, 70, 35, 0.16);
  --landing-focus: #9a3412;
  --landing-radius-control: 10px;
  --landing-radius-card: 16px;
  --landing-radius-media: 32px;

  /* === Hero ( dark theme, decision B ) === */
  --hero-bg: radial-gradient(ellipse at top right,
              #2a1810 0%, #1a1310 60%, #0d0a08 100%);
  --hero-text: #f4f1ed;
  --hero-text-muted: #c1bdb7;
  --hero-accent: #f97316;
  --hero-accent-soft: #fdba74;
  --hero-accent-deep: #ea580c;
  --hero-accent-gradient: linear-gradient(135deg, #f97316, #fdba74);
  --hero-button-primary-gradient: linear-gradient(135deg, #c2410c, #9a3412);
  --hero-glow-1: rgba(234, 88, 12, 0.28);
  --hero-glow-2: rgba(249, 115, 22, 0.16);
  --hero-border: rgba(249, 115, 22, 0.2);
  --hero-surface: rgba(255, 255, 255, 0.04);
  --hero-button-secondary-bg: rgba(255, 255, 255, 0.08);
  --hero-button-secondary-border: rgba(255, 255, 255, 0.15);

  /* === Typewriter === */
  --cursor-color: #f97316;
  --cursor-width: 3px;
  --type-speed-en: 36ms;
  --type-speed-zh: 65ms;
  --type-pause: 1800ms;
  --type-clear-speed: 25ms;

  /* === Particle flow === */
  --particle-color: #f97316;
  --particle-glow: 0 0 12px rgba(249, 115, 22, 0.95), 0 0 26px rgba(249, 115, 22, 0.6), 0 0 44px rgba(249, 115, 22, 0.3);
  --particle-opacity: 0.72;

  /* === Footer ( dark ) === */
  --footer-bg: #1c1917;
  --footer-text: #c1bdb7;
  --footer-text-muted: #8a827c;
  --footer-border: rgba(255, 255, 255, 0.08);

  /* Global */
  color-scheme: light;
  font-family: var(--font-body);
  font-synthesis: none;
  font-optical-sizing: auto;
}

/* -------------------------------------------------------------------------
   3. Global reset and base styles
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--landing-bg);
  color: var(--landing-text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--landing-accent);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--landing-accent-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-family: var(--font-display);
  color: inherit;
}

p {
  margin: 0;
}

ul, ol {
  margin: 0;
}

/* -------------------------------------------------------------------------
   4. Screen-reader only utility
   ------------------------------------------------------------------------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* -------------------------------------------------------------------------
   5. Focus visible ( spec §14.5 )
   ------------------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--landing-focus);
  outline-offset: 2px;
}

/* -------------------------------------------------------------------------
   6. Navigation ( spec §7.1 lines 294-316 )
   ------------------------------------------------------------------------- */
.landing-nav {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  background: rgba(13, 10, 8, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  color: var(--hero-text);
  transition:
    background-color 220ms ease,
    color 220ms ease,
    border-color 220ms ease;
}

.landing-nav.is-scrolled {
  background: rgba(255, 251, 245, 0.85);
  border-bottom-color: var(--landing-border);
  color: var(--landing-text);
}

.landing-nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.landing-nav-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: inherit;
  text-decoration: none;
}

.landing-nav-brand:hover {
  color: inherit;
  opacity: 0.85;
}

.landing-nav-brand img {
  width: 24px;
  height: 24px;
}

.landing-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.landing-nav-links a {
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.landing-nav-links a:hover {
  color: inherit;
  opacity: 1;
}

html[lang="zh-CN"] .landing-nav-links a {
  font-weight: 600;
}

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

.landing-nav-lang {
  color: inherit;
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
  opacity: 0.85;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}

html[lang="zh-CN"] .landing-nav-lang {
  font-weight: 600;
}

.landing-nav-lang:hover {
  color: inherit;
  opacity: 1;
}

.landing-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--landing-radius-control);
  background: var(--hero-button-secondary-bg);
  border: 1px solid var(--hero-button-secondary-border);
  color: var(--hero-text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease;
}

.landing-nav.is-scrolled .landing-nav-cta {
  background: var(--landing-accent);
  border-color: var(--landing-accent);
  color: var(--landing-on-accent);
}

.landing-nav-cta:hover {
  transform: translateY(-1px);
  color: var(--hero-text);
}

.landing-nav.is-scrolled .landing-nav-cta:hover {
  color: var(--landing-on-accent);
  background: var(--landing-accent-hover);
}

.landing-nav-menu-btn {
  display: none;
  width: 40px;
  height: 40px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--hero-button-secondary-border);
  border-radius: var(--landing-radius-control);
  color: inherit;
  align-items: center;
  justify-content: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.landing-nav-menu-btn:hover {
  background: var(--hero-button-secondary-bg);
}

.landing-nav.is-scrolled .landing-nav-menu-btn {
  border-color: var(--landing-border);
}

.landing-nav-mobile-menu {
  background: var(--landing-bg);
  color: var(--landing-text);
  border-bottom: 1px solid var(--landing-border);
}

.landing-nav-mobile-menu[hidden] {
  display: none;
}

.landing-nav-mobile-menu-inner {
  padding: 16px 24px 24px;
  display: grid;
  gap: 8px;
}

.landing-nav-mobile-menu a {
  color: var(--landing-text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  padding: 12px 8px;
  border-radius: var(--landing-radius-control);
}

.landing-nav-mobile-menu a:hover {
  background: var(--landing-surface-muted);
  color: var(--landing-text);
}

/* -------------------------------------------------------------------------
   7. Hero ( spec §7.2 lines 317-376 )
   ------------------------------------------------------------------------- */
.section-hero {
  position: relative;
  min-height: calc(100vh - 68px);
  min-height: calc(100dvh - 68px);
  background: var(--hero-bg);
  color: var(--hero-text);
  overflow: hidden;
  isolation: isolate;
}

/* Glow orbs ( z-index 1 ) */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  filter: blur(100px);
}

.hero-glow-1 {
  width: 480px;
  height: 480px;
  background: var(--hero-glow-1);
  filter: blur(100px);
  top: -120px;
  right: -100px;
}

.hero-glow-2 {
  width: 360px;
  height: 360px;
  background: var(--hero-glow-2);
  filter: blur(110px);
  bottom: -100px;
  left: -80px;
}

/* Particle container ( z-index 2 ) */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  /* Restrict particles to mid-right area so they do not cross H1 and CTA */
  -webkit-mask: linear-gradient(
    to right,
    transparent 0%,
    transparent 18%,
    rgba(0, 0, 0, 0.35) 32%,
    rgba(0, 0, 0, 0.85) 55%,
    #000 75%
  );
  mask: linear-gradient(
    to right,
    transparent 0%,
    transparent 18%,
    rgba(0, 0, 0, 0.35) 32%,
    rgba(0, 0, 0, 0.85) 55%,
    #000 75%
  );
}

.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--particle-color);
  border-radius: 50%;
  box-shadow: var(--particle-glow);
  opacity: var(--particle-opacity);
  pointer-events: none;
  will-change: transform, opacity;
  animation: particle-flow 8s linear infinite;
}

@keyframes particle-flow {
  0% {
    transform: translate3d(0, 0, 0);
    opacity: 0;
  }
  10% {
    opacity: var(--particle-opacity);
  }
  85% {
    opacity: var(--particle-opacity);
  }
  100% {
    transform: translate3d(var(--tx, 200px), var(--ty, -120px), 0);
    opacity: 0;
  }
}

/* Hero content ( z-index 3 ) */
.hero-inner {
  position: relative;
  z-index: 3;
  max-width: 1240px;
  min-height: calc(100vh - 68px);
  min-height: calc(100dvh - 68px);
  margin: 0 auto;
  padding: 88px 24px 96px;
}

.hero-content {
  max-width: 640px;
}

.hero-h1 {
  font-family: var(--font-display);
  font-size: clamp(48px, 4.8vw, 68px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
  margin: 0 0 24px;
  color: var(--hero-text);
  text-wrap: balance;
}

html[lang="zh-CN"] .hero-h1 {
  font-size: clamp(52px, 6vw, 76px);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.hero-h1-line {
  display: block;
}

.hero-h1-accent {
  background: var(--hero-accent-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Typewriter */
.hero-typewriter {
  min-height: 96px;       /* reserve height for longest English copy (3 lines) */
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.6;
  color: var(--hero-text);
  margin-bottom: 28px;
  font-weight: 400;
}

html[lang="zh-CN"] .hero-typewriter {
  min-height: 84px;
  line-height: 1.7;
}

.typewriter-text {
  white-space: pre-wrap;
  word-break: break-word;
}

.typewriter-cursor {
  display: inline-block;
  width: var(--cursor-width);
  height: 1.1em;
  background: var(--cursor-color);
  vertical-align: text-bottom;
  margin-left: 2px;
  animation: cursor-blink 900ms steps(1) infinite;
}

@keyframes cursor-blink {
  0%, 50% {
    opacity: 1;
  }
  51%, 100% {
    opacity: 0;
  }
}

/* CTAs */
.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-cta-primary,
.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  padding: 14px 28px;
  border-radius: var(--landing-radius-control);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.hero-cta-primary {
  background: var(--hero-button-primary-gradient);
  color: #fffaf5;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.32);
}

.hero-cta-primary:hover {
  color: #fffaf5;
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(234, 88, 12, 0.4);
}

.hero-cta-secondary {
  background: var(--hero-button-secondary-bg);
  border: 1px solid var(--hero-button-secondary-border);
  color: var(--hero-text);
}

.hero-cta-secondary:hover {
  color: var(--hero-text);
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.12);
}

/* Hero media */
.hero-media {
  position: relative;
}

.hero-media-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--hero-surface);
  border: 1px solid var(--hero-border);
  border-radius: var(--landing-radius-media);
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
}

.hero-carousel-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: opacity 900ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-carousel-slide.is-active {
  opacity: 1;
}

.hero-carousel-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 4;
}

.hero-carousel-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 300ms ease, transform 300ms ease;
}

.hero-carousel-dot.is-active {
  background: var(--particle-color);
  transform: scale(1.35);
}

/* -------------------------------------------------------------------------
   8. Generic section styles ( spec §8.1 lines 578-580 )
   ------------------------------------------------------------------------- */
.section {
  background: var(--landing-bg);
  color: var(--landing-text);
  padding: 112px 24px;
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-h2 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
  color: var(--landing-text);
  margin-bottom: 16px;
}

html[lang="zh-CN"] .section-h2 {
  font-size: clamp(30px, 3.8vw, 46px);
  font-weight: 700;
  line-height: 1.2;
}

.section-lead {
  font-size: 18px;
  line-height: 1.65;
  color: var(--landing-text-muted);
  max-width: 60ch;
}

html[lang="zh-CN"] .section-lead {
  line-height: 1.7;
  max-width: 32em;
}

/* Title to content spacing */
.section-product .product-grid,
.section-commands .commands-grid,
.section-how .how-steps,
.section-download .download-platforms {
  margin-top: 56px;
}

.section-commands .commands-grid {
  margin-top: 48px;
}

/* -------------------------------------------------------------------------
   9. Product capability ( spec §7.3 lines 382-392, §13.2 lines 758-761 )
   ------------------------------------------------------------------------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.product-main,
.product-aux {
  background: var(--landing-surface);
  border: 1px solid var(--landing-border);
  border-radius: var(--landing-radius-card);
  padding: 32px;
  box-shadow: 0 2px 12px rgba(200, 120, 50, 0.08);
}

.product-main {
  grid-column: span 7;
}

.product-side {
  grid-column: span 5;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.product-media-frame {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 20px;
  background: #120d0a;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
}

.product-media-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* -------------------------------------------------------------------------
   10. Product story showcase
   ------------------------------------------------------------------------- */
.section-showcase {
  padding: 88px 24px;
  background:
    radial-gradient(circle at 78% 20%, rgba(234, 88, 12, 0.12), transparent 34%),
    #100c0a;
  color: var(--hero-text);
}

.showcase-figure {
  max-width: 1200px;
  margin: 0 auto;
}

.showcase-image {
  width: 100%;
  height: auto;
  border: 1px solid rgba(249, 115, 22, 0.2);
  border-radius: var(--landing-radius-media);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.34);
}

.showcase-caption {
  max-width: 62ch;
  margin: 20px auto 0;
  color: var(--hero-text-muted);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

.product-card-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--landing-text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-card-body {
  color: var(--landing-text-muted);
  font-size: 16px;
  line-height: 1.65;
}

.product-aux-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--landing-accent);
  margin-bottom: 8px;
}

html[lang="zh-CN"] .product-aux-eyebrow {
  text-transform: none;
  letter-spacing: 0.02em;
}

/* -------------------------------------------------------------------------
   11. Commands ( spec §7.4 lines 396-416, §13.3 lines 763-766 )
   ------------------------------------------------------------------------- */
.commands-grid {
  display: grid;
  grid-template-columns: 40% 60%;
  gap: 60px;
  align-items: start;
}

.commands-screenshot {
  position: sticky;
  top: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.commands-screenshot-img {
  width: 100%;
  border-radius: var(--landing-radius-media);
  border: 1px solid var(--landing-border);
  box-shadow: 0 4px 18px rgba(200, 120, 50, 0.1);
}

.commands-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 16px;
}

.commands-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--landing-surface);
  border: 1px solid var(--landing-border);
  border-radius: var(--landing-radius-card);
}

.commands-item-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--landing-surface-muted);
  border-radius: 10px;
  color: var(--landing-accent);
}

.commands-item-body {
  min-width: 0;
}

.commands-item-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--landing-text);
  margin-bottom: 4px;
}

.commands-item-source {
  font-size: 14px;
  color: var(--landing-text-muted);
}

.commands-footnote {
  margin-top: 32px;
  font-size: 15px;
  color: var(--landing-text-muted);
}

/* -------------------------------------------------------------------------
   12. Developer story
   ------------------------------------------------------------------------- */
.section-developer {
  background: #100c0a;
  color: var(--hero-text);
  padding-bottom: 28px;
}

.developer-figure {
  margin: 0;
}

.developer-image {
  width: min(100%, 1440px);
  height: auto;
  margin: 0 auto;
}

.developer-caption {
  max-width: 62ch;
  margin: 22px auto 0;
  padding: 0 24px;
  color: var(--hero-text-muted);
  font-size: 15px;
  line-height: 1.6;
  text-align: center;
}

/* -------------------------------------------------------------------------
   13. How it works ( spec §7.5 lines 420-430, §13.4 lines 769-771 )
   ------------------------------------------------------------------------- */
.how-steps {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  counter-reset: how-step;
}

.how-step {
  display: flex;
  flex-direction: column;
}

.how-step-number {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 800;
  color: var(--landing-accent);
  line-height: 1;
  margin-bottom: 12px;
}

.how-step-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--landing-text);
  margin-bottom: 8px;
  line-height: 1.3;
}

.how-step-body {
  color: var(--landing-text-muted);
  font-size: 16px;
  line-height: 1.65;
}

/* -------------------------------------------------------------------------
   12. Download ( spec §7.6 lines 434-472, §13.4 lines 769-771 )
   ------------------------------------------------------------------------- */
.download-platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.download-platform {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 24px;
  background: var(--landing-surface);
  border: 2px solid var(--landing-border);
  border-radius: var(--landing-radius-card);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  color: var(--landing-text);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background-color 0.2s ease,
    color 0.2s ease;
  white-space: nowrap;
}

.download-platform:hover {
  color: var(--landing-text);
  border-color: var(--landing-accent);
  transform: translateY(-2px);
}

.download-platform.is-recommended {
  border-color: var(--landing-accent);
  background: var(--landing-accent);
  color: var(--landing-on-accent);
}

.download-platform.is-recommended:hover {
  color: var(--landing-on-accent);
  background: var(--landing-accent-hover);
  border-color: var(--landing-accent-hover);
}

.download-platform.is-disabled {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

.download-platform-meta {
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 12px;
  opacity: 0.75;
  margin-left: 4px;
}

.download-platform-status {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 12px;
  opacity: 0.7;
  margin-left: 4px;
}

.download-note {
  margin-top: 24px;
  font-size: 14px;
  color: var(--landing-text-muted);
}

/* -------------------------------------------------------------------------
   13. Footer ( spec §7.7 lines 475-483 )
   ------------------------------------------------------------------------- */
.landing-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 64px 24px 48px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}

.footer-col-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

html[lang="zh-CN"] .footer-col-title {
  letter-spacing: 0.04em;
  text-transform: none;
  font-size: 14px;
}

.footer-col-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 8px;
}

.footer-col-list a {
  color: var(--footer-text);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-col-list a:hover {
  color: #fff;
}

/* =========================================================================
   14. Responsive breakpoints
   ========================================================================= */

/* --- Wide ( >= 1440px ): minor tuning --- */
@media (min-width: 1440px) {
  .hero-inner {
    padding-top: 104px;
    padding-bottom: 112px;
  }
  .section {
    padding: 128px 24px;
  }
}

/* --- Hero double-column kicks in at >= 1080px --- */
@media (min-width: 1080px) {
  .hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
  }

  .hero-content {
    max-width: none;
  }
}

@media (max-width: 1079px) {
  /* Hero single column, text above media */
  .hero-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 48px;
    padding-top: 80px;
    padding-bottom: 80px;
  }

  .hero-content {
    max-width: 720px;
  }
}

/* --- Tablet ( 640px - 1023px ) --- */
@media (max-width: 1023px) {
  /* Hide desktop nav links, show mobile menu button */
  .landing-nav-links {
    display: none;
  }

  .landing-nav-menu-btn {
    display: inline-flex;
  }

  .landing-nav-actions {
    gap: 10px;
  }

  .landing-nav-cta {
    display: none;
  }

  /* Product: main full width, aux double column */
  .product-main {
    grid-column: span 12;
  }

  .product-side {
    grid-column: span 12;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .product-aux {
    flex: 1 1 calc(50% - 12px);
    min-width: 260px;
  }

  /* Commands: screenshot on top, items two columns */
  .commands-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .commands-screenshot {
    position: static;
    max-width: 460px;
    margin: 0 auto;
  }

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

  /* Section padding */
  .section {
    padding: 80px 24px;
  }

  .section-showcase {
    padding: 64px 24px;
  }
}

/* --- Mobile ( < 640px ) --- */
@media (max-width: 639px) {
  body {
    font-size: 16px;
  }

  .landing-nav-inner {
    height: 60px;
    padding: 0 16px;
    gap: 12px;
  }

  .landing-nav-brand {
    font-size: 15px;
  }

  .landing-nav-lang {
    font-size: 13px;
  }

  .hero-inner {
    min-height: calc(100vh - 60px);
    min-height: calc(100dvh - 60px);
    padding: 64px 16px 72px;
    gap: 36px;
  }

  /* Mobile media: keep 16:9 consistent with cover mode */
  .hero-media-frame {
    aspect-ratio: 16 / 9;
  }

  .hero-typewriter {
    min-height: 88px;
    font-size: 16px;
  }

  html[lang="zh-CN"] .hero-typewriter {
    min-height: 76px;
  }

  /* CTA: full rows if needed */
  .hero-cta-primary,
  .hero-cta-secondary {
    flex: 1 1 auto;
    justify-content: center;
  }

  /* Section padding */
  .section {
    padding: 64px 16px;
  }

  .section-showcase {
    padding: 48px 16px;
  }

  .showcase-image {
    border-radius: 18px;
  }

  .showcase-caption {
    margin-top: 16px;
    font-size: 14px;
  }

  .section-developer {
    padding-bottom: 22px;
  }

  .developer-caption {
    margin-top: 16px;
    padding: 0 16px;
    font-size: 14px;
  }

  /* Product: strict single column */
  .product-main,
  .product-side,
  .product-aux {
    grid-column: span 12;
  }

  .product-side {
    flex-direction: column;
  }

  .product-main,
  .product-aux {
    padding: 24px;
  }

  /* Commands: strict single column */
  .commands-grid {
    gap: 24px;
  }

  .commands-screenshot {
    max-width: 360px;
  }

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

  /* How: vertical three steps */
  .how-steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  /* Download: stack */
  .download-platforms {
    flex-direction: column;
    align-items: stretch;
  }

  .download-platform {
    justify-content: center;
  }

  /* Footer: single column */
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* --- Small phone ( <= 375px ): prevent CTA wrap --- */
@media (max-width: 375px) {
  .hero-cta-primary,
  .hero-cta-secondary {
    font-size: 14px;
    padding: 12px 20px;
  }
}

/* =========================================================================
   15. Reduced motion ( spec §9.2 lines 605-612 )
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .hero-glow {
    animation: none;
  }

  .hero-particles {
    display: none;
  }

  .hero-particle {
    animation: none;
  }

  .typewriter-cursor {
    animation: none;
    opacity: 0;
  }

  /* Hide animated typewriter; reveal static fallback text */
  .hero-typewriter {
    display: none;
  }

  .sr-only.hero-fallback {
    position: static;
    width: auto;
    height: auto;
    margin: 0;
    padding: 0;
    overflow: visible;
    clip: auto;
    white-space: normal;
    border: 0;
    display: block;
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.6;
    color: var(--hero-text);
    margin-bottom: 28px;
    min-height: 96px;
  }

  html[lang="zh-CN"] .sr-only.hero-fallback {
    min-height: 84px;
    line-height: 1.7;
  }
}

/* =========================================================================
   16. Phone mockup + App UI replica ( code-rendered, no screenshots )
   ========================================================================= */

/* --- App design tokens ( scoped to phone mockup only ) --- */
.phone-mockup {
  /* Colors matching PWA style.css */
  --app-bg-page: #fffbf5;
  --app-bg-card: #ffffff;
  --app-bg-soft: #fff5eb;
  --app-text-primary: #1c1917;
  --app-text-secondary: #78716c;
  --app-text-muted: #7c756f;
  --app-text-placeholder: #8a827c;
  --app-border: rgba(0, 0, 0, 0.06);
  --app-border-strong: rgba(0, 0, 0, 0.1);
  --app-accent: #e8793a;
  --app-accent-deep: #c2410c;
  --app-accent-soft: #fff5eb;
  --app-accent-gradient: linear-gradient(135deg, #f97316, #ea580c);
  --app-accent-text: #ffffff;
  --app-accent-dim: rgba(255, 140, 66, 0.15);
  --app-accent-glow: rgba(232, 121, 58, 0.35);
  --app-danger: #ef4444;
  --app-shadow-card: 0 2px 12px rgba(200, 120, 50, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04);
  --app-shadow-accent: 0 2px 10px rgba(232, 121, 58, 0.3);
  --app-shadow-accent-lg: 0 4px 16px rgba(232, 121, 58, 0.35);
  --app-radius-lg: 18px;
  --app-radius-md: 14px;
  --app-radius-sm: 11px;
  --app-gap: 5px;
  --app-font-sans: "Nunito", "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- Phone outer frame --- */
.phone-mockup {
  width: 280px;
  max-width: 100%;
  aspect-ratio: 9 / 19.5;
  margin: 0 auto;
  background: #1c1917;
  border-radius: 36px;
  padding: 8px;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.08),
    0 20px 60px rgba(0, 0, 0, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.12);
  position: relative;
  font-family: var(--app-font-sans);
  box-sizing: border-box;
}

/* Dynamic island */
.phone-mockup::before {
  content: "";
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 18px;
  background: #000;
  border-radius: 999px;
  z-index: 10;
  pointer-events: none;
}

/* Screen container */
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: linear-gradient(165deg, #fffbf5 0%, #fff5eb 40%, #fef7f0 100%);
  display: flex;
  flex-direction: column;
  gap: var(--app-gap);
  padding: 28px 7px 7px;
  font-size: 11px;
  color: var(--app-text-primary);
  position: relative;
}

/* Larger variant for Product section */
.phone-mockup-lg {
  width: 300px;
}

/* --- App Header --- */
.app-mockup-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  flex: 0 0 auto;
}

.app-mockup-brand-mark {
  width: 22px;
  height: 22px;
  border-radius: 22.37%;
  display: grid;
  place-items: center;
}

.app-mockup-brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 22.37%;
}

.app-mockup-brand {
  font-size: 14px;
  font-weight: 800;
  color: var(--app-text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-mockup-header-btn {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--app-text-secondary);
}

.app-mockup-header-btn svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Device Pill --- */
.app-mockup-device-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: var(--app-radius-lg);
  background: var(--app-bg-card);
  box-shadow: var(--app-shadow-card);
  flex: 0 0 auto;
  min-height: 26px;
}

.app-mockup-device-icon {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--app-accent-gradient);
  display: grid;
  place-items: center;
  color: var(--app-accent-text);
  box-shadow: var(--app-shadow-accent);
  flex: 0 0 auto;
}

.app-mockup-device-icon svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-mockup-status-dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--app-accent);
  box-shadow: 0 0 4px rgba(232, 121, 58, 0.5);
  flex: 0 0 auto;
}

.app-mockup-status-badge {
  font-size: 9px;
  font-weight: 700;
  color: var(--app-accent-deep);
  background: var(--app-accent-soft);
  padding: 1px 5px;
  border-radius: 999px;
  white-space: nowrap;
}

.app-mockup-toggle {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: auto;
  font-size: 8px;
  font-weight: 700;
  color: var(--app-text-secondary);
}

.app-mockup-toggle-track {
  width: 18px;
  height: 10px;
  border-radius: 999px;
  background: var(--app-accent);
  position: relative;
  flex: 0 0 auto;
}

.app-mockup-toggle-track::after {
  content: "";
  position: absolute;
  top: 1px;
  right: 1px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fff;
}

/* --- Input Card --- */
.app-mockup-input-card {
  background: var(--app-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--app-radius-lg);
  box-shadow: var(--app-shadow-card);
  padding: 7px 9px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1 1 auto;
  min-height: 0;
}

.app-mockup-text-input {
  font-size: 10px;
  line-height: 1.4;
  color: var(--app-text-placeholder);
  overflow: hidden;
  flex: 1 1 auto;
}

.app-mockup-input-footer {
  display: flex;
  justify-content: flex-end;
  font-size: 8px;
  font-weight: 700;
  color: var(--app-text-muted);
  flex: 0 0 auto;
}

/* --- Primary Actions ( recording row ) --- */
.app-mockup-primary-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 0 0 auto;
}

.app-mockup-side-btn {
  flex: 1 1 0;
  max-width: 65px;
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 3px 0;
  border: none;
  border-radius: var(--app-radius-sm);
  background: var(--app-bg-card);
  color: var(--app-text-secondary);
  font-size: 8px;
  font-weight: 700;
  box-shadow: var(--app-shadow-card);
}

.app-mockup-side-btn svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-mockup-record-btn {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  border: 0;
  border-radius: 999px;
  background: var(--app-accent-gradient);
  color: var(--app-accent-text);
  box-shadow: var(--app-shadow-accent-lg);
  flex: 0 0 auto;
}

.app-mockup-record-icon {
  width: 16px;
  height: 16px;
}

.app-mockup-record-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-mockup-record-label {
  font-size: 8px;
  font-weight: 800;
  line-height: 1;
}

/* --- Utility Keys --- */
.app-mockup-utility-keys {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex: 0 0 auto;
}

.app-mockup-util-btn {
  flex: 1 1 0;
  max-width: 56px;
  min-height: 28px;
  border-radius: var(--app-radius-sm);
  background: var(--app-bg-card);
  border: none;
  color: var(--app-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 8px;
  font-weight: 700;
  box-shadow: var(--app-shadow-card);
}

.app-mockup-util-btn svg {
  width: 10px;
  height: 10px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- Library Panel --- */
.app-mockup-library {
  flex: 1 1 auto;
  min-height: 0;
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius-lg);
  background: var(--app-bg-card);
  box-shadow: var(--app-shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.app-mockup-library-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  border-bottom: 1px solid var(--app-border);
  flex: 0 0 auto;
  overflow: hidden;
}

.app-mockup-tab {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 3px 7px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--app-text-secondary);
  font-size: 8px;
  font-weight: 700;
  white-space: nowrap;
}

.app-mockup-tab.active {
  background: var(--app-accent);
  color: var(--app-accent-text);
  box-shadow: 0 1px 4px rgba(232, 121, 58, 0.3);
}

.app-mockup-tab-count {
  font-size: 7px;
  font-weight: 800;
  min-width: 10px;
  height: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  padding: 0 2px;
}

.app-mockup-tab:not(.active) .app-mockup-tab-count {
  background: var(--app-accent-dim);
  color: var(--app-accent);
}

/* Command grid */
.app-mockup-cmd-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 3px;
  padding: 4px 5px;
  flex: 1 1 auto;
  overflow: hidden;
  align-content: start;
}

.app-mockup-cmd-btn {
  min-height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: none;
  border-radius: 999px;
  background: var(--app-bg-card);
  color: var(--app-text-secondary);
  font-size: 8px;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  box-shadow: var(--app-shadow-card);
}

.app-mockup-cmd-btn.recent {
  background: rgba(253, 110, 158, 0.12);
  color: #F53F80;
}

.app-mockup-cmd-btn.slash {
  background: var(--app-accent-dim);
  color: var(--app-accent);
}

/* Library-only variant (Commands section) */
.phone-mockup-md {
  width: 260px;
}

.phone-mockup .library-only {
  padding: 28px 7px 7px;
}

.phone-mockup .library-only .app-mockup-library {
  flex: 1 1 auto;
}

.phone-mockup .library-only .app-mockup-cmd-grid {
  gap: 4px;
  padding: 6px 7px;
}

.phone-mockup .library-only .app-mockup-cmd-btn {
  min-height: 24px;
  font-size: 9px;
}

.phone-mockup .library-only .app-mockup-tab {
  font-size: 9px;
  padding: 4px 8px;
}

.phone-mockup .library-only .app-mockup-library-tabs {
  padding: 5px 7px;
}

/* --- Responsive --- */
@media (max-width: 1023px) {
  .phone-mockup-lg {
    width: 260px;
  }
  .phone-mockup-md {
    width: 240px;
  }
}

@media (max-width: 639px) {
  .phone-mockup-lg {
    width: 230px;
  }
  .phone-mockup-md {
    width: 220px;
  }
}

/* ==========================================================================
   SECTION: Pricing
   ========================================================================== */
.section-pricing {
  background: var(--landing-bg);
  color: var(--landing-text);
}

.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 56px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.pricing-card {
  position: relative;
  background: var(--landing-surface);
  border: 1px solid var(--landing-border);
  border-radius: var(--landing-radius-card);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 12px rgba(200, 120, 50, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.pricing-card:hover {
  box-shadow: 0 8px 32px rgba(200, 120, 50, 0.16);
  transform: translateY(-2px);
}

.pricing-card-featured {
  border-color: var(--landing-accent);
  border-width: 2px;
  box-shadow: 0 8px 32px rgba(194, 65, 12, 0.16);
}

.pricing-card-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--hero-button-primary-gradient);
  color: var(--landing-on-accent);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-card-name {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--landing-text);
}

.pricing-card-price {
  font-family: var(--font-display);
  font-size: 48px;
  font-weight: 900;
  line-height: 1;
  margin: 0 0 28px;
  color: var(--landing-text);
}

.pricing-card-period {
  font-size: 16px;
  font-weight: 500;
  color: var(--landing-text-muted);
  margin-left: 4px;
}

.pricing-card-features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  flex: 1;
}

.pricing-card-features li {
  font-size: 15px;
  line-height: 1.6;
  color: var(--landing-text-muted);
  padding: 6px 0;
  padding-left: 24px;
  position: relative;
}

.pricing-card-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 16px;
  height: 10px;
  border-left: 2px solid var(--landing-accent);
  border-bottom: 2px solid var(--landing-accent);
  transform: rotate(-45deg);
}

.pricing-card-cta {
  display: block;
  text-align: center;
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--landing-radius-control);
  border: 1.5px solid var(--landing-border);
  background: transparent;
  color: var(--landing-text);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pricing-card-cta:hover {
  border-color: var(--landing-accent);
  background: var(--landing-surface-muted);
}

.pricing-card-cta-primary {
  background: var(--hero-button-primary-gradient);
  color: var(--landing-on-accent);
  border: none;
  box-shadow: 0 8px 24px rgba(234, 88, 12, 0.32);
}

.pricing-card-cta-primary:hover {
  background: linear-gradient(135deg, #9a3412, #7c2d12);
}

.pricing-footnote {
  text-align: center;
  font-size: 14px;
  color: var(--landing-text-muted);
  margin-top: 32px;
}

/* --- Pricing Responsive --- */
@media (max-width: 1023px) {
  .pricing-grid {
    gap: 24px;
  }
  .pricing-card {
    padding: 28px 22px;
  }
  .pricing-card-price {
    font-size: 40px;
  }
}

@media (max-width: 639px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 40px;
  }
  .pricing-card {
    padding: 24px 20px;
  }
  .pricing-card-price {
    font-size: 36px;
  }
  .pricing-card-featured {
    order: -1;
  }
}
