/* ══════════════════════════════════════════════
   SPK Landing Page — Light Theme "Signal Clarity"
   ══════════════════════════════════════════════ */

:root {
  --bg: #f7f8fa;
  --bg-alt: #f1f3f6;
  --surface: #ffffff;
  --surface-hover: #f4f6f9;
  --border: #e4e7ed;
  --border-light: #dde1e8;
  --text: #15181e;
  --text-secondary: #4b5060;
  --text-muted: #737985;
  --accent: #1a5fe8;
  --accent-glow: rgba(26, 95, 232, 0.14);
  --accent-soft: rgba(26, 95, 232, 0.06);
  --accent-hover: #1553d1;
  --green: #16a34a;
  --green-glow: rgba(22, 163, 74, 0.14);
  --orange: #d97706;
  --purple: #7c3aed;
  --radius: 14px;
  --radius-lg: 20px;
  --transition: 0.35s cubic-bezier(.4, 0, .2, 1);
  --font-mono: "JetBrains Mono", "Cascadia Code", "Fira Code", "Consolas", "Courier New", monospace;
  --focus-ring: 0 0 0 3px rgba(26, 95, 232, 0.25);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Global focus ring ── */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 4px;
}
a:focus-visible, .btn:focus-visible, .platform-card:focus-visible,
.pricing-card .btn-buy:focus-visible, .skin-card:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ══════════════════════════════════════════════
   Background Effects
   ══════════════════════════════════════════════ */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(26, 95, 232, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 95, 232, 0.03) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 30%, black 20%, transparent 70%);
}
.bg-glow-1 {
  position: fixed; width: 700px; height: 700px; border-radius: 50%;
  filter: blur(200px); opacity: 0.04; background: var(--accent);
  top: -200px; right: -200px; pointer-events: none; z-index: 0;
}
.bg-glow-2 {
  position: fixed; width: 500px; height: 500px; border-radius: 50%;
  filter: blur(180px); opacity: 0.03; background: var(--purple);
  bottom: -100px; left: -100px; pointer-events: none; z-index: 0;
}

/* ══════════════════════════════════════════════
   Data Stream — signature element
   ══════════════════════════════════════════════ */
.data-stream {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(26, 95, 232, 0.15) 8%,
    rgba(22, 163, 74, 0.25) 50%,
    rgba(26, 95, 232, 0.15) 92%,
    transparent 100%);
  overflow: visible;
}
.data-stream::after {
  content: '7E A5 01 02 03 FF 55 7E  7E A5 01 02 03 FF 55 7E  7E A5 01 02 03 FF 55 7E  7E A5 01 02 03 FF 55 7E';
  position: absolute; top: -16px; left: 100%;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  color: var(--text-muted);
  opacity: 0;
  animation: streamFlow 12s linear infinite;
}
@keyframes streamFlow {
  0%   { transform: translateX(0); opacity: 0; }
  5%   { opacity: 0.7; }
  90%  { opacity: 0.7; }
  100% { transform: translateX(-200%); opacity: 0; }
}
.reveal {
  opacity: 0; transform: translateY(32px);
  transition: opacity 0.75s ease, transform 0.75s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .data-stream::after { animation: none; display: none; }
  .hero-glow, .hero-circuit { animation: none; }
  .btn::after { display: none; }
}

