@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  --bg-primary: #070a13;
  --bg-secondary: #0f1423;
  --bg-tertiary: #171d32;
  --accent: #00d2ff;
  --accent-glow: rgba(0, 210, 255, 0.4);
  --accent-glow-subtle: rgba(0, 210, 255, 0.08);
  --text-main: #f0f2f5;
  --text-muted: #8e9bb0;
  --border-color: rgba(0, 210, 255, 0.12);
  --border-focus: rgba(0, 210, 255, 0.5);
  --transition-speed: 0.3s;
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

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

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

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--bg-secondary);
  border: 2px solid var(--bg-primary);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-glow);
}

/* Glassmorphism utility */
.glass {
  background: rgba(15, 20, 35, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
}

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

/* Glowing text utility */
.text-glow {
  text-shadow: 0 0 20px var(--accent-glow);
}

/* Button styles */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  border: none;
  font-family: var(--font-family);
}

.btn-primary {
  background-color: var(--accent);
  color: #05050a;
  box-shadow: 0 4px 20px var(--accent-glow);
}

.btn-primary:hover {
  background-color: #33dcff;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px var(--accent-glow);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background-color: rgba(0, 210, 255, 0.05);
  border-color: var(--text-muted);
}

/* Floating Navigation Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  display: flex;
  align-items: center;
  transition: all var(--transition-speed) ease;
  border-bottom: 1px solid transparent;
}

header.scrolled {
  height: 70px;
  background: rgba(7, 10, 19, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
}

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

.logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent);
}

nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-speed) ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.cart-icon-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  transition: all var(--transition-speed) ease;
}

.cart-icon-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
  border-color: var(--text-muted);
}

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--accent);
  color: #05050a;
  font-size: 11px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 6px var(--accent);
}

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

/* Background glowing blob */
.hero::before {
  content: '';
  position: absolute;
  top: 15%;
  right: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-glow) 0%, rgba(7, 10, 19, 0) 70%);
  z-index: 0;
  pointer-events: none;
  filter: blur(40px);
}

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

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 24px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  background-color: var(--accent);
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

.hero-title {
  font-size: 56px;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.hero-title span {
  color: var(--accent);
  background: linear-gradient(135deg, #00d2ff 0%, #00a8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
}

.pricing-info {
  display: flex;
  flex-direction: column;
}

.price-now {
  font-size: 32px;
  font-weight: 800;
  color: var(--text-main);
}

.price-was {
  font-size: 16px;
  color: var(--text-muted);
  text-decoration: line-through;
}

.hero-benefits-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
  width: 100%;
}

.hero-benefit-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-benefit-item svg {
  color: var(--accent);
  flex-shrink: 0;
}

/* Image Container */
.hero-image-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image-container {
  position: relative;
  width: 100%;
  max-width: 450px;
  border-radius: 24px;
  padding: 16px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 30px var(--accent-glow-subtle);
  border: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
  transition: border-color var(--transition-speed) ease;
}

.hero-image-container:hover {
  border-color: rgba(0, 210, 255, 0.2);
}

.hero-image {
  width: 100%;
  height: auto;
  border-radius: 16px;
  display: block;
  z-index: 2;
  position: relative;
}

/* Decorative background glowing ring */
.glowing-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  height: 80%;
  border-radius: 50%;
  box-shadow: 0 0 100px 10px var(--accent-glow);
  z-index: 1;
  pointer-events: none;
  animation: glow-pulse 3s infinite alternate;
}

/* Section styling */
.section {
  padding: 100px 0;
  border-top: 1px solid var(--border-color);
}

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

.section-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--accent);
  margin-bottom: 12px;
  display: block;
}

.section-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
}

/* Science Section Wavelengths */
.science-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.science-tabs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.science-tab {
  padding: 24px;
  border-radius: 12px;
  cursor: pointer;
  transition: all var(--transition-speed) ease;
  text-align: left;
}

.science-tab.active {
  background-color: var(--bg-secondary);
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2), inset 4px 0 0 0 var(--accent);
}

.tab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tab-title {
  font-size: 20px;
  font-weight: 700;
}

.tab-tag {
  font-size: 12px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
  background-color: rgba(0, 210, 255, 0.15);
  color: var(--accent);
}

.tab-desc {
  font-size: 15px;
  color: var(--text-muted);
}

.science-visual {
  height: 400px;
  border-radius: 20px;
  background-color: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.visual-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 16px;
  z-index: 2;
}

.visual-body {
  font-size: 16px;
  color: var(--text-muted);
  z-index: 2;
  margin-bottom: 24px;
}

.wavelength-beam {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 120px;
  background: linear-gradient(0deg, var(--accent-glow) 0%, rgba(7, 10, 19, 0) 100%);
  z-index: 1;
  transition: all 0.5s ease;
}

