:root {
  --bg-color: #0d0d0f;
  --surface-color: rgba(30, 30, 34, 0.7);
  --surface-border: rgba(255, 255, 255, 0.1);
  --text-main: #f5f5f7;
  --text-muted: #a1a1aa;
  
  --accent-cold: #00f0ff;
  --accent-fire: #ff4d00;
  
  --font-primary: 'Outfit', system-ui, -apple-system, sans-serif;
  --font-secondary: 'Inter', system-ui, -apple-system, sans-serif;
  
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-main);
  font-family: var(--font-secondary);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-primary);
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* --- Lightning Intro --- */
#lightning-intro {
  position: fixed;
  top: 0; 
  left: 0; 
  width: 100vw; 
  height: 100vh;
  background: #000;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: flash-out 2.5s forwards;
  pointer-events: none;
}

.lightning-bolt {
  width: 150px;
  height: 300px;
  filter: drop-shadow(0 0 25px #00f0ff);
  animation: strike 2s ease-out forwards;
}

.lightning-bolt path {
  stroke-dasharray: 600;
  stroke-dashoffset: 600;
  animation: draw-lightning 0.6s ease-in forwards;
}

@keyframes draw-lightning {
  to { stroke-dashoffset: 0; fill: #fff; stroke-width: 0; }
}

@keyframes strike {
  0% { transform: scale(1); opacity: 0; }
  10% { opacity: 1; filter: drop-shadow(0 0 50px #00f0ff); }
  15% { opacity: 0; }
  25% { opacity: 1; }
  70% { transform: scale(1.1); opacity: 1; filter: drop-shadow(0 0 100px #00f0ff); }
  100% { transform: scale(3); opacity: 0; filter: drop-shadow(0 0 0px #00f0ff); }
}

@keyframes flash-out {
  0% { background: #000; opacity: 1; }
  45% { background: #000; opacity: 1; }
  50% { background: #e0ffff; opacity: 1; }
  60% { background: #000; opacity: 1; }
  85% { opacity: 1; }
  100% { opacity: 0; visibility: hidden; }
}

/* Glassmorphism utility */
.glass {
  background: var(--surface-color);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--surface-border);
  border-radius: 16px;
}

/* --- Navbar --- */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1.5rem 0;
  transition: var(--transition);
}

header.scrolled {
  padding: 1rem 0;
  background: rgba(13, 13, 15, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--surface-border);
}

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

.logo {
  font-family: var(--font-primary);
  font-size: 1.75rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--text-main), var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 0.05em;
}

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

.nav-links a {
  font-weight: 500;
  font-size: 1rem;
}

.nav-links a:hover {
  color: var(--accent-cold);
}

/* --- Hero Section --- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 5rem;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('./assets/hero-bg.png');
  background-size: cover;
  background-position: center;
  z-index: -2;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(13, 13, 15, 0.4) 0%, rgba(13, 13, 15, 1) 100%);
  z-index: -1;
}

.hero-content {
  max-width: 800px;
}

.hero h1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.hero h1 span {
  display: block;
}

.text-gradient-cold {
  background: linear-gradient(90deg, #fff, var(--accent-cold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-fire {
  background: linear-gradient(90deg, #fff, var(--accent-fire));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 8px;
  font-weight: 600;
  font-family: var(--font-primary);
  font-size: 1.1rem;
  cursor: pointer;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-cold), #00a2ff);
  color: #000;
  border: none;
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
}

/* --- Features Section --- */
.features {
  padding: 8rem 0;
  position: relative;
}

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

.section-header h2 {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.feature-card {
  padding: 3rem 2rem;
  text-align: center;
  transition: transform 0.4s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent);
  opacity: 0;
  transition: opacity 0.4s ease;
}

.feature-card:hover {
  transform: translateY(-10px);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
}

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

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

/* Glow effects for specific cards */
.card-cold:hover {
  box-shadow: 0 10px 40px rgba(0, 240, 255, 0.1);
  border-color: rgba(0, 240, 255, 0.3);
}

.card-fire:hover {
  box-shadow: 0 10px 40px rgba(255, 77, 0, 0.1);
  border-color: rgba(255, 77, 0, 0.3);
}

/* --- Products Section --- */
.products {
  padding: 8rem 0;
  background: rgba(20, 20, 24, 0.5);
  position: relative;
}

.products-wrapper {
  display: flex;
  flex-direction: column;
  gap: 4rem;
}

.product-showcase {
  display: flex;
  align-items: center;
  gap: 4rem;
}

.product-image {
  flex: 1;
  position: relative;
}

.product-image img {
  width: 100%;
  height: auto;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.product-image::after {
  content: '';
  position: absolute;
  top: -20px;
  left: -20px;
  right: -20px;
  bottom: -20px;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.1) 0%, transparent 70%);
  z-index: -1;
}

.product-list {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
}

.product-item {
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
}

.product-item h4 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--accent-cold);
}

.product-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-item:hover {
  background: rgba(255,255,255,0.05);
}

/* --- CTA Section --- */
.cta {
  padding: 8rem 0;
  text-align: center;
  position: relative;
}

.cta-content {
  max-width: 800px;
  margin: 0 auto;
}

.cta h2 {
  font-size: 3.5rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(90deg, #fff, var(--text-muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.cta p {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 3rem;
}

/* --- Footer --- */
footer {
  padding: 4rem 0 2rem;
  border-top: 1px solid var(--surface-border);
  background: #000;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
}

.footer-info p {
  color: var(--text-muted);
  margin-top: 0.5rem;
}

.retailers h4 {
  margin-bottom: 0.5rem;
  color: var(--text-muted);
}

.footer-bottom {
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.85rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* --- Scroll Animations (Modern Web Guidance) --- */
@keyframes slide-up-fade {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .reveal {
      animation: slide-up-fade auto cubic-bezier(0.25, 0.8, 0.25, 1) both;
      animation-timeline: view(block);
      animation-range: entry 5% cover 20%;
    }
    
    /* Disable the JS fallback class styling since native is supported */
    .reveal.active {
      opacity: auto;
      transform: none;
    }
  }
}

/* Fallback for browsers without animation-timeline */
@supports not ((animation-timeline: view()) and (animation-range: entry)) {
  .reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s ease;
  }
  
  .reveal.active {
    opacity: 1;
    transform: translateY(0);
  }
}

/* --- Mouse Water Ripple --- */
.mouse-ripple {
  position: absolute;
  width: 30px;
  height: 30px;
  background: transparent;
  border: 2px solid rgba(0, 240, 255, 0.4);
  border-radius: 50%;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  animation: mouse-splash 0.8s ease-out forwards;
  z-index: 9998;
}

@keyframes mouse-splash {
  to {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
    border-width: 0px;
  }
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .nav-links {
    display: none; /* Mobile menu needed in prod */
  }
  
  .product-showcase {
    flex-direction: column;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .cta h2 {
    font-size: 2.5rem;
  }
}
