* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --ink: #102b2c;
  --muted: #5f7475;
  --blue: #1597d3;
  --blue-dark: #075d8f;
  --green: #15b66d;
  --green-dark: #087748;
  --aqua: #dff9ff;
  --mint: #eafff4;
  --white: #ffffff;
  --shadow: 0 26px 70px rgba(7, 93, 143, 0.16);
}

body {
  min-height: 100vh;
  color: var(--ink);
  font-family: "Outfit", Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(21, 151, 211, 0.25), transparent 28%),
    radial-gradient(circle at 85% 12%, rgba(21, 182, 109, 0.28), transparent 30%),
    linear-gradient(135deg, #f7fdff 0%, #e8fff4 48%, #ffffff 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
}

body::before {
  width: 420px;
  height: 420px;
  left: -160px;
  top: 240px;
  background: rgba(21, 151, 211, 0.12);
  animation: drift 9s ease-in-out infinite;
}

body::after {
  width: 300px;
  height: 300px;
  right: -90px;
  bottom: 70px;
  background: rgba(21, 182, 109, 0.14);
  animation: drift 11s ease-in-out infinite reverse;
}

button,
input,
select {
  font: inherit;
}

.page-shell {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  min-height: 620px;
  padding: 28px;
  border-radius: 28px;
  color: var(--white);
  background:
    linear-gradient(110deg, rgba(7, 60, 80, 0.88), rgba(5, 102, 74, 0.58)),
    url("https://images.unsplash.com/photo-1558449028-b53a39d100fc?auto=format&fit=crop&w=1800&q=80");
  background-position: center;
  background-size: cover;
  box-shadow: var(--shadow);
}

.hero-panel::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  right: -170px;
  top: -170px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  animation: pulseRing 5s ease-in-out infinite;
}

.hero-panel::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: 18%;
  bottom: 40px;
  border-radius: 42% 58% 63% 37% / 42% 43% 57% 58%;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(5px);
  animation: waterBlob 7s ease-in-out infinite;
}

.brand-bar,
.hero-grid {
  position: relative;
  z-index: 1;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: inherit;
  text-decoration: none;
}

.logo-mark {
  position: relative;
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: linear-gradient(135deg, #65ddff, #8dff93);
  color: #06313b;
  font-size: 32px;
  font-weight: 900;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  transform: rotate(-7deg);
}

.logo-drop {
  position: absolute;
  width: 18px;
  height: 26px;
  top: -9px;
  right: 7px;
  border-radius: 60% 60% 60% 0;
  background: #f8feff;
  transform: rotate(45deg);
}

.brand-name {
  display: block;
  font-size: clamp(25px, 4vw, 36px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.2px;
}

.brand-line {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  font-weight: 600;
  opacity: 0.88;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.75fr);
  gap: 36px;
  align-items: end;
  min-height: 500px;
  padding-top: 60px;
}

.intro {
  max-width: 700px;
  animation: riseIn 0.8s ease both;
}

.eyebrow,
.section-kicker {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  padding: 10px 15px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
}

.intro h1 {
  max-width: 780px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(46px, 7vw, 82px);
  line-height: 0.98;
  letter-spacing: 0;
}

.intro p {
  max-width: 630px;
  margin-top: 24px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.7;
  opacity: 0.94;
}

.calculator-card {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(18px);
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.22);
  animation: floatUp 0.9s ease 0.1s both;
}

.form-grid {
  display: grid;
  gap: 18px;
}

label {
  display: grid;
  gap: 9px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 800;
}

select,
input {
  width: 100%;
  min-height: 54px;
  border: 0;
  border-radius: 16px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
  outline: 3px solid transparent;
  box-shadow: inset 0 0 0 1px rgba(16, 43, 44, 0.06);
  transition: outline-color 0.2s ease, transform 0.2s ease;
}

select:focus,
input:focus {
  outline-color: rgba(101, 221, 255, 0.7);
  transform: translateY(-1px);
}

.calculate-btn {
  width: 100%;
  min-height: 56px;
  margin-top: 20px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, #13a7e5, #16ca77);
  color: var(--white);
  cursor: pointer;
  font-weight: 900;
  box-shadow: 0 18px 38px rgba(6, 59, 69, 0.28);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.calculate-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(6, 59, 69, 0.34);
}

