/* ============================================================
   Water Usage Tracking — Landing Page Styles
   index.css  |  matches index.html exactly
   ============================================================ */

/* ── CSS Variables ──────────────────────────────────────────── */
:root {
  --blue-deep:   #023E8A;
  --blue-mid:    #0077B6;
  --blue-light:  #00B4D8;
  --blue-pale:   #90E0EF;
  --blue-wash:   #CAF0F8;
  --success:     #2D9E5F;
  --warning:     #E07B39;
  --danger:      #E53E3E;
  --purple:      #7B61FF;
  --teal:        #48CAE4;

  --bg:          #F0F8FF;
  --surface:     #FFFFFF;
  --border:      #C8E1F5;
  --text-head:   #03045E;
  --text-body:   #1e3a5f;
  --text-soft:   #4a6fa5;
  --text-muted:  #7da5c8;

  --nav-h: 68px;
  --font-display: 'Syne', sans-serif;
  --font-body:    'DM Sans', sans-serif;
  --radius:       16px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text-body);
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
svg { display: block; flex-shrink: 0; }

/* ── Shared layout helpers ──────────────────────────────────── */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 96px 40px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(0,180,216,.1);
  border: 1px solid rgba(0,180,216,.25);
  border-radius: 40px;
  padding: 5px 14px;
  margin-bottom: 18px;
}
.eyebrow-light {
  color: var(--blue-pale);
  background: rgba(144,224,239,.12);
  border-color: rgba(144,224,239,.3);
}

.section-heading {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  color: var(--text-head);
  line-height: 1.1;
  letter-spacing: -.02em;
  margin-bottom: 16px;
}
.heading-white { color: #ffffff; }

.heading-em {
  display: inline;
  font-style: italic;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.heading-em-light {
  display: inline;
  font-style: italic;
  color: var(--blue-pale);
}

.section-desc {
  font-size: 17px;
  color: var(--text-soft);
  max-width: 520px;
  margin-bottom: 56px;
  line-height: 1.7;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 28px;
  border-radius: 50px;
  box-shadow: 0 8px 28px rgba(0,119,182,.35);
  transition: transform .2s, box-shadow .2s;
  white-space: nowrap;
}
.btn-primary svg { width: 20px; height: 20px; fill: white; }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(0,119,182,.45); }
.btn-large { font-size: 17px; padding: 17px 36px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-head);
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 50px;
  border: 1.5px solid var(--border);
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(8px);
  transition: background .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn-ghost svg { width: 20px; height: 20px; fill: currentColor; }
.btn-ghost:hover { background: #fff; border-color: var(--blue-mid); transform: translateY(-1px); }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  transition: background .3s, box-shadow .3s;
}
.nav-scrolled {
  background: rgba(240,248,255,.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 2px 20px rgba(0,119,182,.1);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 40px;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-icon svg { width: 18px; height: 18px; fill: white; }
.nav-logo span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-head);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-soft);
  padding: 8px 14px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--text-head); background: rgba(0,119,182,.07); }

.nav-cta {
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-light)) !important;
  color: white !important;
  padding: 9px 20px !important;
  border-radius: 50px !important;
  font-weight: 600 !important;
  margin-left: 8px;
  box-shadow: 0 4px 16px rgba(0,119,182,.3);
  transition: transform .2s, box-shadow .2s !important;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,119,182,.4) !important; background: linear-gradient(135deg, var(--blue-mid), var(--blue-light)) !important; }

/* Burger button */
.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-burger span {
  display: block;
  width: 22px; height: 2px;
  background: var(--text-head);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: rgba(240,248,255,.97);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--border);
  padding: 16px 24px 24px;
  box-shadow: 0 8px 32px rgba(0,119,182,.12);
}
.nav-mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  padding: 12px 16px;
  border-radius: 10px;
  transition: background .2s;
}
.nav-mobile a:hover { background: rgba(0,119,182,.07); }
.nav-mobile.open { display: flex; }

/* ============================================================
   HERO
   ============================================================ */
.hero-section {
  position: relative;
  min-height: 100vh;
  padding-top: var(--nav-h);
  overflow: hidden;
  background: var(--bg);
}

