:root {
  --bg-color: #000;
  --text-color: #e0f7fa;
  --text-color-light: #b2ebf2;
  --primary-color: #26c6da;
  --primary-color-dark: #00838f;
  --secondary-color: #00acc1;
  --accent-g5: #e91e63;
  --accent-g3: #f44336;
  --accent-g2: #ffc107;
  --accent-g1: #00bcd4;
  --good: #8bc34a;
  --warn: #ffc107;
  --watch: #ff9800;
  --high: #ff5252;
  --section-bg: rgba(0, 50, 50, .3)
}

* {
  box-sizing: border-box
}

html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: radial-gradient(ellipse at bottom, #001 0%, #000 100%);
  color: var(--text-color);
  text-align: center;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

img,
canvas,
video {
  max-width: 100%;
}

#aurora-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}





nav a:hover {
  color: var(--primary-color);
}



.hero {
  padding: 2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  height: 70vh;
  min-height: 500px;
  justify-content: center;
  overflow: hidden;
}

#solar-system-container {
  position: fixed;
  inset: 0;
  z-index: -2;
  opacity: 0.25;
  filter: blur(4px);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  margin: 0;
  color: #fff;
  text-shadow: 0 0 20px var(--primary-color), 0 0 40px rgba(0, 0, 0, 0.8);
  letter-spacing: -1px;
}

.hero p {
  font-size: 1.4rem;
  color: var(--text-color-light);
  max-width: 800px;
  margin: 1.5rem 0 3rem;
  line-height: 1.6;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.9);
}

.brewery-banner {
  background: rgba(0, 255, 255, 0.05);
  border: 1px solid rgba(0, 255, 255, 0.1);
  padding: 1rem 2rem;
  border-radius: 50px;
  margin-bottom: 3rem;
  font-weight: 600;
  color: var(--primary-color);
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.section {
  background: var(--section-bg);
  margin: 2rem auto;
  padding: 2.5rem;
  max-width: 1100px;
  width: calc(100% - 2rem);
  border-radius: 20px;
  border: 1px solid rgba(0, 255, 255, .1);
  box-shadow: 0 0 20px rgba(0, 255, 255, .05);
  backdrop-filter: blur(10px);
  text-align: left;
}

.section h2 {
  color: var(--primary-color);
  margin-top: 0;
  font-size: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.section-intro {
  font-size: 1.1rem;
  color: var(--text-color-light);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.cards-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  width: 100%;
}

.card {
  background: rgba(0, 50, 50, 0.4);
  border: 1px solid rgba(0, 255, 255, 0.15);
  border-radius: 20px;
  padding: 2.5rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  text-align: left;
  display: flex;
  flex-direction: column;
  backdrop-filter: blur(8px);
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 40px rgba(0, 255, 255, 0.1);
  border-color: var(--primary-color);
}

.card h2 {
  color: var(--primary-color);
  margin: 0 0 1rem 0;
  font-size: 1.8rem;
}

.card p {
  line-height: 1.6;
  font-size: 1.05rem;
  margin-bottom: 2rem;
  flex: 1;
}

.card .btn {
  align-self: flex-start;
  background: var(--primary-color);
  color: #000;
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

/* Dashboard Grid Styles */
.impact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.impact-card {
  background: rgba(0, 30, 30, .6);
  border: 1px solid rgba(0, 255, 255, .1);
  border-radius: 16px;
  padding: 1.5rem;
  position: relative;
}

.impact-title {
  margin: .6rem 0 0 0;
  font-weight: 800;
  color: var(--text-color-light);
}

.impact-badge {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 6px;
  font-size: .8rem;
  margin-left: .5rem;
}

.impact-hint {
  font-size: .85rem;
  color: #9fdbe0;
  margin-top: .5rem;
}

.chart-container {
  position: relative;
  height: 350px;
  width: 100%;
}

.image-widget {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  background: #001a1a;
  border: 1px solid rgba(0, 255, 255, 0.1);
}

/* Explanation tooltips */
.tip {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 1rem;
  cursor: help;
  opacity: .6;
  color: var(--primary-color);
}

.tipbox {
  position: absolute;
  right: 1rem;
  top: 2.5rem;
  max-width: 260px;
  background: #032c2c;
  color: #d6ffff;
  border: 1px solid rgba(0, 255, 255, .2);
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: .85rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
  z-index: 10;
}

.tip:hover+.tipbox {
  opacity: 1;
  pointer-events: auto;
}

/* R/S Gauges */
.gauges {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: center;
}

.gauge {
  text-align: center;
  width: 250px;
}

.badge {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 6px;
  margin-top: 12px;
  font-weight: bold;
}

.advisory-banner {
  display: none;
  margin-bottom: 2rem;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  background: rgba(255, 110, 64, .12);
  border: 1px solid rgba(255, 110, 64, .35);
  color: #ffd5c7;
  text-align: left;
}

.footer {
  padding: 4rem 1rem;
  color: var(--text-color-light);
  opacity: 0.6;
  font-size: 0.9rem;
}

.helper-note {
  font-size: 0.9rem;
  color: #9fdbe0;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  .hero {
    padding: 4rem 1rem 2rem;
  }

  .section {
    padding: 1.5rem;
  }

  .impact-grid {
    grid-template-columns: 1fr;
  }
}

/* Modal */
.feedback-modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .75));
  backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: #002b36;
  padding: 1.6rem 1.6rem 1.1rem;
  border-radius: 16px;
  border: 1px solid var(--primary-color, #26c6da);
  max-width: 100%;
  width: min(92vw, 560px);
  box-shadow: 0 20px 50px rgba(0, 255, 255, .18);
  position: relative;
  transform: translateY(6px);
  opacity: 0;
  transition: opacity .18s ease, transform .18s ease;
}

