/* ==========================================================================
   MeloTrain Official Design System & Stylesheet
   Inspired by Antigravity.google & Pi.dev
   ========================================================================== */

:root {
  --bg-canvas: #080f0d;
  --bg-forest: #132A24;
  --bg-card: rgba(19, 42, 36, 0.65);
  --bg-card-hover: rgba(25, 55, 47, 0.85);
  --border-subtle: rgba(226, 236, 233, 0.12);
  --border-hover: rgba(224, 109, 83, 0.45);
  --text-main: #E2ECE9;
  --text-sub: #9BB5AC;
  --text-muted: #5E7A71;
  --accent-coral: #E06D53;
  --accent-coral-hover: #c8573e;
  --accent-coral-glow: rgba(224, 109, 83, 0.28);
  --accent-mint: #10B981;
  --accent-amber: #F59E0B;
  --accent-blue: #3B82F6;
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-mono: "SF Mono", ui-monospace, Menlo, Monaco, Consolas, monospace;
  --max-w: 1240px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
}

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

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

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

/* Background Canvas */
#wave-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

/* Base Container */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
  position: relative;
  z-index: 2;
}

/* Body Top Padding for Fixed Header */
body {
  padding-top: 72px;
}

/* Header Full-Width Container (Occupies 100% Viewport Width) */
.header-container {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding-left: clamp(24px, 4vw, 56px);
  padding-right: clamp(24px, 4vw, 56px);
  position: relative;
  z-index: 2;
}

/* Header & Navbar (Fixed at Top, always visible on scroll) */
.site-header {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: rgba(8, 15, 13, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(8, 15, 13, 0.94);
  border-bottom-color: rgba(226, 236, 233, 0.18);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-main);
}

.brand-logo-img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 14px rgba(224, 109, 83, 0.3);
}

.brand-text {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.brand-badge {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent-coral);
  background: rgba(224, 109, 83, 0.12);
  border: 1px solid rgba(224, 109, 83, 0.3);
  padding: 2px 7px;
  border-radius: 6px;
  margin-left: 4px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(16px, 3vw, 36px);
  list-style: none;
}

.nav-app-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  padding: 6px 14px;
  border-radius: 10px;
  transition: all 0.22s ease;
  position: relative;
}

.nav-app-link .nav-link-en {
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.2px;
  line-height: 1.15;
  color: var(--text-main);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-app-link .nav-link-cn {
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0.3px;
  line-height: 1.1;
  color: var(--text-muted);
  margin-top: 3px;
  transition: color 0.2s ease;
}

.nav-app-link:hover {
  background: rgba(226, 236, 233, 0.06);
}

.nav-app-link:hover .nav-link-en,
.nav-app-link.active .nav-link-en {
  color: #FFFFFF;
}

.nav-app-link[data-app="melotone"]:hover .nav-link-cn,
.nav-app-link[data-app="melotone"].active .nav-link-cn {
  color: var(--accent-coral);
}

.nav-app-link[data-app="meloline"]:hover .nav-link-cn,
.nav-app-link[data-app="meloline"].active .nav-link-cn {
  color: var(--accent-mint);
}

.nav-app-link[data-app="melobeat"]:hover .nav-link-cn,
.nav-app-link[data-app="melobeat"].active .nav-link-cn {
  color: var(--accent-amber);
}

.nav-normal-link {
  display: inline-flex;
  align-items: center;
  color: #8CA89F;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.nav-normal-link:hover {
  color: #FFFFFF;
  background: rgba(226, 236, 233, 0.06);
}

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

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-coral);
  color: #fff;
  text-decoration: none;
  padding: 10px 22px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 4px 20px var(--accent-coral-glow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-coral-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(224, 109, 83, 0.45);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(226, 236, 233, 0.08);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.25s ease;
}

.btn-secondary:hover {
  background: rgba(226, 236, 233, 0.15);
  border-color: rgba(226, 236, 233, 0.3);
  transform: translateY(-2px);
}

.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 24px;
  cursor: pointer;
}

/* Hero Section */
.hero-section {
  padding: 48px 0 56px;
  text-align: center;
  position: relative;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(224, 109, 83, 0.1);
  border: 1px solid rgba(224, 109, 83, 0.3);
  color: var(--accent-coral);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero-title {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 850;
  line-height: 1.12;
  letter-spacing: -1.5px;
  max-width: 900px;
  margin: 0 auto 16px;
  color: #fff;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: clamp(24px, 7.6vw, 36px);
    letter-spacing: -0.5px;
    white-space: nowrap;
  }
}