/* Full-bleed background layer */
.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  animation: blobFloat 10s ease-in-out infinite alternate;
}
.blob-1 {
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(0,180,216,.18) 0%, transparent 70%);
  top: -100px; left: -150px;
  animation-duration: 12s;
}
.blob-2 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(0,119,182,.14) 0%, transparent 70%);
  bottom: 0; right: 80px;
  animation-duration: 9s; animation-delay: -3s;
}
.blob-3 {
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(144,224,239,.16) 0%, transparent 70%);
  top: 45%; left: 42%;
  animation-duration: 14s; animation-delay: -6s;
}
@keyframes blobFloat {
  from { transform: translate(0,0) scale(1); }
  to   { transform: translate(28px,18px) scale(1.07); }
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0,119,182,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,119,182,.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Two-column layout inside hero */
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1160px;
  margin: 0 auto;
  padding: 60px 40px 80px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 60px;
  min-height: calc(100vh - var(--nav-h));
}

/* Left column */
.hero-content { display: flex; flex-direction: column; align-items: flex-start; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.8);
  border: 1.5px solid var(--border);
  border-radius: 40px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
  animation: fadeDown .6s ease both;
}
.hero-badge-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: dotPulse 2s infinite;
  flex-shrink: 0;
}
@keyframes dotPulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(45,158,95,.4); }
  50%      { box-shadow: 0 0 0 6px rgba(45,158,95,0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  color: var(--text-head);
  line-height: 1.07;
  letter-spacing: -.03em;
  margin-bottom: 22px;
  animation: fadeDown .7s .1s ease both;
}
.hero-title-em {
  display: inline;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-style: italic;
}

.hero-sub {
  font-size: 17px;
  color: var(--text-soft);
  line-height: 1.72;
  max-width: 460px;
  margin-bottom: 36px;
  animation: fadeDown .7s .2s ease both;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 48px;
  animation: fadeDown .7s .3s ease both;
}

.hero-stats {
  display: flex;
  align-items: center;
  animation: fadeDown .7s .4s ease both;
}
.hero-stat { text-align: center; padding: 0 22px; }
.hero-stat:first-child { padding-left: 0; }
.hero-stat strong {
  display: block;
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 800;
  color: var(--text-head);
  line-height: 1;
  margin-bottom: 4px;
}
.hero-stat span { font-size: 12px; color: var(--text-muted); font-weight: 500; }
.hero-stat-divider {
  width: 1px; height: 34px;
  background: var(--border);
  flex-shrink: 0;
}

/* Right column — phone */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* ── Phone mockup ──────────────────────────────────────────── */
.phone-wrap {
  position: relative;
  animation: phoneFloat 5s ease-in-out infinite alternate;
}
@keyframes phoneFloat {
  from { transform: translateY(0); }
  to   { transform: translateY(-16px); }
}

.phone-frame {
  width: 268px;
  background: linear-gradient(160deg, #1a2540, #0a1628);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    0 0 0 1px rgba(255,255,255,.07),
    0 40px 80px rgba(0,0,0,.45),
    0 0 60px rgba(0,119,182,.2);
}
.phone-notch {
  width: 76px; height: 22px;
  background: #0a1628;
  border-radius: 11px;
  margin: 0 auto 10px;
}
.phone-screen {
  background: #0e1b33;
  border-radius: 32px;
  overflow: hidden;
  min-height: 460px;
}

/* Mock app inside phone */
.mock-header {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
  padding: 14px 14px 18px;
}
.mock-logo-row {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}
.mock-logo-dot {
  width: 32px; height: 32px;
  background: rgba(255,255,255,.18);
  border: 1.5px solid rgba(255,255,255,.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.mock-logo-dot svg { width: 16px; height: 16px; fill: white; }
.mock-logo-text { display: flex; flex-direction: column; }
.mock-app-name { color: white; font-size: 10px; font-weight: 700; line-height: 1.2; }
.mock-app-sub  { color: rgba(255,255,255,.6); font-size: 7.5px; }

.mock-circle-wrap { display: flex; justify-content: center; }
.mock-circle {
  width: 108px; height: 108px;
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  position: relative;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.mock-ring {
  position: absolute;
  inset: 0; width: 100%; height: 100%;
}
.mock-circle-inner {
  position: relative;
  z-index: 1;
  display: flex; flex-direction: column; align-items: center;
}
.mock-wave {
  position: absolute;
  bottom: -20px; left: -12px; right: -12px;
  height: 90px;
  background: rgba(0,180,216,.45);
  border-radius: 40%;
  animation: waveAnim 3.5s linear infinite;
}
@keyframes waveAnim {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
.mock-pct {
  position: relative;
  display: block;
  color: white;
  font-size: 19px;
  font-weight: 800;
  line-height: 1;
  z-index: 1;
}
.mock-lbl {
  position: relative;
  display: block;
  color: rgba(255,255,255,.75);
  font-size: 7.5px;
  margin-top: 2px;
  z-index: 1;
}

.mock-body { padding: 12px; }
.mock-stat-row { display: flex; gap: 8px; margin-bottom: 10px; }
.mock-stat-card {
  flex: 1;
  background: #1a2540;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 10px;
  padding: 9px 10px;
  display: flex; flex-direction: column; gap: 3px;
}
.mock-stat-card svg { width: 14px; height: 14px; }
.mock-blue svg  { fill: var(--blue-light); }
.mock-teal svg  { fill: var(--teal); }
.mock-stat-val  { color: white; font-size: 13px; font-weight: 800; }
.mock-stat-nm   { color: rgba(255,255,255,.5); font-size: 7.5px; }

.mock-grid-label {
  color: rgba(255,255,255,.45);
  font-size: 8.5px;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.mock-nav-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mock-nav-card {
  border-radius: 10px;
  padding: 10px;
  display: flex; flex-direction: column; gap: 5px;
}
.mock-nav-card svg { width: 15px; height: 15px; }
.mock-nav-card span { color: rgba(255,255,255,.8); font-size: 8px; font-weight: 600; }
.nav-c1 { background: rgba(0,119,182,.2); }  .nav-c1 svg { fill: var(--blue-light); }
.nav-c2 { background: rgba(0,180,216,.15); } .nav-c2 svg { fill: var(--teal); }
.nav-c3 { background: rgba(45,158,95,.15); } .nav-c3 svg { fill: #56c27a; }
.nav-c4 { background: rgba(123,97,255,.15);} .nav-c4 svg { fill: #a08bff; }

/* Floating badges beside phone */
.phone-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: white;
  border-radius: 40px;
  padding: 9px 16px;
  box-shadow: 0 8px 28px rgba(0,0,0,.14);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-head);
  white-space: nowrap;
}
.phone-badge svg { width: 15px; height: 15px; }
.badge-alert { top: 56px; right: -52px; animation: badgeFloat 4s ease-in-out infinite alternate; }
.badge-alert svg { fill: var(--danger); }
.badge-log   { bottom: 96px; left: -52px; animation: badgeFloat 4s ease-in-out infinite alternate-reverse; }
.badge-log   svg { fill: var(--blue-mid); }
@keyframes badgeFloat {
  from { transform: translateY(0) rotate(-1.5deg); }
  to   { transform: translateY(-10px) rotate(1.5deg); }
}

/* ============================================================
   TRUST BAR
   ============================================================ */
.trust-bar {
  background: white;
  border-top: 1.5px solid var(--border);
  border-bottom: 1.5px solid var(--border);
}
.trust-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 40px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 36px;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-soft);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease, transform .5s ease;
}
.trust-item.revealed { opacity: 1; transform: translateY(0); }
.trust-item svg { width: 16px; height: 16px; fill: var(--blue-mid); }

/* ============================================================
   FEATURES
   ============================================================ */
.features-section {
  background: var(--bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feat-card {
  background: white;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 2px 16px rgba(0,119,182,.05);
  transition: transform .25s, box-shadow .25s, border-color .25s;
  opacity: 0;
  transform: translateY(22px);
}
.feat-card.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .5s ease, transform .5s ease, box-shadow .25s;
}
.feat-card:hover { transform: translateY(-4px) !important; box-shadow: 0 12px 40px rgba(0,119,182,.12); border-color: var(--blue-pale); }
.feat-highlight {
  background: linear-gradient(135deg, rgba(0,119,182,.03), rgba(0,180,216,.04));
}

.feat-icon {
  width: 50px; height: 50px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feat-icon svg { width: 24px; height: 24px; }
.feat-icon-blue   { background: rgba(0,119,182,.12); } .feat-icon-blue   svg { fill: var(--blue-mid); }
.feat-icon-teal   { background: rgba(0,180,216,.12); } .feat-icon-teal   svg { fill: var(--blue-light); }
.feat-icon-red    { background: rgba(229,62,62,.1);  } .feat-icon-red    svg { fill: var(--danger); }
.feat-icon-green  { background: rgba(45,158,95,.1);  } .feat-icon-green  svg { fill: var(--success); }
.feat-icon-purple { background: rgba(123,97,255,.1); } .feat-icon-purple svg { fill: var(--purple); }
.feat-icon-orange { background: rgba(224,123,57,.1); } .feat-icon-orange svg { fill: var(--warning); }

.feat-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text-head);
  margin-bottom: 10px;
  letter-spacing: -.01em;
}
.feat-card p {
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.65;
  margin-bottom: 16px;
}
.feat-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--blue-light);
  background: rgba(0,180,216,.1);
  border: 1px solid rgba(0,180,216,.2);
  border-radius: 40px;
  padding: 4px 12px;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-section {
  background: linear-gradient(155deg, var(--blue-deep) 0%, var(--blue-mid) 100%);
  position: relative;
  overflow: hidden;
}
.how-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.steps-row {
  display: flex;
  align-items: flex-start;
  gap: 0;
  flex-wrap: wrap;
}

.step-card {
  flex: 1;
  min-width: 220px;
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .5s ease, transform .5s ease;
}
.step-card.revealed { opacity: 1; transform: translateY(0); }

.step-num {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 800;
  color: rgba(255,255,255,.1);
  line-height: 1;
  margin-bottom: 16px;
  letter-spacing: -.04em;
}
.step-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: white;
  margin-bottom: 10px;
}
.step-card p {
  font-size: 15px;
  color: rgba(255,255,255,.68);
  line-height: 1.67;
}

.step-arrow {
  display: flex;
  align-items: center;
  padding: 0 16px;
  padding-bottom: 50px;
  opacity: .3;
  flex-shrink: 0;
}
.step-arrow svg { width: 28px; height: 28px; fill: white; }

/* ============================================================
   SCREENSHOTS
   ============================================================ */
.screens-section {
  background: white;
}

.screens-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: start;
}

.screen-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .5s ease, transform .5s ease;
}
.screen-card.revealed { opacity: 1; transform: translateY(0); }
.screen-card:hover .screen-phone { transform: translateY(-6px); }

.screen-phone {
  width: 100%;
  background: #0e1b33;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 36px rgba(0,0,0,.18);
  border: 1px solid rgba(255,255,255,.06);
  transition: transform .3s;
  min-height: 220px;
}

.screen-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-soft);
  letter-spacing: .04em;
}

