/* ==========================================================================
   Reaction Axis v1.0 — Apple Minimalist Single-Screen Flagship (100vh)
   Four-Layer Continuous 3D Depth Canvases × Spotlight-to-Dock 5-Item Stack
   ========================================================================== */

:root {
  --bg: #ffffff;
  --surface-2: #f7f7f7;
  --hover: #f3f3f3;
  --border: #e5e5e5;
  --border-strong: #cccccc;
  --border-bottom-btn: #b8b8b8;

  --text: #111111;
  --muted: #525252;
  --faint: #767676;

  --win-blue: #0067c0;
  --win-blue-hover: #005a9e;
  --win-blue-active: #004c8c;
  --win-blue-soft: rgba(0, 103, 192, 0.08);

  --font-sans: "Segoe UI Variable Display", "Segoe UI Variable Text", "Segoe UI",
    -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei UI", sans-serif;
  --font-mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;

  --header-h: 52px;
  --container-max: 1180px;
  --radius-btn: 6px;
  --radius-card: 8px;
}

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

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  padding-top: var(--header-h);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  cursor: pointer;
}

:focus-visible {
  outline: 2px solid var(--win-blue);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: min(92vw, 1840px);
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* ==========================================================================
   1. Minimal Semi-Transparent Sticky Top Bar
   ========================================================================== */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.nav-brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  height: 32px;
}

.nav-brand img {
  display: block;
  height: 26px;
  width: auto;
}

.nav-links {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-size: 13.5px;
  font-weight: 450;
  color: #525252;
  white-space: nowrap;
  transition: color 0.16s ease;
  padding: 4px 2px;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--text);
  font-weight: 500;
}

.nav-actions {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.nav-auth-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-btn);
  font-size: 13px;
  font-weight: 500;
  color: #1b1b1b;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-bottom-color: var(--border-bottom-btn);
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.nav-auth-btn svg {
  width: 14px;
  height: 14px;
  color: #525252;
  flex: 0 0 auto;
}

.nav-auth-btn:hover {
  background: var(--hover);
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.72);
}

.lang-btn {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: #525252;
  line-height: 1.3;
  transition: background-color 0.16s ease, color 0.16s ease;
}

.lang-btn:hover {
  color: var(--text);
}

.lang-btn.is-active {
  background: var(--hover);
  color: var(--text);
}

/* ==========================================================================
   2. Single-Screen 100vh Hero & Four-Layer Continuous 3D Depth Canvases
   ========================================================================== */

.hero {
  position: relative;
  height: calc(100vh - var(--header-h));
  min-height: 600px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  overflow: hidden;
  padding: 16px 24px 24px;
}

.hero-plane {
  position: absolute;
  inset: -18px;
  width: calc(100% + 36px);
  height: calc(100% + 36px);
  pointer-events: none;
  display: block;
  will-change: transform;
}

.hero-plane-0 {
  z-index: 0;
  filter: blur(4px);
  opacity: 0.32;
}

.hero-plane-1 {
  z-index: 1;
  filter: blur(2.1px);
  opacity: 0.54;
}

.hero-plane-2 {
  z-index: 2;
  filter: blur(0.85px);
  opacity: 0.78;
}

.hero-plane-3 {
  z-index: 3;
  filter: blur(0.2px);
  opacity: 0.9;
}

.hero-frost-veil {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 48% 42% at 50% 47%,
      rgba(255, 255, 255, 0.94) 0%,
      rgba(255, 255, 255, 0.72) 56%,
      rgba(255, 255, 255, 0) 100%
    ),
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.08) 0%,
      rgba(255, 255, 255, 0.08) 100%
    );
}

.hero-top-spacer {
  position: relative;
  z-index: 4;
  height: 4px;
  flex: 0 0 auto;
}

/* ==========================================================================
   3. Center Foreground: 5-Item Equal Stack (Gentle Auto-Spotlight + macOS Dock)
   ========================================================================== */

