@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
  --primary: #C084FC;
  --primary-dark: #A855F7;
  --accent: #FF6B9D;
  --accent2: #60A5FA;
  --accent3: #34D399;
  --accent4: #FBBF24;
  --bg: #0a0a1a;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-glass: rgba(255, 255, 255, 0.06);
  --text: #F8FAFC;
  --text-secondary: rgba(248, 250, 252, 0.6);
  --text-muted: rgba(248, 250, 252, 0.3);
  --border: rgba(255, 255, 255, 0.08);
  --radius: 20px;
  --radius-sm: 12px;
}

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

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

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: 'Space Grotesk', sans-serif;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === NAV === */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 16px 0;
  transition: all 0.3s;
}

.nav.scrolled {
  background: rgba(10, 10, 26, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.logo-icon { font-size: 28px; }

.logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 3px;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
  letter-spacing: 0.5px;
}

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

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

.lang-toggle {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 1px;
}

.lang-toggle:hover {
  background: rgba(255,255,255,0.12);
  border-color: var(--primary);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  transition: all 0.3s;
  border-radius: 2px;
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 24px 80px;
  max-width: 1200px;
  margin: 0 auto;
  gap: 40px;
  position: relative;
}

.hero-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(192, 132, 252, 0.15) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 30%, rgba(96, 165, 250, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(255, 107, 157, 0.08) 0%, transparent 50%);
  z-index: -2;
}

.hero-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.hero-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0;
  animation: sparkle 4s infinite;
}

@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(0); }
  50% { opacity: 0.6; transform: scale(1); }
}

.hero-content {
  flex: 1;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, rgba(192,132,252,0.15), rgba(255,107,157,0.15));
  border: 1px solid rgba(192,132,252,0.2);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 500;
  color: var(--primary);
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 20px;
}

.hero-title-line { display: block; }

.hero-title-line:first-child {
  font-size: 0.55em;
  opacity: 0.8;
  letter-spacing: 2px;
}

.hero-title-gradient {
  background: linear-gradient(135deg, var(--accent), var(--primary), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 440px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-dark), var(--accent));
  color: white;
  box-shadow: 0 8px 30px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(168, 85, 247, 0.5);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-outline:hover {
  background: var(--bg-glass);
  border-color: var(--primary);
}

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 32px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--accent2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 2px;
}

.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* Hero image */
.hero-image {
  flex: 1;
  display: flex;
  justify-content: center;
}

.hero-img {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius);
  animation: float 6s ease-in-out infinite;
}

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

/* === SECTIONS === */
.section {
  padding: 100px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, rgba(192,132,252,0.12), rgba(96,165,250,0.12));
  border: 1px solid rgba(192,132,252,0.15);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-desc {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.7;
}

/* === PRODUCTS === */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  opacity: 0;
  transform: translateY(30px);
}

.product-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.product-card:hover {
  border-color: var(--primary);
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(192, 132, 252, 0.15);
}

.product-img-wrap {
  position: relative;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 100%);
}

.product-img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
  transition: transform 0.4s;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 32px;
  right: 32px;
  background: var(--accent);
  color: white;
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

.product-badge.best { background: var(--accent3); }
.product-badge.premium { background: var(--primary-dark); }

.product-info {
  padding: 0 24px 24px;
}

.product-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 6px;
}

.product-keys {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tag {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 11px;
  color: var(--text-secondary);
}

.more-sizes {
  text-align: center;
  margin-top: 32px;
  color: var(--text-muted);
  font-size: 14px;
}

/* === CUSTOMIZATION === */
.custom-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 60px;
}

.custom-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  transition: all 0.4s;
  opacity: 0;
  transform: translateY(30px);
}

.custom-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.custom-card:hover {
  border-color: rgba(192,132,252,0.3);
  background: rgba(255,255,255,0.06);
}

.custom-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.custom-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.custom-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 20px;
}

.color-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.1);
  transition: transform 0.2s;
  cursor: pointer;
}

.dot:hover { transform: scale(1.2); }

.keycap-demo {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.mini-keycap {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: white;
  box-shadow: 0 4px 0 rgba(0,0,0,0.3);
  transition: transform 0.15s;
  cursor: pointer;
}

.mini-keycap:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 rgba(0,0,0,0.3);
}

