/* ==========================================================================
   SUNDIVER - All-Black Tactical & Luxury Eyewear
   Design System & Styling
   ========================================================================== */

:root {
  --bg-dark: #07080a;
  --bg-card: rgba(18, 20, 26, 0.75);
  --bg-card-hover: rgba(26, 30, 40, 0.9);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-gold: rgba(255, 170, 0, 0.35);
  
  --gold-primary: #ffaa00;
  --gold-light: #ffd277;
  --gold-glow: rgba(255, 170, 0, 0.25);
  --amber-dark: #cc6600;
  
  --text-main: #f3f4f6;
  --text-muted: #9ca3af;
  --text-dim: #6b7280;

  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --transition-fast: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  line-height: 1.6;
  background: radial-gradient(circle at 50% 0%, #15161c 0%, #07080a 70%);
  background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.gradient-text {
  background: linear-gradient(135deg, #ffffff 30%, var(--gold-light) 70%, var(--gold-primary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gold-gradient-text {
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold-primary) 50%, var(--amber-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Container */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header & Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: var(--transition-fast);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.navbar.scrolled {
  padding: 14px 0;
  background: rgba(7, 8, 10, 0.9);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  border-bottom-color: var(--border-glass);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  color: var(--text-main);
}

.nav-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--transition-fast);
}

.nav-links a:hover {
  color: var(--gold-primary);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold-primary) 0%, var(--amber-dark) 100%);
  color: #000;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: 0 4px 20px var(--gold-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(255, 170, 0, 0.4);
  filter: brightness(1.1);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: var(--transition-fast);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--border-gold);
  color: var(--gold-primary);
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 170, 0, 0.1);
  border: 1px solid rgba(255, 170, 0, 0.25);
  color: var(--gold-primary);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.badge-pulse {
  width: 8px;
  height: 8px;
  background-color: var(--gold-primary);
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px var(--gold-primary);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 20px var(--gold-primary); }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Hero Section */
.hero {
  position: relative;
  padding: 160px 0 100px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero-bg-glow {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 750px;
  height: 750px;
  background: radial-gradient(circle, rgba(255, 170, 0, 0.12) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
  z-index: 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-content h1 {
  font-size: 3.8rem;
  margin-bottom: 24px;
  line-height: 1.1;
}

.hero-content p {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 540px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* Countdown */
.countdown-box {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 20px 28px;
  border-radius: var(--radius-md);
  backdrop-filter: blur(16px);
  display: inline-block;
}

.countdown-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.countdown-timer {
  display: flex;
  gap: 20px;
}

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

.timer-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--gold-light);
  font-variant-numeric: tabular-nums;
}

.timer-label {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* Hero Showcase Image */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.product-image-container {
  position: relative;
  width: 100%;
  max-width: 580px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 40px rgba(255, 170, 0, 0.15);
  border: 1px solid var(--border-glass);
  background: rgba(18, 20, 26, 0.5);
  transition: var(--transition-smooth);
}

.product-image-container:hover {
  transform: scale(1.02);
  border-color: var(--border-gold);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.9), 0 0 60px rgba(255, 170, 0, 0.25);
}

.hero-product-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transition: var(--transition-smooth);
}

.hero-product-badge {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(10, 11, 14, 0.85);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-gold);
  backdrop-filter: blur(14px);
  z-index: 5;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--gold-light);
}

.badge-logo-icon {
  height: 24px;
  width: auto;
  object-fit: contain;
}

/* Features Section (Bento Grid) */
.section {
  padding: 120px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.8rem;
  margin-bottom: 16px;
}

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

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 36px;
  position: relative;
  overflow: hidden;
  transition: var(--transition-fast);
  backdrop-filter: blur(12px);
}

.bento-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-gold);
  transform: translateY(-4px);
}

.bento-card.span-2 {
  grid-column: span 2;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: rgba(255, 170, 0, 0.1);
  border: 1px solid var(--border-gold);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  color: var(--gold-primary);
}

.card-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold-primary);
  fill: none;
  stroke-width: 2;
}

.bento-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.bento-card p {
  color: var(--text-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.card-media {
  margin-top: 24px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-glass);
}

.card-media img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

/* Spectrum Section Styling */
.spectrum-section {
  background: radial-gradient(circle at 50% 30%, rgba(255, 170, 0, 0.06) 0%, rgba(7, 8, 10, 0.98) 100%);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.spectrum-chart-wrapper.full-width {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 36px;
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
  margin-bottom: 40px;
  width: 100%;
}

.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
  flex-wrap: wrap;
}

.chart-title {
  display: block;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--gold-primary);
  letter-spacing: 0.1em;
}

.chart-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
}

.chart-badge {
  background: rgba(255, 170, 0, 0.12);
  border: 1px solid var(--border-gold);
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 6px 14px;
  border-radius: var(--radius-full);
}

.svg-graph-container {
  width: 100%;
  position: relative;
}

.spectrum-svg {
  width: 100%;
  height: auto;
  display: block;
}

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