/* ── Shared screen-phone parts ─────────────────────────────── */
.sp-header {
  padding: 10px;
}
.sp-header-gradient {
  background: linear-gradient(135deg, var(--blue-deep), var(--blue-mid));
}
.sp-header-solid {
  background: var(--blue-deep);
  display: flex; align-items: center; justify-content: center;
  padding: 10px;
}
.sp-header-title {
  color: white;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .04em;
}
.sp-center { display: flex; flex-direction: column; align-items: center; }

.sp-logo-row {
  display: flex; align-items: center; gap: 7px;
  margin-bottom: 8px;
}
.sp-logo-dot {
  width: 22px; height: 22px;
  background: rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sp-logo-dot svg { width: 11px; height: 11px; fill: white; }
.sp-logo-text { display: flex; flex-direction: column; }
.sp-app-name  { color: white; font-size: 7px; font-weight: 700; line-height: 1.3; }
.sp-app-sub   { color: rgba(255,255,255,.6); font-size: 6px; }

/* Water level indicator circle (used in multiple screens) */
.sp-indicator {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 3px solid rgba(0,180,216,.6);
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  overflow: hidden;
  margin: 4px auto;
}
.sp-indicator-lg { width: 76px; height: 76px; margin-bottom: 6px; }
.sp-indicator-ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 3px solid rgba(0,180,216,.5);
}
.sp-wave-fill {
  position: absolute;
  bottom: -12px; left: -6px; right: -6px;
  height: 60%;
  background: rgba(0,180,216,.5);
  border-radius: 40%;
  animation: waveAnim 3s linear infinite;
}
.sp-indicator-pct {
  position: relative;
  z-index: 1;
  color: white;
  font-size: 11px;
  font-weight: 800;
}

