/* ===========================
   KandaBi – Style Sheet
   www.kandabisoft.net
   =========================== */

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

:root {
  --red:    #FF4757;
  --purple: #7C4DFF;
  --yellow: #FFD700;
  --green:  #2ECC71;
  --blue:   #3498DB;
  --orange: #F39C12;
  --white:  #FFFFFF;
  --bg:     #FAFAFA;
  --dark:   #1a1a2e;
  --text:   #333;
  --radius: 24px;
  --shadow: 0 8px 32px rgba(0,0,0,0.10);
}

html { scroll-behavior: smooth; }
body { font-family: 'Nunito', sans-serif; background: var(--bg); color: var(--text); overflow-x: hidden; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.red    { color: var(--red); }
.purple { color: var(--purple); }

/* NAV */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 2px solid #f0f0f0;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 32px; height: 68px;
}
.logo { font-family: 'Bubblegum Sans', cursive; font-size: 1.8rem; text-decoration: none; display: flex; align-items: center; gap: 2px; }
.logo-kanda { color: var(--red); }
.logo-bi    { color: var(--purple); }
.logo-dot   { color: var(--yellow); font-size: 0.6rem; margin-left: 2px; align-self: flex-start; margin-top: 6px; }
.nav-links  { list-style: none; display: flex; gap: 28px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--text); font-weight: 700; font-size: 0.95rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--purple); }
.nav-cta {
  background: linear-gradient(135deg, var(--red), var(--purple));
  color: white; text-decoration: none;
  padding: 10px 22px; border-radius: 50px;
  font-weight: 800; font-size: 0.9rem;
  transition: transform 0.2s, box-shadow 0.2s; white-space: nowrap;
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(124,77,255,0.35); }

/* HERO */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 100px 24px 60px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, #fff8f8 0%, #f3f0ff 50%, #f0fff8 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.rainbow-arc {
  position: absolute; bottom: -120px; left: 50%; transform: translateX(-50%);
  width: 140vw; height: 600px; border-radius: 50%;
  background: conic-gradient(from 200deg at 50% 100%, #FF4757 0deg, #FF6B35 36deg, #FFD700 72deg, #2ECC71 108deg, #3498DB 144deg, #7C4DFF 180deg, transparent 181deg);
  opacity: 0.18;
}
.note { position: absolute; font-size: 2.5rem; animation: floatNote 4s ease-in-out infinite; opacity: 0.5; color: var(--purple); }
.n1 { top: 18%; left: 8%;  animation-delay: 0s;   font-size: 3rem; color: var(--red); }
.n2 { top: 35%; left: 5%;  animation-delay: 0.8s; color: var(--purple); }
.n3 { top: 55%; left: 12%; animation-delay: 1.6s; font-size: 2rem; color: var(--blue); }
.n4 { top: 22%; right: 8%; animation-delay: 1.2s; color: var(--orange); }
.bee { position: absolute; font-size: 2rem; animation: floatBee 5s ease-in-out infinite; }
.b1 { top: 15%; right: 20%; animation-delay: 0.5s; }
.b2 { top: 10%; right: 35%; animation-delay: 2s; font-size: 1.5rem; }
@keyframes floatNote { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-20px) rotate(5deg); } }
@keyframes floatBee  { 0%, 100% { transform: translate(0,0); } 25% { transform: translate(15px,-10px); } 50% { transform: translate(5px,-20px); } 75% { transform: translate(-10px,-8px); } }

