/* ==========================================================================
   StillAster (静星) — Editorial Tech Design System (Zero AI Clichés)
   Free Open-Source Typography: Newsreader + Noto Serif SC + IBM Plex Sans
   ========================================================================== */

:root {
  /* Light Theme (Default) — Warm Archival Paper, Deep Ink & Restrained Astral Blue */
  --bg: #F8F7F4;
  --bg-elevated: #FFFFFF;
  --bg-subtle: #EFECE6;
  --bg-glass-scrolled: rgba(248, 247, 244, 0.88);

  --ink: #131418;
  --ink-secondary: #4C505B;
  --ink-muted: #767B86;

  --border: rgba(19, 20, 24, 0.09);
  --border-strong: rgba(19, 20, 24, 0.18);
  --border-faint: rgba(19, 20, 24, 0.05);
  --specular-top: rgba(255, 255, 255, 0.92);

  /* Primary Button — Architectural Ink (Timeless, High-Craft, Non-Template) */
  --btn-primary-bg: #14161B;
  --btn-primary-hover: #252934;
  --btn-primary-ink: #FAF9F6;

  /* Single Restrained Optical Accent — Astral Slate Blue */
  --accent: #2D4D8E;
  --accent-hover: #1E386E;
  --accent-soft: rgba(45, 77, 142, 0.07);
  --accent-medium: rgba(45, 77, 142, 0.15);
  --accent-border: rgba(45, 77, 142, 0.24);

  --spotlight: rgba(19, 20, 24, 0.032);
  --watermark-color: rgba(19, 20, 24, 0.04);

  /* Restrained Semantic Status Dots */
  --status-live: #16764D;
  --status-live-bg: rgba(22, 118, 77, 0.085);
  --status-beta: #2D4D8E;
  --status-beta-bg: rgba(45, 77, 142, 0.085);
  --status-upcoming: #6B707B;
  --status-upcoming-bg: rgba(107, 112, 123, 0.09);

  /* Optical Elevation Shadows */
  --shadow-sm:
    0 1px 2px rgba(19, 20, 24, 0.03),
    0 4px 12px rgba(19, 20, 24, 0.025),
    inset 0 1px 0 var(--specular-top);
  --shadow-md:
    0 2px 6px rgba(19, 20, 24, 0.04),
    0 14px 36px rgba(19, 20, 24, 0.065),
    inset 0 1px 0 var(--specular-top);
  --shadow-plate:
    0 2px 6px rgba(10, 12, 20, 0.12),
    0 24px 64px rgba(10, 12, 20, 0.22),
    0 0 0 1px rgba(19, 20, 24, 0.12);

  /* 100% Free Open-Source Typography (SIL OFL — Google Fonts) */
  --font-serif: "Newsreader", "Noto Serif SC", Georgia, "Songti SC", "STSong", "SimSun", serif;
  --font-sans: "IBM Plex Sans", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout & Radii — Architectural Precision */
  --container: 1140px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Motion Curves */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.32, 0.64, 1);
  --ease-std: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  /* Dark Theme — Velvet Night Sky, Crisp Silver & Starlight Blue */
  --bg: #08090D;
  --bg-elevated: #0E1017;
  --bg-subtle: #141721;
  --bg-glass-scrolled: rgba(8, 9, 13, 0.86);

  --ink: #F2F3F5;
  --ink-secondary: #9CA3B2;
  --ink-muted: #6C7383;

  --border: rgba(242, 243, 245, 0.085);
  --border-strong: rgba(242, 243, 245, 0.18);
  --border-faint: rgba(242, 243, 245, 0.045);
  --specular-top: rgba(255, 255, 255, 0.06);

  --btn-primary-bg: #F2F3F5;
  --btn-primary-hover: #FFFFFF;
  --btn-primary-ink: #08090D;

  --accent: #8AB0F8;
  --accent-hover: #AAC6FC;
  --accent-soft: rgba(138, 176, 248, 0.10);
  --accent-medium: rgba(138, 176, 248, 0.18);
  --accent-border: rgba(138, 176, 248, 0.26);

  --spotlight: rgba(255, 255, 255, 0.04);
  --watermark-color: rgba(242, 243, 245, 0.032);

  --status-live: #4CC38A;
  --status-live-bg: rgba(76, 195, 138, 0.11);
  --status-beta: #8AB0F8;
  --status-beta-bg: rgba(138, 176, 248, 0.12);
  --status-upcoming: #8C93A4;
  --status-upcoming-bg: rgba(140, 147, 164, 0.12);

  --shadow-sm:
    0 1px 2px rgba(0, 0, 0, 0.35),
    0 6px 20px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 var(--specular-top);
  --shadow-md:
    0 4px 14px rgba(0, 0, 0, 0.45),
    0 20px 48px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 var(--specular-top);
  --shadow-plate:
    0 8px 28px rgba(0, 0, 0, 0.55),
    0 32px 84px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(255, 255, 255, 0.11);
}