.sp-body { padding: 8px; }

/* Stats row */
.sp-stats-row { display: flex; gap: 6px; margin-bottom: 7px; }
.sp-stat-pill {
  flex: 1;
  border-radius: 8px;
  padding: 7px 8px;
  font-size: 10px;
  font-weight: 800;
  color: white;
  line-height: 1.3;
}
.sp-stat-pill small { font-size: 7px; font-weight: 400; opacity: .7; display: block; }
.sp-stat-blue { background: rgba(0,119,182,.35); }
.sp-stat-teal { background: rgba(72,202,228,.3); }

/* Mini nav grid (dashboard) */
.sp-mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }
.sp-mini-card { height: 26px; border-radius: 7px; }

/* Slider (water level screen) */
.sp-slider-wrap { margin-bottom: 10px; }
.sp-slider-track {
  position: relative;
  height: 6px;
  background: rgba(255,255,255,.12);
  border-radius: 4px;
}
.sp-slider-fill {
  position: absolute;
  top: 0; left: 0; bottom: 0;
  background: var(--blue-mid);
  border-radius: 4px;
}
.sp-slider-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 13px; height: 13px;
  background: white;
  border: 2px solid var(--blue-mid);
  border-radius: 50%;
  box-shadow: 0 1px 6px rgba(0,0,0,.3);
}
.sp-slider-sm { margin-top: 6px; height: 5px; }
.sp-fill-amber { background: var(--warning); }
.sp-thumb-amber { border-color: var(--warning); }