.hero-title .gradient-text {
  background: linear-gradient(135deg, #FFFFFF 20%, #E06D53 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-sub);
  max-width: 960px;
  margin: 0 auto 24px;
  line-height: 1.6;
}

@media (min-width: 769px) {
  .hero-desc {
    white-space: nowrap;
  }
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

/* Hero Phone Mockup Trio (Spacious & Non-Overlapping Showcase) */
.hero-trio-wrap {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  position: relative;
  perspective: 1200px;
  transform-style: preserve-3d;
  padding-bottom: 24px;
  min-height: 680px;
}

.hero-phone-item {
  position: absolute;
  left: 50%;
  top: 0;
  width: 270px;
  margin-left: -135px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  transform-origin: center center;
  transform-style: preserve-3d;
  will-change: transform, opacity, z-index;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  cursor: pointer;
}

/* App Title Tag placed above Phone Mockup (Rolls Synchronously with the Phone) */
.phone-app-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  max-width: none;
  width: max-content;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(9, 28, 22, 0.85);
  border: 1px solid rgba(226, 236, 233, 0.2);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
  user-select: none;
  cursor: pointer;
  pointer-events: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transform: translateZ(0);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.phone-app-tag .app-tag-icon {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  object-fit: cover;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.phone-app-tag .app-tag-title {
  font-size: 13.5px;
  font-weight: 650;
  color: #B4C7C1;
  letter-spacing: -0.2px;
  line-height: 1;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.phone-app-tag .app-tag-badge {
  font-size: 11px;
  font-weight: 550;
  color: #8CA89F;
  padding: 3px 10px;
  border-radius: 9999px;
  background: rgba(226, 236, 233, 0.1);
  line-height: 1.2;
  white-space: nowrap;
  word-break: keep-all;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  overflow: visible;
}

.hero-phone-item .phone-mockup {
  transition: box-shadow 0.75s ease, border-color 0.75s ease, transform 0.3s ease;
}

/* --- Dynamic Slot States: Spacious 3D Perspective Curved Showcase --- */

/* Common Active Center Tag Prominence (Longer, Single-Line, Highlighted Outer Border) */
.hero-trio-wrap[data-active="melotone"] .item-melotone .phone-app-tag,
.hero-trio-wrap[data-active="meloline"] .item-meloline .phone-app-tag,
.hero-trio-wrap[data-active="melobeat"] .item-melobeat .phone-app-tag {
  padding: 9px 24px;
  border-width: 2.5px;
  white-space: nowrap;
  width: max-content;
  max-width: none;
  gap: 12px;
}

.hero-trio-wrap[data-active="melotone"] .item-melotone .phone-app-tag .app-tag-icon,
.hero-trio-wrap[data-active="meloline"] .item-meloline .phone-app-tag .app-tag-icon,
.hero-trio-wrap[data-active="melobeat"] .item-melobeat .phone-app-tag .app-tag-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  flex-shrink: 0;
}

.hero-trio-wrap[data-active="melotone"] .item-melotone .phone-app-tag .app-tag-title,
.hero-trio-wrap[data-active="meloline"] .item-meloline .phone-app-tag .app-tag-title,
.hero-trio-wrap[data-active="melobeat"] .item-melobeat .phone-app-tag .app-tag-title {
  font-size: 18px;
  font-weight: 850;
  color: #FFFFFF;
  letter-spacing: -0.3px;
  white-space: nowrap;
  flex-shrink: 0;
}

.hero-trio-wrap[data-active="melotone"] .item-melotone .phone-app-tag .app-tag-badge,
.hero-trio-wrap[data-active="meloline"] .item-meloline .phone-app-tag .app-tag-badge,
.hero-trio-wrap[data-active="melobeat"] .item-melobeat .phone-app-tag .app-tag-badge {
  font-size: 13.5px;
  font-weight: 700;
  padding: 4px 14px;
  color: #FFFFFF;
  white-space: nowrap;
  word-break: keep-all;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

white-space: nowrap;
flex-shrink: 0;
}

/* State 1: MeloTone is Active Center */
.hero-trio-wrap[data-active="melotone"] .item-melotone {
  z-index: 25;
  transform: translateX(0) rotateY(0deg) scale(1) translateZ(40px);
  opacity: 1;
  pointer-events: auto;
  cursor: default;
}

.hero-trio-wrap[data-active="melotone"] .item-melotone .phone-app-tag {
  background: linear-gradient(135deg, #241410 0%, #120a08 100%);
  border-color: #E06D53;
  box-shadow: 0 0 32px rgba(224, 109, 83, 0.75), 0 8px 24px rgba(0, 0, 0, 0.8);
}

.hero-trio-wrap[data-active="melotone"] .item-melotone .app-tag-badge {
  color: #FFFFFF;
  background: rgba(224, 109, 83, 0.45);
  border: 1px solid rgba(224, 109, 83, 0.6);
}

.hero-trio-wrap[data-active="melotone"] .item-melotone .phone-mockup {
  box-shadow: 0 35px 85px rgba(0, 0, 0, 0.85), 0 0 55px rgba(224, 109, 83, 0.45);
  border-color: #E06D53;
}

.hero-trio-wrap[data-active="melotone"] .item-melobeat {
  z-index: 10;
  transform: translateX(-330px) rotateY(16deg) scale(0.92) translateZ(-40px);
  opacity: 0.88;
  cursor: pointer;
}

.hero-trio-wrap[data-active="melotone"] .item-meloline {
  z-index: 10;
  transform: translateX(330px) rotateY(-16deg) scale(0.92) translateZ(-40px);
  opacity: 0.88;
  cursor: pointer;
}

/* State 2: MeloLine is Active Center */
.hero-trio-wrap[data-active="meloline"] .item-meloline {
  z-index: 25;
  transform: translateX(0) rotateY(0deg) scale(1) translateZ(40px);
  opacity: 1;
  pointer-events: auto;
  cursor: default;
}

.hero-trio-wrap[data-active="meloline"] .item-meloline .phone-app-tag {
  background: linear-gradient(135deg, #09261c 0%, #04140e 100%);
  border-color: #10B981;
  box-shadow: 0 0 32px rgba(16, 185, 129, 0.75), 0 8px 24px rgba(0, 0, 0, 0.8);
}

.hero-trio-wrap[data-active="meloline"] .item-meloline .app-tag-badge {
  color: #FFFFFF;
  background: rgba(16, 185, 129, 0.45);
  border: 1px solid rgba(16, 185, 129, 0.6);
}

.hero-trio-wrap[data-active="meloline"] .item-meloline .phone-mockup {
  box-shadow: 0 35px 85px rgba(0, 0, 0, 0.85), 0 0 55px rgba(16, 185, 129, 0.45);
  border-color: #10B981;
}

.hero-trio-wrap[data-active="meloline"] .item-melotone {
  z-index: 10;
  transform: translateX(-330px) rotateY(16deg) scale(0.92) translateZ(-40px);
  opacity: 0.88;
  cursor: pointer;
}

.hero-trio-wrap[data-active="meloline"] .item-melobeat {
  z-index: 10;
  transform: translateX(330px) rotateY(-16deg) scale(0.92) translateZ(-40px);
  opacity: 0.88;
  cursor: pointer;
}

/* State 3: MeloBeat is Active Center */
.hero-trio-wrap[data-active="melobeat"] .item-melobeat {
  z-index: 25;
  transform: translateX(0) rotateY(0deg) scale(1) translateZ(40px);
  opacity: 1;
  pointer-events: auto;
  cursor: default;
}

.hero-trio-wrap[data-active="melobeat"] .item-melobeat .phone-app-tag {
  background: linear-gradient(135deg, #281a08 0%, #140d04 100%);
  border-color: #F59E0B;
  box-shadow: 0 0 32px rgba(245, 158, 11, 0.75), 0 8px 24px rgba(0, 0, 0, 0.8);
}

.hero-trio-wrap[data-active="melobeat"] .item-melobeat .app-tag-badge {
  color: #FFFFFF;
  background: rgba(245, 158, 11, 0.45);
  border: 1px solid rgba(245, 158, 11, 0.6);
}

.hero-trio-wrap[data-active="melobeat"] .item-melobeat .phone-mockup {
  box-shadow: 0 35px 85px rgba(0, 0, 0, 0.85), 0 0 55px rgba(245, 158, 11, 0.45);
  border-color: #F59E0B;
}

.hero-trio-wrap[data-active="melobeat"] .item-meloline {
  z-index: 10;
  transform: translateX(-330px) rotateY(16deg) scale(0.92) translateZ(-40px);
  opacity: 0.88;
  cursor: pointer;
}

.hero-trio-wrap[data-active="melobeat"] .item-melotone {
  z-index: 10;
  transform: translateX(330px) rotateY(-16deg) scale(0.92) translateZ(-40px);
  opacity: 0.88;
  cursor: pointer;
}

/* Side Phone Hover Feedback */
.hero-trio-wrap .hero-phone-item:hover {
  opacity: 1 !important;
}

.hero-trio-wrap .hero-phone-item:hover .phone-app-tag {
  border-color: rgba(226, 236, 233, 0.4);
}

.hero-trio-wrap .hero-phone-item:hover .phone-mockup {
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.9), 0 0 35px rgba(226, 236, 233, 0.2);
  border-color: rgba(226, 236, 233, 0.35);
}

/* Clean Dots Indicator for 3 Apps */
.hero-dots-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
}

.hero-dot-btn {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: rgba(226, 236, 233, 0.2);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-dot-btn:hover {
  background: rgba(226, 236, 233, 0.5);
}

.hero-dot-btn.active {
  width: 32px;
  border-radius: 9999px;
  background: var(--accent-coral);
  box-shadow: 0 0 12px var(--accent-coral-glow);
}

/* Specific Active Colors for dots */
.hero-dots-indicator[data-active="melotone"] .hero-dot-btn[data-app="melotone"] {
  background: var(--accent-coral);
  box-shadow: 0 0 12px var(--accent-coral-glow);
}

.hero-dots-indicator[data-active="meloline"] .hero-dot-btn[data-app="meloline"] {
  background: var(--accent-mint);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.hero-dots-indicator[data-active="melobeat"] .hero-dot-btn[data-app="melobeat"] {
  background: #F59E0B;
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.5);
}

/* Product Feature Sections */
.product-section {
  overflow: hidden;
  padding: 44px 0;
  position: relative;
  scroll-margin-top: 40px;
}

.product-section::before {
  content: "";
  position: absolute;
  top: 20%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.15;
}

#melotone::before {
  right: -100px;
  background: var(--accent-coral);
}

#meloline::before {
  left: -100px;
  background: var(--accent-mint);
}

#melobeat::before {
  right: -100px;
  background: var(--accent-amber);
}

.product-section .container {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.product-grid {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(48px, 6vw, 96px);
  max-width: 1020px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.product-text {
  flex: 0 1 540px;
  max-width: 540px;
}

.product-visual {
  flex: 0 0 270px;
  width: 270px;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.product-grid.reverse {
  flex-direction: row-reverse;
}

/* ==========================================================================
   Product Detail Highlighted Phone Mockups & Ambient Backlight Glow
   ========================================================================== */
.product-visual {
  position: relative;
  z-index: 5;
}

.product-visual::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 320px;
  height: 520px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: -1;
  pointer-events: none;
  opacity: 0.45;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

#melotone .product-visual::after {
  background: radial-gradient(circle, #E06D53 0%, rgba(224, 109, 83, 0) 70%);
}

#melobeat .product-visual::after {
  background: radial-gradient(circle, #F59E0B 0%, rgba(245, 158, 11, 0) 70%);
}

#meloline .product-visual::after {
  background: radial-gradient(circle, #10B981 0%, rgba(16, 185, 129, 0) 70%);
}

.product-visual .phone-mockup {
  cursor: pointer;
  border-width: 3.5px;
  border-style: solid;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
  position: relative;
  z-index: 2;
}

.product-visual .phone-mockup:hover {
  transform: translateY(-8px) scale(1.02);
}

.product-visual .mockup-screen-img {
  filter: brightness(1.05) contrast(1.03);
}

#melotone .product-visual .phone-mockup {
  border-color: #E06D53;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.85),
    0 0 45px rgba(224, 109, 83, 0.5),
    0 0 16px rgba(224, 109, 83, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

#melotone .product-visual .phone-mockup:hover {
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.95),
    0 0 65px rgba(224, 109, 83, 0.75),
    0 0 25px rgba(224, 109, 83, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

#melobeat .product-visual .phone-mockup {
  border-color: #F59E0B;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.85),
    0 0 45px rgba(245, 158, 11, 0.5),
    0 0 16px rgba(245, 158, 11, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

#melobeat .product-visual .phone-mockup:hover {
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.95),
    0 0 65px rgba(245, 158, 11, 0.75),
    0 0 25px rgba(245, 158, 11, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

#meloline .product-visual .phone-mockup {
  border-color: #10B981;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.85),
    0 0 45px rgba(16, 185, 129, 0.5),
    0 0 16px rgba(16, 185, 129, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.25);
}

#meloline .product-visual .phone-mockup:hover {
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.95),
    0 0 65px rgba(16, 185, 129, 0.75),
    0 0 25px rgba(16, 185, 129, 0.55),
    inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

/* ==========================================================================
   Product Section Identity Header (Emphasis on App Name & Chinese Title)
   ========================================================================== */
.product-identity-header {
  margin-bottom: 20px;
}

.product-app-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.product-app-logo {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  flex-shrink: 0;
}

.product-app-title {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  flex-wrap: wrap;
}

.app-title-name {
  font-size: clamp(32px, 4vw, 42px);
  font-weight: 850;
  letter-spacing: -0.5px;
  color: #FFFFFF;
  line-height: 1.1;
}

.app-title-badge {
  font-size: 15px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  letter-spacing: 0.3px;
  line-height: 1;
  transform: translateY(-3px);
}

.app-title-badge.tag-tone {
  color: #E06D53;
  background: rgba(224, 109, 83, 0.14);
  border: 1.5px solid rgba(224, 109, 83, 0.45);
  box-shadow: 0 0 16px rgba(224, 109, 83, 0.2);
}

.app-title-badge.tag-beat {
  color: #F59E0B;
  background: rgba(245, 158, 11, 0.14);
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.2);
}

.app-title-badge.tag-line {
  color: #10B981;
  background: rgba(16, 185, 129, 0.14);
  border: 1.5px solid rgba(16, 185, 129, 0.45);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.2);
}

.product-subtext {
  font-size: 16px;
  color: #A3BFB6;
  line-height: 1.7;
  margin-top: 14px;
  margin-bottom: 28px;
}

.feature-bullets {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 40px;
}

.bullet-item {
  display: flex;
  gap: 14px;
}

.bullet-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(226, 236, 233, 0.08);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--accent-coral);
  flex-shrink: 0;
  margin-top: 2px;
}

.bullet-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 4px;
}

