/* =====================
   RESET & BASE
===================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #f5f5f7;
  --bg-alt: #ffffff;
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --border: rgba(0,0,0,0.08);
  --card-bg: #ffffff;
  --nav-bg: rgba(245,245,247,0.85);
  --shadow: 0 4px 24px rgba(0,0,0,0.07);
  --radius: 20px;
  --transition: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  /* Color palette */
  --purple: #7c3aed;
  --purple-light: #a78bfa;
  --pink: #ec4899;
  --blue: #3b82f6;
  --cyan: #06b6d4;
  --orange: #f97316;
  --accent: var(--purple);
  --gradient: linear-gradient(135deg, #7c3aed, #ec4899);
  --gradient-soft: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(236,72,153,0.12));
  --gradient-hero: linear-gradient(135deg, #7c3aed 0%, #ec4899 50%, #f97316 100%);
}

[data-theme="dark"] {
  --bg: #0a0a0f;
  --bg-alt: #111118;
  --text: #f5f5f7;
  --text-secondary: #9ca3af;
  --border: rgba(255,255,255,0.07);
  --card-bg: #16161f;
  --nav-bg: rgba(10,10,15,0.85);
  --shadow: 0 4px 32px rgba(0,0,0,0.4);
  --gradient-soft: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(236,72,153,0.18));
}

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }

/* =====================
   NAV
===================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}

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

.nav-logo {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.nav-links a {
  font-size: 14px;
  font-weight: 400;
  color: var(--text-secondary);
  transition: color 0.2s;
  position: relative;
}

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

.nav-links a.active {
  color: var(--purple);
  font-weight: 500;
}

.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--gradient);
  border-radius: 2px;
}

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

.theme-toggle {
  background: none; border: none;
  cursor: pointer; font-size: 18px;
  padding: 4px; border-radius: 50%;
  transition: transform 0.3s;
}
.theme-toggle:hover { transform: rotate(20deg); }

/* =====================
   HAMBURGER
===================== */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: all 0.3s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =====================
   HERO
===================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 120px 24px 80px;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 24px;
  background: var(--gradient-soft);
  border: 1px solid rgba(124,58,237,0.2);
  padding: 6px 14px;
  border-radius: 100px;
  width: fit-content;
}

.hero-title {
  font-size: clamp(52px, 9vw, 96px);
  font-weight: 800;
  letter-spacing: -3px;
  line-height: 1.0;
  color: var(--text);
  margin-bottom: 28px;
}

.hero-title .gradient-word {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(17px, 2.2vw, 21px);
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 52px;
}

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

.hero-scroll-indicator {
  position: absolute;
  bottom: 40px; left: 24px;
}
.hero-scroll-indicator span {
  display: block;
  width: 2px; height: 60px;
  background: var(--gradient);
  animation: scrollPulse 2s ease-in-out infinite;
  border-radius: 2px;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.8); }
  50% { opacity: 1; transform: scaleY(1.1); }
}

/* =====================
   FLOATING BLOBS (bg decoration)
===================== */
.blob-container {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.12;
  animation: blobFloat 12s ease-in-out infinite;
}

[data-theme="dark"] .blob { opacity: 0.18; }