/* Legend rows */
.sp-legend { display: flex; flex-direction: column; gap: 5px; }
.sp-legend-row {
  display: flex; align-items: center; gap: 6px;
  font-size: 8px; color: rgba(255,255,255,.7);
}
.sp-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.sp-dot-green { background: var(--success); }
.sp-dot-amber { background: var(--warning); }
.sp-dot-red   { background: var(--danger); }

/* History screen */
.sp-summary-banner {
  height: 26px;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
}
.sp-history-list { display: flex; flex-direction: column; gap: 5px; }
.sp-history-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #1a2540;
  border-radius: 7px;
  padding: 6px 9px;
}
.sp-history-date { color: rgba(255,255,255,.65); font-size: 8px; font-weight: 600; }
.sp-history-val  { font-size: 8.5px; font-weight: 700; }
.sp-val-green    { color: #56c27a; }
.sp-val-amber    { color: #f0a36a; }
.sp-val-red      { color: #f07070; }

/* Alerts screen */
.sp-alerts-bg {
  background: #0e1b33;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sp-alert-card {
  border-radius: 12px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.sp-alert-safe {
  background: linear-gradient(135deg, var(--success), #3db870);
}
.sp-alert-card svg  { width: 22px; height: 22px; fill: white; }
.sp-alert-card span { color: white; font-size: 8.5px; font-weight: 700; }
.sp-alert-card small{ color: rgba(255,255,255,.75); font-size: 7px; }
.sp-alert-stats { display: flex; gap: 6px; }
.sp-alert-stat {
  flex: 1;
  border-radius: 9px;
  padding: 8px;
  font-size: 10px;
  font-weight: 800;
  color: white;
  line-height: 1.4;
  text-align: center;
}
.sp-alert-stat small { font-size: 7px; font-weight: 400; opacity: .7; display: block; }
.sp-alert-stat-green { background: rgba(45,158,95,.3); }
.sp-alert-stat-amber { background: rgba(224,123,57,.3); }

/* Settings screen */
.sp-settings-card { display: flex; flex-direction: column; gap: 7px; }
.sp-setting-row {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #1a2540;
  border-radius: 9px;
  padding: 8px 10px;
}
.sp-setting-icon {
  width: 24px; height: 24px;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.sp-setting-icon svg { width: 13px; height: 13px; }
.sp-icon-purple { background: rgba(123,97,255,.2); } .sp-icon-purple svg { fill: #a08bff; }
.sp-icon-green  { background: rgba(45,158,95,.2);  } .sp-icon-green  svg { fill: #56c27a; }
.sp-setting-label {
  flex: 1;
  color: rgba(255,255,255,.8);
  font-size: 8.5px;
  font-weight: 600;
}
.sp-toggle {
  width: 26px; height: 14px;
  border-radius: 7px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
  position: relative;
}
.sp-toggle-on { }
.sp-toggle-on::after {
  content: '';
  position: absolute;
  top: 2px; right: 2px;
  width: 10px; height: 10px;
  background: white;
  border-radius: 50%;
}
.sp-toggle-purple.sp-toggle-on { background: var(--purple); }
.sp-toggle-green.sp-toggle-on  { background: var(--success); }

.sp-threshold-wrap {
  background: #1a2540;
  border-radius: 9px;
  padding: 8px 10px;
}
.sp-threshold-label {
  display: block;
  color: rgba(255,255,255,.65);
  font-size: 7.5px;
  font-weight: 600;
  margin-bottom: 6px;
}

/* ============================================================
   DOWNLOAD CTA
   ============================================================ */
.download-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #011f4b, var(--blue-deep), var(--blue-mid));
  text-align: center;
  padding: 0;
}
.download-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.download-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
}
.download-blob-1 {
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(0,180,216,.22) 0%, transparent 70%);
  top: -120px; left: -80px;
  animation: blobFloat 10s ease-in-out infinite alternate;
}
.download-blob-2 {
  width: 360px; height: 360px;
  background: radial-gradient(circle, rgba(144,224,239,.14) 0%, transparent 70%);
  bottom: -80px; right: -60px;
  animation: blobFloat 8s ease-in-out infinite alternate-reverse;
}
.download-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
  padding: 100px 40px;
}
.download-icon {
  width: 80px; height: 80px;
  background: rgba(255,255,255,.1);
  border: 2px solid rgba(255,255,255,.2);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 32px;
}
.download-icon svg { width: 40px; height: 40px; fill: white; }
.download-section h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 5vw, 50px);
  font-weight: 800;
  color: white;
  line-height: 1.12;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}
.download-section p {
  font-size: 16.5px;
  color: rgba(255,255,255,.7);
  line-height: 1.72;
  margin-bottom: 40px;
}
.download-meta {
  margin-top: 20px;
  font-size: 13px;
  color: rgba(255,255,255,.4);
  font-weight: 500;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: #03045E; }

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 64px 40px 40px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

.footer-brand { display: flex; flex-direction: column; }

.footer-logo {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
}
.footer-logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--blue-mid), var(--blue-light));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.footer-logo-icon svg { width: 20px; height: 20px; fill: white; }
.footer-logo-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: white;
}
.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,.45);
  line-height: 1.7;
}

