/* ========== CSS CUSTOM PROPERTIES ========== */
:root {
  --plum-50: #f6f0f9;
  --plum-100: #e8d8ee;
  --plum-600: #7b2d8e;
  --plum-700: #6a2378;
  --plum-900: #44174b;
  --plum-950: #2a0d30;
  --amber-300: #efc15e;
  --amber-400: #e8a92e;
  --amber-500: #d4943a;
  --transition-smooth: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== BASE ========== */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* ========== NAVIGATION ========== */
#site-header {
  background: linear-gradient(180deg, rgba(42, 13, 48, 0.95) 0%, rgba(42, 13, 48, 0.85) 100%);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
}

#site-header.scrolled {
  background: rgba(42, 13, 48, 0.98);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-link {
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 20px;
  height: 2px;
  background: var(--amber-400);
  border-radius: 2px;
  transition: transform 0.3s var(--transition-smooth);
}

.nav-link:hover::after {
  transform: translateX(-50%) scaleX(1);
}

/* Mobile menu */
#mobile-menu {
  top: 72px;
}

#mobile-menu.open {
  opacity: 1;
  pointer-events: all;
}

.mobile-link {
  position: relative;
}

/* Hamburger icon */
.menu-icon {
  position: relative;
  width: 20px;
  height: 14px;
  display: block;
}

.menu-icon::before,
.menu-icon::after,
.menu-icon span {
  content: '';
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: all 0.35s var(--transition-smooth);
}

.menu-icon::before { top: 0; }
.menu-icon span { top: 6px; }
.menu-icon::after { top: 12px; }

#menu-btn[aria-expanded="true"] .menu-icon::before {
  top: 6px;
  transform: rotate(45deg);
}

#menu-btn[aria-expanded="true"] .menu-icon span {
  opacity: 0;
  transform: scaleX(0);
}

#menu-btn[aria-expanded="true"] .menu-icon::after {
  top: 6px;
  transform: rotate(-45deg);
}

/* ========== STAR ICON (SVG inline) ========== */
.star-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

.star-icon-sm {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* ========== HERO ========== */
#top {
  background: linear-gradient(135deg, var(--plum-950) 0%, var(--plum-800) 50%, var(--plum-700) 100%);
  position: relative;
}

.hero-bg {
  background-image: url('https://images.pexels.com/photos/7750102/pexels-photo-7750102.jpeg?auto=compress&cs=tinysrgb&fit=crop&w=1920&h=1080');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.35;
  filter: saturate(0.8);
}

.hero-overlay {
  background: linear-gradient(
    135deg,
    rgba(42, 13, 48, 0.92) 0%,
    rgba(74, 23, 88, 0.85) 40%,
    rgba(106, 35, 120, 0.75) 70%,
    rgba(123, 45, 142, 0.65) 100%
  );
}

/* Decorative blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
  animation: blobFloat 8s ease-in-out infinite;
}

.hero-blob-1 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--amber-500) 0%, transparent 70%);
  top: -100px;
  right: -100px;
  animation-delay: 0s;
}

.hero-blob-2 {
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, var(--plum-300) 0%, transparent 70%);
  bottom: -50px;
  left: 10%;
  animation-delay: -3s;
}

.hero-blob-3 {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--amber-300) 0%, transparent 70%);
  top: 40%;
  right: 20%;
  animation-delay: -5s;
}

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

/* Hero text animations (above the fold — always visible) */
.hero-eyebrow {
  opacity: 1;
  animation: heroFadeUp 0.8s var(--transition-smooth) 0.1s both;
}

.hero-headline {
  opacity: 1;
  animation: heroFadeUp 0.8s var(--transition-smooth) 0.25s both;
}

.hero-subtext {
  opacity: 1;
  animation: heroFadeUp 0.8s var(--transition-smooth) 0.4s both;
}

.hero-ctas {
  opacity: 1;
  animation: heroFadeUp 0.8s var(--transition-smooth) 0.55s both;
}

@keyframes heroFadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Scroll indicator */
.scroll-indicator {
  opacity: 1;
  animation: heroFadeUp 0.8s var(--transition-smooth) 0.8s both;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 13px;
  position: relative;
}

.scroll-wheel {
  width: 4px;
  height: 8px;
  background: var(--amber-400);
  border-radius: 2px;
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 2s ease-in-out infinite;
}

@keyframes scrollWheel {
  0%, 100% { opacity: 1; top: 8px; }
  50% { opacity: 0.3; top: 20px; }
}

/* ========== BUTTONS ========== */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, var(--amber-500) 0%, var(--amber-400) 100%);
  color: var(--plum-950);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(212, 148, 58, 0.35), 0 2px 8px rgba(212, 148, 58, 0.2);
  transition: all 0.35s var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(212, 148, 58, 0.45), 0 4px 12px rgba(212, 148, 58, 0.3);
  background: linear-gradient(135deg, var(--amber-400) 0%, var(--amber-300) 100%);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  border: 1.5px solid rgba(255, 255, 255, 0.25);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.35s var(--transition-smooth);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--plum-600);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  border: 2px solid var(--plum-200);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.35s var(--transition-smooth);
}

.btn-outline:hover {
  background: var(--plum-600);
  border-color: var(--plum-600);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(123, 45, 142, 0.3);
}

/* ========== REVEAL ANIMATIONS (below the fold only) ========== */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s var(--transition-smooth), transform 0.7s var(--transition-smooth);
  }

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

  .reveal:nth-child(2) { transition-delay: 0.1s; }
  .reveal:nth-child(3) { transition-delay: 0.2s; }
  .reveal:nth-child(4) { transition-delay: 0.3s; }
  .reveal:nth-child(5) { transition-delay: 0.4s; }
  .reveal:nth-child(6) { transition-delay: 0.5s; }
}

/* Always-visible fallback for reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ========== REVEAL TAGS ========== */
.reveal-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--plum-600);
  background: var(--plum-100);
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  border: 1px solid var(--plum-200);
}

/* ========== REVEAL HEADINGS ========== */
.reveal-heading {
  line-height: 1.15;
}

/* ========== PRODUCT CARDS ========== */
.product-card {
  background: white;
  border-radius: 1.5rem;
  padding: 0.5rem;
  box-shadow: 0 4px 20px rgba(68, 23, 75, 0.06), 0 1px 4px rgba(68, 23, 75, 0.04);
  transition: transform 0.4s var(--transition-smooth), box-shadow 0.4s var(--transition-smooth);
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(68, 23, 75, 0.12), 0 4px 12px rgba(68, 23, 75, 0.08);
}

/* ========== FEATURE CARDS ========== */
.feature-card {
  /* no extra styles needed — cards styled inline */
}

/* ========== INFO CARDS ========== */
.info-card {
  background: white;
  border-radius: 1.5rem;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(68, 23, 75, 0.06);
  transition: transform 0.35s var(--transition-smooth), box-shadow 0.35s var(--transition-smooth);
  border: 1px solid var(--plum-100);
}

.info-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(68, 23, 75, 0.1);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 767px) {
  .hero-blob-1 { width: 200px; height: 200px; }
  .hero-blob-2 { width: 150px; height: 150px; }
  .hero-blob-3 { width: 100px; height: 100px; }

  .hero-headline {
    font-size: 2.25rem;
  }

  .hero-subtext {
    font-size: 1.05rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .hero-headline {
    font-size: 3.5rem;
  }
}

/* ========== ACCESSIBILITY ========== */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .scroll-wheel {
    animation: none;
  }
}

/* Focus visible */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--amber-400);
  outline-offset: 3px;
  border-radius: 4px;
}
