:root {
  --bg: #0a0a2a;
  --bg-deep: #050516;
  --text: #f6f7ff;
  --muted: rgba(236, 241, 255, 0.72);
  --aurora-green: #00ff87;
  --aurora-purple: #7b2ff7;
  --aurora-pink: #ff2d95;
  --soft-cyan: #8ef6ff;
  --card: rgba(11, 16, 50, 0.64);
  --card-border: rgba(255, 255, 255, 0.14);
  --shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
  --radius: 26px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Tajawal", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(123, 47, 247, 0.18), transparent 35%),
    radial-gradient(circle at 80% 10%, rgba(0, 255, 135, 0.13), transparent 30%),
    radial-gradient(circle at 50% 80%, rgba(255, 45, 149, 0.12), transparent 32%),
    linear-gradient(180deg, #09091d 0%, #07071f 40%, #03030e 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 1px, transparent 1.8px),
    radial-gradient(circle, rgba(142, 246, 255, 0.85) 1px, transparent 1.6px),
    radial-gradient(circle, rgba(255, 45, 149, 0.65) 1px, transparent 1.8px);
  background-size: 180px 180px, 240px 240px, 320px 320px;
  background-position: 10px 30px, 80px 110px, 40px 160px;
  opacity: 0.22;
}

body::after {
  background: radial-gradient(circle at center, transparent 55%, rgba(0, 0, 0, 0.25) 100%);
}

img {
  max-width: 100%;
  display: block;
}

button,
a {
  transition: 0.3s ease;
}

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

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.page-shell {
  position: relative;
  isolation: isolate;
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.topbar {
  position: relative;
  z-index: 3;
  padding: 14px 20px;
  text-align: center;
  font-size: 0.95rem;
  color: var(--soft-cyan);
  background: linear-gradient(90deg, rgba(123, 47, 247, 0.18), rgba(0, 255, 135, 0.12), rgba(255, 45, 149, 0.18));
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Comfortaa", sans-serif;
}

.brand strong,
.footer h3,
.section-heading h2,
.hero h1,
.ritual-box h3 {
  font-family: "Comfortaa", sans-serif;
}

.brand span:last-child {
  display: grid;
  gap: 5px;
}

.brand small {
  color: var(--muted);
  font-size: 0.72rem;
}

.brand-mark {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  border-radius: 50%;
  color: var(--text);
  background: linear-gradient(145deg, rgba(0, 255, 135, 0.25), rgba(123, 47, 247, 0.26), rgba(255, 45, 149, 0.3));
  box-shadow: 0 0 25px rgba(142, 246, 255, 0.25);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-links a,
.footer a {
  color: var(--muted);
}

.nav-links a:hover,
.footer a:hover,
.inline-link:hover {
  color: var(--soft-cyan);
}

.nav-cta,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  padding: 14px 24px;
}

.nav-cta,
.button.primary {
  color: #04131a;
  background: linear-gradient(135deg, var(--aurora-green), var(--soft-cyan));
  box-shadow: 0 12px 35px rgba(0, 255, 135, 0.25);
}

.nav-cta:hover,
.button.primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 255, 135, 0.32);
}

.button.secondary {
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
}

.button.secondary:hover {
  border-color: rgba(142, 246, 255, 0.45);
  color: var(--soft-cyan);
}

.glass-panel,
.mini-glass,
.product-card,
.footer {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--card-border);
  background: linear-gradient(180deg, rgba(14, 18, 58, 0.74), rgba(7, 10, 30, 0.68));
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.glass-panel::before,
.mini-glass::before,
.product-card::before,
.footer::before {
  content: "";
  position: absolute;
  inset: -1px;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(0, 255, 135, 0.8), rgba(142, 246, 255, 0.4), rgba(123, 47, 247, 0.8), rgba(255, 45, 149, 0.85), rgba(0, 255, 135, 0.8));
  background-size: 250% 250%;
  animation: borderFlow 8s linear infinite;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
}

.glass-panel::after,
.mini-glass::after,
.product-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 25%, rgba(255, 255, 255, 0.1) 45%, transparent 60%);
  transform: translateX(-130%);
  animation: shimmer 7s ease-in-out infinite;
  pointer-events: none;
}

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 26px;
  align-items: stretch;
  padding: 20px 0 36px;
}

.hero-copy,
.hero-card,
.ritual-copy,
.ritual-box,
.footer {
  border-radius: var(--radius);
}

.hero-copy,
.hero-card {
  padding: 30px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--soft-cyan);
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(2.4rem, 4vw, 4.5rem);
  line-height: 1.1;
}

.hero p,
.section-heading p,
.ritual-copy p,
.ritual-box p,
.product-content p,
.footer p,
.quote-card p {
  color: var(--muted);
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 28px 0 34px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-stats div,
.subscription-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.hero-stats div {
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid rgba(255, 255, 255, 0.08);
  flex-direction: column;
  align-items: flex-start;
}

.hero-stats strong {
  color: var(--aurora-green);
  font-size: 1.6rem;
}

.hero-stats span {
  color: var(--muted);
}

.featured-label,
.card-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #071018;
  background: linear-gradient(135deg, #ffffff, var(--soft-cyan), var(--aurora-green));
}

.hero-card {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero-card img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  border-radius: 22px;
}

.hero-card-copy h2 {
  margin: 0 0 10px;
  font-size: 1.9rem;
}

.hero-price-row,
.product-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 18px;
}