/* Smooth Circular Theme Transition via View Transitions API */
::view-transition-old(root),
::view-transition-new(root) {
  animation: none;
  mix-blend-mode: normal;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.66;
  overflow-x: clip;
  transition: background-color 320ms var(--ease-std), color 320ms var(--ease-std);
}

html[lang^="zh"] body {
  line-height: 1.82;
}

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

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection {
  background: var(--accent-soft);
  color: var(--accent);
}

.skip-link {
  position: absolute;
  top: -52px;
  left: 16px;
  z-index: 300;
  padding: 9px 15px;
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  border-radius: var(--radius-sm);
  transition: top 180ms var(--ease-out);
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
}

.mono { font-family: var(--font-mono); }

/* Language cross-fade */
body.is-lang-switching main {
  opacity: 0.45;
  transform: translateY(2px);
}
main {
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
}

/* ==========================================================================
   Scroll-Triggered & Hero Editorial Choreography (Crisp, Zero Tacky Blur)
   ========================================================================== */
html.js-motion .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 700ms var(--ease-out) var(--delay, 0ms),
    transform 760ms var(--ease-out) var(--delay, 0ms);
  will-change: opacity, transform;
}

html.js-motion .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

html.js-motion .hero-stagger {
  opacity: 0;
  transform: translateY(14px);
  animation: heroEnter 820ms var(--ease-out) var(--delay, 0ms) forwards;
}

@keyframes heroEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle Optical Spotlight on Surfaces */
.spotlight-card {
  position: relative;
  --mx: 50%;
  --my: 50%;
  isolation: isolate;
}

.spotlight-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    380px circle at var(--mx) var(--my),
    var(--spotlight),
    transparent 68%
  );
  opacity: 0;
  transition: opacity 320ms var(--ease-out);
  pointer-events: none;
  z-index: 1;
}

.spotlight-card:hover::before {
  opacity: 1;
}

.spotlight-card > * {
  position: relative;
  z-index: 2;
}

/* ==========================================================================
   Header, Scroll Progress Filament & Sliding Language Switch
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 280ms var(--ease-out), border-color 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
}

.site-header.is-scrolled {
  background: var(--bg-glass-scrolled);
  backdrop-filter: blur(16px) saturate(135%);
  -webkit-backdrop-filter: blur(16px) saturate(135%);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.025);
}

[data-theme="dark"] .site-header.is-scrolled {
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.35);
}

.scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--accent) 40%, var(--accent));
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
  transition: opacity 240ms var(--ease-out);
  pointer-events: none;
}

.site-header.is-scrolled .scroll-progress {
  opacity: 0.85;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 72px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-weight: 500;
  letter-spacing: -0.02em;
  font-size: 16.5px;
  flex-shrink: 0;
}

/* Real Star Pinpoint & Diffraction Cross Logo Mark */
.brand-mark {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-mark .mark-ring {
  stroke: var(--ink);
  stroke-opacity: 0.16;
  transition: stroke-opacity 280ms var(--ease-out);
}

.brand-mark .mark-rays {
  stroke: var(--ink);
  stroke-opacity: 0.78;
  transform-origin: 16px 16px;
  transition: transform 520ms var(--ease-out), stroke-opacity 280ms var(--ease-out);
}

.brand-mark .mark-core {
  fill: var(--ink);
}

.brand-mark .mark-halo {
  fill: var(--accent);
  fill-opacity: 0.22;
  transition: fill-opacity 280ms var(--ease-out);
}

.brand-link:hover .mark-rays {
  transform: rotate(90deg);
  stroke-opacity: 1;
}

.brand-link:hover .mark-ring {
  stroke-opacity: 0.34;
}

.brand-link:hover .mark-halo {
  fill-opacity: 0.42;
}

.brand-wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 12px;
  font-weight: 400;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
}

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

