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

:root {
  /* KADA Brand Colors — from the logo */
  --pink: #FF69B4;
  --pink-soft: #FFB6C1;
  --blue: #87CEEB;
  --blue-soft: #B0E0FF;
  --yellow: #FFD54F;
  --yellow-soft: #FFF3B0;
  /* Backgrounds */
  --bg: #0D0D1A;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-glass: rgba(255, 255, 255, 0.06);
  /* Text */
  --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;
}

* { 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: 'Nunito', sans-serif; }
.container { max-width: 900px; margin: 0 auto; padding: 0 24px; }

/* ===========================
   NAV — KADA logo on left
   =========================== */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 24px;
  background: rgba(13, 13, 26, 0.88);
  backdrop-filter: blur(20px);
  z-index: 100;
  border-bottom: 1px solid var(--border);
}
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-brand img {
  height: 42px; border-radius: 50%;
  border: 2px solid rgba(255, 105, 180, 0.3);
  box-shadow: 0 0 12px rgba(255, 105, 180, 0.15);
}
.brand-name {
  font-size: 22px; font-weight: 900; letter-spacing: 3px;
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(135deg, var(--pink), var(--blue), var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; align-items: center; gap: 16px; }
.nav-links a {
  color: var(--text-secondary); text-decoration: none;
  font-size: 14px; font-weight: 600; transition: color 0.2s;
}
.nav-links a:hover { color: var(--pink); }
.nav-btn {
  background: linear-gradient(135deg, var(--pink), var(--blue)) !important;
  -webkit-text-fill-color: white !important;
  padding: 8px 20px; border-radius: 50px; font-weight: 700 !important;
}

/* Language toggle */
.lang-toggle {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text-secondary);
  padding: 6px 14px; border-radius: 50px;
  font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: 'Nunito', sans-serif;
  transition: all 0.2s;
}
.lang-toggle:hover { border-color: var(--pink); color: var(--text); }

/* What accent */
.what-accent {
  background: linear-gradient(135deg, var(--pink), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===========================
   HERO — Big product showcase
   =========================== */
.hero {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 110px 24px 70px;
  gap: 40px; flex-wrap: wrap;
  position: relative;
}
/* Warm glow blobs — brand colors */
.hero::before {
  content: ''; position: absolute;
  top: -150px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255, 105, 180, 0.12), transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: ''; position: absolute;
  bottom: -100px; left: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(135, 206, 235, 0.1), transparent 70%);
  border-radius: 50%;
}

.hero-content { flex: 1; min-width: 280px; max-width: 460px; z-index: 1; }

.hero-badge {
  display: inline-block; padding: 6px 16px;
  background: rgba(255, 105, 180, 0.1);
  border: 1px solid rgba(255, 105, 180, 0.2);
  border-radius: 50px;
  font-size: 13px; font-weight: 700; color: var(--pink);
  margin-bottom: 20px;
}