/* ══════════════════════════════════════════════
   Navigation
   ══════════════════════════════════════════════ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid rgba(0, 0, 0, 0.07);
  transition: background var(--transition);
}
nav .inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 32px;
}
nav .logo {
  font-size: 22px; font-weight: 800; letter-spacing: 3px;
  background: linear-gradient(135deg, var(--accent), #4d8bf7);
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  display: flex; align-items: center; gap: 10px;
}
nav .logo-svg { width: 34px; height: 34px; flex-shrink: 0; }
nav .links { display: flex; gap: 36px; font-size: 14px; font-weight: 500; }
nav .links a {
  color: var(--text-muted); text-decoration: none;
  transition: color var(--transition); position: relative;
}
nav .links a::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 2px; background: var(--accent); border-radius: 1px;
  transform: scaleX(0); transition: transform var(--transition);
}
nav .links a:hover { color: var(--text); }
nav .links a:hover::after { transform: scaleX(1); }

/* ══════════════════════════════════════════════
   Buttons
   ══════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px; border-radius: 10px;
  font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: all var(--transition); border: none;
  position: relative; overflow: hidden;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255, 255, 255, 0.12) 50%, transparent 60%);
  transform: translateX(-100%); transition: transform .6s;
}
.btn:hover::after { transform: translateX(100%); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent), #1553d1);
  color: #fff; box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--accent-glow);
}
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--border-light);
}
.btn-outline:hover {
  border-color: var(--accent);
  background: rgba(26, 95, 232, 0.04);
}
.btn-accent {
  background: linear-gradient(135deg, var(--green), #15803d);
  color: #fff;
  box-shadow: 0 4px 16px var(--green-glow);
  font-size: 16px; padding: 15px 36px;
}
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px var(--green-glow);
}

/* ══════════════════════════════════════════════
   Hero
   ══════════════════════════════════════════════ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding-top: 60px;
}
.hero-circuit {
  position: absolute; inset: 0; z-index: 0; opacity: 0.04;
  background:
    radial-gradient(circle at 20% 30%, var(--accent) 1px, transparent 1px),
    radial-gradient(circle at 80% 60%, var(--accent) 1px, transparent 1px),
    radial-gradient(circle at 50% 80%, var(--green) 1px, transparent 1px);
  background-size: 100px 100px, 140px 140px, 120px 120px;
  animation: circuitDrift 20s linear infinite;
}
@keyframes circuitDrift {
  0% { transform: translate(0, 0); }
  50% { transform: translate(20px, -10px); }
  100% { transform: translate(0, 0); }
}
.hero-glow {
  position: absolute; width: 600px; height: 600px;
  border-radius: 50%; filter: blur(180px); opacity: 0.08;
  background: var(--accent);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation: glowPulse 6s ease-in-out infinite;
}
@keyframes glowPulse {
  0%, 100% { opacity: 0.06; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.12; transform: translate(-50%, -50%) scale(1.15); }
}
.hero-bg {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 75%; height: 75%; z-index: 0;
}
.hero-bg img {
  width: 100%; height: 100%; object-fit: contain;
  filter: brightness(0.92) saturate(0.8) blur(1px);
  opacity: 0.18;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(247, 248, 250, 0.96) 0%,
    rgba(247, 248, 250, 0.55) 30%,
    rgba(247, 248, 250, 0.55) 65%,
    rgba(247, 248, 250, 0.99) 100%);
}
.hero::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 150px; z-index: 1;
  background: linear-gradient(transparent, var(--bg));
}
.hero-content { position: relative; z-index: 2; max-width: 800px; padding: 160px 24px 100px; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 18px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  background: rgba(26, 95, 232, 0.08); color: var(--accent);
  border: 1px solid rgba(26, 95, 232, 0.18);
  margin-bottom: 32px;
  animation: fadeInUp .6s ease;
}
.hero .badge .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--green);
  animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(22, 163, 74, 0.5); }
  50% { box-shadow: 0 0 0 8px rgba(22, 163, 74, 0); }
}
.hero h1 {
  font-size: 58px; font-weight: 800; letter-spacing: -1.5px;
  line-height: 1.12; margin-bottom: 22px;
  animation: fadeInUp .6s ease .1s both;
}
.hero h1 .highlight {
  background: linear-gradient(135deg, var(--accent) 20%, #4d8bf7 80%);
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.hero .subtitle {
  font-size: 18px; color: var(--text-secondary);
  max-width: 560px; margin: 0 auto 42px; line-height: 1.7;
  animation: fadeInUp .6s ease .2s both;
}
.hero .actions {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  animation: fadeInUp .6s ease .3s both;
}
.hero .actions .btn-accent { animation: btnGlow 3s ease-in-out infinite; }
@keyframes btnGlow {
  0%, 100% { box-shadow: 0 4px 20px var(--green-glow); }
  50% { box-shadow: 0 8px 36px rgba(22, 163, 74, 0.28); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════
   Stats bar — monospace for engineering feel
   ══════════════════════════════════════════════ */
.stats-bar {
  display: flex; justify-content: center; gap: 48px;
  margin-top: 52px; flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  font-family: var(--font-mono);
  font-size: 36px; font-weight: 700;
  color: var(--text);
  line-height: 1;
  letter-spacing: -1px;
}
.stat-label {
  font-size: 12px; color: var(--text-muted);
  margin-top: 6px; letter-spacing: 1px;
  text-transform: uppercase;
}
.stat-sep {
  width: 1px; height: 40px;
  background: var(--border-light);
  align-self: center;
}