.bullet-desc {
  font-size: 13px;
  color: var(--text-sub);
}

.product-metrics-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
}

.metric-card {
  background: rgba(19, 42, 36, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}

.metric-num {
  font-size: 20px;
  font-weight: 800;
  font-family: var(--font-mono);
  color: var(--accent-coral);
  margin-bottom: 2px;
}

.metric-label {
  font-size: 11px;
  color: var(--text-sub);
}

/* Product Visual Frame */
.product-visual {
  display: flex;
  justify-content: center;
  position: relative;
}

/* Bento Grid Section */
.bento-section {
  padding: 100px 0;
  position: relative;
}

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

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--accent-coral);
  background: rgba(224, 109, 83, 0.12);
  border: 1px solid rgba(224, 109, 83, 0.35);
  padding: 6px 15px;
  border-radius: 9999px;
  margin-bottom: 14px;
}

.section-pill svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.section-title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  color: #fff;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-sub);
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.bento-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.bento-col-8 {
  grid-column: span 8;
}

.bento-col-4 {
  grid-column: span 4;
}

.bento-col-6 {
  grid-column: span 6;
}

.bento-badge {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--accent-coral);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.bento-title {
  font-size: 20px;
  font-weight: 750;
  color: #fff;
  margin-bottom: 10px;
}

