/* Shiyin FM Official Website - Brand Stylesheet v20260709b */

/* ============================================================
   FONT IMPORT
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ============================================================
   RESET
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  /* Brand colors */
  --cyan:    #00D9FF;
  --purple:  #8E7CFF;
  --magenta: #D58CFF;
  --mint:    #00F5D4;
  --gold:    #FFD23F;

  /* Backgrounds */
  --bg:         #0C091C;
  --bg-darker:  #070512;
  --surface:    rgba(255, 255, 255, 0.042);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border:     rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.05);

  /* Text */
  --text:           #FFFFFF;
  --text-secondary: rgba(255, 255, 255, 0.62);
  --text-muted:     rgba(255, 255, 255, 0.38);

  /* Gradients */
  --primary-gradient: linear-gradient(135deg, var(--cyan) 0%, var(--purple) 55%, var(--magenta) 100%);
  --accent-gradient:  linear-gradient(135deg, var(--cyan), var(--purple));
  --title-gradient:   linear-gradient(135deg, #FFFFFF 20%, var(--purple) 60%, var(--magenta) 100%);

  /* Misc */
  --radius:     16px;
  --transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  /* Font */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', system-ui, sans-serif;
}

/* ============================================================
   BASE
   ============================================================ */
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  position: relative;
}

/* ============================================================
   AMBIENT BACKGROUND SYSTEM
   ============================================================ */

/* Grid lines */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse at 50% 20%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 20%, black 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}

/* Floating ambient orbs */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(80px);
  opacity: 0.55;
  will-change: transform;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(142, 124, 255, 0.35) 0%, transparent 70%);
  top: -100px;
  right: -150px;
  animation: orb-drift-1 18s ease-in-out infinite;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.2) 0%, transparent 70%);
  bottom: 30%;
  left: -120px;
  animation: orb-drift-2 22s ease-in-out infinite;
}

.orb-3 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(213, 140, 255, 0.18) 0%, transparent 70%);
  top: 60%;
  right: 10%;
  animation: orb-drift-3 26s ease-in-out infinite;
}

@keyframes orb-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(-40px, 60px) scale(1.08); }
  66%       { transform: translate(30px, -40px) scale(0.94); }
}

@keyframes orb-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  40%       { transform: translate(60px, -50px) scale(1.1); }
  70%       { transform: translate(-30px, 40px) scale(0.92); }
}

@keyframes orb-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  30%       { transform: translate(-50px, -30px) scale(1.05); }
  60%       { transform: translate(40px, 50px) scale(0.96); }
}

/* ============================================================
   NAVIGATION BAR
   ============================================================ */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(24px, 8vw, 120px);
  background: rgba(12, 9, 28, 0.6);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s ease, box-shadow 0.4s ease;
}

nav.scrolled {
  background: rgba(7, 5, 18, 0.88);
  box-shadow: 0 1px 40px rgba(0, 0, 0, 0.4);
}

