/* ==========================================================================
   Metro Batteries Express – Coming Soon
   Modern Automotive Dark Theme
   ========================================================================== */

/* --- Custom Properties / Theme Variables --- */
:root {
  /* Color Palette */
  --bg-primary: #101820;
  --bg-secondary: #16202c;
  --bg-card: rgba(22, 32, 44, 0.72);
  --bg-card-border: rgba(184, 224, 0, 0.2);
  --bg-card-border-hover: rgba(184, 224, 0, 0.45);

  --accent-color: #B8E000;
  --accent-hover: #cbf500;
  --accent-glow: rgba(184, 224, 0, 0.35);
  --accent-glow-subtle: rgba(184, 224, 0, 0.12);

  --text-main: #FFFFFF;
  --text-secondary: #B8C0C8;
  --text-muted: #8191a2;

  --border-subtle: rgba(255, 255, 255, 0.08);

  /* Typography */
  --font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  /* Transitions */
  --transition-fast: 0.18s ease;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  background-color: var(--bg-primary);
  color: var(--text-main);
  height: 100%;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-primary);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- Background Atmospheric Visuals --- */
.particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 0.65;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

.bg-glow-hero {
  top: -15%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  max-width: 700px;
  max-height: 700px;
  background: radial-gradient(circle, rgba(184, 224, 0, 0.14) 0%, rgba(16, 24, 32, 0) 70%);
}

.bg-glow-battery {
  bottom: 0%;
  right: -5%;
  width: 55vw;
  height: 55vw;
  max-width: 650px;
  max-height: 650px;
  background: radial-gradient(circle, rgba(184, 224, 0, 0.16) 0%, rgba(16, 24, 32, 0) 70%);
}

.bg-grid-pattern {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.8;
}

/* --- Layout Structure --- */
.site-wrapper {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* --- Header --- */
.site-header {
  padding: 1.75rem 2rem;
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--text-main);
  transition: opacity var(--transition-fast);
}

.brand-logo:hover {
  opacity: 0.95;
}

.logo-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: rgba(22, 32, 44, 0.9);
  border: 1px solid rgba(184, 224, 0, 0.3);
  border-radius: 10px;
  box-shadow: 0 0 15px rgba(184, 224, 0, 0.15);
  color: #ffffff;
}

.logo-svg {
  width: 26px;
  height: 26px;
}

.brand-name-group {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--text-main);
  line-height: 1.2;
}

.brand-express {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.28em;
  color: var(--accent-color);
  line-height: 1.2;
}

/* Status Badge */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 1.1rem;
  background: rgba(184, 224, 0, 0.07);
  border: 1px solid rgba(184, 224, 0, 0.35);
  border-radius: 50px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 0 16px rgba(184, 224, 0, 0.12);
}

.pulse-indicator {
  position: relative;
  display: inline-flex;
  width: 10px;
  height: 10px;
}

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

.pulse-ring {
  position: absolute;
  top: -3px;
  left: -3px;
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent-color);
  border-radius: 50%;
  opacity: 0.8;
  animation: badgePulse 2s infinite ease-out;
}

.badge-text {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent-color);
  text-transform: uppercase;
}

/* --- Hero Section --- */
.hero-section {
  flex: 1;
  display: flex;
  align-items: center;
  padding: 2.5rem 2rem;
  max-width: 1360px;
  margin: 0 auto;
  width: 100%;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 3.5rem;
  width: 100%;
}

/* Left: Content */
.hero-content {
  display: flex;
  flex-direction: column;
  animation: heroFadeIn 0.8s ease-out forwards;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.eyebrow-line {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--accent-color);
  box-shadow: 0 0 8px var(--accent-color);
}

.eyebrow-tag {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  color: var(--accent-color);
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(3.2rem, 6.8vw, 5.6rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 1rem;
  text-transform: uppercase;
  text-shadow: 0 4px 30px rgba(0, 0, 0, 0.45);
}

.hero-subtitle {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 600;
  color: #e2eaf2;
  margin-bottom: 1.25rem;
  line-height: 1.35;
}

.hero-description {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 2.25rem;
}

/* --- Call To Action Card --- */
.cta-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-card-border);
  border-radius: 16px;
  padding: 1.6rem 1.8rem;
  max-width: 520px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4), 0 0 24px rgba(184, 224, 0, 0.06);
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.cta-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, var(--accent-color), transparent);
}

.cta-card:hover {
  border-color: var(--bg-card-border-hover);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(184, 224, 0, 0.12);
}

.cta-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.cta-header {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
}

.cta-icon {
  font-size: 1.6rem;
  line-height: 1;
  color: var(--accent-color);
  filter: drop-shadow(0 0 8px rgba(184, 224, 0, 0.5));
}