.bento-desc {
  font-size: 14px;
  color: var(--text-sub);
  line-height: 1.6;
}

/* Interactive Sandbox */
.interactive-section {
  padding: 100px 0;
  background: radial-gradient(circle at center, rgba(19, 42, 36, 0.6) 0%, transparent 70%);
}

.sandbox-box {
  background: rgba(13, 27, 23, 0.85);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
  max-width: 900px;
  margin: 0 auto;
}

.sandbox-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.sandbox-tab-btn {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-sub);
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sandbox-tab-btn.active {
  background: var(--accent-coral);
  border-color: var(--accent-coral);
  color: #fff;
}

.sandbox-content {
  display: none;
}

.sandbox-content.active {
  display: block;
}

/* Piano Sandbox */
.sandbox-piano {
  display: flex;
  position: relative;
  height: 140px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  background: #000;
}

.sb-white-key {
  flex: 1;
  background: linear-gradient(180deg, #F8FAF9 0%, #E2ECE9 100%);
  border-right: 1px solid #b5c7c1;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  color: #132A24;
  font-weight: 700;
  font-size: 12px;
  user-select: none;
  transition: background 0.1s ease;
}

.sb-white-key:active {
  background: #ffab96;
}

.sb-black-key {
  position: absolute;
  width: 32px;
  height: 85px;
  background: #151d1a;
  border-radius: 0 0 5px 5px;
  z-index: 2;
  cursor: pointer;
  border: 1px solid #2e3d37;
  user-select: none;
  transition: background 0.1s ease;
}

.sb-black-key:active {
  background: var(--accent-coral);
}

/* Beat Sandbox */
.sandbox-tap-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 20px 0;
}