nav .btn {
  padding: 10px 18px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 20px rgba(213, 140, 255, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.nav-logo-icon img,
.footer-logo-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.nav-logo-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.3px;
  color: var(--text);
}

.nav-logo-text span {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a:not(.btn) {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

.nav-links a:not(.btn):hover {
  color: var(--text);
}

/* Hamburger button */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
  border-radius: 8px;
  transition: var(--transition);
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-hamburger:hover span {
  background: var(--text);
}

/* Mobile drawer */
.nav-drawer {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 999;
  background: rgba(7, 5, 18, 0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.nav-drawer.open {
  opacity: 1;
  pointer-events: all;
}

.nav-drawer a {
  font-size: 24px;
  font-weight: 700;
  color: var(--text-secondary);
  text-decoration: none;
  letter-spacing: -0.3px;
  transition: var(--transition);
}

.nav-drawer a:hover {
  color: var(--text);
}

.nav-drawer .btn {
  font-size: 16px;
  padding: 14px 32px;
}

.nav-drawer-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 28px;
  cursor: pointer;
  padding: 8px;
  line-height: 1;
  transition: var(--transition);
}

.nav-drawer-close:hover {
  color: var(--text);
}

/* ============================================================
   GLOBAL BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
  letter-spacing: -0.1px;
}

.btn-primary {
  background: var(--primary-gradient);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(142, 124, 255, 0.2);
}

.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 32px rgba(142, 124, 255, 0.32);
  filter: brightness(1.08);
}

.btn-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.btn-outline-glow:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 18px rgba(0, 217, 255, 0.14);
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  padding: 128px clamp(24px, 8vw, 120px) 72px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Hero accent glow behind screenshot */
.hero::before {
  content: '';
  position: absolute;
  width: 900px;
  height: 900px;
  background:
    radial-gradient(circle at 60% 50%, rgba(142, 124, 255, 0.13) 0%, transparent 60%),
    radial-gradient(circle at 40% 60%, rgba(0, 217, 255, 0.07) 0%, transparent 55%);
  top: 50%;
  right: -5%;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: -1;
}

.hero-shell {
  width: 100%;
  max-width: 1260px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(520px, 1.08fr);
  align-items: start;
  gap: clamp(44px, 6vw, 82px);
}

.hero-copy {
  max-width: 650px;
  display: flex;
  flex-direction: column;
  align-self: stretch;
  padding-bottom: 40px;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 10px;
  border-radius: 30px;
  background: rgba(142, 124, 255, 0.08);
  border: 1px solid rgba(142, 124, 255, 0.22);
  font-size: 12.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
  letter-spacing: 0.1px;
  width: fit-content;
}

.badge .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  flex-shrink: 0;
  animation: pulse 2.4s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(0.88); opacity: 0.6; box-shadow: 0 0 6px var(--cyan); }
  50%       { transform: scale(1.12); opacity: 1;   box-shadow: 0 0 14px var(--cyan); }
}

.hero-kicker {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Animated gradient title */
.hero h1 {
  font-size: clamp(50px, 5.6vw, 72px);
  font-weight: 900;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 12px;
  background: linear-gradient(
    135deg,
    #FFFFFF 0%,
    rgba(255,255,255,0.95) 25%,
    var(--purple) 55%,
    var(--magenta) 75%,
    var(--cyan) 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 6s ease-in-out infinite;
}

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50%       { background-position: 100% 50%; }
}

/* Tagline below main title */
.hero-tagline {
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.25;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.55);
}

.hero p.subtitle {
  font-size: clamp(15px, 1.6vw, 17px);
  color: var(--text-secondary);
  max-width: 520px;
  margin-bottom: 0;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-start;
  margin-bottom: 0;
}

.hero-copy .hero-buttons {
  margin-top: auto;
  padding-top: 36px;
}



.hero .btn {
  padding: 14px 28px;
  font-size: 15px;
  border-radius: 10px;
}

.hero-version {
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.2px;
}

/* ============================================================
   PRODUCT SCREENSHOT
   ============================================================ */
.hero-player {
  position: relative;
  width: min(100%, 720px);
  margin: 0 0 0 auto;
}

/* Glow halos around screenshot */
.hero-player::before {
  content: '';
  position: absolute;
  inset: -18% -12% auto auto;
  width: 62%;
  height: 48%;
  background: radial-gradient(circle, rgba(0, 217, 255, 0.18), transparent 68%);
  filter: blur(32px);
  pointer-events: none;
  z-index: -1;
}

.hero-player::after {
  content: '';
  position: absolute;
  inset: auto auto -12% -9%;
  width: 52%;
  height: 40%;
  background: radial-gradient(circle, rgba(142, 124, 255, 0.16), transparent 68%);
  filter: blur(32px);
  pointer-events: none;
  z-index: -1;
}

/* Float animation on screenshot */
.product-shot-frame {
  position: relative;
  padding: 10px;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.035)),
    rgba(8, 6, 20, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.13);
  box-shadow:
    0 32px 90px rgba(0, 0, 0, 0.55),
    0 0 50px rgba(142, 124, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  animation: float 7s ease-in-out infinite;
  overflow: hidden;
}

/* Light sweep shimmer on screenshot */
.product-shot-frame::after {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.04) 40%,
    rgba(255, 255, 255, 0.09) 50%,
    rgba(255, 255, 255, 0.04) 60%,
    transparent 100%
  );
  animation: shimmer 7s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-10px); }
}

