:root {
  --bg: #070b12;
  --bg-2: #0b1220;
  --cyan: #2dd4bf;
  --cyan-hot: #5eead4;
  --ink: #e8eef7;
  --muted: #8b97a8;
  --line: rgba(148, 163, 184, 0.18);
  --card: rgba(15, 23, 42, 0.72);
  --font: "Manrope", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body.landing {
  min-height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

.dot-grid {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-color: var(--bg);
  background-image:
    radial-gradient(rgba(148, 163, 184, 0.22) 1px, transparent 1px);
  background-size: 28px 28px;
  background-position: 0 0;
}

.topbar {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.35rem 0 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  animation: rise 0.6s ease both;
}

.brand {
  display: inline-flex;
  align-items: center;
}
.brand-logo {
  height: 72px;
  width: auto;
  display: block;
  mix-blend-mode: screen;
}

.signin {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 1.05rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  color: #fff;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.signin:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: #fff;
  transform: translateY(-1px);
}

.hero {
  width: min(1120px, calc(100% - 2.5rem));
  margin: 0 auto;
  min-height: calc(100dvh - 5.5rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
  padding: 1.25rem 0 2rem;
}

.hero-copy { animation: rise 0.75s 0.05s ease both; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.1rem;
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.eyebrow-rule {
  display: inline-block;
  width: 28px;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
}

h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.55rem, 5.4vw, 3.85rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.05;
}
.h-white { color: #fff; }
.h-cyan { color: var(--cyan); }

.lede {
  margin: 0 0 1.75rem;
  max-width: 38ch;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.55;
  font-weight: 500;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  max-width: 460px;
}

/* Quick Pay — solid cyan, animated */
.quickpay {
  --mx: 40%;
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.15rem 1.15rem 1.15rem 1.35rem;
  border-radius: 16px;
  background: var(--cyan);
  color: #0b1220;
  overflow: hidden;
  box-shadow:
    0 0 0 0 rgba(45, 212, 191, 0.45),
    0 16px 40px rgba(45, 212, 191, 0.22);
  animation: qp-pulse 2.6s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.quickpay:hover {
  transform: translateY(-2px) scale(1.01);
  box-shadow:
    0 0 0 4px rgba(45, 212, 191, 0.18),
    0 22px 48px rgba(45, 212, 191, 0.32);
  animation-play-state: paused;
}
.qp-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    transparent 30%,
    rgba(255, 255, 255, 0.45) 48%,
    transparent 65%
  );
  transform: translateX(-130%);
  animation: qp-shine 3s ease-in-out infinite;
  pointer-events: none;
}
.qp-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
  z-index: 1;
}
.qp-text strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.qp-text em {
  font-style: normal;
  font-size: 0.84rem;
  font-weight: 550;
  color: rgba(11, 18, 32, 0.72);
}
.qp-go {
  margin-left: auto;
  z-index: 1;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0b1220;
  color: #fff;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}
.quickpay:hover .qp-go {
  transform: translateX(3px);
}

@keyframes qp-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 0 rgba(45, 212, 191, 0.4),
      0 16px 40px rgba(45, 212, 191, 0.22);
  }
  50% {
    box-shadow:
      0 0 0 10px rgba(45, 212, 191, 0),
      0 18px 44px rgba(45, 212, 191, 0.28);
  }
}
@keyframes qp-shine {
  0%, 50% { transform: translateX(-130%); }
  75%, 100% { transform: translateX(130%); }
}

.tile-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem 1rem 1.05rem;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(15, 23, 42, 0.45);
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
}
.tile:hover {
  border-color: rgba(45, 212, 191, 0.35);
  background: rgba(15, 23, 42, 0.7);
  transform: translateY(-2px);
}
.tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}
.tile-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--cyan);
  letter-spacing: 0.06em;
}
.tile-arrow {
  color: var(--cyan);
  font-size: 0.95rem;
  line-height: 1;
}
.tile strong {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
}
.tile em {
  font-style: normal;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}

.hero-visual {
  animation: rise 0.85s 0.12s ease both;
}
.meter-frame {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  max-height: min(64vh, 540px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #111827;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.45);
}
.meter-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}

.live-pill {
  position: absolute;
  top: 1rem;
  left: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(7, 11, 18, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.55);
  animation: live 1.8s ease-out infinite;
}
.live-dot.sm {
  width: 7px;
  height: 7px;
}

@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(45, 212, 191, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 191, 0); }
}

.status-card {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.05rem;
  border-radius: 14px;
  background: rgba(7, 11, 18, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
}
.status-label {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
.status-value {
  font-size: 1.05rem;
  font-weight: 750;
  color: #fff;
}
.status-sync { text-align: right; }
.status-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--cyan);
}

.iot-access {
  margin: 0.95rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.65rem;
  align-items: center;
  justify-content: flex-end;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 500;
}
.iot-access a {
  color: var(--cyan);
  font-weight: 700;
}
.iot-access a:hover { color: var(--cyan-hot); }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 0.75rem;
  }
  .hero-visual { order: -1; }
  .meter-frame {
    aspect-ratio: 16 / 11;
    max-height: 280px;
  }
  .actions { max-width: none; }
  .iot-access { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .tile-row { grid-template-columns: 1fr; }
  h1 { font-size: 2.35rem; }
  .topbar { width: min(1120px, calc(100% - 1.5rem)); }
  .hero { width: min(1120px, calc(100% - 1.5rem)); }
}

@media (prefers-reduced-motion: reduce) {
  .quickpay,
  .qp-shine,
  .live-dot {
    animation: none !important;
  }
}
