@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  --bg-space: #060b19;
  --bg-deep: #0a1329;
  --bg-surface: #0f1e3d;
  --bg-surface-elevated: #15274d;
  --color-brand-blue: #2563eb;
  --color-brand-blue-hover: #1d4ed8;
  --color-cyan: #0ea5e9;
  --color-cyan-glow: #38bdf8;
  --color-indigo: #6366f1;
  --color-accent-silver: #e2e8f0;
  --color-text-main: #f8fafc;
  --color-text-muted: #94a3b8;
  --font-main: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;
}

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

h1, h2, h3, h4, .font-display {
  font-family: var(--font-display);
}

/* Scientific Grid & Mathematical Formula Backdrop */
.scientific-bg-grid {
  position: relative;
  background-color: var(--bg-space);
  background-image: 
    radial-gradient(circle at 15% 25%, rgba(37, 99, 235, 0.16) 0%, transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(14, 165, 233, 0.14) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 60%),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  background-position: 0 0, 0 0, 0 0, -1px -1px, -1px -1px;
}

/* Subtle scientific wave overlay inspired by packaging */
.package-wave-bg {
  background-image: radial-gradient(ellipse 80% 50% at 50% -20%, rgba(14, 165, 233, 0.2), transparent 70%);
}

/* Formula Watermark Decoration */
.formula-watermark {
  position: absolute;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: rgba(56, 189, 248, 0.09);
  user-select: none;
  pointer-events: none;
  white-space: nowrap;
}

/* Scientific Formula Badges */
.science-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* High-tech Scientific Card */
.science-card {
  background: linear-gradient(145deg, rgba(15, 30, 61, 0.85) 0%, rgba(10, 19, 41, 0.95) 100%);
  border: 1px solid rgba(56, 189, 248, 0.18);
  border-radius: 1.25rem;
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.science-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 15px 35px -10px rgba(14, 165, 233, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Glowing Button in Formula / Scientific Format */
.btn-science-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #1d4ed8 0%, #0284c7 100%);
  color: #ffffff;
  font-weight: 800;
  border-radius: 0.85rem;
  padding: 1rem 1.75rem;
  border: 1px solid rgba(56, 189, 248, 0.4);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}
.btn-science-primary:hover {
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  box-shadow: 0 6px 25px rgba(14, 165, 233, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  transform: translateY(-2px);
}
.btn-science-primary:active {
  transform: translateY(0);
}

.btn-science-accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #e11d48 0%, #be123c 100%);
  color: #ffffff;
  font-weight: 800;
  border-radius: 0.85rem;
  padding: 1rem 1.75rem;
  border: 1px solid rgba(251, 113, 133, 0.4);
  box-shadow: 0 4px 20px rgba(225, 29, 72, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: all 0.25s ease;
}
.btn-science-accent:hover {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  box-shadow: 0 6px 25px rgba(244, 63, 94, 0.55);
  transform: translateY(-2px);
}

.btn-science-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: rgba(15, 30, 61, 0.6);
  color: #e2e8f0;
  font-weight: 700;
  border-radius: 0.85rem;
  padding: 0.95rem 1.75rem;
  border: 1px solid rgba(148, 163, 184, 0.3);
  backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}
.btn-science-outline:hover {
  background: rgba(30, 58, 138, 0.4);
  border-color: #38bdf8;
  color: #ffffff;
  transform: translateY(-2px);
}

/* Atom Symbol Pulsing Animation */
@keyframes atom-pulse {
  0%, 100% {
    filter: drop-shadow(0 0 12px rgba(56, 189, 248, 0.4));
  }
  50% {
    filter: drop-shadow(0 0 24px rgba(56, 189, 248, 0.85));
  }
}
.animate-atom-glow {
  animation: atom-pulse 3s infinite ease-in-out;
}

/* Offer Center Highlight Glow Box */
.offer-center-highlight {
  position: relative;
  background: radial-gradient(circle at 50% 40%, rgba(14, 165, 233, 0.18) 0%, rgba(15, 23, 42, 0.95) 75%);
  border: 2px solid rgba(56, 189, 248, 0.35);
  border-radius: 1.75rem;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.7), 0 0 35px rgba(14, 165, 233, 0.18);
}

/* Form Validation & State Highlights conforming to track.js */
.input-error-msg {
  font-size: 0.8rem;
  margin-top: 0.35rem;
  display: none;
  font-weight: 600;
}
.input-error-msg.show {
  display: block;
  color: #fb7185;
}
.input-error-msg.show.success {
  color: #38bdf8;
}
input.is-invalid {
  border-color: #f43f5e !important;
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.25) !important;
}
input.is-valid {
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.25) !important;
}

/* Floating Action Button */
.floating-order-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 50;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.floating-order-btn:hover {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 15px 35px rgba(14, 165, 233, 0.65);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #060b19;
}
::-webkit-scrollbar-thumb {
  background: #1e3a8a;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #0284c7;
}