.nav-links a {
  padding: 7px 13px;
  font-size: 14px;
  font-weight: 450;
  color: var(--ink-secondary);
  border-radius: var(--radius-sm);
  transition: color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}

.nav-links a:hover,
.nav-links a[aria-current="page"],
.nav-links a.is-active {
  color: var(--ink);
  background: var(--bg-subtle);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Sliding Language Switcher */
.lang-switch {
  position: relative;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 3px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.lang-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: calc(50% - 3px);
  height: calc(100% - 6px);
  border-radius: var(--radius-pill);
  background: var(--bg-elevated);
  border: 1px solid var(--border-faint);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.07);
  transition: transform 340ms var(--ease-spring);
  pointer-events: none;
}

.lang-switch[data-active="zh"] .lang-thumb {
  transform: translateX(100%);
}

.lang-btn {
  position: relative;
  z-index: 1;
  border: 0;
  background: transparent;
  min-width: 42px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  border-radius: var(--radius-pill);
  transition: color 220ms var(--ease-out);
}

.lang-btn[aria-pressed="true"] { color: var(--ink); }
.lang-btn:hover:not([aria-pressed="true"]) { color: var(--ink); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--ink-secondary);
  box-shadow: var(--shadow-sm);
  transition: border-color 220ms var(--ease-out), color 220ms var(--ease-out), transform 220ms var(--ease-spring);
}

.icon-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink);
  transform: translateY(-1px);
}

.icon-btn:active { transform: scale(0.94); }

.icon-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 420ms var(--ease-spring);
}

.icon-sun { display: none; }
.icon-moon { display: block; }
[data-theme="dark"] .icon-sun { display: block; }
[data-theme="dark"] .icon-moon { display: none; }
.icon-btn:hover .icon-sun { transform: rotate(35deg); }
.icon-btn:hover .icon-moon { transform: rotate(-14deg); }

.menu-toggle { display: none; }

/* Mobile Drawer */
.mobile-nav {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  border-bottom: 1px solid transparent;
  background: var(--bg);
  transition: grid-template-rows 300ms var(--ease-out), opacity 240ms var(--ease-out), border-color 240ms var(--ease-out);
}
.mobile-nav.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
  border-bottom-color: var(--border);
}
.mobile-nav-wrap { overflow: hidden; }
.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  padding: 12px clamp(20px, 4vw, 40px) 22px;
  gap: 4px;
}
.mobile-nav a {
  padding: 11px 12px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--ink-secondary);
}
.mobile-nav a:hover {
  background: var(--bg-subtle);
  color: var(--ink);
}

/* ==========================================================================
   Hero — Editorial Quiet Luxury & Photorealistic Star Optical Plate
   ========================================================================== */
.hero {
  position: relative;
  margin-top: -72px;
  padding-block: calc(72px + clamp(56px, 8.5vw, 110px)) clamp(68px, 9vw, 116px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: clamp(36px, 5.5vw, 76px);
  align-items: center;
}

/* Quiet Editorial Eyebrow (No AI Radar Pill Cliché) */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.eyebrow-rule {
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--accent);
  opacity: 0.75;
}