@keyframes shimmer {
  0%   { left: -120%; opacity: 0; }
  15%  { opacity: 1; }
  50%  { left: 130%; opacity: 0; }
  100% { left: 130%; opacity: 0; }
}

.product-shot-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 4px 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 700;
  position: relative;
  z-index: 1;
}

.meta-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 217, 255, 0.72);
  flex-shrink: 0;
}

.product-shot-frame img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1600 / 1166;
  object-fit: cover;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1;
}

/* ============================================================
   SECTION COMMON
   ============================================================ */
section:not(.hero) {
  padding: 120px clamp(24px, 8vw, 120px);
  position: relative;
  z-index: 1;
  scroll-margin-top: 80px;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 72px;
}

.section-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 18px;
}

/* Gradient section title */
.section-title {
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  background: linear-gradient(135deg, #FFFFFF 30%, var(--magenta) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Section divider glow line */
section:not(.hero)::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom, transparent, rgba(142, 124, 255, 0.35), transparent);
  pointer-events: none;
}

/* ============================================================
   HOW IT WORKS — STEPS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.step-card {
  padding: 40px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: var(--transition);
}

/* Animated gradient top border */
.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* Inner glow on hover */
.step-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 0%, rgba(142, 124, 255, 0.06), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

@media (hover: hover) {
  .step-card:hover {
    transform: translateY(-8px);
    background: var(--surface-hover);
    border-color: rgba(142, 124, 255, 0.2);
    box-shadow:
      0 20px 48px rgba(0, 0, 0, 0.32),
      0 0 0 1px rgba(142, 124, 255, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.09);
  }
  .step-card:hover::before { opacity: 1; }
  .step-card:hover::after  { opacity: 1; }
}

.step-card:active {
  transform: translateY(-3px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--primary-gradient);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 24px;
  box-shadow: 0 4px 14px rgba(142, 124, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.step-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.75;
}

/* ============================================================
   FEATURES — BENTO GRID
   ============================================================ */
.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 20px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: start;
}

/* First card same height as others */
.feature-card:first-child {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.feature-card {
  padding: 36px 32px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.22);
  transition: var(--transition);
}

/* Gradient border glow on hover */
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  padding: 1px;
  background: var(--primary-gradient);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}

/* Large decorative orb inside card */
.feature-card::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(142, 124, 255, 0.1), transparent 70%);
  pointer-events: none;
  transition: opacity 0.4s ease;
  opacity: 0.5;
}

@media (hover: hover) {
  .feature-card:hover {
    transform: translateY(-6px);
    background: var(--surface-hover);
    box-shadow:
      0 20px 50px rgba(0, 0, 0, 0.3),
      0 0 0 1px rgba(142, 124, 255, 0.06);
  }
  .feature-card:hover::before { opacity: 1; }
  .feature-card:hover::after  { opacity: 1; }
}

.feature-card:active {
  transform: translateY(-2px);
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(142, 124, 255, 0.08);
  border: 1px solid rgba(142, 124, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--cyan);
  position: relative;
  z-index: 1;
  transition: var(--transition);
}

.feature-card:hover .feature-icon-wrapper {
  background: rgba(142, 124, 255, 0.14);
  border-color: rgba(142, 124, 255, 0.3);
  transform: scale(1.06);
  box-shadow: 0 0 20px rgba(142, 124, 255, 0.15);
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
  position: relative;
  z-index: 1;
}

.feature-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.75;
  position: relative;
  z-index: 1;
}

.feature-card:first-child .feature-bg-text {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(142, 124, 255, 0.08);
  border: 1px solid rgba(142, 124, 255, 0.18);
  margin-bottom: 24px;
  font-size: 22px;
  font-weight: 900;
  line-height: 1;
  color: var(--cyan);
  -webkit-text-fill-color: var(--cyan);
  opacity: 1;
  letter-spacing: 0;
  pointer-events: none;
  user-select: none;
}

