:root {
  color-scheme: dark;
  --bg: #020814;
  --surface: rgba(128, 235, 79, 0.95);
  --surface-soft: rgba(57, 180, 41, 0.9);
  --text: #eef3ff;
  --muted: #95a3c4;
  --primary: #22c55e; 
  --accent: #16a34a;
  --accent-strong: #93d5ff;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  font-family: 'Inter', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  margin: 0;
  background: radial-gradient(circle at top, rgba(79, 216, 255, 0.12), transparent 24%),
    radial-gradient(circle at 80% 0%, rgba(178, 93, 255, 0.16), transparent 20%),
    linear-gradient(180deg, #040a16 0%, #08101f 100%);
  color: var(--text);
}

body {
  line-height: 1.55;
}

.page-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 24px 28px 48px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 16px;
}

.logo-mark {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #4fd8ff 0%, #6f7bff 100%);
  color: #02101f;
  font-weight: 800;
  font-size: 1.2rem;
}

.brand-name {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
}

.brand-tag {
  display: block;
  color: var(--muted);
  font-size: 0.9rem;
}

.nav-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 32px;
  align-items: center;
  padding: 36px 0 32px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: #6b86be;
  font-size: 0.75rem;
  margin-bottom: 16px;
}

.hero-copy h1 {
  font-size: clamp(3rem, 2.8vw, 4.4rem);
  margin: 0;
  line-height: 0.95;
}

.hero-text {
  max-width: 680px;
  margin: 24px 0 32px;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero-actions {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #4fd8ff 0%, #6a7bff 100%);
  color: #05101e;
  box-shadow: 0 18px 40px rgba(79, 216, 255, 0.18);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.hero-viz {
  position: relative;
}

.glow-card {
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(8, 18, 38, 0.92), rgba(9, 17, 33, 0.82));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03), var(--shadow);
}

.hero-card {
  position: relative;
  overflow: hidden;
}

.hero-card::after {
  content: '';
  position: absolute;
  inset: -40px -40px 0;
  background: radial-gradient(circle, rgba(79, 216, 255, 0.14), transparent 38%);
  pointer-events: none;
}

.hero-card span {
  display: inline-flex;
  color: #80c9ff;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}

.hero-stat {
  margin: 18px 0 18px;
}

.hero-stat strong {
  display: block;
  font-size: 3rem;
  line-height: 1;
}

.hero-stat small {
  color: var(--muted);
}

.flow-preview {
  display: flex;
  gap: 12px;
  margin-top: 22px;
}

.flow-preview .bar {
  width: 14px;
  height: 80px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.flow-preview .bar.active {
  background: linear-gradient(180deg, #4fd8ff, #6a7bff);
}

.product-section,
.dashboard-section {
  padding: 16px 0 4px;
}

.section-head {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-head h2 {
  margin: 12px 0 0;
  font-size: clamp(2.1rem, 2.3vw, 3rem);
}

.section-text {
  color: var(--muted);
  margin-top: 14px;
  font-size: 1rem;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(240px, 1fr));
  gap: 24px;
}

.product-card {
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 23, 44, 0.94);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.2);
}

.product-card.highlight {
  background: linear-gradient(180deg, rgba(15, 30, 60, 0.98), rgba(19, 40, 82, 0.96));
  border-color: rgba(79, 216, 255, 0.2);
}

.product-label {
  display: inline-flex;
  margin-bottom: 18px;
  color: #72d4ff;
  font-weight: 700;
}

.product-card h3 {
  margin: 0 0 16px;
  font-size: 1.4rem;
}

.product-card p {
  margin: 0 0 20px;
  color: var(--muted);
}

.product-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.product-card li {
  position: relative;
  padding-left: 20px;
  color: #d4e2ff;
}

.product-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #4fd8ff;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 24px;
  align-items: flex-start;
}

.dashboard-panel {
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 20, 38, 0.92);
  box-shadow: var(--shadow);
}

.graph-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
}

.graph-card canvas {
  width: 100% !important;
  max-height: 260px !important;
  height: 260px !important;
}

.panel-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 22px;
}

.panel-heading span {
  color: var(--muted);
  font-size: 0.95rem;
}

.panel-heading small {
  color: var(--muted);
}

.metric-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.metric-tile {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.metric-tile span,
.status-strip span {
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}

.metric-tile strong {
  display: block;
  font-size: 1.7rem;
}

#flow-rate,
#total-volume,
#pump-status {
  font-size: 2.3rem;
  display: block;
  margin-top: 8px;
}

.status-strip {
  margin-top: 28px;
  padding: 14px 18px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #4fd8ff;
  box-shadow: 0 0 14px rgba(79, 216, 255, 0.45);
}

.database-card {
  margin-top: 26px;
  display: flex;
  justify-content: space-between;
  gap: 22px;
}

.database-info h3 {
  margin: 0 0 10px;
  font-size: 1.4rem;
}

.database-info p {
  margin: 0;
  color: var(--muted);
}

.db-warnings {
  display: grid;
  align-content: center;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
}

.db-warnings span {
  color: var(--muted);
  margin-bottom: 6px;
}

.db-warnings code {
  width: fit-content;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: #b3e5ff;
  font-size: 0.95rem;
}

footer {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--muted);
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .page-shell {
    padding: 18px 18px 32px;
  }

  .product-grid,
  .hero-actions,
  .database-card {
    grid-template-columns: 1fr;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}