/* High-Craft Editorial Serif Display Headline */
.hero-title {
  margin: 0 0 24px;
  font-family: var(--font-serif);
  font-size: clamp(40px, 5.4vw, 66px);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.028em;
  color: var(--ink);
  max-width: 15ch;
  text-wrap: balance;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
}

html[lang^="zh"] .hero-title {
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.3vw, 52px);
  font-weight: 500;
  line-height: 1.28;
  letter-spacing: -0.015em;
  max-width: none;
  white-space: pre-line;
}

.hero-lead {
  margin: 0 0 36px;
  font-size: clamp(16px, 1.35vw, 17.8px);
  line-height: 1.72;
  color: var(--ink-secondary);
  max-width: 48ch;
}

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

/* Architectural Studio Metadata Strip */
.hero-signals {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 24px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: var(--ink-muted);
}

.hero-signal-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.signal-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--accent);
  opacity: 0.85;
}

/* Architectural Buttons — Deep Ink Primary, Crisp Chamfered Corners */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 46px;
  padding: 0 22px;
  border-radius: 9px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  overflow: hidden;
  transition:
    transform 240ms var(--ease-out),
    background-color 220ms var(--ease-out),
    border-color 220ms var(--ease-out),
    box-shadow 260ms var(--ease-out),
    color 220ms var(--ease-out);
  will-change: transform;
}

.btn svg {
  width: 15px;
  height: 15px;
  transition: transform 260ms var(--ease-spring);
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-ink);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.14),
    0 8px 22px rgba(19, 20, 24, 0.14);
}

.btn-primary:hover {
  background: var(--btn-primary-hover);
  box-shadow:
    0 2px 6px rgba(0, 0, 0, 0.18),
    0 14px 30px rgba(19, 20, 24, 0.18);
}

.btn-primary:hover svg {
  transform: translateX(3px);
}

.btn-secondary {
  background: var(--bg-elevated);
  border-color: var(--border-strong);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
  border-color: var(--ink-muted);
}

/* ==========================================================================
   Photorealistic Deep-Sky Optical Plate (Always Deep Midnight Sky Inside)
   Like a Framed Astrophotography Plate / Leica Optical Viewfinder
   ========================================================================== */
.hero-visual {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

.star-plate-frame {
  position: relative;
  width: 100%;
  max-width: 432px;
  min-width: 0;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  background: #06080F;
  box-shadow: var(--shadow-plate);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform 380ms var(--ease-out), box-shadow 360ms var(--ease-out);
  cursor: crosshair;
}

/* Subtle Optical Glass Rim Highlight */
.star-plate-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.11);
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.055) 0%,
    transparent 34%,
    transparent 76%,
    rgba(138, 176, 248, 0.04) 100%
  );
  pointer-events: none;
  z-index: 4;
}

.star-canvas {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  min-width: 0;
  max-width: 100%;
  display: block;
}

/* Minimal Archival Plate Engraving (Quiet, No Sci-Fi HUD Cliché) */
.plate-caption {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.11em;
  color: rgba(235, 240, 252, 0.44);
  pointer-events: none;
}

/* ==========================================================================
   Sections — Refined Editorial Rhythm
   ========================================================================== */
.section {
  padding-block: clamp(76px, 9.5vw, 124px);
  border-bottom: 1px solid var(--border);
  scroll-margin-top: 72px;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px 36px;
  margin-bottom: clamp(36px, 5vw, 58px);
}