.feedback-modal.show {
  display: flex;
}

.feedback-modal.show .modal-content {
  transform: translateY(0);
  opacity: 1;
}

.modal-content h2 {
  margin: 0 0 .6rem 0;
  color: #fff;
}

.modal-content .close-btn {
  position: absolute;
  top: .6rem;
  right: .9rem;
  font-size: 2rem;
  color: #b2ebf2;
  cursor: pointer;
  line-height: 1;
}

.modal-content form {
  display: grid;
  gap: .75rem;
}

.modal-content label {
  font-size: .95rem;
  color: #a7e7ee;
  text-align: left;
}

.modal-content input,
.modal-content textarea {
  width: 100%;
  padding: .85rem .9rem;
  border-radius: 10px;
  background: #00474f;
  color: #fff;
  border: 1px solid rgba(0, 255, 255, .25);
  font-family: inherit;
  font-size: 1rem;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .2);
}

.modal-content textarea {
  min-height: 140px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: .25rem;
}

.modal-actions button {
  padding: .75rem 1.2rem;
  background: #00acc1;
  color: #001314;
  border: 0;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 255, 255, .25);
  transition: filter .2s ease, transform .08s ease, box-shadow .2s;
}

.modal-actions button:hover {
  filter: saturate(1.1);
}

.modal-actions button:active {
  transform: translateY(1px);
}

.modal-actions button.secondary {
  background: #004a4a;
  color: #dff;
}

.modal-actions button:disabled {
  opacity: .6;
  cursor: not-allowed;
  box-shadow: none;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: rgba(0, 40, 40, .9);
  border: 1px solid rgba(0, 255, 255, .3);
  color: #dff;
  padding: .6rem .9rem;
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35);
  font-size: .95rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
  z-index: 3000;
}

.toast.show {
  opacity: 1;
}







@media (max-width: 768px) {}

nav {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  padding: 1rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 255, 255, 0.1);
  display: flex;
  justify-content: center;
  gap: 2rem;
}

nav a {
  color: var(--text-color-light, #b2ebf2);
  text-decoration: none;
  font-weight: 700;
  transition: color 0.3s, text-shadow 0.3s;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

nav a:hover {
  color: var(--primary-color, #26c6da);
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
  background: rgba(0, 255, 255, 0.05);
}

nav a.active {
  color: var(--primary-color, #26c6da);
  border-bottom: 2px solid var(--primary-color, #26c6da);
  text-shadow: 0 0 12px rgba(0, 255, 255, 0.6);
  background: rgba(0, 255, 255, 0.05);
}

\n .top-buttons {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1000;
  display: flex;
  gap: 0.6rem;
}

.top-buttons button {
  background: linear-gradient(180deg, rgba(0, 80, 80, .9), rgba(0, 60, 60, .8));
  backdrop-filter: blur(6px);
  color: var(--text-color, #e0f7fa);
  border: 1px solid var(--primary-color, #26c6da);
  padding: 0.6rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 6px 18px rgba(0, 255, 255, .15), inset 0 0 0 1px rgba(0, 255, 255, .1);
  transition: transform .1s ease, box-shadow .2s ease, filter .2s ease;
}

.top-buttons button:hover {
  box-shadow: 0 8px 22px rgba(0, 255, 255, .3), inset 0 0 0 1px rgba(0, 255, 255, .2);
  filter: brightness(1.2);
}

.top-buttons button:active {
  transform: translateY(2px);
}

@media (max-width: 768px) {
  .top-buttons {
    top: auto;
    bottom: 1rem;
    right: 50%;
    transform: translateX(50%);
    width: auto;
    justify-content: center;
  }

  nav {
    gap: 1rem;
    padding: 0.5rem;
    flex-wrap: wrap;
  }

  nav a {
    font-size: 0.85rem;
    padding: 0.4rem 0.8rem;
  }
}

\n

/* Premium Button System */
.btn-premium {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(38, 198, 218, 0.2) 0%, rgba(0, 172, 193, 0.1) 100%);
  border: 1px solid rgba(0, 255, 255, 0.3);
  color: #fff;
  padding: 0.8rem 1.8rem;
  border-radius: 50px;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(5px);
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  white-space: nowrap;
}

.btn-premium:hover {
  background: linear-gradient(135deg, rgba(38, 198, 218, 0.4) 0%, rgba(0, 172, 193, 0.2) 100%);
  border-color: #00ffff;
  box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
  transform: translateY(-2px);
  color: #00ffff;
}

.btn-premium:active {
  transform: translateY(1px);
}

.btn-premium.active {
  background: rgba(38, 198, 218, 0.4);
  border-color: #00ffff;
  box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.2);
}

/* Preloader Styles */
#global-preloader {
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--primary-color);
  font-family: inherit;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

#global-preloader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.spinner-mug {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  animation: spin3D 1.5s linear infinite;
  margin-bottom: 20px;
  box-shadow: 0 0 20px rgba(38, 198, 218, 0.5);
  border: 2px solid var(--primary-color);
}

@keyframes spin3D {
  0% {
    transform: perspective(400px) rotateY(0deg);
  }

  100% {
    transform: perspective(400px) rotateY(360deg);
  }
}

.preloader-text {
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.9rem;
  animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 1;
  }
}

/* Scroll Animations */
.fade-in {
  opacity: 0;
  transform: translateY(25px);
  transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94), transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Seamless Page Transitions */
body {
  transition: opacity 0.35s ease-out;
}

body.page-exit {
  opacity: 0;
}