.blob-1 {
  width: 500px; height: 500px;
  background: var(--purple);
  top: -100px; left: -100px;
  animation-delay: 0s;
}
.blob-2 {
  width: 400px; height: 400px;
  background: var(--pink);
  top: 30%; right: -80px;
  animation-delay: -4s;
}
.blob-3 {
  width: 350px; height: 350px;
  background: var(--cyan);
  bottom: 10%; left: 20%;
  animation-delay: -8s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -30px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero, .section, .footer { position: relative; z-index: 1; }

/* =====================
   BUTTONS
===================== */
.btn {
  display: inline-flex; align-items: center;
  padding: 14px 30px;
  border-radius: 980px;
  font-size: 15px; font-weight: 600;
  transition: all 0.25s ease;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(124,58,237,0.45);
}

.btn-ghost {
  background: transparent;
  color: var(--purple);
  border: 1.5px solid var(--purple);
}
.btn-ghost:hover {
  background: var(--gradient);
  color: #fff;
  border-color: transparent;
  transform: translateY(-2px);
}

/* =====================
   SECTIONS
===================== */
.section { padding: 120px 24px; }
.section-alt { background: var(--bg-alt); }

.container { max-width: 1100px; margin: 0 auto; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 18px;
  background: var(--gradient-soft);
  border: 1px solid rgba(124,58,237,0.15);
  padding: 5px 12px;
  border-radius: 100px;
  width: fit-content;
}

.section-title {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: 1.08;
  color: var(--text);
  margin-bottom: 20px;
}

.section-body {
  font-size: 18px;
  font-weight: 300;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
  margin-bottom: 56px;
}

/* =====================
   CARD GRID
===================== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color 0.3s;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity 0.3s;
}

.card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 60px rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.2);
}

.card:hover::before { opacity: 1; }

.card-tag {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
  background: var(--gradient-soft);
  padding: 3px 10px;
  border-radius: 100px;
  width: fit-content;
}

.card-title {
  font-size: 22px; font-weight: 700;
  letter-spacing: -0.4px;
  margin-bottom: 10px;
  color: var(--text);
}

.card-body {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =====================
   STATS ROW
===================== */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.stat {
  text-align: center;
  padding: 32px 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.3s;
}

.stat:hover { transform: translateY(-4px); }

.stat-number {
  font-size: 42px; font-weight: 800;
  letter-spacing: -2px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 14px; color: var(--text-secondary);
}

/* =====================
   BLOG / POST LIST
===================== */
.post-list { display: flex; flex-direction: column; }

.post-item {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: all 0.2s ease;
  gap: 20px;
}

.post-item:first-child { border-top: 1px solid var(--border); }

.post-item:hover .post-title { color: var(--purple); }
.post-item:hover .post-arrow { transform: translateX(6px); color: var(--purple); }

.post-info { flex: 1; }
.post-meta { font-size: 13px; color: var(--text-secondary); margin-bottom: 6px; }

.post-title {
  font-size: 20px; font-weight: 600;
  letter-spacing: -0.3px;
  color: var(--text);
  transition: color 0.2s;
}

.post-arrow {
  font-size: 20px;
  color: var(--text-secondary);
  transition: all 0.2s;
}

/* =====================
   CONTACT SECTION
===================== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-link {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 24px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  font-size: 15px; font-weight: 500;
  color: var(--text);
  transition: all 0.25s;
}

.contact-link:hover {
  border-color: var(--purple);
  transform: translateX(6px);
  color: var(--purple);
}

.contact-link-icon { font-size: 20px; }

/* =====================
   FOOTER
===================== */
.footer {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-logo {
  font-size: 16px; font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

/* =====================
   REVEAL ANIMATIONS
===================== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal:nth-child(1) { transition-delay: 0s; }
.reveal:nth-child(2) { transition-delay: 0.08s; }
.reveal:nth-child(3) { transition-delay: 0.16s; }
.reveal:nth-child(4) { transition-delay: 0.24s; }
.reveal:nth-child(5) { transition-delay: 0.32s; }
.reveal:nth-child(6) { transition-delay: 0.40s; }

/* Default browser cursor */

/* =====================
   MUSIC PLAYER (bottom bar)
===================== */
.music-player {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 10px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
}

.music-btn {
  min-width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient);
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(124,58,237,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.music-btn:hover { transform: scale(1.08); }
.music-btn:active { transform: scale(0.95); }

.music-icon {
  font-size: 18px;
  color: white;
  position: absolute;
  transition: opacity 0.2s;
}

.music-bars {
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}

.music-bars span {
  display: block;
  width: 3px;
  background: white;
  border-radius: 2px;
  animation: barBounce 0.8s ease-in-out infinite alternate;
}

.music-bars span:nth-child(1) { height: 8px; animation-delay: 0s; }
.music-bars span:nth-child(2) { height: 16px; animation-delay: 0.15s; }
.music-bars span:nth-child(3) { height: 12px; animation-delay: 0.3s; }
.music-bars span:nth-child(4) { height: 6px; animation-delay: 0.45s; }

@keyframes barBounce {
  from { transform: scaleY(0.4); }
  to { transform: scaleY(1); }
}

.music-btn.playing .music-icon { display: none; }
.music-btn.playing .music-bars { display: flex; }

.music-info {
  flex: 1;
  min-width: 0;
}

.music-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.music-sublabel {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.music-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.vol-icon { font-size: 14px; }

.vol-slider {
  width: 90px;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(to right, var(--purple) 40%, var(--border) 40%);
  outline: none;
  cursor: pointer;
}

.vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 6px rgba(124,58,237,0.5);
  cursor: pointer;
}

/* push page content above the bar */
body { padding-bottom: 68px; }

.music-collapse-btn {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--text-secondary);
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  flex-shrink: 0;
  line-height: 1;
}
.music-collapse-btn:hover {
  color: var(--purple);
  background: var(--gradient-soft);
}

/* collapsed tab (small pill at bottom) */
.music-tab {
  position: fixed;
  bottom: 0; right: 24px;
  z-index: 200;
  background: var(--gradient);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -2px 12px rgba(124,58,237,0.3);
  transition: transform 0.2s;
}
.music-tab:hover { transform: translateY(-2px); }

/* when collapsed, remove body padding */
body.music-collapsed { padding-bottom: 0; }

@media (max-width: 768px) {
  .music-controls { display: none; }
  .music-player { padding: 10px 16px; gap: 12px; }
  .music-btn { min-width: 48px; height: 48px; }
  .music-icon { font-size: 22px; }
  .music-label { font-size: 14px; }
  body { padding-bottom: 68px; }
}

/* =====================
   RESPONSIVE
===================== */
@media (max-width: 768px) {
  .hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 56px; left: 0; right: 0; bottom: 0;
    background: var(--bg);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
    z-index: 99;
  }

  .nav-links.open { display: flex; }

  .nav-links a {
    font-size: 28px; font-weight: 700;
    color: var(--text);
  }

  .nav-links a.active::after { display: none; }

  .hero-title { letter-spacing: -1.5px; }
  .section { padding: 80px 24px; }
  .card-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr 1fr; }

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