.hero-stack {
  position: relative;
  z-index: 5;
  width: fit-content;
  max-width: 92vw;
  margin: auto 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: clamp(18px, 2.5vh, 30px);
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
  opacity: 0;
  transition: opacity 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-stack.is-ready {
  opacity: 1;
}

.feature-item {
  width: fit-content;
  max-width: 100%;
  padding: 2px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform-origin: center center;
  will-change: transform, opacity, filter;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

.feature-title {
  margin: 0;
  font-size: clamp(1.22rem, 3.5vw, 1.76rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.22;
  color: #111111;
  text-wrap: balance;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

.feature-desc {
  margin: 5px 0 0;
  max-width: 92%;
  font-size: clamp(0.84rem, 1.9vw, 0.98rem);
  line-height: 1.45;
  font-weight: 400;
  color: #5c5c5c;
  text-wrap: balance;
  cursor: default;
  user-select: none;
  -webkit-user-select: none;
}

@media (min-width: 960px) {
  .feature-title {
    white-space: nowrap;
    font-size: clamp(1.42rem, 2.12vw, 4.3rem);
    letter-spacing: -0.025em;
    line-height: 1.22;
    text-wrap: normal;
  }

  html[lang="zh-CN"] .feature-title {
    font-size: clamp(1.56rem, 2.35vw, 4.8rem);
    letter-spacing: -0.015em;
  }

  .feature-desc {
    white-space: nowrap;
    max-width: none;
    font-size: clamp(0.86rem, 0.98vw, 2.0rem);
    line-height: 1.45;
    text-wrap: normal;
  }

  html[lang="zh-CN"] .feature-desc {
    font-size: clamp(0.92rem, 1.06vw, 2.15rem);
  }
}

/* ==========================================================================
   4. Bottom Region: 3 Equal-Size Platform Buttons (Pure White Default, Blue Hover)
   ========================================================================== */

.hero-bottom {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  flex: 0 0 auto;
}

.hero-action-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid transparent;
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.035);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.hero-bottom.is-highlighted .hero-action-bar {
  border-color: rgba(0, 103, 192, 0.44);
  box-shadow: 0 0 0 4px rgba(0, 103, 192, 0.1);
}

.action-group {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.win-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: var(--radius-btn);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition:
    background-color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.24s ease,
    box-shadow 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.16s cubic-bezier(0.22, 1, 0.36, 1);
}

.win-btn svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
}

.win-btn-os {
  width: 214px;
}

.win-btn-secondary {
  background: #ffffff;
  color: #1b1b1b;
  border: 1px solid var(--border-strong);
  border-bottom-color: var(--border-bottom-btn);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.win-btn-secondary:hover,
.win-btn-secondary:focus-visible {
  background: var(--win-blue);
  color: #ffffff;
  border-color: var(--win-blue);
  border-bottom-color: var(--win-blue-hover);
  box-shadow: 0 6px 18px rgba(0, 103, 192, 0.22), 0 1px 4px rgba(0, 103, 192, 0.12);
  transform: translateY(-1px);
}

.win-btn-secondary:active {
  background: var(--win-blue-active);
  border-color: var(--win-blue-active);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 103, 192, 0.18);
  transform: translateY(0.5px);
}

.win-btn-muted {
  background: var(--surface-2);
  color: var(--faint);
  border: 1px solid #e2e2e2;
}

.win-btn-muted:hover {
  background: #f0f0f0;
  color: #5c5c5c;
  border-color: #d4d4d4;
}

.win-btn-muted:active {
  background: #e9e9e9;
  transform: translateY(0.5px);
}

.btn-meta {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.8;
  transition: color 0.24s ease, opacity 0.24s ease;
}

.win-btn-secondary .btn-meta,
.win-btn-muted .btn-meta {
  color: var(--faint);
  opacity: 0.95;
}

.win-btn-secondary:hover .btn-meta,
.win-btn-secondary:focus-visible .btn-meta,
.win-btn-secondary:active .btn-meta {
  color: rgba(255, 255, 255, 0.86);
  opacity: 1;
}

.hero-corner-legal {
  position: absolute;
  left: 24px;
  bottom: 18px;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--faint);
}

.corner-legal-btn,
.corner-legal-link {
  color: var(--faint);
  transition: color 0.16s ease, text-decoration-color 0.16s ease;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 2px;
}

.corner-legal-btn {
  padding: 4px 2px;
}

.corner-legal-btn:hover,
.corner-legal-btn:focus-visible,
.corner-legal-link:hover,
.corner-legal-link:focus-visible {
  color: var(--text);
  text-decoration-color: rgba(17, 17, 17, 0.38);
}

.meta-sep {
  opacity: 0.55;
  user-select: none;
  -webkit-user-select: none;
}

/* ==========================================================================
   5. Minimal Windows White Toast
   ========================================================================== */

.win-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(14px);
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 32px);
  padding: 11px 18px;
  background: var(--bg);
  color: #1b1b1b;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  font-size: 13.5px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.win-toast.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.win-toast-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--win-blue);
  flex: 0 0 auto;
}