.sandbox-tap-btn {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, #254b41 0%, #132a24 100%);
  border: 3px solid var(--accent-coral);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 1px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 30px var(--accent-coral-glow);
  transition: transform 0.05s ease, box-shadow 0.05s ease;
  user-select: none;
}

.sandbox-tap-btn:active {
  transform: scale(0.95);
  box-shadow: 0 0 50px rgba(224, 109, 83, 0.6);
}

.sandbox-bpm-readout {
  font-family: var(--font-mono);
  font-size: 36px;
  font-weight: 800;
  color: var(--accent-coral);
}

/* Testimonials / Audience */
.testimonials-section {
  padding: 56px 0 80px;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testimonial-quote {
  font-size: 14px;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 20px;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(224, 109, 83, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent-coral);
}

.user-name {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.user-role {
  font-size: 12px;
  color: var(--text-sub);
}

/* Download / CTA Section */
.cta-section {
  padding: 120px 0 140px;
  text-align: center;
  position: relative;
}

.cta-box {
  background: linear-gradient(180deg, rgba(19, 42, 36, 0.9) 0%, rgba(11, 23, 20, 0.95) 100%);
  border: 1px solid rgba(224, 109, 83, 0.3);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.8), 0 0 60px var(--accent-coral-glow);
  border-radius: var(--radius-lg);
  padding: 64px 32px;
  max-width: 860px;
  margin: 0 auto;
}

.cta-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 850;
  color: #fff;
  margin-bottom: 18px;
}