.text-demo {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.text-example {
  background: var(--bg-glass);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  letter-spacing: 2px;
}

/* Interactive Color Switcher */
.color-switcher {
  display: flex;
  align-items: center;
  gap: 60px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px;
  opacity: 0;
  transform: translateY(30px);
}

.color-switcher.visible {
  opacity: 1;
  transform: translateY(0);
}

.switcher-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.switcher-keycap {
  width: 80px;
  height: 80px;
  border-radius: 16px;
  background: #F8FAFC;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 0 rgba(0,0,0,0.3);
  transition: all 0.3s;
  cursor: pointer;
  position: relative;
  z-index: 2;
}

.switcher-keycap:active {
  transform: translateY(8px);
  box-shadow: 0 0 0 rgba(0,0,0,0.3);
}

.keycap-top {
  font-size: 28px;
  transition: color 0.3s;
}

.switcher-base {
  width: 100px;
  height: 40px;
  background: #FF6B9D;
  border-radius: 0 0 16px 16px;
  margin-top: -8px;
  transition: background 0.3s;
}

.switcher-controls { flex: 1; }

.control-group {
  margin-bottom: 24px;
}

.control-group:last-child { margin-bottom: 0; }

.control-group label {
  font-size: 13px;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
}

.control-colors {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.color-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
  transition: all 0.2s;
  outline: none;
}

.color-btn:hover { transform: scale(1.15); }

.color-btn.active {
  border-color: var(--text);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--text);
}

/* NFC tag highlight */
.feature-tag.nfc {
  background: linear-gradient(135deg, rgba(96,165,250,0.2), rgba(192,132,252,0.2));
  border-color: rgba(96,165,250,0.3);
  color: var(--accent2);
  font-weight: 600;
}

/* === NFC MUSIC SECTION === */
.nfc-section {
  background: linear-gradient(180deg, transparent 0%, rgba(96,165,250,0.04) 50%, transparent 100%);
}

.nfc-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.phone-mockup {
  width: 240px;
  height: 240px;
  margin: 0 auto;
  position: relative;
}

.phone-screen {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.nfc-anim {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nfc-ring {
  position: absolute;
  border: 2px solid var(--accent2);
  border-radius: 50%;
  opacity: 0;
  animation: nfc-pulse 2.5s ease-out infinite;
}

.ring1 { width: 80px; height: 80px; animation-delay: 0s; }
.ring2 { width: 120px; height: 120px; animation-delay: 0.5s; }
.ring3 { width: 160px; height: 160px; animation-delay: 1s; }

@keyframes nfc-pulse {
  0% { opacity: 0.8; transform: scale(0.6); }
  100% { opacity: 0; transform: scale(1.2); }
}

.nfc-center {
  font-size: 48px;
  z-index: 2;
  animation: float 3s ease-in-out infinite;
}

.nfc-song {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  background: var(--bg-glass);
  border: 1px solid var(--border);
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 13px;
  color: var(--accent2);
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(96,165,250,0); }
  50% { box-shadow: 0 0 20px rgba(96,165,250,0.2); }
}

.nfc-note {
  animation: bounce-note 1s ease-in-out infinite;
}

@keyframes bounce-note {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

.nfc-text .section-title {
  text-align: left;
  font-size: clamp(28px, 4vw, 40px);
}

.nfc-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.nfc-steps {
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nfc-step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent2), var(--primary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.nfc-step strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.nfc-step p {
  font-size: 13px;
  color: var(--text-secondary);
}

/* === ABOUT === */
.about {
  background: linear-gradient(180deg, transparent 0%, rgba(192,132,252,0.03) 50%, transparent 100%);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-text .section-tag { margin-bottom: 12px; }

.about-text .section-title {
  text-align: left;
  margin-bottom: 20px;
}

.about-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-values {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.value {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.value-icon { font-size: 28px; flex-shrink: 0; }

.value strong {
  display: block;
  font-size: 15px;
  margin-bottom: 2px;
}

.value p {
  font-size: 13px;
  color: var(--text-secondary);
}

.about-img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

/* === CONTACT === */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
}

.contact-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
}

.contact-icon { font-size: 36px; margin-bottom: 12px; }

.contact-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 6px;
}

.contact-value {
  font-size: 14px;
  font-weight: 500;
}

/* === FOOTER === */
.footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-cn {
  color: var(--text-muted);
  font-size: 14px;
  margin-left: 4px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-muted);
}

/* === SCROLL ANIMATIONS === */
[data-aos] {
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 100px;
  }

  .hero-desc { margin: 0 auto 32px; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }

  .product-grid,
  .custom-grid,
  .contact-cards {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .about-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .about-text .section-title { text-align: center; }
  .about-values { align-items: center; }
  .about-visual { order: -1; }

  .color-switcher {
    flex-direction: column;
    padding: 32px;
    gap: 32px;
  }

  .nfc-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .nfc-text .section-title {
    text-align: center;
    font-size: 28px;
  }

  .nfc-text .section-tag {
    display: inline-block;
  }

  .nfc-desc {
    text-align: left;
  }

  .nfc-steps {
    text-align: left;
  }

  .nfc-step {
    text-align: left;
  }

  .nav-links { display: none; }

  .nav-burger { display: flex; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 26, 0.95);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 16px;
    border-bottom: 1px solid var(--border);
  }

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

@media (max-width: 600px) {
  .hero-cta {
    flex-direction: column;
    align-items: center;
  }

  .btn { width: 100%; max-width: 280px; }

  .product-grid,
  .custom-grid,
  .contact-cards {
    max-width: 100%;
  }
}