/* ==========================================================================
   2K / 4K Large Screen Proportional Scaling (min-width: 1800px)
   ========================================================================== */

@media (min-width: 1800px) {
  :root {
    --header-h: clamp(52px, 3vw, 72px);
  }

  .nav-brand img {
    height: clamp(26px, 1.5vw, 36px);
  }

  .nav-link {
    font-size: clamp(13.5px, 0.82vw, 18px);
  }

  .nav-auth-btn {
    height: clamp(32px, 1.9vw, 44px);
    padding: 0 clamp(12px, 0.8vw, 18px);
    font-size: clamp(13px, 0.78vw, 17px);
  }

  .lang-btn {
    font-size: clamp(12px, 0.72vw, 16px);
    padding: clamp(3px, 0.22vw, 5px) clamp(9px, 0.58vw, 14px);
  }

  .win-btn {
    height: clamp(42px, 2.5vw, 60px);
    font-size: clamp(13.5px, 0.85vw, 19px);
    gap: clamp(8px, 0.55vw, 12px);
  }

  .win-btn svg {
    width: clamp(15px, 0.92vw, 21px);
    height: clamp(15px, 0.92vw, 21px);
  }

  .win-btn-os {
    width: clamp(214px, 13.5vw, 310px);
  }

  .btn-meta {
    font-size: clamp(11px, 0.68vw, 15px);
  }

  .hero-corner-legal {
    left: 32px;
    bottom: 22px;
    font-size: clamp(12px, 0.75vw, 15px);
  }
}

/* ==========================================================================
   Responsive (Laptop / Tablet / Mobile)
   ========================================================================== */

@media (max-width: 1020px) {
  .win-btn-os {
    width: 190px;
  }
}

@media (max-width: 959px) {
  .hero-stack {
    width: fit-content;
    max-width: 92vw;
    padding: 0;
  }
}

@media (max-width: 820px) {
  .container {
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
  }

  .nav-links {
    gap: 18px;
  }

  .hero {
    height: auto;
    min-height: calc(100vh - var(--header-h));
    padding: 20px 18px 24px;
    gap: 20px;
  }

  .hero-action-bar {
    max-width: 520px;
  }

  .action-group {
    width: 100%;
  }

  .win-btn-os {
    flex: 1 1 180px;
    width: auto;
  }

  .hero-corner-legal {
    position: relative;
    left: auto;
    bottom: auto;
    margin-top: 8px;
    justify-content: center;
    flex-wrap: wrap;
  }
}

@media (max-width: 680px) {
  .nav-inner {
    grid-template-columns: auto 1fr;
    gap: 10px;
  }

  .nav-brand img {
    height: 22px;
  }

  .nav-links {
    display: none;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-auth-btn span {
    display: none;
  }

  .nav-auth-btn {
    padding: 0 9px;
  }

  .hero-stack {
    width: fit-content;
    max-width: 94vw;
    padding: 0;
    gap: 16px;
  }

  .hero-action-bar {
    width: 100%;
    max-width: 340px;
    flex-direction: column;
    padding: 8px;
  }

  .action-group {
    flex-direction: column;
  }

  .win-btn,
  .win-btn-os {
    width: 100%;
    flex: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stack {
    opacity: 1;
    transition: none;
  }

  .feature-item {
    will-change: auto;
  }
}