.cta-desc {
  font-size: 17px;
  color: var(--text-sub);
  max-width: 580px;
  margin: 0 auto 36px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  background: #050a08;
  padding: 60px 0 30px;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: 1020px;
  margin: 0 auto 48px;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-brand {
  max-width: 380px;
  flex: 0 0 380px;
}

.footer-brand .brand-text {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 12px;
  display: block;
}

.footer-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
}

.footer-col {
  flex: 0 0 auto;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

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

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

.footer-bottom {
  max-width: 1020px;
  margin: 0 auto;
  padding-top: 24px;
  border-top: 1px solid rgba(226, 236, 233, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* Responsive Media Queries */
@media (max-width: 1200px) and (min-width: 1025px) {
  .hero-trio-wrap {
    transform: scale(0.92);
    transform-origin: center top;
  }
}

@media (max-width: 1024px) {
  .hero-trio-wrap {
    transform: scale(0.85);
    transform-origin: center top;
  }

  .product-grid,
  .product-grid.reverse {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .product-grid.reverse .product-text {
    order: 1;
  }

  .product-grid.reverse .product-visual {
    order: 2;
  }

  .bento-col-8,
  .bento-col-4,
  .bento-col-6 {
    grid-column: span 12;
  }

  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {

  .nav-links,
  .header-actions .btn-secondary {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero-trio-wrap {
    transform: none;
    min-height: 672px;
    padding-bottom: 0;
    perspective: none;
    transform-style: flat;
    overflow: visible;
  }

  .hero-dots-indicator {
    margin-top: 12px;
  }

  .product-metrics-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    flex-direction: column;
    gap: 32px;
  }

  .footer-brand {
    max-width: 100% !important;
    flex: none !important;
  }

  .footer-col {
    width: 100%;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}