.footer-cols { display: flex; gap: 48px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: rgba(255,255,255,.3);
  margin-bottom: 4px;
}
.footer-col a {
  font-size: 14px;
  color: rgba(255,255,255,.5);
  transition: color .2s;
}
.footer-col a:hover { color: white; }

.footer-bottom {
  max-width: 1160px;
  margin: 0 auto;
  padding: 20px 40px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  color: rgba(255,255,255,.28);
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: rgba(255,255,255,.42); transition: color .2s; }
.footer-bottom a:hover { color: white; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .screens-grid  { grid-template-columns: repeat(3, 1fr); }
  .screens-grid .screen-card:nth-child(n+4) { display: none; }
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 48px 32px 64px;
    gap: 48px;
  }
  .hero-content { align-items: center; }
  .hero-visual { display: none; }
  .hero-stats  { justify-content: center; }

  .features-grid { grid-template-columns: 1fr; }

  .steps-row { flex-direction: column; gap: 0; }
  .step-arrow { transform: rotate(90deg); padding: 12px 0; align-self: flex-start; margin-left: 24px; }

  .screens-grid { grid-template-columns: repeat(2, 1fr); }
  .screens-grid .screen-card:nth-child(n+3) { display: none; }

  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols  { flex-wrap: wrap; gap: 32px; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-burger { display: flex; }
  .nav-inner  { padding: 0 20px; }

  .container       { padding: 72px 20px; }
  .trust-inner     { padding: 18px 20px; }
  .hero-inner      { padding: 40px 20px 60px; }
  .download-content{ padding: 72px 20px; }
  .footer-inner    { padding: 48px 20px 32px; }
  .footer-bottom   { padding: 16px 20px; }

  .screens-grid { grid-template-columns: repeat(2, 1fr); }
  .screens-grid .screen-card:nth-child(n+3) { display: none; }
}