.cta-titles {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.cta-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-main);
  letter-spacing: 0.02em;
}

.cta-desc {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.cta-action {
  display: flex;
  align-items: center;
  padding-top: 0.25rem;
}

/* Stylish CTA Button */
.btn-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: var(--accent-color);
  color: #101820;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0.95rem 1.85rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-transform: uppercase;
  overflow: hidden;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(184, 224, 0, 0.35);
  transition: transform var(--transition-normal), box-shadow var(--transition-normal), background-color var(--transition-fast);
}

.btn-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(184, 224, 0, 0.55), 0 0 15px rgba(184, 224, 0, 0.4);
}

.btn-cta:active {
  transform: translateY(0);
  box-shadow: 0 4px 14px rgba(184, 224, 0, 0.4);
}

.btn-cta:focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
}

.btn-glow {
  position: absolute;
  top: 0;
  left: -100%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: buttonShine 4s infinite ease-in-out;
  pointer-events: none;
}

.btn-bolt {
  display: flex;
  align-items: center;
  transition: transform var(--transition-normal);
}

.btn-cta:hover .btn-bolt {
  transform: translateX(3px) scale(1.1);
}

/* Toast Message */
.cta-toast {
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--transition-normal);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-color);
  background: rgba(184, 224, 0, 0.1);
  border: 1px solid rgba(184, 224, 0, 0.3);
  border-radius: 8px;
  padding: 0.6rem 0.9rem;
  margin-top: 0.25rem;
}

.cta-toast.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* --- Right: Hero Visual (Battery Illustration) --- */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  width: 100%;
}

.battery-stage {
  position: relative;
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Energy Aura Effects */
.aura-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(50px);
}

.aura-glow-1 {
  width: 380px;
  height: 280px;
  top: 20%;
  left: 15%;
  background: radial-gradient(circle, rgba(184, 224, 0, 0.25) 0%, transparent 70%);
  animation: auraPulse 4s ease-in-out infinite alternate;
}

.aura-glow-2 {
  width: 460px;
  height: 320px;
  top: 15%;
  left: 8%;
  background: radial-gradient(circle, rgba(60, 180, 255, 0.12) 0%, transparent 75%);
  animation: auraPulse 6s ease-in-out infinite alternate-reverse;
}

/* Battery Wrapper Floating Animation */
.battery-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  animation: batteryFloat 5s ease-in-out infinite;
  transform-origin: center bottom;
  filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.55));
}

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

/* Battery Reflection / Ground Shadow Effect */
.battery-reflection {
  width: 75%;
  height: 24px;
  background: radial-gradient(ellipse at center, rgba(184, 224, 0, 0.25) 0%, rgba(0,0,0,0.6) 50%, transparent 80%);
  margin-top: -10px;
  border-radius: 50%;
  filter: blur(8px);
  animation: shadowScale 5s ease-in-out infinite;
}

/* SVG Charging Bars Animation */
.battery-charge-bars .bar {
  opacity: 0.2;
  transition: opacity 0.3s ease;
}

.battery-charge-bars .bar-1 {
  animation: chargeStep1 3.5s infinite;
}
.battery-charge-bars .bar-2 {
  animation: chargeStep2 3.5s infinite;
}
.battery-charge-bars .bar-3 {
  animation: chargeStep3 3.5s infinite;
}
.battery-charge-bars .bar-4 {
  animation: chargeStep4 3.5s infinite;
}
.battery-charge-bars .bar-5 {
  animation: chargeStep5 3.5s infinite;
}

/* Terminal Sparks Pulsing */
.terminal-spark-pos {
  animation: sparkPulse 2s infinite ease-in-out;
}

.terminal-spark-neg {
  animation: sparkPulse 2.4s infinite ease-in-out;
}

.status-pulse-dot {
  animation: sparkPulse 1.6s infinite ease-in-out;
}

.energy-stream-line {
  animation: streamPulse 3s infinite ease-in-out alternate;
}

/* --- Footer --- */
.site-footer {
  width: 100%;
  padding: 2rem 2rem 2.25rem;
  border-top: 1px solid var(--border-subtle);
  position: relative;
  z-index: 2;
  background: rgba(16, 24, 32, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.footer-inner {
  max-width: 1360px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.copyright-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

#current-year {
  color: var(--text-secondary);
  font-weight: 600;
}

/* ==========================================================================
   Keyframe Animations
   ========================================================================== */

/* Hero Entrance */
@keyframes heroFadeIn {
  0% {
    opacity: 0;
    transform: translateY(24px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Floating Battery Motion */
@keyframes batteryFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) rotate(0.4deg);
  }
}

/* Shadow Resizing Synchronized with Floating Battery */
@keyframes shadowScale {
  0%, 100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(0.85);
    opacity: 0.45;
  }
}

/* Aura Glow Pulse */
@keyframes auraPulse {
  0% {
    opacity: 0.3;
    transform: scale(0.95);
  }
  100% {
    opacity: 0.65;
    transform: scale(1.08);
  }
}

/* Status Badge Pulse */
@keyframes badgePulse {
  0% {
    transform: scale(0.9);
    opacity: 0.9;
  }
  70% {
    transform: scale(2.4);
    opacity: 0;
  }
  100% {
    transform: scale(2.6);
    opacity: 0;
  }
}

/* Terminal Spark Pulse */
@keyframes sparkPulse {
  0%, 100% {
    opacity: 0.4;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.25);
  }
}

