/* ============================================
   HEATER HOUSE — Design System & Styles
   ============================================ */

/* ---------- Reset & Base ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Brand palette */
  --clr-flame:    #ee7752;
  --clr-magenta:  #e73c7e;
  --clr-teal:     #177191;
  --clr-olive:    #969e28;
  --clr-dark:     #0a0a0f;
  --clr-light:    #f5f0e8;
  --clr-gold:     #d4a04a;
  --clr-orange:   #ff6b35;

  /* Surface & text */
  --surface:      rgba(10, 10, 15, 0.55);
  --surface-blur: 20px;
  --text-primary: #f5f0e8;
  --text-muted:   rgba(245, 240, 232, 0.55);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.25s var(--ease-out);
  --transition-med:  0.5s var(--ease-out);
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  color: var(--text-primary);
  background: var(--clr-dark);
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
}

/* ---------- Animated Background Layers ---------- */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
}

.bg-layer--1 {
  background: linear-gradient(-45deg,
    var(--clr-flame),
    var(--clr-magenta),
    var(--clr-teal),
    var(--clr-olive)
  );
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
}

.bg-layer--2 {
  background: radial-gradient(
    ellipse 80% 60% at 50% 50%,
    transparent 0%,
    rgba(10, 10, 15, 0.65) 100%
  );
}

.bg-layer--3 {
  background: radial-gradient(
    circle at 50% 35%,
    rgba(212, 160, 74, 0.12) 0%,
    transparent 60%
  );
  animation: pulse 8s ease-in-out infinite alternate;
}

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

@keyframes pulse {
  0%   { opacity: 0.4; transform: scale(1); }
  100% { opacity: 1;   transform: scale(1.15); }
}

/* ---------- Particles ---------- */
.particles {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  animation: float linear infinite;
  will-change: transform, opacity;
}

@keyframes float {
  0% {
    transform: translateY(100vh) scale(0);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(-10vh) scale(1);
    opacity: 0;
  }
}

/* ---------- Audio Visualizer ---------- */
.visualizer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  height: 80px;
  padding: 0 10%;
  pointer-events: none;
}

.visualizer span {
  flex: 1;
  max-width: 6px;
  border-radius: 3px 3px 0 0;
  background: linear-gradient(to top, var(--clr-flame), var(--clr-magenta));
  opacity: 0.25;
  animation: bar 1.2s ease-in-out infinite alternate;
}

.visualizer span:nth-child(1)  { animation-duration: 1.0s; height: 20%; }
.visualizer span:nth-child(2)  { animation-duration: 0.8s; height: 40%; }
.visualizer span:nth-child(3)  { animation-duration: 1.3s; height: 60%; }
.visualizer span:nth-child(4)  { animation-duration: 0.9s; height: 35%; }
.visualizer span:nth-child(5)  { animation-duration: 1.1s; height: 75%; }
.visualizer span:nth-child(6)  { animation-duration: 0.7s; height: 50%; }
.visualizer span:nth-child(7)  { animation-duration: 1.4s; height: 30%; }
.visualizer span:nth-child(8)  { animation-duration: 1.0s; height: 65%; }
.visualizer span:nth-child(9)  { animation-duration: 0.6s; height: 45%; }
.visualizer span:nth-child(10) { animation-duration: 1.2s; height: 55%; }
.visualizer span:nth-child(11) { animation-duration: 0.9s; height: 80%; }
.visualizer span:nth-child(12) { animation-duration: 1.1s; height: 25%; }
.visualizer span:nth-child(13) { animation-duration: 0.8s; height: 70%; }
.visualizer span:nth-child(14) { animation-duration: 1.3s; height: 40%; }
.visualizer span:nth-child(15) { animation-duration: 1.0s; height: 60%; }
.visualizer span:nth-child(16) { animation-duration: 0.7s; height: 50%; }
.visualizer span:nth-child(17) { animation-duration: 1.5s; height: 35%; }
.visualizer span:nth-child(18) { animation-duration: 0.9s; height: 55%; }
.visualizer span:nth-child(19) { animation-duration: 1.1s; height: 45%; }
.visualizer span:nth-child(20) { animation-duration: 0.8s; height: 65%; }

@keyframes bar {
  0%   { transform: scaleY(0.3); }
  100% { transform: scaleY(1); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--space-lg);
  text-align: center;
  gap: var(--space-md);
}

.hero__glow {
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(238, 119, 82, 0.25) 0%,
    rgba(231, 60, 126, 0.15) 40%,
    transparent 70%
  );
  filter: blur(60px);
  animation: glowPulse 6s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes glowPulse {
  0%   { transform: scale(0.9); opacity: 0.6; }
  100% { transform: scale(1.2); opacity: 1; }
}

/* ---------- Logo ---------- */
.hero__logo-wrap {
  position: relative;
}

.hero__logo {
  width: min(80vw, 520px);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(238, 119, 82, 0.4));
  animation: logoEnter 1.2s var(--ease-out) both;
  transition: filter var(--transition-med), transform var(--transition-med);
}

.hero__logo:hover {
  filter: drop-shadow(0 0 60px rgba(238, 119, 82, 0.65));
  transform: scale(1.03);
}

@keyframes logoEnter {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.92);
    filter: drop-shadow(0 0 0 transparent);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 40px rgba(238, 119, 82, 0.4));
  }
}

/* ---------- Tagline ---------- */
.hero__tagline {
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-muted);
  animation: fadeUp 1s var(--ease-out) 0.4s both;
}

@keyframes fadeUp {
  0% {
    opacity: 0;
    transform: translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ---------- Social Links ---------- */
.socials {
  display: flex;
  gap: var(--space-md);
  animation: fadeUp 1s var(--ease-out) 0.7s both;
}

.socials__link {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  padding: 0.75rem 1.5rem;
  border-radius: 100px;
  background: var(--surface);
  backdrop-filter: blur(var(--surface-blur));
  -webkit-backdrop-filter: blur(var(--surface-blur));
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  transition:
    background var(--transition-fast),
    border-color var(--transition-fast),
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.socials__link:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(238, 119, 82, 0.2);
}

.socials__link:active {
  transform: translateY(-1px);
}

.socials__icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 480px) {
  .socials {
    flex-direction: column;
    gap: var(--space-sm);
    width: 100%;
    max-width: 280px;
  }

  .socials__link {
    justify-content: center;
    width: 100%;
  }

  .hero__logo {
    width: min(90vw, 360px);
  }

  .visualizer {
    height: 50px;
    gap: 2px;
  }

  .hero__glow {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 360px) {
  .hero__logo {
    width: 95vw;
  }

  .hero__tagline {
    letter-spacing: 0.15em;
  }
}

@media (min-width: 768px) {
  .visualizer {
    height: 100px;
    gap: 4px;
  }

  .visualizer span {
    max-width: 8px;
  }
}

@media (min-width: 1200px) {
  .hero__logo {
    width: min(40vw, 600px);
  }

  .visualizer {
    height: 120px;
  }
}

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

/* ---------- Focus styles ---------- */
:focus-visible {
  outline: 2px solid var(--clr-gold);
  outline-offset: 4px;
  border-radius: 4px;
}
