:root {
  --bg-dark: #02110c;
  --bg-green-dark: #05261b;
  --bg-green-light: #0a402e;
  --accent-green: #2ecc71;
  --text-main: #e8f5e9;
  --text-muted: #a5d6a7;
  --glass-bg: rgba(10, 64, 46, 0.6);
  --glass-border: rgba(46, 204, 113, 0.4);
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, var(--bg-green-light), var(--bg-dark));
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(45deg, transparent 48%, rgba(46, 204, 113, 0.05) 50%, transparent 52%),
    linear-gradient(-45deg, transparent 48%, rgba(46, 204, 113, 0.05) 50%, transparent 52%);
  background-size: 60px 60px;
  z-index: -1;
  pointer-events: none;
}

body.landing {
  background: linear-gradient(135deg, var(--bg-dark), var(--bg-green-dark));
}

header {
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--glass-bg);
  border-bottom: 2px solid var(--accent-green);
  backdrop-filter: blur(10px);
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 calc(100% - 10px));
  margin-bottom: 20px;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 15px;
  text-decoration: none;
  color: var(--text-main);
}

.logo-container img {
  height: 40px;
}

.logo-container h1 {
  margin: 0;
  font-size: 1.5rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

main {
  flex: 1;
  padding: 40px;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.glass-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  padding: 40px;
  backdrop-filter: blur(10px);
  box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.3);
  border-radius: 0;
  position: relative;
  overflow: hidden;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}

.glass-panel::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--accent-green);
}

h1, h2, h3 {
  color: var(--accent-green);
  text-transform: uppercase;
  letter-spacing: 1px;
}

p {
  line-height: 1.8;
  color: var(--text-muted);
}

.btn {
  display: inline-block;
  padding: 15px 30px;
  background: transparent;
  color: var(--accent-green);
  border: 2px solid var(--accent-green);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
  transition: all 0.3s ease;
  border-radius: 0;
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}

.btn:hover {
  background: var(--accent-green);
  color: var(--bg-dark);
  transform: translate(-2px, -2px);
  box-shadow: 4px 4px 0px rgba(0, 0, 0, 0.5);
}

/* Landing Page Specifics */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70vh;
  gap: 40px;
}

.hero-content {
  flex: 1;
}

.hero-title {
  font-size: 4rem;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 0px var(--bg-dark);
}

.hero-subtitle {
  font-size: 1.5rem;
  margin-bottom: 40px;
}

.how-it-works-section {
  margin-top: 100px;
  margin-bottom: 100px;
}

.how-it-works-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  margin-top: 40px;
}

.station-container {
  flex: 1;
  display: flex;
  justify-content: center;
  perspective: 1000px;
}

.station-img {
  max-height: 80vh;
  object-fit: contain;
  transition: transform 0.1s ease-out;
  filter: drop-shadow(0 0 20px rgba(46, 204, 113, 0.2));
}

/* Footer */
footer {
  background: var(--bg-dark);
  border-top: 2px solid var(--accent-green);
  padding: 40px;
  margin-top: auto;
  clip-path: polygon(0 10px, 100% 0, 100% 100%, 0 100%);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 40px;
}

.footer-section h3 {
  color: var(--text-main);
  margin-bottom: 20px;
  font-size: 1.2rem;
}

.footer-section p, .footer-section a {
  color: var(--text-muted);
  text-decoration: none;
  line-height: 1.6;
  display: block;
  margin-bottom: 10px;
}

.footer-section a:hover {
  color: var(--accent-green);
}

.footer-bottom {
  text-align: center;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Battery Feature Section */
.battery-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 100px;
  margin-bottom: 100px;
  text-align: center;
}

.battery-content {
  margin-bottom: 40px;
  max-width: 800px;
}

.battery-image-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  opacity: 0;
  transform: translateY(50px);
  transition: opacity 1s ease-out, transform 1s ease-out;
}

.battery-image-header {
  margin: 0 0 20px 0;
  font-size: 1.1rem;
  color: var(--text-main);
  text-transform: none;
  letter-spacing: normal;
}

.battery-image-container.visible {
  opacity: 1;
  transform: translateY(0);
}

.battery-img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 20px rgba(46, 204, 113, 0.2));
}

/* Probe Highlights */
.probe-highlight {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  transition: opacity 0.5s ease-in 0.8s;
  pointer-events: none;
  --circle-size: 40px;
  --line-length: 40px;
  --connector-gap: 10px;
  --label-gap: 10px;
}

.battery-image-container.visible .probe-highlight {
  opacity: 1;
}

.probe-highlight .circle {
  width: var(--circle-size);
  height: var(--circle-size);
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -50%);
  border: 2px solid var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 15px rgba(46, 204, 113, 0.5), inset 0 0 10px rgba(46, 204, 113, 0.3);
  animation: pulse 2s infinite;
  background: rgba(46, 204, 113, 0.1);
}

.probe-highlight .line {
  position: absolute;
  background: var(--accent-green);
}

