/* =============================================
   MUSIKKITA — Purple Youth-Friendly Landing
   ============================================= */

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

:root {
  --bg:          #f5f0ff;
  --surface:     #ffffff;
  --border:      #e9d5ff;
  --border-hv:   #c4b5fd;
  --text:        #1e1b4b;
  --text-muted:  #6b7280;
  --accent:      #7c3aed;
  --accent-hv:   #6d28d9;
  --accent-soft: #ede9fe;
  --radius:      16px;
  --nav-h:       64px;
  --transition:  0.22s ease;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .plan-name, .featured-badge {
  font-family: 'Fredoka', 'Nunito', sans-serif;
}

/* ── Utilities ─────────────────────────────── */
.container {
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ───────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  line-height: 1;
}

.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.35);
}
.btn-primary:hover {
  background: var(--accent-hv);
  border-color: var(--accent-hv);
  box-shadow: 0 6px 20px rgba(124, 58, 237, 0.45);
}

.btn-outline {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--border-hv);
}
.btn-outline:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.btn-sm {
  font-size: 0.83rem;
  padding: 9px 18px;
}

.btn-block {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* ── Navbar ────────────────────────────────── */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: background var(--transition), box-shadow var(--transition), border-color var(--transition);
  border-bottom: 1px solid transparent;
}

#navbar.scrolled {
  background: rgba(245, 240, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(124, 58, 237, 0.08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 40px;
}

/* ── Hero ──────────────────────────────────── */
#hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  padding: calc(var(--nav-h) + 48px) 0 80px;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  width: 520px;
  height: 520px;
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle, rgba(167, 139, 250, 0.45) 0%, rgba(124, 58, 237, 0.12) 50%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(2px);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.5;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 100%);
  pointer-events: none;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
}

.hero-content {
  text-align: left;
}

.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mascot {
  width: 100%;
  max-width: 420px;
  height: auto;
  animation: hero-float 4s ease-in-out infinite;
  filter: drop-shadow(0 16px 32px rgba(124, 58, 237, 0.2));
}

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

.badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  border: 1px solid var(--border-hv);
  border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 24px;
  background: var(--accent-soft);
}

#hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  color: var(--text);
}

.hero-sub {
  font-size: clamp(0.95rem, 2vw, 1.08rem);
  color: var(--text-muted);
  max-width: 480px;
  margin: 0 0 36px;
}

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

/* ── Section shared ────────────────────────── */
section {
  padding: 96px 0;
}

#services {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

#how-to-order {
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.section-header.visible {
  opacity: 1;
  transform: translateY(0);
}

.section-header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
  color: var(--text);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* ── Services Grid ─────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.service-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px 32px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(24px);
}

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

.service-card.hovered,
.service-card:hover {
  border-color: var(--border-hv);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.12);
}

.service-thumb {
  display: block;
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: 16px;
  border: 2px solid var(--border);
  background: var(--surface);
}

.service-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Portfolio / Showcase ──────────────────── */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.portfolio-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0 0 24px;
  overflow: hidden;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(24px);
}

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

.portfolio-card.hovered,
.portfolio-card:hover {
  border-color: var(--border-hv);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.12);
}

.portfolio-thumb {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  margin-bottom: 16px;
}

.portfolio-card .portfolio-tag,
.portfolio-card h3,
.portfolio-card p {
  padding-left: 20px;
  padding-right: 20px;
}

.portfolio-tag {
  display: inline-block;
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--border-hv);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 12px;
  margin-left:20px;
}

.portfolio-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.portfolio-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ── How To Order ──────────────────────────── */
.order-timeline {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 14px;
  flex-wrap: nowrap;
}

.order-step {
  flex: 1;
  min-width: 0;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  opacity: 0;
  transform: translateY(24px);
  transition: border-color var(--transition), transform var(--transition), opacity 0.5s ease, box-shadow var(--transition);
}

.order-step.visible {
  opacity: 1;
  transform: translateY(0);
}

.order-step.hovered,
.order-step:hover {
  border-color: var(--border-hv);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.1);
}

.order-step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 1.5px solid var(--border-hv);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 800;
  margin-bottom: 14px;
}

.order-step h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.order-step p {
  font-size: 0.87rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.order-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  font-weight: 700;
  padding: 0 2px;
}

.order-cta {
  margin-top: 28px;
  display: flex;
  justify-content: center;
}

/* ── Pricing Grid ──────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: start;
}

.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  opacity: 0;
  transform: translateY(24px);
}

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

.pricing-card.hovered,
.pricing-card:hover {
  border-color: var(--border-hv);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.1);
}

.pricing-card--featured {
  border-color: var(--accent);
  border-width: 2px;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

.pricing-card--featured.hovered,
.pricing-card--featured:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(124, 58, 237, 0.2);
}

.featured-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), #a855f7);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 16px;
  border-radius: 999px;
  white-space: nowrap;
}

.pricing-top {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.price-currency {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
}

.price-amount {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.plan-tokens {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 4px;
}

.token-count {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--accent);
}

.token-label {
  font-size: 0.88rem;
  color: var(--text-muted);
  font-weight: 600;
}

.plan-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.plan-perks li {
  font-size: 0.87rem;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
}

.plan-perks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.pricing-note {
  text-align: center;
  margin-top: 32px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* ── Footer ────────────────────────────────── */
#footer {
  padding: 52px 0 24px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.footer-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-brand .brand {
  display: inline-flex;
  margin-bottom: 6px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-links a:hover {
  color: var(--accent-hv);
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.footer-bottom p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── Staggered fade-in delays ──────────────── */
.service-card:nth-child(1) { transition-delay: 0.05s; }
.service-card:nth-child(2) { transition-delay: 0.12s; }
.service-card:nth-child(3) { transition-delay: 0.19s; }
.service-card:nth-child(4) { transition-delay: 0.26s; }

.pricing-card:nth-child(1) { transition-delay: 0.05s; }
.pricing-card:nth-child(2) { transition-delay: 0.14s; }
.pricing-card:nth-child(3) { transition-delay: 0.23s; }

.portfolio-card:nth-child(1) { transition-delay: 0.05s; }
.portfolio-card:nth-child(2) { transition-delay: 0.13s; }
.portfolio-card:nth-child(3) { transition-delay: 0.21s; }

.order-step:nth-child(1) { transition-delay: 0.05s; }
.order-step:nth-child(3) { transition-delay: 0.13s; }
.order-step:nth-child(5) { transition-delay: 0.21s; }
.order-step:nth-child(7) { transition-delay: 0.29s; }

/* ── Responsive ────────────────────────────── */
@media (max-width: 900px) {
  .hero-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-content {
    text-align: center;
  }

  .hero-sub {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-blob {
    right: 50%;
    transform: translate(50%, -40%);
    opacity: 0.6;
  }

  .hero-mascot {
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
    margin: 0 auto;
  }

  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .order-timeline {
    flex-direction: column;
    gap: 10px;
  }

  .order-arrow {
    transform: rotate(90deg);
    align-self: center;
    padding: 0;
  }

  .pricing-card--featured {
    order: -1;
  }

  section {
    padding: 72px 0;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .order-cta .btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 16px;
  }

  #hero {
    padding-top: calc(var(--nav-h) + 32px);
  }

  #hero h1 {
    letter-spacing: -0.02em;
  }

  .brand-logo {
    height: 100%;
  }
}