.hero-content { position: relative; z-index: 1; max-width: 560px; }
.hero-sub { font-size: 1rem; font-weight: 700; color: var(--purple); letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 8px; opacity: 0; animation: fadeUp 0.6s 0.2s forwards; }
.hero-title { font-family: 'Bubblegum Sans', cursive; font-size: clamp(4rem, 10vw, 7rem); line-height: 1; margin-bottom: 12px; opacity: 0; animation: fadeUp 0.6s 0.4s forwards; }
.hero-tagline { font-size: 1.25rem; font-weight: 800; color: var(--orange); margin-bottom: 20px; opacity: 0; animation: fadeUp 0.6s 0.55s forwards; }
.hero-desc { font-size: 1.1rem; line-height: 1.7; color: #555; margin-bottom: 36px; opacity: 0; animation: fadeUp 0.6s 0.7s forwards; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; opacity: 0; animation: fadeUp 0.6s 0.85s forwards; }

.btn { display: inline-flex; align-items: center; padding: 14px 30px; border-radius: 50px; font-weight: 800; font-size: 1rem; text-decoration: none; transition: all 0.25s; cursor: pointer; border: none; }
.btn-primary { background: linear-gradient(135deg, var(--red), var(--purple)); color: white; box-shadow: 0 6px 20px rgba(124,77,255,0.30); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(124,77,255,0.45); }
.btn-ghost { background: white; color: var(--purple); border: 2.5px solid var(--purple); }
.btn-ghost:hover { background: var(--purple); color: white; }
.btn-big { font-size: 1.1rem; padding: 18px 38px; }

.hero-characters { position: absolute; right: 5%; bottom: 0; display: flex; align-items: flex-end; gap: 16px; z-index: 1; opacity: 0; animation: fadeUp 0.8s 1s forwards; }
.char { display: flex; flex-direction: column; align-items: center; }
.char-body { width: 80px; height: 120px; border-radius: 50% 50% 40% 40%; animation: bounce 2.5s ease-in-out infinite; }
.kanda .char-body { background: var(--red); animation-delay: 0s; }
.bi    .char-body { background: var(--purple); animation-delay: 0.5s; }
.char-label { font-family: 'Bubblegum Sans', cursive; font-size: 1rem; margin-top: 8px; color: #555; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-16px); } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

/* SECTION HEADER */
.section-header { text-align: center; margin-bottom: 56px; }
.section-tag { display: inline-block; background: linear-gradient(135deg, #fff0f0, #f0e8ff); border: 2px solid #e0d0ff; padding: 6px 18px; border-radius: 50px; font-size: 0.9rem; font-weight: 800; color: var(--purple); margin-bottom: 16px; }
.section-header h2 { font-family: 'Bubblegum Sans', cursive; font-size: clamp(2rem, 5vw, 3rem); color: var(--dark); margin-bottom: 12px; }
.section-header p { font-size: 1.1rem; color: #777; }

/* APPS */
.apps { padding: 100px 0; background: linear-gradient(180deg, var(--bg) 0%, #f0e8ff22 100%); }
.apps-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; }
.app-card {
  background: white; border-radius: var(--radius); padding: 32px 28px;
  box-shadow: var(--shadow); border: 2px solid transparent;
  position: relative; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
  display: flex; flex-direction: column;
}
.app-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--accent, var(--purple)); }
.app-card:hover { transform: translateY(-6px); box-shadow: 0 16px 48px rgba(0,0,0,0.13); border-color: var(--accent, var(--purple)); }
.app-card.featured { background: linear-gradient(145deg, #fff, #f5f0ff); border-color: var(--purple); }
.app-badge-top { position: absolute; top: 16px; right: 16px; background: var(--yellow); color: #333; font-size: 0.75rem; font-weight: 800; padding: 4px 12px; border-radius: 50px; }
.app-icon { font-size: 2.8rem; margin-bottom: 16px; }
.app-card h3 { font-family: 'Bubblegum Sans', cursive; font-size: 1.4rem; color: var(--dark); margin-bottom: 10px; }
.app-card p { font-size: 0.95rem; color: #666; line-height: 1.6; flex: 1; }
.app-badges { display: flex; gap: 8px; margin-top: 20px; margin-bottom: 16px; }
.badge { background: #f0f0f0; color: #555; font-size: 0.75rem; font-weight: 700; padding: 4px 12px; border-radius: 50px; }
.app-link { color: var(--accent, var(--purple)); font-weight: 800; text-decoration: none; font-size: 0.95rem; transition: gap 0.2s; }
.app-link:hover { text-decoration: underline; }

/* ABOUT */
.about { padding: 100px 0; background: white; position: relative; overflow: hidden; }
.about-rainbow { position: absolute; top: 0; left: 0; right: 0; height: 6px; background: linear-gradient(90deg, var(--red), var(--orange), var(--yellow), var(--green), var(--blue), var(--purple)); }
.about-inner { display: grid; grid-template-columns: 1fr 1.5fr; gap: 64px; align-items: center; }
.about-visual { position: relative; height: 280px; display: flex; align-items: center; justify-content: center; }
.about-bubble { position: absolute; width: 160px; height: 160px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.about-bubble.big   { width: 180px; height: 180px; }
.about-bubble.small { width: 110px; height: 110px; }
.about-text .section-tag { margin-bottom: 16px; }
.about-text h2 { font-family: 'Bubblegum Sans', cursive; font-size: 2.2rem; color: var(--dark); margin-bottom: 20px; line-height: 1.25; }
.about-text p  { color: #666; line-height: 1.7; margin-bottom: 14px; font-size: 1rem; }
.about-text strong { color: var(--purple); }
.about-stats { display: flex; gap: 32px; margin-top: 32px; }
.stat { display: flex; flex-direction: column; }
.stat-num   { font-family: 'Bubblegum Sans', cursive; font-size: 2.2rem; color: var(--red); line-height: 1; }
.stat-label { font-size: 0.85rem; color: #888; font-weight: 700; margin-top: 4px; }

/* CONTACT */
.contact { padding: 100px 0; background: linear-gradient(135deg, #fff8f8, #f3f0ff); }
.contact-card { background: white; border-radius: 32px; padding: 64px 48px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,0.08); position: relative; border: 2px solid #ede8ff; max-width: 600px; margin: 0 auto; }
.contact-deco { font-size: 3rem; position: absolute; top: -24px; left: 50%; transform: translateX(-50%); animation: bounce 2s ease-in-out infinite; }
.contact-card .section-tag { margin-bottom: 16px; }
.contact-card h2 { font-family: 'Bubblegum Sans', cursive; font-size: 2.5rem; color: var(--dark); margin-bottom: 16px; }
.contact-card p { color: #777; margin-bottom: 32px; line-height: 1.7; }
.contact-social { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }
.social-btn { background: #f5f0ff; color: var(--purple); text-decoration: none; padding: 10px 22px; border-radius: 50px; font-weight: 800; font-size: 0.9rem; border: 2px solid #e0d0ff; transition: all 0.2s; }
.social-btn:hover { background: var(--purple); color: white; border-color: var(--purple); }

/* FOOTER */
.footer { background: var(--dark); padding: 40px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 24px; }
.footer-logo { font-family: 'Bubblegum Sans', cursive; font-size: 1.6rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { color: #aaa; text-decoration: none; font-weight: 700; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: white; }
.footer-copy { color: #666; font-size: 0.85rem; }
.footer-copy a { color: #aaa; text-decoration: none; }

/* RESPONSIVE */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .hero { padding: 90px 24px 280px; }
  .hero-characters { right: 50%; transform: translateX(50%); bottom: 20px; }
  .about-inner { grid-template-columns: 1fr; }
  .about-visual { height: 200px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .contact-card { padding: 48px 24px; }
  .about-stats { gap: 20px; }
}