.explanation-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: var(--transition-fast);
}

.explanation-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  background: var(--bg-card-hover);
}

.exp-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.exp-badge.red { background: rgba(255, 0, 85, 0.15); color: #ff4d79; border: 1px solid rgba(255, 0, 85, 0.3); }
.exp-badge.gold { background: rgba(255, 170, 0, 0.15); color: var(--gold-primary); border: 1px solid var(--border-gold); }
.exp-badge.amber { background: rgba(230, 126, 34, 0.15); color: #f39c12; border: 1px solid rgba(230, 126, 34, 0.3); }
.exp-badge.dim { background: rgba(255, 255, 255, 0.08); color: var(--text-muted); border: 1px solid var(--border-glass); }

.explanation-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.3;
}

.explanation-card p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Packaging Unboxing Showcase */
.packaging-section {
  background: radial-gradient(circle at 50% 50%, rgba(255, 170, 0, 0.05) 0%, rgba(7, 8, 10, 0.98) 100%);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.unboxing-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.unboxing-visual {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: 0 25px 50px rgba(0,0,0,0.8), 0 0 30px var(--gold-glow);
}

.unboxing-visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.unboxing-features {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.unboxing-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  padding: 20px 24px;
  border-radius: var(--radius-md);
  transition: var(--transition-fast);
}

.unboxing-item:hover {
  border-color: var(--border-gold);
  transform: translateX(6px);
  background: var(--bg-card-hover);
}

.u-number {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--gold-primary);
  background: rgba(255, 170, 0, 0.1);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 170, 0, 0.3);
}

.unboxing-item h4 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.unboxing-item p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Interactive Vision Simulator */
.vision-simulator {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin-top: 60px;
}

.simulator-container {
  position: relative;
  width: 100%;
  height: 440px;
  border-radius: var(--radius-md);
  overflow: hidden;
  user-select: none;
  border: 1px solid var(--border-glass);
}

.sim-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sim-standard {
  filter: brightness(1.35) contrast(0.75) blur(0.5px);
}

.sim-sundiver {
  clip-path: polygon(0 0, 50% 0, 50% 100%, 0 100%);
  filter: brightness(0.92) contrast(1.4) saturate(1.25);
}

.sim-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: var(--gold-primary);
  box-shadow: 0 0 15px var(--gold-primary);
  cursor: ew-resize;
  transform: translateX(-50%);
  z-index: 10;
}

.sim-divider-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  background: var(--gold-primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #000;
  font-weight: 800;
  box-shadow: 0 0 20px rgba(255, 170, 0, 0.6);
}

.sim-labels {
  position: absolute;
  bottom: 20px;
  left: 20px;
  right: 20px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  z-index: 5;
}

.sim-tag {
  background: rgba(0, 0, 0, 0.85);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-glass);
}

/* VIP Pre-order / Waitlist Form Section */
.vip-section {
  background: radial-gradient(circle at 50% 50%, rgba(255, 170, 0, 0.08) 0%, rgba(7, 8, 10, 0.95) 100%);
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  padding: 120px 0;
  text-align: center;
}

.vip-card {
  max-width: 680px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 50px 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 40px var(--gold-glow);
  backdrop-filter: blur(20px);
}

.vip-card h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.vip-card p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 32px;
}

.vip-perks {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}

.perk-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  color: var(--gold-light);
  background: rgba(255, 170, 0, 0.06);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 170, 0, 0.2);
}

.vip-form {
  display: flex;
  gap: 12px;
  max-width: 500px;
  margin: 0 auto;
}

.vip-form input[type="email"] {
  flex: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 14px 24px;
  color: var(--text-main);
  font-size: 1rem;
  outline: none;
  transition: var(--transition-fast);
}

.vip-form input[type="email"]:focus {
  border-color: var(--gold-primary);
  box-shadow: 0 0 15px var(--gold-glow);
}

/* Modal Popup */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  display: grid;
  place-items: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition-fast);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  padding: 40px;
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 90%;
  text-align: center;
  position: relative;
  transform: translateY(20px);
  transition: var(--transition-fast);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
}

/* Footer */
footer {
  padding: 60px 0 30px;
  border-top: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand p {
  margin-top: 12px;
  max-width: 320px;
  color: var(--text-dim);
}

.footer-links h4 {
  color: var(--text-main);
  margin-bottom: 16px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-links a:hover {
  color: var(--gold-primary);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* Responsive Media Queries */
@media (max-width: 992px) {
  .hero-grid, .unboxing-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .spectrum-explanation-grid {
    grid-template-columns: 1fr 1fr;
  }

  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

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

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

  .bento-card.span-2 {
    grid-column: span 1;
  }

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

@media (max-width: 600px) {
  .hero-content h1 {
    font-size: 2.5rem;
  }

  .spectrum-explanation-grid {
    grid-template-columns: 1fr;
  }

  .vip-form {
    flex-direction: column;
  }

  .nav-links {
    display: none;
  }
}
