/* --- VARIABLES & CSS ARCHITECTURE --- */
:root {
  /* Color Palette: Deep Amethyst & Titanium */
  --bg-primary: #0a0512;
  --bg-secondary: rgba(22, 14, 38, 0.4);
  --accent-magenta: #e500a4;
  --accent-cyan: #00e5ff;
  --text-main: #ffffff;
  --text-muted: #a097af;

  /* Glassmorphism Variables */
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
  --glass-blur: blur(16px);

  /* Typography */
  --font-sans: 'Outfit', sans-serif;

  /* Transitions */
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* --- RESETS --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-primary);
  color: var(--text-main);
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- ACCESSIBILITY --- */
/* Remove outline for mouse users, keep for keyboard focusing */
:focus:not(:focus-visible) {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 4px;
}

/* Visually hidden utility for screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* --- AMBIENT BACKGROUND EFFECTS --- */
.ambient-backgrounds {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: -1;
  pointer-events: none;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}

.orb-1 {
  top: -10%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--accent-magenta) 0%, transparent 60%);
}

.orb-2 {
  top: 40%;
  right: -20%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, var(--accent-cyan) 0%, transparent 60%);
  opacity: 0.3;
}

.orb-3 {
  bottom: -20%;
  left: 20%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, #5b10ff 0%, transparent 60%);
  opacity: 0.4;
}

/* --- UTILITIES --- */
a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul {
  list-style: none;
}

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

button {
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
}

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

.text-muted {
  color: var(--text-muted);
}

.mt-2 {
  margin-top: 2rem;
}

/* Gradient Text */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* --- COMPONENTS --- */
/* Glass panels */
.glass-panel,
.glass-card,
.glass-nav,
.glass-footer {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  /* Safari combo */
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}

.glass-card {
  border-radius: 24px;
  padding: 2.5rem;
  transition: var(--transition-smooth);
}

.glass-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 16px 48px 0 rgba(0, 0, 0, 0.5);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: var(--transition-smooth);
  font-size: 0.9rem;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
  color: white;
  box-shadow: 0 0 20px rgba(229, 0, 164, 0.4);
}

.btn-primary:hover {
  filter: brightness(1.2);
  box-shadow: 0 0 30px rgba(0, 229, 255, 0.6);
  transform: scale(1.02);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(4px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

.btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.5);
}

.btn-outline:hover {
  background: white;
  color: var(--bg-primary);
}

.icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: var(--transition-fast);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* --- NAVIGATION --- */
header.glass-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  border-top: none;
  border-left: none;
  border-right: none;
  border-radius: 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 5%;
  max-width: 1600px;
  margin: 0 auto;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 2px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}

.logo i {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav-links {
  display: flex;
  gap: 2.5rem;
}

.nav-links a {
  font-weight: 400;
  font-size: 1rem;
  position: relative;
  opacity: 0.8;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--accent-cyan);
  transition: var(--transition-fast);
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-nav {
  padding: 0.6rem 1.5rem;
}

.mobile-toggle {
  display: none;
  font-size: 1.5rem;
  padding: 10px;
}

/* --- HERO SECTION --- */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 0 5%;
  border-radius: 0;
  border-left: none;
  border-right: none;
}

.hero-content {
  max-width: 600px;
  padding-left: 2rem;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 2rem;
  letter-spacing: -1px;
}

.hero p {
  font-size: clamp(1.1rem, 2vw, 1.4rem);
  color: var(--text-muted);
  margin-bottom: 3rem;
  font-weight: 300;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

.floating-headphone {
  filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.6));
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }

  50% {
    transform: translateY(-20px) rotate(2deg);
  }

  100% {
    transform: translateY(0px) rotate(0deg);
  }
}

/* --- SECTIONS COMMON --- */
.section-padding {
  padding: 8rem 5%;
}

.section-header {
  margin-bottom: 5rem;
}

.section-header h2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 800;
  margin-bottom: 1rem;
}

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

/* --- FEATURES GRID --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.feature-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--accent-cyan);
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.feature-card p {
  color: var(--text-muted);
  font-weight: 300;
}


/* --- SHOPPING GRID --- */
.shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.shop-card {
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow: hidden;
}

.shop-img-wrap {
  width: 100%;
  aspect-ratio: 1;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid var(--glass-border);
}

.shop-img-wrap img {
  width: 80%;
  height: 80%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.shop-card:hover .shop-img-wrap img {
  transform: scale(1.1);
}

.shop-details {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.shop-details h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.shop-details .price {
  font-size: 1.2rem;
  color: var(--accent-cyan);
  font-weight: 600;
  margin-bottom: 1rem;
}

.shop-details .desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.shop-btn {
  width: 100%;
  justify-content: space-between;
}

/* --- SHOWCASE / STORY --- */
.showcase-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4rem 5% 8rem 5%;
  align-items: center;
  gap: 4rem;
}

.showcase-image {
  border-radius: 30px;
  overflow: hidden;
  position: relative;
}

.showcase-image::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  border: 1px solid var(--glass-border);
  pointer-events: none;
}

.showcase-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}

.showcase-image:hover img {
  transform: scale(1.05);
}

.showcase-text h2 {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  margin-bottom: 2rem;
}

.showcase-text p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* --- QUOTE SECTION --- */
.quote-section blockquote {
  font-size: clamp(1.5rem, 3vw, 2.5rem);
  font-weight: 300;
  max-width: 1000px;
  margin: 0 auto;
  line-height: 1.4;
  position: relative;
}

.quote-section cite {
  display: block;
  font-style: normal;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent-magenta);
  margin-top: 2rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* --- FOOTER --- */
.glass-footer {
  padding: 5rem 5% 2rem;
  border-left: none;
  border-right: none;
  border-bottom: none;
  border-radius: 0;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  max-width: 1600px;
  margin: 0 auto 4rem;
}

.footer-links h3,
.footer-social h3 {
  font-size: 1.2rem;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.footer-links li {
  margin-bottom: 0.8rem;
}

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

.footer-links a:hover {
  color: white;
}

.social-icons {
  display: flex;
  gap: 1rem;
}

.social-icons a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--text-muted);
}

.social-icons a:hover {
  background: var(--accent-magenta);
  color: white;
  transform: translateY(-3px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.legal-links {
  display: flex;
  gap: 1.5rem;
}

/* --- ANIMATIONS & EFFECTS --- */
.fade-in-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  will-change: opacity, transform;
}

.fade-in-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Delays for staggered animations */
.delay-1 {
  transition-delay: 0.1s;
}

.delay-2 {
  transition-delay: 0.2s;
}

.delay-3 {
  transition-delay: 0.3s;
}

/* 3D Tilt perspective context */
.tilt-element {
  transform-style: preserve-3d;
  transform: perspective(1000px);
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media screen and (max-width: 1024px) {

  .hero,
  .showcase-section {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 2rem;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-content {
    margin: 0 auto;
    padding-left: 0;
  }

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

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

@media screen and (max-width: 768px) {

  .nav-links,
  .nav-actions .btn-nav {
    display: none;
  }

  .mobile-toggle {
    display: block;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .social-icons {
    justify-content: center;
  }

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

/* Reduced Motion Preference Accessibility */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}