.price {
  font-family: "Comfortaa", sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.inline-link,
.product-meta a {
  color: var(--soft-cyan);
  font-weight: 700;
}

.feature-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}

.mini-glass {
  border-radius: 22px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.mini-glass span {
  font-size: 1.5rem;
  color: var(--aurora-green);
}

.mini-glass h3,
.product-content h3,
.footer h4 {
  margin: 0 0 6px;
}

.mini-glass p {
  margin: 0;
  color: var(--muted);
}

.products-section,
.about-section {
  padding: 48px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading.align-right {
  max-width: 840px;
}

.section-heading h2 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 3vw, 3rem);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.product-card {
  border-radius: 24px;
}

.product-card img {
  width: 100%;
  height: 250px;
  object-fit: cover;
}

.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.5);
}

.product-content {
  padding: 18px;
}

.product-category {
  display: inline-block;
  margin-bottom: 10px;
  color: var(--soft-cyan);
  font-size: 0.9rem;
}

.rituals-section {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  padding: 12px 0 48px;
}

.ritual-copy,
.ritual-box {
  padding: 28px;
}

.ritual-copy ul {
  margin-top: 20px;
  display: grid;
  gap: 12px;
  color: var(--text);
}

.ritual-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.quote-card {
  min-height: 100%;
  justify-content: space-between;
  align-items: flex-start;
  flex-direction: column;
}

.footer {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr;
  gap: 22px;
  border-radius: 28px 28px 0 0;
  padding: 28px;
  margin-top: 24px;
}

.footer li + li {
  margin-top: 10px;
}

.stars,
.aurora {
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 1;
}

.stars {
  width: 34vw;
  height: 34vw;
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0.4;
}

.stars-a {
  top: 12%;
  left: -8%;
  background: radial-gradient(circle, rgba(255,255,255,0.9) 1px, transparent 1.8px);
  background-size: 24px 24px;
  animation: floatStars 12s ease-in-out infinite alternate;
}

.stars-b {
  bottom: 6%;
  right: -8%;
  background: radial-gradient(circle, rgba(142,246,255,0.85) 1px, transparent 1.7px);
  background-size: 28px 28px;
  animation: floatStars 15s ease-in-out infinite alternate-reverse;
}

.aurora {
  width: 70vw;
  height: 36vh;
  border-radius: 999px;
  filter: blur(55px);
  opacity: 0.34;
  mix-blend-mode: screen;
}

.aurora-a {
  top: -4vh;
  left: -10vw;
  background: linear-gradient(100deg, rgba(0,255,135,0), rgba(0,255,135,0.65), rgba(142,246,255,0.25), rgba(0,255,135,0));
  animation: auroraMoveA 18s ease-in-out infinite alternate;
}

.aurora-b {
  top: 18vh;
  right: -14vw;
  background: linear-gradient(110deg, rgba(123,47,247,0), rgba(123,47,247,0.65), rgba(255,45,149,0.35), rgba(123,47,247,0));
  animation: auroraMoveB 22s ease-in-out infinite alternate;
}

.aurora-c {
  bottom: 2vh;
  left: 6vw;
  background: linear-gradient(100deg, rgba(255,45,149,0), rgba(255,45,149,0.55), rgba(0,255,135,0.28), rgba(255,45,149,0));
  animation: auroraMoveC 20s ease-in-out infinite alternate;
}

@keyframes auroraMoveA {
  0% { transform: translate3d(0, 0, 0) rotate(-6deg) scaleX(1); }
  50% { transform: translate3d(8vw, 8vh, 0) rotate(-2deg) scaleX(1.18); }
  100% { transform: translate3d(16vw, 2vh, 0) rotate(5deg) scaleX(0.95); }
}

@keyframes auroraMoveB {
  0% { transform: translate3d(0, 0, 0) rotate(8deg); }
  50% { transform: translate3d(-12vw, 10vh, 0) rotate(2deg) scale(1.1); }
  100% { transform: translate3d(-5vw, -4vh, 0) rotate(-4deg) scale(0.96); }
}

@keyframes auroraMoveC {
  0% { transform: translate3d(0, 0, 0) rotate(-4deg); }
  50% { transform: translate3d(10vw, -6vh, 0) rotate(3deg) scale(1.05); }
  100% { transform: translate3d(18vw, 5vh, 0) rotate(7deg) scale(0.9); }
}

@keyframes borderFlow {
  0% { background-position: 0% 50%; }
  100% { background-position: 200% 50%; }
}

@keyframes shimmer {
  0%, 100% { transform: translateX(-135%); }
  45%, 60% { transform: translateX(135%); }
}

@keyframes floatStars {
  from { transform: translateY(0) translateX(0); }
  to { transform: translateY(-24px) translateX(18px); }
}

@media (max-width: 1100px) {
  .hero,
  .rituals-section,
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero,
  .rituals-section {
    grid-template-columns: 1fr;
  }

  .testimonial-grid,
  .feature-strip,
  .footer {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .navbar {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    justify-content: center;
  }

  .nav-cta {
    width: 100%;
  }

  .hero-copy,
  .hero-card,
  .ritual-copy,
  .ritual-box,
  .footer {
    padding: 22px;
  }

  .hero-card img {
    height: 300px;
  }

  .hero-stats,
  .product-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .product-meta,
  .hero-price-row,
  .subscription-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button,
  .product-meta a {
    text-align: center;
  }

  .topbar {
    font-size: 0.85rem;
  }
}

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