/* ============================================================
   COMMUNITY SECTION
   ============================================================ */
.community-section {
  padding-top: 40px !important;
  padding-bottom: 120px;
}

.community-panel {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 40px;
  padding: clamp(48px, 6vw, 72px) clamp(24px, 5vw, 64px);
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(142, 124, 255, 0.1), transparent 40%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.022)),
    rgba(15, 11, 35, 0.75);
  border: 1px solid rgba(142, 124, 255, 0.18);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  overflow: hidden;
  position: relative;
}

.community-panel::before {
  content: '';
  position: absolute;
  bottom: -180px;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(142, 124, 255, 0.15), transparent 68%);
  pointer-events: none;
}

.community-copy {
  max-width: 620px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.community-copy .section-title {
  text-align: center;
  margin-bottom: 0;
}

.community-copy p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.8;
  text-align: center;
  max-width: 480px;
}

.community-perks {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}

.community-perk {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.community-perk svg {
  flex-shrink: 0;
  color: var(--cyan);
}

.qr-card {
  width: min(100%, 280px);
  position: relative;
  z-index: 1;
  padding: 16px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(142, 124, 255, 0.14);
}

.qr-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid var(--border);
  padding: 60px clamp(24px, 8vw, 120px) 40px;
  background-color: var(--bg-darker);
  position: relative;
  z-index: 1;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
  max-width: 1100px;
  margin: 0 auto;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo-icon {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  overflow: hidden;
}

.footer-logo-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.2px;
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition);
}

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

.copyright {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.icp-link {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.icp-link:hover {
  color: var(--text-secondary);
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 10000;
  background: rgba(18, 15, 38, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 217, 255, 0.28);
  border-radius: 14px;
  padding: 16px 22px;
  color: white;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  transform: translateY(120px) scale(0.95);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 360px;
}

.toast.visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.toast-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 12px var(--cyan);
  flex-shrink: 0;
}

.toast-icon.info {
  background: var(--purple);
  box-shadow: 0 0 12px var(--purple);
}

.toast-body h4 {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.1px;
}

.toast-body p {
  margin: 4px 0 0;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.58);
  line-height: 1.5;
}

/* ============================================================
   SCROLL ENTRANCE ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.18s; }
.reveal-delay-3 { transition-delay: 0.28s; }

/* ============================================================
   LEGAL PAGES
   ============================================================ */
.legal-page {
  width: min(760px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0 80px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.75;
}

.legal-page h1 {
  font-size: 40px;
  font-weight: 800;
  margin: 0 0 16px;
  letter-spacing: -1px;
}

.legal-page h2 {
  font-size: 20px;
  font-weight: 700;
  margin: 36px 0 10px;
}

.legal-page p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.7);
}

.legal-back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 28px;
  color: var(--cyan);
  font-weight: 700;
  text-decoration: none;
  font-size: 14px;
  transition: var(--transition);
}

.legal-back-link:hover {
  opacity: 0.8;
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ============================================================
   PLATFORM SWITCHER & LINKING STYLES (Added 2026-07-10)
   ============================================================ */

/* 平台页签 Tab 容器 */
.platform-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 24px;
  width: fit-content;
  z-index: 10;
  position: relative;
}

.platform-tabs .tab-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.55);
  padding: 8px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.platform-tabs .tab-btn:hover {
  color: var(--text);
}

.platform-tabs .tab-btn.active {
  background: rgba(255, 255, 255, 0.12);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* 联动控制隐藏 */
.hero.platform-mac #hero-download-android,
.hero.platform-mac .version-android,
.hero.platform-mac .meta-text-android,
.hero.platform-android #hero-download-mac,
.hero.platform-android .version-mac,
.hero.platform-android .meta-text-mac {
  display: none !important;
}

/* 安卓激活时，将其变为 Primary 渐变按钮 */
.hero.platform-android #hero-download-android {
  background: var(--primary-gradient);
  color: #FFFFFF;
  border: none;
  box-shadow: 0 8px 24px rgba(142, 124, 255, 0.2);
}
.hero.platform-android #hero-download-android:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 32px rgba(142, 124, 255, 0.32);
  filter: brightness(1.08);
}