.section-index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-title {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(30px, 3.6vw, 42px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.14;
  color: var(--ink);
}

html[lang^="zh"] .section-title {
  font-size: clamp(26px, 3.1vw, 36px);
  font-weight: 500;
  letter-spacing: -0.012em;
}

.section-desc {
  margin: 0;
  max-width: 46ch;
  font-size: 15.5px;
  color: var(--ink-secondary);
}

/* ==========================================================================
   01 / Products — Architectural Cards & Micro-Animated UI Schematics
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition:
    border-color 260ms var(--ease-out),
    transform 320ms var(--ease-out),
    box-shadow 320ms var(--ease-out);
}

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

.product-preview {
  position: relative;
  height: 204px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 20px 18px 0;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.product-preview svg {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: block;
}

/* Bespoke Micro-Animations inside Product Wireframes */
.wf-window,
.wf-phone,
.wf-overlay,
.wf-brief-card,
.wf-brief-dot,
.wf-scan-line,
.wf-term-bar {
  transition: transform 520ms var(--ease-out), opacity 420ms var(--ease-out), filter 420ms var(--ease-out);
}

.product-card:hover .wf-window { transform: translateY(-3px); }
.product-card:hover .wf-brief-card { transform: translateY(-3px); }
.product-card:hover .wf-brief-dot { transform: scale(1.25); transform-box: fill-box; transform-origin: center; }

.wf-scan-line {
  opacity: 0;
  transform: translateX(-24px);
}
.product-card:hover .wf-scan-line {
  opacity: 1;
  transform: translateX(132px);
  transition: transform 950ms var(--ease-out), opacity 300ms var(--ease-out);
}

.product-card:hover .wf-phone { transform: translateY(-6px); }
.wf-wave-bar {
  transform-box: fill-box;
  transform-origin: center;
}
.product-card:hover .wf-wave-bar {
  animation: wavePulse 900ms ease-in-out infinite alternate;
}
.product-card:hover .wf-wave-bar:nth-child(2) { animation-delay: 120ms; }
.product-card:hover .wf-wave-bar:nth-child(3) { animation-delay: 240ms; }
.product-card:hover .wf-wave-bar:nth-child(4) { animation-delay: 150ms; }
.product-card:hover .wf-wave-bar:nth-child(5) { animation-delay: 280ms; }

@keyframes wavePulse {
  from { transform: scaleY(0.55); opacity: 0.65; }
  to { transform: scaleY(1.45); opacity: 1; }
}

.product-card:hover .wf-overlay {
  transform: translate(-4px, -5px);
  filter: drop-shadow(0 8px 16px rgba(17, 18, 22, 0.12));
}
.product-card:hover .wf-term-bar {
  transform: scaleX(1.18);
  transform-box: fill-box;
  transform-origin: left center;
}

.product-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 22px 24px 24px;
}

.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.status-dot {
  width: 5.5px;
  height: 5.5px;
  border-radius: 50%;
}

.status-live { background: var(--status-live-bg); color: var(--status-live); }
.status-live .status-dot { background: var(--status-live); }
.status-beta { background: var(--status-beta-bg); color: var(--status-beta); }
.status-beta .status-dot { background: var(--status-beta); }
.status-upcoming { background: var(--status-upcoming-bg); color: var(--status-upcoming); }
.status-upcoming .status-dot { background: var(--status-upcoming); }

.platform-list {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-muted);
}

.product-name {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.product-summary {
  margin: 0 0 18px;
  font-size: 14.5px;
  line-height: 1.66;
  color: var(--ink-secondary);
  flex: 1;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.product-tag {
  padding: 3px 8.5px;
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
  border: 1px solid var(--border-faint);
  font-size: 12px;
  color: var(--ink-secondary);
}

.product-cta {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-top: 15px;
  border-top: 1px solid var(--border-faint);
  font-size: 13.8px;
  font-weight: 500;
  color: var(--ink);
  transition: color 220ms var(--ease-out);
}

.product-cta svg {
  width: 15px;
  height: 15px;
  color: var(--accent);
  transition: transform 260ms var(--ease-spring);
}

.product-card:hover .product-cta {
  color: var(--accent);
}

.product-card:hover .product-cta svg {
  transform: translateX(4px);
}

/* ==========================================================================
   02 / Principles — Architectural Hairline Strip (Editorial, Zero Cliché)
   ========================================================================== */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.principle-item {
  padding: 32px 30px 34px;
  border-right: 1px solid var(--border);
  transition: background-color 260ms var(--ease-out);
}

.principle-item:last-child {
  border-right: 0;
}

.principle-item:hover {
  background: var(--bg-subtle);
}

.principle-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.principle-num {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.principle-glyph {
  width: 24px;
  height: 24px;
  color: var(--ink-muted);
  transition: color 240ms var(--ease-out), transform 420ms var(--ease-out);
}

.principle-item:hover .principle-glyph {
  color: var(--accent);
  transform: scale(1.08);
}

.principle-title {
  margin: 0 0 11px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}

html[lang^="zh"] .principle-title {
  font-size: 19px;
}

.principle-text {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-secondary);
}

/* ==========================================================================
   03 / About & Studio Colophon
   ========================================================================== */
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4.5vw, 60px);
  align-items: start;
}