/* Button Shimmer */
@keyframes buttonShine {
  0% {
    left: -100%;
  }
  20%, 100% {
    left: 200%;
  }
}

/* Charging Indicator Sequential Step Animations (5-bar cycle) */
@keyframes chargeStep1 {
  0%, 10% { opacity: 0.2; }
  15%, 85% { opacity: 1; }
  92%, 100% { opacity: 0.2; }
}

@keyframes chargeStep2 {
  0%, 25% { opacity: 0.2; }
  30%, 85% { opacity: 1; }
  92%, 100% { opacity: 0.2; }
}

@keyframes chargeStep3 {
  0%, 40% { opacity: 0.2; }
  45%, 85% { opacity: 1; }
  92%, 100% { opacity: 0.2; }
}

@keyframes chargeStep4 {
  0%, 55% { opacity: 0.2; }
  60%, 85% { opacity: 1; }
  92%, 100% { opacity: 0.2; }
}

@keyframes chargeStep5 {
  0%, 70% { opacity: 0.2; }
  75%, 85% { opacity: 1; }
  92%, 100% { opacity: 0.2; }
}

@keyframes streamPulse {
  0% {
    stroke-dashoffset: 0;
    opacity: 0.2;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    stroke-dashoffset: 40;
    opacity: 0.2;
  }
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */

/* Laptops & Tablets Landscape (< 1080px) */
@media (max-width: 1080px) {
  .hero-container {
    gap: 2.5rem;
  }

  .hero-title {
    font-size: clamp(2.8rem, 5.8vw, 4.4rem);
  }
}

/* Tablets Portrait & Below (< 880px) */
@media (max-width: 880px) {
  .site-header {
    padding: 1.5rem 1.5rem 1rem;
  }

  .hero-section {
    padding: 1.5rem 1.5rem 3rem;
  }

  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }

  .hero-content {
    align-items: center;
  }

  .hero-title {
    font-size: clamp(2.6rem, 7vw, 4rem);
  }

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

  .hero-description {
    max-width: 600px;
  }

  .cta-card {
    text-align: left;
    margin: 0 auto;
    width: 100%;
  }

  .hero-visual {
    order: -1;
    max-width: 440px;
    margin: 0 auto;
  }

  .aura-glow-1, .aura-glow-2 {
    width: 280px;
    height: 220px;
  }
}

/* Mobile Devices (< 560px) */
@media (max-width: 560px) {
  .header-inner {
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
  }

  .brand-logo {
    gap: 0.7rem;
  }

  .logo-icon-wrap {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: 0.95rem;
  }

  .brand-express {
    font-size: 0.72rem;
  }

  .status-badge {
    padding: 0.45rem 0.95rem;
  }

  .badge-text {
    font-size: 0.7rem;
  }

  .hero-section {
    padding: 1rem 1.25rem 2.5rem;
  }

  .hero-title {
    font-size: clamp(2.2rem, 9.5vw, 3.2rem);
    letter-spacing: -0.015em;
  }

  .hero-subtitle {
    font-size: 1.15rem;
  }

  .hero-description {
    font-size: 0.95rem;
    margin-bottom: 1.75rem;
  }

  .cta-card {
    padding: 1.3rem 1.25rem;
  }

  .cta-title {
    font-size: 1.15rem;
  }

  .cta-desc {
    font-size: 0.9rem;
  }

  .btn-cta {
    width: 100%;
    padding: 0.85rem 1.15rem;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    white-space: normal;
    text-align: center;
  }

  .site-footer {
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .copyright-text {
    font-size: 0.82rem;
  }
}

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

  .battery-wrapper {
    animation: none !important;
    transform: none !important;
  }

  .battery-reflection {
    animation: none !important;
    opacity: 0.6;
  }

  .pulse-ring,
  .btn-glow,
  .aura-glow-1,
  .aura-glow-2 {
    display: none !important;
  }

  .battery-charge-bars .bar {
    opacity: 1 !important;
  }

  .particles-canvas {
    display: none !important;
  }
}