/* 预览图容器 - 采用 Grid 重叠排版实现淡入淡出 */
.shot-images-container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
}

.shot-img {
  grid-column: 1 / 2;
  grid-row: 1 / 2;
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero.platform-mac .shot-mac {
  opacity: 1;
  pointer-events: auto;
}

.hero.platform-android .shot-android {
  opacity: 1;
  pointer-events: auto;
  width: auto;
  max-height: 480px;
  justify-self: center;
  border-radius: 20px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 217, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(8, 6, 20, 0.5);
  padding: 6px;
}

.hero.platform-android .shot-android img {
  max-height: 468px; /* 略小于外层容器以适配内边距 */
  width: auto;
  aspect-ratio: auto; /* 重置 macOS 的 1600/1166 宽屏比例 */
  object-fit: contain; /* 保证全部显示 */
  display: block;
  border-radius: 14px;
}

/* Meta 文本的默认隐藏 */
.meta-text-mac, .meta-text-android {
  display: none;
}
.hero.platform-mac .meta-text-mac {
  display: inline;
}
.hero.platform-android .meta-text-android {
  display: inline;
}

/* ============================================================
   RESPONSIVE — TABLET
   ============================================================ */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-card:first-child {
    grid-column: span 2;
    grid-row: span 1;
  }
}

/* ============================================================
   RESPONSIVE — MOBILE
   ============================================================ */
@media (max-width: 768px) {
  /* Nav */
  nav {
    padding: 14px 20px;
  }

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

  .nav-links .web-app-btn {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .nav-drawer {
    display: flex;
  }

  /* Hero */
  .hero {
    min-height: auto;
    padding: 100px 20px 52px;
  }

  .hero-shell {
    display: flex;
    flex-direction: column;
    gap: 28px;
  }

  .hero-shell,
  .hero-copy,
  .hero-player {
    min-width: 0;
    max-width: calc(100vw - 48px);
  }

  .hero-copy { order: 1; }
  .hero-player { order: 2; width: 100%; margin: 0; }

  .hero h1 {
    font-size: clamp(40px, 11vw, 52px);
    letter-spacing: -1.5px;
  }

  .hero-tagline {
    font-size: clamp(17px, 4.5vw, 22px);
  }

  .hero p.subtitle {
    max-width: calc(100vw - 48px);
    margin-bottom: 24px;
    font-size: 15px;
  }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: calc(100vw - 48px);
    grid-column: auto;
    gap: 10px;
  }

  .hero .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-version {
    grid-column: auto;
  }

  /* Screenshot */
  .product-shot-frame {
    padding: 8px;
    border-radius: 22px;
  }

  .product-shot-frame img {
    border-radius: 16px;
  }

  /* Sections */
  section:not(.hero) {
    padding: 64px 20px;
  }

  .section-header {
    margin-bottom: 40px;
  }

  /* Steps */
  .steps {
    gap: 14px;
  }

  .step-card {
    padding: 28px 22px;
  }

  /* Features */
  .features-grid {
    grid-template-columns: 1fr;
  }

  .feature-card:first-child {
    grid-column: span 1;
  }

  .feature-card:first-child .feature-bg-text {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .feature-card {
    padding: 28px 24px;
  }

  /* Community */
  .community-section {
    padding-top: 24px !important;
    padding-bottom: 56px;
  }

  .community-panel {
    padding: 36px 22px;
    gap: 28px;
  }

  .community-copy .section-title {
    font-size: clamp(26px, 8vw, 34px);
  }

  .qr-card {
    width: min(100%, 300px);
  }

  /* Toast */
  .toast {
    bottom: 20px;
    right: 16px;
    left: 16px;
    max-width: none;
  }

  /* Orbs reduced on mobile */
  .orb {
    opacity: 0.35;
  }

  /* Mobile Platform Tabs */
  .platform-tabs {
    margin-bottom: 16px;
    width: 100%;
    display: flex;
  }

  .platform-tabs .tab-btn {
    flex: 1;
    text-align: center;
    padding: 6px 12px;
    font-size: 12.5px;
  }
}
