
:root {
  --navy: #071c2c;
  --navy-soft: #0d2d43;
  --blue: #1396c8;
  --aqua: #48c5d8;
  --mist: #eaf7fa;
  --white: #ffffff;
  --ink: #0d2535;
  --muted: #657986;
  --line: rgba(13, 45, 67, .11);
  --green: #178863;
  --red: #c64d4d;
  --shadow: 0 28px 70px rgba(3, 31, 48, .16);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  background:
    radial-gradient(circle at 80% 4%, rgba(72,197,216,.23), transparent 30rem),
    linear-gradient(180deg, #f5fbfc 0%, #eaf5f7 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background-image: url("data:image/svg+xml,%3Csvg width='160' height='80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 45 Q20 28 40 45 T80 45 T120 45 T160 45' fill='none' stroke='%231396c8' stroke-width='1'/%3E%3C/svg%3E");
  mask-image: linear-gradient(to bottom, transparent 0%, black 35%, black 100%);
}

.page-shell {
  position: relative;
  width: min(1100px, calc(100% - 36px));
  margin: 0 auto;
}

header {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Manrope", sans-serif;
  font-size: 19px;
  font-weight: 700;
}

.brand strong { color: var(--blue); }

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: var(--white);
  border-radius: 14px;
  background: linear-gradient(145deg, var(--blue), var(--aqua));
  box-shadow: 0 10px 24px rgba(19,150,200,.28);
}

.brand-mark svg { width: 28px; fill: currentColor; stroke: currentColor; stroke-width: 2; }

.refresh-button {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.72);
  color: var(--navy);
  padding: 10px 15px;
  border-radius: 12px;
  font: 600 14px "DM Sans", sans-serif;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.refresh-button:hover { background: #fff; }
.refresh-button svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.refresh-button.spinning svg { animation: spin .8s linear infinite; }

.hero { padding: 72px 0 34px; max-width: 680px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 99px;
  background: var(--aqua);
  box-shadow: 0 0 0 6px rgba(72,197,216,.15);
}

h1 {
  margin: 16px 0 13px;
  color: var(--navy);
  font: 800 clamp(38px, 7vw, 66px)/1.02 "Manrope", sans-serif;
  letter-spacing: -.045em;
}

.hero p {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.65;
}

.dashboard-card {
  position: relative;
  overflow: hidden;
  padding: clamp(24px, 5vw, 52px);
  color: var(--white);
  border-radius: 30px;
  background:
    radial-gradient(circle at 92% 16%, rgba(72,197,216,.27), transparent 25rem),
    linear-gradient(145deg, #071c2c 0%, #0b3148 100%);
  box-shadow: var(--shadow);
}

.dashboard-card::after {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 430px;
  height: 220px;
  opacity: .13;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 500 250' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 120 Q65 50 130 120 T260 120 T390 120 T520 120' fill='none' stroke='white' stroke-width='16'/%3E%3Cpath d='M0 180 Q65 110 130 180 T260 180 T390 180 T520 180' fill='none' stroke='white' stroke-width='16'/%3E%3C/svg%3E") center/contain no-repeat;
}

.status-row, .level-block, .pool-meter, .stats-grid { position: relative; z-index: 1; }

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 11px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(72,197,216,.16);
  color: #9ce7f1;
}

.status-pill.error { color: #ffd1d1; background: rgba(198,77,77,.17); }
.reported-time { font-size: 13px; color: rgba(255,255,255,.58); }

.level-block { margin: 34px 0 40px; }
.level-number {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  font: 800 clamp(64px, 13vw, 116px)/.9 "Manrope", sans-serif;
  letter-spacing: -.065em;
}
.level-unit {
  padding-bottom: 12px;
  color: rgba(255,255,255,.55);
  font: 600 clamp(14px, 2.5vw, 20px) "DM Sans", sans-serif;
  letter-spacing: 0;
}
.trend { margin-top: 20px; font-weight: 700; }
.trend.up { color: #79e1bc; }
.trend.down { color: #ffaaa6; }
.trend.neutral { color: rgba(255,255,255,.62); }

.pool-meter { margin-bottom: 34px; }
.meter-labels {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: rgba(255,255,255,.62);
  font-size: 12px;
}
.meter-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,.12);
}
.meter-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), #67d9e5);
  transition: width 1s cubic-bezier(.2,.8,.2,1);
}
.full-pool-marker {
  position: absolute;
  right: 0;
  top: -2px;
  width: 3px;
  height: 14px;
  border-radius: 3px;
  background: white;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid rgba(255,255,255,.12);
}
.stat { padding: 25px 24px 0 0; }
.stat + .stat { padding-left: 28px; border-left: 1px solid rgba(255,255,255,.12); }
.stat-label { display: block; margin-bottom: 8px; color: rgba(255,255,255,.55); font-size: 12px; }
.stat strong { display: block; font: 700 25px "Manrope", sans-serif; }
.stat > span:last-child { color: rgba(255,255,255,.48); font-size: 12px; }

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  padding: 48px 8px 65px;
}
.info-row h2 { margin: 0 0 8px; font: 700 19px "Manrope", sans-serif; }
.info-row p { max-width: 690px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.source-link {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 7px;
  align-self: center;
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
}
.source-link svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }

footer {
  display: flex;
  justify-content: space-between;
  padding: 25px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

@keyframes spin { to { transform: rotate(360deg); } }
/* Boat ramps section */

.ramps-section {
  padding: 58px 8px 24px;
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 22px;
}

.section-eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font: 800 clamp(28px, 5vw, 42px) / 1.1 "Manrope", sans-serif;
  letter-spacing: -0.035em;
}

.section-heading p {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.ramps-summary {
  margin-bottom: 18px;
  padding: 14px 17px;
  color: var(--navy-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 600;
}

.ramps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ramp-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 14px 35px rgba(3, 31, 48, 0.07);
}

.ramp-card-top {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
}

.ramp-status-icon {
  display: grid;
  place-items: center;
  width: 27px;
  height: 27px;
  border-radius: 999px;
  font-weight: 800;
}

.ramp-status {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ramp-open {
  border-color: rgba(23, 136, 99, 0.18);
}

.ramp-open .ramp-status-icon {
  color: #fff;
  background: var(--green);
}

.ramp-open .ramp-status {
  color: var(--green);
}

.ramp-closed {
  border-color: rgba(198, 77, 77, 0.18);
}

.ramp-closed .ramp-status-icon {
  color: #fff;
  background: var(--red);
}

.ramp-closed .ramp-status {
  color: var(--red);
}

.ramp-card h3 {
  margin: 0 0 4px;
  color: var(--navy);
  font: 700 19px "Manrope", sans-serif;
}

.ramp-operator {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.ramp-details {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.ramp-details span {
  color: var(--muted);
}

.ramp-details strong {
  color: var(--ink);
}

.ramp-special {
  margin: 14px 0 0;
  padding: 11px 12px;
  color: var(--muted);
  border-radius: 10px;
  background: var(--mist);
  font-size: 12px;
  line-height: 1.5;
}

.ramps-disclaimer {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
@media (max-width: 650px) {
  .page-shell { width: min(100% - 24px, 1100px); }
  header { height: 76px; }
  .refresh-button span { display: none; }
  .refresh-button { padding: 10px; }
  .hero { padding: 48px 4px 26px; }
  .dashboard-card { border-radius: 24px; }
  .status-row { align-items: flex-start; flex-direction: column; }
  .level-number { gap: 8px; }
  .level-unit { padding-bottom: 7px; }
  .meter-labels span:first-child { display: none; }
  .meter-labels { justify-content: flex-end; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat { padding: 20px 0; display: grid; grid-template-columns: 1fr auto; align-items: center; }
  .stat + .stat { padding-left: 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.1); }
  .stat-label { margin: 0; }
  .stat strong { font-size: 20px; }
  .stat > span:last-child { grid-column: 2; }
  .info-row { flex-direction: column; padding: 36px 6px 48px; }
  .source-link { align-self: flex-start; }
}