.wavelength-beam.active {
  background: linear-gradient(0deg, rgba(0, 210, 255, 0.25) 0%, rgba(7, 10, 19, 0) 100%);
}

/* Benefits Grid */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.benefit-card {
  padding: 40px 32px;
  border-radius: 20px;
  transition: all var(--transition-speed) ease;
}

.benefit-card:hover {
  transform: translateY(-8px);
  background-color: var(--bg-secondary);
  border-color: rgba(0, 210, 255, 0.2);
}

.benefit-icon {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background-color: rgba(0, 210, 255, 0.08);
  border: 1px solid rgba(0, 210, 255, 0.15);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.benefit-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
}

.benefit-card-desc {
  font-size: 15px;
  color: var(--text-muted);
}

/* Sticky Checkout Form */
.checkout-section {
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 60px;
  align-items: start;
}

.checkout-card {
  border-radius: 24px;
  padding: 40px;
}

.checkout-form-group {
  margin-bottom: 24px;
}

.checkout-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-main);
}

.form-input {
  width: 100%;
  padding: 14px 18px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 15px;
  transition: all var(--transition-speed) ease;
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow-subtle);
}

/* Stripe custom input wrapper */
.stripe-element-container {
  padding: 14px 18px;
  background-color: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  transition: all var(--transition-speed) ease;
  min-height: 48px;
}

.stripe-element-container.focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow-subtle);
}

/* Order Summary Summary Panel */
.summary-panel {
  border-radius: 24px;
  padding: 32px;
  position: sticky;
  top: 110px;
}

.summary-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

.summary-product {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.summary-img {
  width: 70px;
  height: 70px;
  border-radius: 8px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  object-fit: cover;
}

.summary-prod-details {
  flex-grow: 1;
}

.summary-prod-name {
  font-weight: 700;
  font-size: 16px;
}

.summary-prod-qty {
  font-size: 13px;
  color: var(--text-muted);
}

.summary-prod-price {
  font-weight: 700;
  font-size: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--text-muted);
}

.summary-row.total {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-main);
  border-top: 1px solid var(--border-color);
  padding-top: 18px;
  margin-top: 18px;
  margin-bottom: 0;
}

.secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 20px;
}

.secure-badge svg {
  color: var(--accent);
}

/* FAQ Section */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  border-radius: 12px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all var(--transition-speed) ease;
}

.faq-question {
  width: 100%;
  padding: 24px;
  background-color: var(--bg-secondary);
  border: none;
  color: var(--text-main);
  font-family: var(--font-family);
  font-size: 18px;
  font-weight: 700;
  text-align: left;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.faq-icon {
  transition: transform var(--transition-speed) ease;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-item.active {
  border-color: rgba(0, 210, 255, 0.2);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-speed) ease;
  background-color: rgba(15, 20, 35, 0.4);
}

.faq-answer-content {
  padding: 0 24px 24px;
  font-size: 15px;
  color: var(--text-muted);
}

/* Slide-out Cart Drawer */
.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 400px;
  height: 100%;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
  border-left: 1px solid var(--border-color);
}

.cart-drawer.open {
  right: 0;
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cart-title {
  font-size: 20px;
  font-weight: 800;
}

.cart-close-btn {
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--text-main);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  transition: all var(--transition-speed) ease;
}

.cart-close-btn:hover {
  background-color: rgba(255, 255, 255, 0.05);
}

.cart-items-container {
  flex-grow: 1;
  padding: 24px;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background-color: var(--bg-primary);
  border: 1px solid var(--border-color);
  object-fit: cover;
}

.cart-item-details {
  flex-grow: 1;
}

.cart-item-name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}

.cart-item-price {
  font-weight: 600;
  color: var(--accent);
  font-size: 14px;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-secondary);
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
}

.cart-checkout-btn {
  width: 100%;
}

.cart-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1500;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-speed) ease;
}

.cart-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* Footer Section */
footer {
  padding: 60px 0;
  background-color: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  text-align: center;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
}

.footer-link:hover {
  color: var(--text-main);
}

/* Animations */
@keyframes pulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 210, 255, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(0, 210, 255, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(0, 210, 255, 0);
  }
}

@keyframes glow-pulse {
  0% {
    box-shadow: 0 0 60px 5px var(--accent-glow-subtle);
  }
  100% {
    box-shadow: 0 0 90px 15px var(--accent-glow);
  }
}

/* Responsive adjustments */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }
  .hero-content {
    align-items: center;
  }
  .hero-cta-group {
    flex-direction: column;
    gap: 16px;
  }
  .hero-benefits-list {
    justify-items: center;
  }
  .science-grid {
    grid-template-columns: 1fr;
  }
  .benefits-grid {
    grid-template-columns: 1fr;
  }
  .checkout-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .summary-panel {
    position: static;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 40px;
  }
  .hero-benefits-list {
    grid-template-columns: 1fr;
  }
  nav {
    display: none;
  }
}