.about-prose p {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.78;
  color: var(--ink-secondary);
}

.about-prose p:first-child {
  color: var(--ink);
  font-size: 18px;
  font-weight: 450;
  letter-spacing: -0.01em;
}

.entity-notice {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  font-size: 14px;
  line-height: 1.68;
  color: var(--ink);
}

.entity-notice-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.entity-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.fact-sheet {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.fact-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.fact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fact-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 12px;
  padding: 15px 22px;
  border-bottom: 1px solid var(--border-faint);
  font-size: 14px;
  transition: background-color 180ms var(--ease-out);
}

.fact-row:hover { background: var(--bg-subtle); }
.fact-row:last-child { border-bottom: 0; }

.fact-key {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.fact-val {
  color: var(--ink);
  font-weight: 450;
  word-break: break-word;
}

.fact-val a { color: var(--accent); }
.fact-val a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   04 / Support & Contact
   ========================================================================== */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.contact-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: border-color 240ms var(--ease-out), transform 280ms var(--ease-out), box-shadow 280ms var(--ease-out);
}

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

.contact-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}

.contact-title {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 500;
  letter-spacing: -0.015em;
}

html[lang^="zh"] .contact-title { font-size: 20px; }

.contact-desc {
  margin: 0;
  font-size: 14.5px;
  color: var(--ink-secondary);
}

.email-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  transition: border-color 220ms var(--ease-out);
}

.contact-card:hover .email-box { border-color: var(--border-strong); }

.email-link {
  font-family: var(--font-mono);
  font-size: 13.8px;
  font-weight: 500;
  color: var(--ink);
  word-break: break-all;
}

.email-link:hover { color: var(--accent); }

.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-secondary);
  transition: all 200ms var(--ease-out);
}

.copy-btn:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

.copy-btn:active { transform: scale(0.95); }

.copy-btn.is-copied {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
}

.support-notes {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.support-note-item {
  padding: 20px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: border-color 220ms var(--ease-out);
}

.support-note-item:hover { border-color: var(--border-strong); }

.support-note-item h3 {
  margin: 0 0 6px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.support-note-item p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-secondary);
  line-height: 1.62;
}

/* ==========================================================================
   Footer & Editorial Serif Watermark
   ========================================================================== */
.site-footer {
  position: relative;
  padding-block: 56px 36px;
  background: var(--bg);
  overflow: hidden;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(140px, 0.6fr));
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--border);
}

.footer-tagline {
  margin: 12px 0 0;
  max-width: 38ch;
  font-size: 14px;
  color: var(--ink-secondary);
}

.footer-col-title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.footer-links a {
  font-size: 14px;
  color: var(--ink-secondary);
  transition: color 200ms var(--ease-out);
}

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

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  font-size: 12.8px;
  color: var(--ink-muted);
}

.footer-meta-right {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 11.8px;
}