.title-kada {
  display: block;
  font-size: 72px; font-weight: 900; letter-spacing: 6px;
  line-height: 1;
  background: linear-gradient(135deg, var(--pink) 0%, var(--blue) 50%, var(--yellow) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.title-sub {
  display: block; font-size: 20px; font-weight: 700;
  color: var(--text-secondary); margin-top: 8px;
  font-family: 'Nunito', sans-serif;
}

.hero-desc {
  font-size: 16px; line-height: 1.7;
  color: var(--text-secondary); margin: 20px 0 28px;
}
.hero-desc strong { color: var(--text); }

.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-visual { flex-shrink: 0; z-index: 1; }
.hero-img-wrap { position: relative; width: 420px; height: 420px; }
.hero-img {
  width: 100%; height: 100%; object-fit: contain;
  filter: drop-shadow(0 20px 40px rgba(255, 105, 180, 0.2));
  animation: float 4s ease-in-out infinite;
}

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

/* ===========================
   BUTTONS
   =========================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 32px; border: none; border-radius: 50px;
  font-size: 15px; font-weight: 700; cursor: pointer;
  text-decoration: none; font-family: 'Nunito', sans-serif;
  transition: transform 0.2s, box-shadow 0.2s;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(135deg, var(--pink), #FF85A2);
  color: white;
  box-shadow: 0 4px 20px rgba(255, 105, 180, 0.3);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(255, 105, 180, 0.5); }

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

.btn-shopee {
  background: linear-gradient(135deg, #EE4D2D, #FF6633);
  color: white; font-size: 18px; padding: 16px 40px;
  box-shadow: 0 4px 20px rgba(238, 77, 45, 0.3);
  width: 100%; border-radius: 50px;
  cursor: pointer; font-family: 'Nunito', sans-serif;
  border: none; font-weight: 800;
}
.btn-shopee:hover { box-shadow: 0 8px 30px rgba(238, 77, 45, 0.5); transform: translateY(-2px); }

.btn-full { width: 100%; }

/* ===========================
   WHAT IS IT — clear product definition
   =========================== */
.what { padding: 80px 0; text-align: center; }
.what-headline {
  font-size: 36px; font-weight: 900; line-height: 1.2; margin-bottom: 12px;
}
.what-headline span {
  background: linear-gradient(135deg, var(--pink), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.what-sub {
  font-size: 17px; color: var(--text-secondary);
  max-width: 600px; margin: 0 auto 40px; line-height: 1.6;
}

.features {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px 20px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: rgba(255, 105, 180, 0.2); }
.feature-icon { font-size: 36px; margin-bottom: 12px; }
.feature-card h3 { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--text-secondary); line-height: 1.5; }

/* ===========================
   SECTION COMMON
   =========================== */
.section-badge {
  display: inline-block; padding: 5px 14px;
  background: rgba(255, 105, 180, 0.1);
  border: 1px solid rgba(255, 105, 180, 0.15);
  border-radius: 50px;
  font-size: 12px; font-weight: 700; color: var(--pink);
  margin-bottom: 10px; letter-spacing: 1px; text-transform: uppercase;
}
.section-title { font-size: 32px; font-weight: 900; margin-bottom: 32px; }

/* ===========================
   PRODUCT SIZES — with images
   =========================== */
.sizes { padding: 80px 0; }
.size-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}
.size-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px 16px;
  text-align: center; position: relative;
  transition: all 0.25s; cursor: pointer;
}
.size-card:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 105, 180, 0.3);
  box-shadow: 0 8px 30px rgba(255, 105, 180, 0.15);
}
.size-card.hot { border-color: var(--pink); }
.size-badge {
  position: absolute; top: -10px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--pink), var(--yellow));
  color: #1a1a2e; padding: 3px 14px;
  border-radius: 50px; font-size: 11px; font-weight: 800; white-space: nowrap;
}
.size-img {
  width: 100%; height: 140px; object-fit: contain;
  margin-bottom: 10px;
  filter: drop-shadow(0 4px 12px rgba(255, 105, 180, 0.15));
  transition: transform 0.3s;
}
.size-card:hover .size-img { transform: scale(1.08); }
.size-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
.size-card p { font-size: 12px; color: var(--text-secondary); }
.size-price {
  margin-top: 8px; font-size: 22px; font-weight: 900;
  background: linear-gradient(135deg, var(--pink), var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ===========================
   NFC Music Section
   =========================== */
.nfc { padding: 80px 0; }
.nfc-content { display: flex; gap: 40px; align-items: center; flex-wrap: wrap; }
.nfc-text { flex: 1; min-width: 260px; }
.nfc-text p { font-size: 16px; line-height: 1.8; color: var(--text-secondary); margin-bottom: 14px; }
.nfc-text strong { color: var(--text); }
.nfc-steps { margin-top: 20px; }
.nfc-step { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.nfc-step-num {
  width: 36px; height: 36px; flex-shrink: 0;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 15px;
}
.nfc-step p { font-size: 14px; color: var(--text-secondary); margin: 0; }
.nfc-visual { flex-shrink: 0; }
.nfc-demo {
  width: 160px; height: 160px;
  background: linear-gradient(145deg, var(--bg-card), rgba(255, 105, 180, 0.06));
  border: 1px solid var(--border); border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 60px; cursor: pointer;
  box-shadow: 0 8px 0 rgba(255, 105, 180, 0.08);
  transition: transform 0.1s, box-shadow 0.1s; user-select: none;
}
.nfc-demo:active {
  transform: translateY(6px);
  box-shadow: 0 2px 0 rgba(255, 105, 180, 0.08);
}

/* ===========================
   CUSTOMIZER
   =========================== */
.customize { padding: 80px 0; }
.customizer {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  box-shadow: 0 4px 30px rgba(255, 105, 180, 0.1);
}

.preview-area { text-align: center; margin-bottom: 32px; }
.preview-keychain { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; }
.preview-base {
  display: flex; gap: 8px;
  background: #333; padding: 14px 18px;
  border-radius: 16px;
  box-shadow: 0 6px 0 rgba(0,0,0,0.3);
}
.preview-cap {
  width: 52px; height: 52px;
  background: var(--pink);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900; color: white;
  box-shadow: 0 4px 0 rgba(0,0,0,0.2);
  transition: all 0.3s;
  font-family: 'Nunito', sans-serif;
}
.preview-ring { font-size: 20px; color: var(--text-muted); }

.controls { display: flex; flex-direction: column; gap: 24px; }
.control-group label {
  display: block; font-size: 14px; font-weight: 700;
  color: var(--text); margin-bottom: 10px;
}
.control-group .hint { font-weight: 400; color: var(--text-muted); font-size: 12px; }

.size-selector { display: flex; gap: 8px; flex-wrap: wrap; }
.size-opt {
  width: 48px; height: 48px;
  border: 1px solid var(--border);
  border-radius: 12px; background: transparent;
  color: var(--text-secondary);
  font-size: 18px; font-weight: 800;
  cursor: pointer; font-family: 'Nunito', sans-serif;
  transition: all 0.2s;
}
.size-opt:hover { border-color: var(--pink); color: var(--text); }
.size-opt.active { border-color: var(--pink); background: var(--pink); color: white; }

.color-picker { display: flex; gap: 8px; flex-wrap: wrap; }
.color-dot {
  width: 38px; height: 38px;
  border: 3px solid transparent;
  border-radius: 50%; cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.color-dot:hover { transform: scale(1.15); }
.color-dot.active {
  border-color: var(--pink);
  transform: scale(1.15);
  box-shadow: 0 0 12px rgba(255, 105, 180, 0.4);
}

.text-input {
  width: 100%; padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 12px; background: transparent;
  color: var(--text);
  font-size: 20px; font-weight: 800;
  text-align: center; letter-spacing: 10px;
  text-transform: uppercase; outline: none;
  font-family: 'Nunito', sans-serif;
}
.text-input:focus { border-color: var(--pink); }
.text-input::placeholder { color: var(--text-muted); letter-spacing: 4px; }

/* ===========================
   BUY SECTION
   =========================== */
.buy { padding: 80px 0 100px; }
.buy-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 28px;
  box-shadow: 0 4px 30px rgba(255, 105, 180, 0.1);
  text-align: center;
}
.buy-steps { display: flex; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; justify-content: center; }
.buy-step { flex: 1; min-width: 140px; }
.step-num {
  width: 40px; height: 40px;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  color: white; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 17px; margin: 0 auto 10px;
}
.buy-step p { font-size: 14px; color: var(--text-secondary); }
.buy-hint { margin-top: 14px; font-size: 13px; color: var(--text-muted); }

/* ===========================
   FOOTER
   =========================== */
.footer {
  text-align: center; padding: 50px 24px;
  border-top: 1px solid var(--border);
}
.footer-brand {
  font-size: 32px; font-weight: 900; letter-spacing: 4px;
  font-family: 'Nunito', sans-serif;
  background: linear-gradient(135deg, var(--pink), var(--blue), var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.footer-sub { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.footer-links { margin-top: 16px; }
.footer-links a { color: var(--text-secondary); text-decoration: none; font-size: 13px; }
.footer-links a:hover { color: var(--pink); }
.footer-links span { color: var(--text-muted); margin: 0 8px; }
.footer-copy { margin-top: 16px; font-size: 11px; color: var(--text-muted); }

/* ===========================
   MODAL
   =========================== */
.modal-overlay {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  display: none; align-items: center; justify-content: center;
  z-index: 9999; padding: 24px;
}
.modal-overlay.show { display: flex; }
.modal-card {
  background: linear-gradient(145deg, rgba(30, 30, 50, 0.95), rgba(15, 15, 30, 0.98));
  border: 1px solid rgba(255, 105, 180, 0.2);
  border-radius: var(--radius);
  padding: 40px 28px; max-width: 380px; width: 100%;
  text-align: center; animation: popIn 0.3s ease;
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.85) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-emoji { font-size: 48px; margin-bottom: 10px; }
.modal-title {
  font-size: 22px; font-weight: 900; margin-bottom: 8px;
  background: linear-gradient(135deg, var(--pink), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.modal-desc { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 20px; }
.code-display {
  font-size: 36px; font-weight: 900; letter-spacing: 6px;
  background: linear-gradient(135deg, var(--pink), var(--yellow));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 14px 24px;
  border: 1px solid rgba(255, 105, 180, 0.2);
  border-radius: 12px; margin-bottom: 16px;
  font-family: 'Nunito', monospace;
}

/* ===========================
   FLOATING STARS — brand element
   =========================== */
.sparkles { position: fixed; top: 0; left: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.sparkle {
  position: absolute; border-radius: 50%; opacity: 0;
  animation: sparkle 5s ease-in-out infinite;
}
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: translateY(0) scale(0); }
  50% { opacity: 0.35; transform: translateY(-40px) scale(1); }
}

/* Star-shaped decorations */
.star-deco {
  position: absolute; font-size: 14px; opacity: 0.15;
  animation: starFloat 6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes starFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); opacity: 0.1; }
  50% { transform: translateY(-20px) rotate(180deg); opacity: 0.25; }
}

/* ===========================
   RESPONSIVE
   =========================== */
@media (max-width: 640px) {
  .hero { padding: 100px 20px 60px; flex-direction: column; text-align: center; }
  .hero-cta { justify-content: center; }
  .hero-img-wrap { width: 280px; height: 280px; }
  .title-kada { font-size: 52px; }
  .what-headline { font-size: 28px; }
  .section-title { font-size: 24px; }
  .nfc-content { flex-direction: column; }
  .preview-cap { width: 42px; height: 42px; font-size: 16px; }
  .size-grid { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .nav-brand img { height: 32px; }
  .theme-grid { grid-template-columns: repeat(2, 1fr); }
  .tp-cap { width: 14px; height: 14px; }
}

/* ===========================
   THEME CARDS — curated presets
   =========================== */
.theme-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}
.theme-card {
  background: var(--bg-card);
  border: 2px solid var(--border);
  border-radius: 16px;
  padding: 12px;
  text-align: center;
  cursor: pointer;
  position: relative;
  transition: all 0.25s;
}
.theme-card:hover {
  border-color: rgba(255, 105, 180, 0.3);
  transform: translateY(-3px);
}
.theme-card.active {
  border-color: var(--pink);
  background: rgba(255, 105, 180, 0.06);
  box-shadow: 0 0 20px rgba(255, 105, 180, 0.15);
}

.theme-badge {
  position: absolute;
  top: -8px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, #FF6B00, #FFD54F);
  color: #1a1a1a;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 10px; font-weight: 800;
  white-space: nowrap;
}
.theme-badge.pink { background: linear-gradient(135deg, #FF69B4, #FFB6C1); color: white; }
.theme-badge.blue { background: linear-gradient(135deg, #4FC3F7, #00FF88); color: #1a1a2e; }

.theme-preview {
  padding: 8px 0;
}
.tp-base {
  display: flex; gap: 4px;
  padding: 8px 10px;
  border-radius: 8px;
  justify-content: center;
  box-shadow: 0 2px 0 rgba(0,0,0,0.15);
}
.tp-cap {
  width: 18px; height: 18px;
  border-radius: 4px;
  box-shadow: 0 2px 0 rgba(0,0,0,0.1);
}

.theme-name {
  font-size: 13px; font-weight: 800;
  margin-top: 6px;
}
.theme-stat {
  font-size: 11px; font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ===========================
   FINE-TUNE — progressive disclosure
   =========================== */
.finetune-toggle {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed var(--border);
  color: var(--text-muted);
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px; font-weight: 700;
  cursor: pointer;
  font-family: 'Nunito', sans-serif;
  transition: all 0.2s;
}
.finetune-toggle:hover { color: var(--text); border-color: var(--pink); }

.finetune-panel {
  display: none;
  margin-top: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.finetune-panel.show { display: block; animation: fadeIn 0.3s ease; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.finetune-row { margin-bottom: 16px; }
.finetune-row:last-child { margin-bottom: 0; }
.finetune-row label {
  display: block; font-size: 13px; font-weight: 700;
  color: var(--text-secondary); margin-bottom: 8px;
}
