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

html { font-size: 16px; }

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--text-dark);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  cursor: none;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: none; border: none; background: none; font: inherit; }
ul, ol { list-style: none; }

/* ─── Custom Cursor ─────────────────────────────────────── */
#cursor {
  position: fixed;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--grad-pink);
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width 0.2s var(--ease-spring), height 0.2s var(--ease-spring);
  box-shadow: 0 0 12px rgba(255,107,157,0.6);
}

#cursor-ring {
  position: fixed;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255,107,157,0.45);
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
}

#cursor.hover {
  width: 28px;
  height: 28px;
}

/* ─── Sparkle ───────────────────────────────────────────── */
.sparkle-dot {
  position: fixed;
  pointer-events: none;
  z-index: 9997;
  border-radius: 50%;
  animation: sparkle-out 0.55s var(--ease-out) forwards;
}

@keyframes sparkle-out {
  0%   { opacity: 0.9; transform: translate(0,0) scale(1); }
  100% { opacity: 0;   transform: translate(var(--tx), var(--ty)) scale(0); }
}

/* ─── Layout ────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

section { position: relative; overflow: hidden; }

/* ─── Section header ────────────────────────────────────── */
.section-header { text-align: center; margin-bottom: var(--sp-16); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-2) var(--sp-5);
  background: var(--grad-pink);
  color: var(--white);
  border-radius: var(--r-full);
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: var(--sp-4);
}

.section-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 900;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: var(--sp-4);
}

.section-title .grad {
  background: var(--grad-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-sub {
  font-size: var(--text-lg);
  color: var(--text-mid);
  max-width: 540px;
  margin: 0 auto;
  line-height: 1.75;
}

/* ─── Kawaii bubble row ─────────────────────────────────── */
.bubbles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  margin: var(--sp-6) 0;
}

.bubbles span {
  display: block;
  border-radius: 50%;
  animation: bubble-bob 2.5s ease-in-out infinite;
}

.bubbles span:nth-child(1) { width:8px;  height:8px;  background:var(--pink-300);  animation-delay:0s; }
.bubbles span:nth-child(2) { width:12px; height:12px; background:var(--teal-300);  animation-delay:.2s; }
.bubbles span:nth-child(3) { width:16px; height:16px; background:var(--purple-300);animation-delay:.4s; }
.bubbles span:nth-child(4) { width:12px; height:12px; background:var(--teal-300);  animation-delay:.6s; }
.bubbles span:nth-child(5) { width:8px;  height:8px;  background:var(--pink-300);  animation-delay:.8s; }

@keyframes bubble-bob {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}

/* ─── Nav ───────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background var(--dur-base) var(--ease-out),
              box-shadow  var(--dur-base) var(--ease-out);
}

.nav.scrolled {
  background: rgba(255,251,254,0.93);
  backdrop-filter: blur(24px);
  box-shadow: 0 2px 24px rgba(255,107,157,0.1);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 900;
  background: var(--grad-pink);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav__links a {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  transition: color var(--dur-fast);
}

.nav.scrolled .nav__links a { color: var(--text-dark); }
.nav__links a:hover { color: var(--pink-500) !important; }

.nav__cta {
  padding: var(--sp-2) var(--sp-5) !important;
  background: var(--grad-pink) !important;
  color: var(--white) !important;
  border-radius: var(--r-full) !important;
  font-weight: 800 !important;
  transition: transform var(--dur-fast) var(--ease-spring),
              box-shadow var(--dur-fast) !important;
}

.nav__cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: var(--shadow-pink) !important;
  color: var(--white) !important;
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--sp-2);
  background: none;
  border: none;
}

.nav__burger span {
  display: block;
  width: 24px; height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform var(--dur-base), opacity var(--dur-base);
}

.nav.scrolled .nav__burger span { background: var(--text-dark); }

/* ─── Mobile menu ───────────────────────────────────────── */
.nav__mobile {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26,10,46,0.97);
  backdrop-filter: blur(24px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
}

.nav__mobile.open { display: flex; }

.nav__mobile a {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  color: white;
  transition: color var(--dur-fast);
}

.nav__mobile a:hover { color: var(--pink-500); }

.nav__mobile-close {
  position: absolute;
  top: var(--sp-6);
  right: var(--sp-6);
  font-size: var(--text-2xl);
  color: white;
  background: none;
  border: none;
  font-family: var(--font-display);
  font-weight: 700;
}

/* ─── Scroll reveal init ────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
}

/* ─── Reduced motion ────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* ─── Responsive ────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links  { display: none; }
  .nav__burger { display: flex; }
  .container   { padding: 0 var(--sp-4); }
  .section-title { font-size: clamp(1.8rem, 6vw, 2.5rem); }
  body { cursor: auto; }
  #cursor, #cursor-ring { display: none; }
}