.probe-highlight .label {
  position: absolute;
  background: var(--glass-bg);
  border: 1px solid var(--accent-green);
  padding: 8px 15px;
  color: var(--text-main);
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 0.9rem;
  backdrop-filter: blur(5px);
  white-space: nowrap;
}

/* Positioning the probes based on the image */
.probe-lightning {
  top: 50.07%;
  left: -1.8%;
}
.probe-lightning .line {
  width: var(--line-length);
  height: 2px;
  top: -1px;
  right: calc((var(--circle-size) / 2) + var(--connector-gap));
}
.probe-lightning .label {
  top: 50%;
  right: calc((var(--circle-size) / 2) + var(--connector-gap) + var(--line-length) + var(--label-gap));
  transform: translateY(-50%);
}

.probe-usbc {
  top: 33.44%;
  left: 55.36%;
}
.probe-usbc .line {
  width: 2px;
  height: var(--line-length);
  left: -1px;
  bottom: calc((var(--circle-size) / 2) + var(--connector-gap));
}
.probe-usbc .label {
  left: 50%;
  bottom: calc((var(--circle-size) / 2) + var(--connector-gap) + var(--line-length) + var(--label-gap));
  transform: translateX(-50%);
}

.probe-microusb {
  top: 81.03%;
  left: 54.83%;
}
.probe-microusb .line {
  width: var(--line-length);
  height: 2px;
  top: -1px;
  left: calc((var(--circle-size) / 2) + var(--connector-gap));
}
.probe-microusb .label {
  top: 50%;
  left: calc((var(--circle-size) / 2) + var(--connector-gap) + var(--line-length) + var(--label-gap));
  transform: translateY(-50%);
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.7); }
  70% { transform: translate(-50%, -50%) scale(1.1); box-shadow: 0 0 0 15px rgba(46, 204, 113, 0); }
  100% { transform: translate(-50%, -50%) scale(1); box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .hero {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  
  .hero-title {
    font-size: 2.5rem;
    margin-bottom: 15px;
  }

  .hero-subtitle {
    font-size: 1.1rem;
    margin-bottom: 30px;
  }
  
  .station-img {
    max-height: 50vh;
  }
  
  .probe-highlight {
    --circle-size: 30px;
  }
  
  .probe-lightning, .probe-microusb {
    --line-length: 20px;
  }
  
  .probe-usbc {
    --line-length: 20px;
  }
  
  .probe-highlight .label {
    font-size: 0.7rem;
    padding: 5px 10px;
  }
}

.policies-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.policy-card {
  display: block;
  text-decoration: none;
  padding: 30px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  transition: all 0.3s ease;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
}

.policy-card:hover {
  background: rgba(46, 204, 113, 0.2);
  transform: translateY(-5px);
  border-color: var(--accent-green);
}

.policy-card h2 {
  margin: 0 0 10px 0;
}

.policy-card p {
  margin: 0;
  font-size: 0.9rem;
}

.policy-page {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.policy-updated {
  margin: -8px 0 0;
  font-size: 0.95rem;
  color: var(--text-main);
}

.policy-at-a-glance {
  background: rgba(46, 204, 113, 0.12);
  border: 1px solid var(--glass-border);
  padding: 24px;
}

.policy-at-a-glance h2 {
  margin-top: 0;
  margin-bottom: 16px;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.policy-block {
  background: rgba(2, 17, 12, 0.45);
  border: 1px solid var(--glass-border);
  padding: 18px;
  min-width: 0;
}

.policy-block h3 {
  margin-top: 0;
  margin-bottom: 10px;
  text-transform: none;
  letter-spacing: 0.5px;
}

.policy-block p {
  margin: 0;
}

.policy-page h2 {
  margin: 0;
}

.policy-page h3 {
  margin: 0;
  text-transform: none;
}

.policy-page ul {
  margin: 0;
  padding-left: 22px;
}

.policy-page li {
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.7;
}

.policy-page a {
  color: var(--accent-green);
}

.policy-page a:hover {
  color: var(--text-main);
}

@media (max-width: 768px) {
  header {
    padding: 16px 20px;
    margin-bottom: 12px;
    clip-path: none;
    justify-content: center;
  }

  .logo-container {
    gap: 10px;
  }

  .logo-container img {
    height: 32px;
  }

  .logo-container h1 {
    font-size: 1.1rem;
    letter-spacing: 1px;
  }

  main {
    padding: 20px 16px;
  }

  .glass-panel {
    padding: 24px;
    clip-path: none;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.3);
  }

  footer {
    padding: 28px 20px;
    clip-path: none;
  }

  .how-it-works-section,
  .battery-feature {
    margin-top: 50px;
    margin-bottom: 50px;
  }

  .how-it-works-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-top: 20px;
  }

  .policies-grid,
  .policy-grid {
    grid-template-columns: 1fr;
  }

  .policy-at-a-glance {
    padding: 18px;
  }

  .policy-block {
    padding: 14px;
  }
}