/* ══════════════════════════════════════════════
   Section Headers
   ══════════════════════════════════════════════ */
section { padding: 80px 28px; position: relative; z-index: 1; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-tag {
  font-size: 12px; font-weight: 700; letter-spacing: 3px;
  color: var(--accent); text-transform: uppercase; margin-bottom: 12px;
  display: flex; align-items: center; gap: 10px;
}
.section-tag::before {
  content: ''; width: 24px; height: 1px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.section-header { margin-bottom: 60px; }
.section-header.center { text-align: center; }
.section-header.center .section-tag { justify-content: center; }
.section-header.center .section-tag::after {
  content: ''; width: 24px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
}
.section-title {
  font-size: 40px; font-weight: 750; margin-bottom: 14px;
  letter-spacing: -0.5px; line-height: 1.2;
  color: var(--text);
}
.section-title .accent { color: var(--accent); }
.section-desc { color: var(--text-muted); font-size: 16px; max-width: 600px; line-height: 1.7; }

/* ══════════════════════════════════════════════
   Feature Showcase Block (Left-Right Split)
   ══════════════════════════════════════════════ */
.showcase {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  margin-bottom: 80px;
  position: relative;
}
.showcase:last-of-type { margin-bottom: 0; }
.showcase.reverse { direction: rtl; }
.showcase.reverse > * { direction: ltr; }

/* ── Connector line between showcase blocks ── */
.showcase + .showcase::before {
  content: '';
  position: absolute; top: -40px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 40px;
  background: linear-gradient(180deg, transparent, var(--border-light), transparent);
}

/* ── Text Side ── */
.showcase-text { position: relative; }
.showcase-category {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600; letter-spacing: 2px;
  color: var(--accent);
  text-transform: uppercase;
  padding: 4px 12px;
  border: 1px solid rgba(26, 95, 232, 0.15);
  border-radius: 4px;
  background: rgba(26, 95, 232, 0.04);
  margin-bottom: 16px;
}
.showcase-icon {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin-bottom: 20px;
  background: rgba(26, 95, 232, 0.06);
  border: 1px solid rgba(26, 95, 232, 0.12);
  position: relative; z-index: 1;
}
.showcase-text h3 {
  font-size: 28px; font-weight: 750; margin-bottom: 12px;
  letter-spacing: -0.3px; position: relative; z-index: 1;
  color: var(--text);
}
.showcase-text .lead {
  font-size: 15px; color: var(--text-secondary); line-height: 1.7;
  margin-bottom: 24px; position: relative; z-index: 1;
}

/* ── New badge ── */
.new-badge {
  display: inline-block;
  padding: 2px 10px; border-radius: 12px;
  font-size: 11px; font-weight: 700; letter-spacing: 1px;
  background: linear-gradient(135deg, var(--green), #15803d);
  color: #fff; margin-left: 8px;
  vertical-align: middle;
}

/* ── Feature checklist ── */
.feature-checklist {
  list-style: none; display: flex; flex-direction: column; gap: 10px;
  position: relative; z-index: 1;
}
.feature-checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 14px; color: var(--text-secondary);
  padding: 10px 14px; border-radius: 10px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid transparent;
  transition: all var(--transition);
}
.feature-checklist li:hover {
  background: var(--surface);
  border-color: var(--border-light);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.feature-checklist li .check-icon {
  width: 22px; height: 22px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-top: 1px;
  background: rgba(22, 163, 74, 0.1);
  color: var(--green); font-size: 12px;
}

/* ── Image Side ── */
.showcase-image {
  position: relative; z-index: 1;
}
.device-frame {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.03),
    0 4px 24px rgba(0, 0, 0, 0.06),
    0 0 60px rgba(26, 95, 232, 0.03);
  transition: all var(--transition);
}
.device-frame:hover {
  border-color: rgba(26, 95, 232, 0.3);
  box-shadow:
    0 0 0 1px rgba(26, 95, 232, 0.06),
    0 8px 36px rgba(0, 0, 0, 0.1),
    0 0 80px rgba(26, 95, 232, 0.06);
}
.device-frame .dots {
  display: flex; gap: 6px; padding: 14px 18px;
  background: rgba(247, 248, 250, 0.95);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.device-frame .dots span {
  width: 10px; height: 10px; border-radius: 50%;
}
.device-frame .dots span:nth-child(1) { background: #ff5f57; }
.device-frame .dots span:nth-child(2) { background: #febc2e; }
.device-frame .dots span:nth-child(3) { background: #28c840; }
.device-frame img {
  width: 100%; display: block;
  transition: transform .4s ease;
}
.device-frame:hover img { transform: scale(1.01); }

/* ── Image glow accent ── */
.showcase-image::after {
  content: ''; position: absolute; inset: -1px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(26, 95, 232, 0.04), transparent 40%, transparent 60%, rgba(26, 95, 232, 0.02));
  pointer-events: none; z-index: 2;
}

/* ══════════════════════════════════════════════
   Waveform Mini Gallery
   ══════════════════════════════════════════════ */
.waveform-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto auto;
  gap: 10px;
  position: relative; z-index: 1;
}
.waveform-gallery .gallery-main {
  grid-column: 1 / -1;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-light);
  background: var(--surface);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.waveform-gallery .gallery-main img { width: 100%; display: block; }
.waveform-gallery .gallery-thumb {
  border-radius: 10px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent;
  background: var(--surface);
  transition: all var(--transition);
  aspect-ratio: 16/10;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.waveform-gallery .gallery-thumb img {
  width: 100%; height: 100%; display: block; object-fit: cover;
  transition: transform .4s ease;
}
.waveform-gallery .gallery-thumb:hover {
  border-color: rgba(26, 95, 232, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
}
.waveform-gallery .gallery-thumb:hover img { transform: scale(1.04); }
.waveform-gallery .gallery-thumb.active {
  border-color: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

/* ══════════════════════════════════════════════
   Skins Section
   ══════════════════════════════════════════════ */
.skin-showcase {
  margin-bottom: 20px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-light);
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.skin-showcase img { width: 100%; display: block; }
.skin-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.skin-row-v5 {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 14px; margin-bottom: 14px;
}
.skin-card {
  background: var(--surface);
  border: 2px solid transparent;
  border-radius: var(--radius);
  overflow: hidden; text-align: center;
  cursor: pointer; position: relative;
  transition: all var(--transition);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.skin-card:hover {
  border-color: rgba(26, 95, 232, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.1);
}
.skin-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 24px var(--accent-glow);
}
.skin-card img { width: 100%; display: block; aspect-ratio: 16/10; object-fit: cover; object-position: top; }
.skin-card .skin-label {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px; font-size: 13px; font-weight: 600; color: var(--text);
  flex-wrap: wrap;
}
.skin-card .skin-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.skin-card .skin-badge-new {
  font-size: 10px; font-weight: 700; letter-spacing: 1px;
  padding: 2px 8px; border-radius: 10px;
  background: linear-gradient(135deg, var(--green), #15803d);
  color: #fff;
}

/* ══════════════════════════════════════════════
   Tech Specs Strip (compact feature grid)
   ══════════════════════════════════════════════ */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px; margin-top: 48px;
}
.spec-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px; border-radius: 10px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid transparent;
  transition: all var(--transition);
  font-size: 13px; color: var(--text-muted);
}
.spec-item:hover {
  background: var(--surface);
  border-color: var(--border-light);
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}
.spec-item .spec-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); flex-shrink: 0;
  opacity: 0.5;
}
.spec-item:hover .spec-dot { opacity: 1; box-shadow: 0 0 8px var(--accent-glow); }

/* ══════════════════════════════════════════════
   Download
   ══════════════════════════════════════════════ */
#download {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.download-box {
  display: flex; align-items: center; justify-content: space-between;
  gap: 28px; flex-wrap: wrap;
}
.download-info h3 { font-size: 24px; font-weight: 700; margin-bottom: 8px; color: var(--text); }
.download-info p { color: var(--text-muted); font-size: 15px; }
.download-platforms { display: flex; gap: 14px; flex-wrap: wrap; }
.platform-card {
  background: var(--bg); border: 1px solid var(--border-light);
  border-radius: var(--radius); padding: 22px 30px; text-align: center;
  min-width: 170px; text-decoration: none; color: var(--text);
  transition: all var(--transition);
}
.platform-card:hover {
  border-color: var(--accent); transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.platform-card .os { font-size: 34px; margin-bottom: 10px; }
.platform-card .label { font-size: 15px; font-weight: 650; }
.platform-card .meta { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* ══════════════════════════════════════════════
   Pricing
   ══════════════════════════════════════════════ */
#pricing {
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 50%, var(--bg) 100%);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px; margin-top: 48px;
  max-width: 960px; margin-left: auto; margin-right: auto;
  align-items: stretch;
}
.pricing-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px 32px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  display: flex; flex-direction: column;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}
.pricing-card:hover {
  border-color: rgba(26, 95, 232, 0.3);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
}
.pricing-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, rgba(26, 95, 232, 0.03) 0%, var(--surface) 30%);
  box-shadow: 0 0 32px var(--accent-glow), 0 4px 20px rgba(0, 0, 0, 0.06);
  transform: scale(1.04);
  z-index: 2;
}
.pricing-card.featured:hover { transform: scale(1.04) translateY(-4px); }
.pricing-card .badge-pop {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #1553d1);
  color: #fff; font-size: 12px; font-weight: 700;
  padding: 5px 18px; border-radius: 20px;
  letter-spacing: 1px;
  box-shadow: 0 4px 16px var(--accent-glow);
}
.pricing-card .plan-icon { font-size: 32px; margin-bottom: 14px; }
.pricing-card .plan-name { font-size: 16px; font-weight: 700; margin-bottom: 16px; color: var(--text); }
.pricing-card .price-wrap { margin-bottom: 6px; }
.pricing-card .price {
  font-size: 44px; font-weight: 800; line-height: 1;
  background: linear-gradient(135deg, var(--accent), #4d8bf7);
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.pricing-card.featured .price {
  background: linear-gradient(135deg, var(--accent), #6ba6ff);
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.pricing-card .price-unit { font-size: 16px; font-weight: 500; color: var(--text-muted); }
.pricing-card .price-period { font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.pricing-card .features-list {
  list-style: none; text-align: left; margin-bottom: 24px;
  flex: 1;
}
.pricing-card .features-list li {
  font-size: 13px; color: var(--text-muted);
  padding: 5px 0; display: flex; align-items: center; gap: 8px;
}
.pricing-card .features-list li::before {
  content: '✓'; color: var(--green); font-weight: 700; font-size: 14px;
}
.pricing-card .btn-buy {
  display: block; width: 100%; padding: 13px 0; border-radius: 10px;
  font-size: 15px; font-weight: 650; text-decoration: none; cursor: pointer;
  transition: all var(--transition); border: none; text-align: center;
  background: linear-gradient(135deg, var(--accent), #1553d1);
  color: #fff; box-shadow: 0 4px 14px rgba(26, 95, 232, 0.2);
}
.pricing-card .btn-buy:hover {
  box-shadow: 0 8px 24px var(--accent-glow);
  transform: translateY(-1px);
}
.pricing-card.featured .btn-buy {
  background: linear-gradient(135deg, var(--green), #15803d);
  box-shadow: 0 4px 16px var(--green-glow);
}
.pricing-card.featured .btn-buy:hover {
  box-shadow: 0 8px 28px var(--green-glow);
}
.pricing-note {
  text-align: center; margin-top: 28px;
  font-size: 13px; color: var(--text-muted);
}
.pricing-note a { color: var(--accent); text-decoration: none; font-weight: 600; }
.pricing-note a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════
   Contact
   ══════════════════════════════════════════════ */
.contact-box {
  display: flex; align-items: center; gap: 32px;
  margin: 48px auto 0; padding: 28px 32px;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
  flex-wrap: wrap; justify-content: center;
  max-width: 600px;
}
.contact-box .qr-placeholder {
  width: 120px; height: 120px;
  border-radius: 10px; border: 1px dashed var(--border-light);
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); font-size: 12px;
  text-align: center; line-height: 1.4;
}
.contact-info h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; color: var(--text); }
.contact-info p { font-size: 14px; color: var(--text-muted); margin-bottom: 6px; }
.contact-email {
  font-size: 16px; font-weight: 650; color: var(--accent);
  text-decoration: none; transition: color var(--transition);
  display: inline-flex; align-items: center; gap: 6px;
}
.contact-email:hover { color: var(--accent-hover); }

/* ══════════════════════════════════════════════
   Policy Card — 订阅转永久升级政策
   ══════════════════════════════════════════════ */
.policy-card {
  max-width: 720px;
  margin: 32px auto 0;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03);
}
.policy-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 24px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 650;
  color: var(--text-secondary);
  transition: background var(--transition);
  font-family: inherit;
}
.policy-toggle:hover {
  background: rgba(0, 0, 0, 0.02);
}
.policy-toggle-icon {
  display: flex;
  color: var(--accent);
  opacity: 0.7;
  flex-shrink: 0;
}
.policy-toggle-text {
  flex: 1;
  text-align: left;
}
.policy-toggle-chevron {
  display: flex;
  color: var(--text-muted);
  transition: transform var(--transition);
  flex-shrink: 0;
}
.policy-card.open .policy-toggle-chevron {
  transform: rotate(180deg);
}

/* ── Body ── */
.policy-body {
  display: none;
  padding: 0 24px 24px;
  border-top: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}
.policy-card.open .policy-body {
  display: block;
  animation: policyFadeIn .35s ease;
}
@keyframes policyFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.policy-intro {
  margin-bottom: 20px;
  padding-top: 20px;
  color: var(--text-secondary);
}

/* ── Rule blocks ── */
.policy-rule {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  margin-bottom: 18px;
  align-items: baseline;
}
.policy-rule-hd {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  padding-top: 4px;
}
.policy-rule-bd {
  min-width: 0;
}

/* ── Conditions ── */
.policy-conditions {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.policy-conditions li {
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.policy-cond-check::before {
  content: '✓';
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  color: #fff;
  background: var(--green);
}
.policy-cond-cross::before {
  content: '✕';
  flex-shrink: 0;
  width: 20px; height: 20px;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.06);
}

/* ── Formula ── */
.policy-formula {
  background: rgba(26, 95, 232, 0.035);
  border: 1px solid rgba(26, 95, 232, 0.1);
  border-radius: 10px;
  padding: 14px 18px;
  overflow-x: auto;
}
.policy-formula-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.policy-formula-label {
  color: var(--accent);
}
.policy-formula-op {
  color: var(--text-muted);
  font-weight: 500;
}
.policy-formula-val {
  color: var(--text-secondary);
  font-weight: 500;
}
.policy-formula-cap {
  margin-top: 10px;
  font-size: 12px;
  color: var(--orange);
  font-weight: 600;
}

/* ── Example ── */
.policy-example {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(22, 163, 74, 0.04);
  border: 1px solid rgba(22, 163, 74, 0.12);
  border-radius: 10px;
  padding: 14px 18px;
  flex-wrap: wrap;
}
.policy-example-scenario {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
  min-width: 200px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.policy-example-tag {
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700;
  background: var(--green);
  color: #fff;
}
.policy-example-muted {
  font-size: 12px;
  color: var(--text-muted);
}
.policy-example-arrow {
  font-size: 20px;
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
}
.policy-example-result {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--text-secondary);
}
.policy-example-price {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--green);
}

/* ── Footnote ── */
.policy-footnote {
  margin-top: 16px;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

/* Policy card responsive */
@media (max-width: 768px) {
  .policy-rule {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .policy-formula-row {
    font-size: 13px;
    gap: 6px;
  }
  .policy-example {
    flex-direction: column;
    align-items: flex-start;
  }
  .policy-example-arrow {
    transform: rotate(90deg);
  }
}
.modal-overlay {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 40px 36px 32px;
  text-align: center;
  max-width: 400px; width: 90%;
  position: relative;
  box-shadow: 0 24px 72px rgba(0, 0, 0, 0.18), 0 0 48px var(--accent-glow);
  transform: translateY(20px) scale(0.96);
  transition: transform .35s cubic-bezier(.4, 0, .2, 1);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute; top: 14px; right: 18px;
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--text-muted);
  background: transparent; border: none; cursor: pointer;
  transition: all var(--transition);
}
.modal-close:hover { color: var(--text); background: rgba(0, 0, 0, 0.04); }
.modal-icon {
  width: 56px; height: 56px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 18px;
  background: var(--accent-soft);
  border: 1px solid rgba(26, 95, 232, 0.15);
}
.modal h3 { font-size: 22px; font-weight: 750; margin-bottom: 8px; color: var(--text); }
.modal .modal-desc {
  font-size: 14px; color: var(--text-muted);
  margin-bottom: 22px; line-height: 1.7;
}
.modal .modal-qr {
  width: 200px; height: 200px; border-radius: 14px;
  border: 1px solid var(--border-light);
  margin-bottom: 18px; object-fit: contain;
}
.modal .modal-contact {
  font-size: 13px; color: var(--text-muted);
  display: flex; align-items: center; justify-content: center; gap: 6px;
  flex-wrap: wrap;
}
.modal .modal-contact a {
  color: var(--accent); text-decoration: none; font-weight: 600;
  transition: color var(--transition);
}
.modal .modal-contact a:hover { color: var(--accent-hover); }

/* ══════════════════════════════════════════════
   Footer
   ══════════════════════════════════════════════ */
footer {
  text-align: center; padding: 48px 28px;
  font-size: 13px; color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--surface);
}
footer .footer-logo {
  font-size: 18px; font-weight: 700; letter-spacing: 2px;
  color: var(--text-muted); margin-bottom: 8px;
}

/* ══════════════════════════════════════════════
   v5.0 Highlights Section — Lua + Frame Assembler
   ══════════════════════════════════════════════ */
.v5-highlights {
  background: linear-gradient(180deg, rgba(26, 95, 232, 0.025) 0%, var(--bg) 50%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.highlight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 48px;
  position: relative;
}
/* ── subtle vertical divider between the dual cards ── */
.highlight-grid::before {
  content: '';
  position: absolute;
  top: 10%; left: 50%;
  transform: translateX(-50%);
  width: 1px; height: 80%;
  background: linear-gradient(180deg, transparent, var(--border-light), var(--border-light), transparent);
  z-index: 0;
  pointer-events: none;
}
.highlight-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
}
.highlight-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08), 0 0 40px var(--accent-glow);
}
.highlight-card-img {
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}
.highlight-card-img img {
  width: 100%;
  display: block;
  transition: transform .5s ease;
}
.highlight-card:hover .highlight-card-img img {
  transform: scale(1.03);
}
.highlight-card-body {
  padding: 28px 28px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.highlight-card-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 12px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
/* Lua card — blue "解析入站" tag */
.highlight-card:nth-child(1) .highlight-card-tag {
  background: rgba(26, 95, 232, 0.08);
  color: var(--accent);
}
/* Frame Assembler card — green "生成出站" tag */
.highlight-card:nth-child(2) .highlight-card-tag {
  background: rgba(22, 163, 74, 0.08);
  color: var(--green);
}
.highlight-card-body h3 {
  font-size: 22px;
  font-weight: 750;
  margin-bottom: 10px;
  color: var(--text);
}
.highlight-card-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 18px;
}
.highlight-features {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.highlight-features li {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.015);
  transition: all var(--transition);
}
.highlight-features li:hover {
  background: rgba(0, 0, 0, 0.03);
  color: var(--text);
}
.highlight-features li::before {
  content: '';
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  opacity: 0.45;
}

/* ── v5.0 spec item emphasis ── */
.spec-item.v5-new {
  background: rgba(26, 95, 232, 0.03);
  border-color: rgba(26, 95, 232, 0.1);
  color: var(--text);
  font-weight: 600;
}
.spec-item.v5-new .spec-dot {
  opacity: 1;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent-glow);
}
.spec-item.v5-new::after {
  content: 'NEW';
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  padding: 2px 8px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), #1553d1);
  color: #fff;
  flex-shrink: 0;
}

/* ══════════════════════════════════════════════
   Responsive
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .showcase {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .showcase.reverse { direction: ltr; }
  .showcase-image { order: -1; }
  .showcase.reverse .showcase-image { order: -1; }
  .showcase-category { font-size: 10px; }
  .stat-sep { display: none; }
}
@media (max-width: 768px) {
  .hero h1 { font-size: 36px; }
  .hero .subtitle { font-size: 15px; }
  .hero-content { padding: 130px 20px 80px; }
  .section-title { font-size: 28px; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; }
  .pricing-card.featured { transform: none; }
  .pricing-card.featured:hover { transform: translateY(-4px); }
  .skin-row, .skin-row-v5 { grid-template-columns: repeat(2, 1fr); }
  .stats-bar { gap: 28px; }
  .stat-sep { display: none; }
  nav .links { gap: 20px; font-size: 13px; }
  .waveform-gallery { grid-template-columns: 1fr 1fr; }
  .highlight-grid { grid-template-columns: 1fr; gap: 24px; }
  .highlight-grid::before { display: none; }
  .highlight-features { grid-template-columns: 1fr; }
}