.results-section {
  display: grid;
  gap: 24px;
  margin-top: 28px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.stat-card,
.bar-card,
.punch-card {
  border: 1px solid rgba(14, 112, 121, 0.09);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 48px rgba(7, 93, 143, 0.11);
}

.stat-card {
  padding: 25px;
  position: relative;
  overflow: hidden;
  animation: statIn 0.55s ease both;
}

.stat-card::after {
  content: "";
  position: absolute;
  width: 100px;
  height: 100px;
  right: -26px;
  top: -28px;
  border-radius: 50%;
  opacity: 0.13;
}

.soil-card::after {
  background: var(--blue-dark);
}

.hydro-card::after,
.saved-card::after {
  background: var(--green);
}

.stat-card span {
  color: var(--muted);
  font-weight: 800;
}

.stat-card strong {
  display: block;
  margin-top: 12px;
  color: var(--blue-dark);
  font-size: clamp(31px, 4.5vw, 48px);
  line-height: 1;
}

.hydro-card strong,
.saved-card strong {
  color: var(--green-dark);
}

.bar-card {
  padding: 28px;
}

.bar-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-kicker {
  color: var(--green);
  margin-bottom: 5px;
}

.bar-heading h2 {
  font-family: "Playfair Display", Georgia, serif;
  color: #0b3945;
  font-size: clamp(30px, 4vw, 46px);
}

.bar-heading p:last-child {
  max-width: 380px;
  color: var(--muted);
  line-height: 1.5;
}

.bar-row {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 18px;
  align-items: center;
}

.bar-row + .bar-row {
  margin-top: 18px;
}

.bar-label {
  display: grid;
  gap: 4px;
}

.bar-label strong {
  font-size: 18px;
}

.bar-label span {
  color: var(--muted);
  font-weight: 800;
}

.bar-track {
  height: 44px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9f5f7;
  box-shadow: inset 0 0 0 1px rgba(7, 93, 143, 0.06);
}

.bar-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  transition: width 0.8s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.soil-fill {
  background: linear-gradient(135deg, #0f78b8, #60c9ff);
}

.hydro-fill {
  background: linear-gradient(135deg, #0b965a, #74e690);
}

.punch-card {
  padding: 28px;
  background: linear-gradient(135deg, #0b6f95, #0ba761);
  color: var(--white);
  overflow: hidden;
  position: relative;
}

.punch-card::after {
  content: "";
  position: absolute;
  width: 210px;
  height: 210px;
  right: -80px;
  top: -80px;
  border-radius: 42% 58% 63% 37% / 42% 43% 57% 58%;
  background: rgba(255, 255, 255, 0.14);
  animation: waterBlob 6s ease-in-out infinite;
}

.punch-card p {
  position: relative;
  z-index: 1;
  max-width: 900px;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  line-height: 1.12;
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes floatUp {
  from {
    opacity: 0;
    transform: translateY(34px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes statIn {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drift {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(24px, -20px, 0);
  }
}

@keyframes pulseRing {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.08);
    opacity: 0.42;
  }
}

@keyframes waterBlob {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    border-radius: 42% 58% 63% 37% / 42% 43% 57% 58%;
  }
  50% {
    transform: translateY(-18px) rotate(8deg);
    border-radius: 58% 42% 39% 61% / 58% 55% 45% 42%;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    align-items: start;
    min-height: auto;
  }

  .calculator-card {
    max-width: 540px;
  }
}

@media (max-width: 620px) {
  .page-shell {
    width: min(100% - 24px, 1180px);
    padding-top: 12px;
  }

  .hero-panel {
    min-height: auto;
    padding: 22px;
    border-radius: 22px;
  }

  .logo-mark {
    width: 54px;
    height: 54px;
    border-radius: 17px;
    font-size: 28px;
  }

  .brand-line {
    max-width: 190px;
  }

  .intro h1 {
    font-size: 43px;
  }

  .intro p {
    font-size: 17px;
  }

  .bar-heading,
  .bar-row {
    grid-template-columns: 1fr;
  }

  .bar-heading {
    display: grid;
    align-items: start;
  }

  .bar-track {
    height: 38px;
  }
}