/* H2OTrack Landing Page - Pro Version */
:root {
  --primary: #0284c7;
  --primary-dark: #075985;
  --accent: #0ea5e9;
  --hero-top-offset: 92px; /* approximate sticky header height */
}

/* ── Hero Pro ──────────────────────────────────────── */
.hero-pro {
  background: linear-gradient(135deg, #03375e 0%, #0369a1 55%, #0ea5e9 100%);
  min-height: calc(100vh - var(--hero-top-offset));
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-pro::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1000px 600px at 15% 10%, rgba(255, 255, 255, 0.10) 0%, transparent 60%),
    radial-gradient(900px 520px at 85% 30%, rgba(56, 189, 248, 0.16) 0%, transparent 62%),
    linear-gradient(180deg, rgba(2, 6, 23, 0.18) 0%, rgba(2, 6, 23, 0.10) 55%, rgba(2, 6, 23, 0.12) 100%);
  pointer-events: none;
}

.hero-pro > .container {
  position: relative;
  z-index: 1;
}

.hero-circle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-circle-1 {
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, transparent 70%);
  top: -200px;
  right: -200px;
}

.hero-circle-2 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
  bottom: -150px;
  left: -150px;
}

.hero-badge {
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(8px);
  box-shadow: 0 18px 45px -25px rgba(2, 6, 23, 0.6);
}

.hero-badge-icon {
  color: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 10px 18px rgba(2, 6, 23, 0.25));
}

.badge-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3);
  animation: pulse-dot 2s infinite;
  flex-shrink: 0;
}

@keyframes pulse-dot {

  0%,
  100% {
    box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3);
  }

  50% {
    box-shadow: 0 0 0 7px rgba(74, 222, 128, 0.08);
  }
}

.hero-badge-text {
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.5px;
}

.hero-headline {
  font-size: clamp(2.5rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.1;
  color: white;
  letter-spacing: -2px;
  text-shadow: 0 12px 30px rgba(2, 6, 23, 0.35);
}

.hero-highlight {
  display: inline-block;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 2px 18px;
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-subtext {
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.7;
  max-width: 520px;
  text-shadow: 0 10px 22px rgba(2, 6, 23, 0.18);
}

.hero-btn-primary {
  background: white;
  color: #075985 !important;
  font-size: 1rem;
  transition: all 0.3s;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.35) !important;
}

.hero-btn-outline {
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.5) !important;
  color: white !important;
  backdrop-filter: blur(8px);
  font-size: 1rem;
  transition: all 0.3s;
}

.hero-btn-outline:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-3px);
}

.trust-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  padding: 8px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: white;
  backdrop-filter: blur(6px);
  box-shadow: 0 14px 34px -28px rgba(2, 6, 23, 0.65);
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.trust-icon {
  color: rgba(255, 255, 255, 0.92);
  opacity: 0.95;
}

.trust-pill:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.32);
}

/* ── Dashboard Preview Card ─────────────────────────── */
.dashboard-preview {
  background: white;
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 40px 80px -20px rgba(3, 55, 94, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: translateZ(0);
}

.preview-header {
  background: #1e293b;
  padding: 14px 20px;
  display: flex;
  align-items: center;
}

.preview-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
}

.preview-dot.red {
  background: #ff5f56;
}

.preview-dot.yellow {
  background: #ffbd2e;
}

.preview-dot.green {
  background: #27c93f;
}

.preview-title {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
}

.preview-stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.preview-stat-card {
  padding: 22px 15px;
  text-align: center;
  border-right: 1px solid #f1f5f9;
}

.preview-stat-card:last-child {
  border-right: none;
}

.psc-icon {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.preview-stat-card.blue .psc-icon {
  color: #0284c7;
}

.preview-stat-card.green .psc-icon {
  color: #16a34a;
}

.preview-stat-card.orange .psc-icon {
  color: #ea580c;
}

.psc-number {
  font-size: 1.4rem;
  font-weight: 900;
  color: #0f172a;
  line-height: 1;
  margin-bottom: 4px;
}

.psc-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
}

.preview-progress-section {
  padding: 20px 24px;
  border-top: 1px solid #f1f5f9;
}

.preview-module-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #f1f5f9;
}

.preview-module {
  padding: 18px 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  border-right: 1px solid #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: background 0.2s;
}

.preview-module:last-child {
  border-right: none;
}

.preview-module:hover {
  background: #f8fafc;
}

.preview-module i {
  font-size: 1.3rem;
}

/* ── Common Layout ──────────────────────────────────── */
.landing-page {
  font-family: 'Poppins', sans-serif;
  background: #fff;
  color: #1e293b;
  margin: 0;
  overflow-x: hidden;
  padding-top: 0; /* override global body padding from app styles */
}

.landing-header {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 10px 30px -22px rgba(2, 6, 23, 0.35);
}

.landing-header .container {
  padding-left: 0.25rem;
  padding-right: 2.75rem;
}

.landing-brand-link {
  margin-left: -0.75rem;
}

.landing-header nav {
  margin-right: -0.25rem;
}

.landing-header a,
.landing-header button {
  outline: none;
}

.landing-header a:focus-visible,
.landing-header button:focus-visible {
  box-shadow: 0 0 0 4px rgba(2, 132, 199, 0.25);
  border-radius: 14px;
}

.landing-brand-main {
  font-weight: 800;
  font-size: 1rem;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
}

.landing-brand-sub {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.landing-btn-signup {
  background: var(--primary);
  color: #fff !important;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 10px 20px rgba(2, 132, 199, 0.2);
  cursor: pointer;
}

.landing-btn-signup:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.landing-btn-login {
  color: #075985 !important;
  font-weight: 700;
  cursor: pointer;
  position: relative;
}

.landing-btn-login:hover {
  color: #0284c7 !important;
}

/* top nav links in header */
.landing-header nav a {
  position: relative;
  padding: 10px 4px;
}

.landing-header nav a::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--primary-dark), var(--accent));
  transform: translateX(-50%);
  transition: width 0.2s ease;
  opacity: 0.95;
}

.landing-header nav a:hover::after {
  width: 100%;
}

.text-gradient {
  background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ── Features & Sections ──────────────────────────── */
.section-tag {
  display: inline-block;
  padding: 8px 20px;
  background: #f0f9ff;
  color: #0369a1;
  border-radius: 50px;
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 20px;
}

.section-title {
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 2.75rem);
  color: #0f172a;
  letter-spacing: -1px;
  margin-bottom: 20px;
}

.benefit-card {
  padding: 40px;
  border-radius: 30px;
  background: white;
  height: 100%;
  border: 1px solid #e2e8f0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05);
}

.benefit-card:hover {
  border-color: #0ea5e9;
  box-shadow: 0 30px 60px -12px rgba(2, 132, 199, 0.15);
  transform: translateY(-5px);
}

.benefit-icon {
  width: 70px;
  height: 70px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 25px;
}

/* ── Animations ───────────────────────────────────── */
@keyframes float {
  0% {
    transform: translateY(0px);
  }

  50% {
    transform: translateY(-20px);
  }

  100% {
    transform: translateY(0px);
  }
}

.float-animation {
  animation: float 6s ease-in-out infinite;
}

/* ── Media Queries ────────────────────────────────── */
@media (max-width: 991px) {
  .hero-pro {
    min-height: auto;
    padding: 80px 0;
  }

  .hero-headline {
    letter-spacing: -1px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .float-animation {
    animation: none;
  }
  .badge-dot {
    animation: none;
  }
  .hero-btn-primary:hover,
  .hero-btn-outline:hover,
  .landing-btn-signup:hover {
    transform: none;
  }
}