.footer-watermark {
  margin-top: 24px;
  margin-bottom: -48px;
  font-family: var(--font-serif);
  font-size: clamp(68px, 14.5vw, 180px);
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.9;
  color: var(--watermark-color);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
  text-align: center;
  mask-image: linear-gradient(to bottom, #000 35%, transparent 98%);
  -webkit-mask-image: linear-gradient(to bottom, #000 35%, transparent 98%);
}

/* ==========================================================================
   Floating Toast Notification
   ========================================================================== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 250;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  background: var(--ink);
  color: var(--bg);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
  transform: translate(-50%, 16px) scale(0.96);
  opacity: 0;
  pointer-events: none;
  transition: transform 320ms var(--ease-spring), opacity 220ms var(--ease-out);
}

.toast.is-visible {
  transform: translate(-50%, 0) scale(1);
  opacity: 1;
}

.toast svg {
  width: 14px;
  height: 14px;
  color: var(--accent);
}

/* ==========================================================================
   Legal Document Pages (Privacy Policy & Terms of Service)
   ========================================================================== */
.legal-hero {
  position: relative;
  padding-block: clamp(48px, 6.5vw, 80px) clamp(32px, 4vw, 48px);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  font-size: 13.5px;
  color: var(--ink-secondary);
  transition: color 200ms var(--ease-out), transform 220ms var(--ease-out);
}

.back-link:hover {
  color: var(--accent);
  transform: translateX(-2px);
}

.legal-title {
  margin: 0 0 14px;
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.4vw, 48px);
  font-weight: 400;
  letter-spacing: -0.025em;
  line-height: 1.12;
}

html[lang^="zh"] .legal-title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 500;
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.legal-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 70ch);
  gap: clamp(28px, 5vw, 64px);
  padding-block: clamp(40px, 5vw, 64px) clamp(64px, 8vw, 96px);
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 94px;
  padding-right: 16px;
}

.toc-title {
  margin: 0 0 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.toc-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--border);
}

.toc-list a {
  display: block;
  padding: 6px 0 6px 14px;
  margin-left: -1px;
  border-left: 1.5px solid transparent;
  font-size: 13px;
  line-height: 1.45;
  color: var(--ink-muted);
  transition: color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}

.toc-list a:hover,
.toc-list a.is-active {
  color: var(--ink);
  border-left-color: var(--accent);
}

.legal-content section {
  scroll-margin-top: 94px;
  padding-bottom: 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-faint);
}

.legal-content section:last-child {
  border-bottom: 0;
  margin-bottom: 0;
  padding-bottom: 0;
}

.legal-content h2 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--ink);
}

html[lang^="zh"] .legal-content h2 { font-size: 19.5px; }

.legal-content p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.76;
  color: var(--ink-secondary);
}

.legal-content ul {
  margin: 8px 0 14px;
  padding-left: 20px;
  color: var(--ink-secondary);
  font-size: 15px;
  line-height: 1.76;
}

.legal-content li { margin-bottom: 6px; }

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-callout {
  padding: 16px 18px;
  margin: 0 0 28px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  line-height: 1.65;
  color: var(--ink-secondary);
}

.legal-callout strong { color: var(--ink); }

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { justify-content: flex-start; }
  .star-plate-frame { max-width: 360px; }
  .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .principles-grid { grid-template-columns: minmax(0, 1fr); }
  .principle-item { border-right: 0; border-bottom: 1px solid var(--border); }
  .principle-item:last-child { border-bottom: 0; }
  .about-grid,
  .support-grid,
  .support-notes { grid-template-columns: minmax(0, 1fr); }
  .legal-layout { grid-template-columns: minmax(0, 1fr); }
  .legal-toc {
    position: static;
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-elevated);
  }
}

@media (max-width: 720px) {
  .header-inner { gap: 10px; }
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .products-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-top { grid-template-columns: minmax(0, 1fr); }
  .fact-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .brand-sub { display: none; }
  .footer-watermark { margin-bottom: -24px; }
}

@media (max-width: 420px) {
  .lang-btn { min-width: 34px; padding: 4px 7px; font-size: 11.5px; }
  .icon-btn { width: 34px; height: 34px; }
  .header-controls { gap: 6px; }
  .brand-name { font-size: 17.5px; }
}

/* Reduced Motion Respect */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js-motion .reveal,
  html.js-motion .hero-stagger {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .site-header, .legal-toc, .back-link, .site-footer, .toast { display: none !important; }
  body { background: #FFFFFF !important; color: #000000 !important; }
  .legal-layout { display: block; padding-block: 16px; }
}
