:root {
  --ink: #17212b;
  --muted: #66727b;
  --bg: #f4f1ea;
  --panel: #fffdfa;
  --line: #d7d1c4;
  --blue: #1d6f92;
  --blue2: #8ed4df;
  --coral: #d85d48;
  --leaf: #2f8a62;
  --amber: #d59a28;
  --shadow: 0 18px 45px rgba(25, 35, 45, .13);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
}
button, input, select { font: inherit; }
a { color: inherit; }
header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(255, 253, 250, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.bar {
  max-width: 1180px;
  margin: 0 auto;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.brand { font-weight: 900; text-decoration: none; }
nav { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
nav a, .lang, .kicker {
  border: 1px solid var(--line);
  background: #fff9ed;
  border-radius: 999px;
  padding: 8px 12px;
  text-decoration: none;
}
.lang { cursor: pointer; }
.lang.active { background: var(--ink); color: white; }
main { max-width: 1180px; margin: 0 auto; padding: 28px 18px 50px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 22px;
  align-items: stretch;
  margin-bottom: 22px;
}
.hero-copy h1 {
  font-size: clamp(34px, 6vw, 66px);
  line-height: .95;
  margin: 12px 0;
  letter-spacing: 0;
  max-width: 760px;
}
.lead { font-size: 19px; color: #41515b; max-width: 760px; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.primary, .secondary {
  border-radius: 8px;
  min-height: 42px;
  padding: 10px 14px;
  font-weight: 850;
  cursor: pointer;
}
.primary { border: 0; background: var(--blue); color: white; }
.secondary { border: 1px solid var(--line); background: white; color: var(--ink); }
.tank-preview {
  position: relative;
  min-height: 330px;
  overflow: hidden;
  border: 1px solid #7db8ca;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.72), rgba(255,255,255,0) 26%),
    linear-gradient(160deg, #77d0df, #1d6f92 72%, #145a76);
  box-shadow: var(--shadow);
}
.waterline { position: absolute; inset: 34px 0 auto; height: 2px; background: rgba(255,255,255,.72); }
.bubble { position: absolute; border: 2px solid rgba(255,255,255,.8); border-radius: 50%; }
.b1 { width: 18px; height: 18px; left: 18%; top: 28%; }
.b2 { width: 11px; height: 11px; left: 27%; top: 44%; }
.b3 { width: 25px; height: 25px; right: 18%; top: 22%; }
.fish {
  position: absolute;
  width: 72px;
  height: 34px;
  border-radius: 50% 55% 55% 50%;
  background: var(--coral);
}
.fish:after {
  content: "";
  position: absolute;
  right: -18px;
  top: 7px;
  border-left: 22px solid var(--coral);
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}
.fish:before {
  content: "";
  position: absolute;
  left: 16px;
  top: 9px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10151a;
}
.fish-one { left: 42%; top: 36%; }
.fish-two { left: 18%; top: 56%; transform: scale(.72); background: #f2c94c; }
.fish-two:after { border-left-color: #f2c94c; }
.plant {
  position: absolute;
  bottom: 28px;
  width: 18px;
  height: 116px;
  background: linear-gradient(90deg, transparent 35%, var(--leaf) 36% 52%, transparent 53%);
  border-radius: 30px;
}
.plant:before, .plant:after {
  content: "";
  position: absolute;
  bottom: 26px;
  width: 42px;
  height: 82px;
  border-radius: 50%;
  border-left: 10px solid var(--leaf);
}
.plant:before { right: 6px; transform: rotate(-18deg); }
.plant:after { left: 6px; transform: rotate(18deg); }
.p1 { left: 12%; }
.p2 { right: 16%; height: 92px; }
.preview-metrics {
  position: absolute;
  inset: auto 14px 14px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.preview-metrics span {
  display: block;
  background: rgba(255,255,255,.85);
  border-radius: 8px;
  padding: 10px;
}
.preview-metrics b { display: block; font-size: 26px; }
.preview-metrics small { color: var(--muted); }
.workspace { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 18px; align-items: start; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px; box-shadow: 0 8px 24px rgba(25,35,45,.06); }
h2 { margin: 0 0 12px; font-size: 22px; }
.field { display: grid; gap: 6px; margin: 11px 0; }
.field label { font-size: 13px; font-weight: 800; color: #31414c; }
.field input, .field select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 10px;
}
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fine { color: var(--muted); font-size: 12px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tab { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 9px 12px; cursor: pointer; }
.tab.active { background: var(--blue); color: white; border-color: var(--blue); }
.view { display: none; }
.view.active { display: block; }
.score-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.metric { border: 1px solid var(--line); border-radius: 8px; background: white; padding: 12px; min-height: 124px; }
.metric b { display: block; font-size: 38px; line-height: 1; margin-bottom: 8px; }
.metric.good b { color: var(--leaf); }
.metric.mid b { color: var(--amber); }
.metric.bad b { color: var(--coral); }
.metric span { display: block; font-weight: 850; }
.metric small { color: var(--muted); }
.callout { margin-top: 12px; border-left: 5px solid var(--blue); background: #eef8fa; padding: 14px; border-radius: 8px; white-space: pre-wrap; }
.tank-map {
  display: grid;
  grid-template-columns: repeat(6, minmax(86px, 1fr));
  grid-auto-rows: 86px;
  gap: 6px;
  overflow: auto;
  padding-bottom: 4px;
}
.zone {
  border: 1px solid rgba(23,33,43,.18);
  border-radius: 8px;
  padding: 8px;
  min-width: 86px;
  display: grid;
  align-content: space-between;
  background: #e6f6f8;
}
.zone.good { background: #cfeedd; }
.zone.mid { background: #fae4aa; }
.zone.bad { background: #f5b0a2; }
.zone strong { font-size: 13px; }
.zone span { font-size: 12px; color: #394852; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 12px; }
.legend span { display: inline-flex; gap: 6px; align-items: center; }
.sw { display: inline-block; width: 18px; height: 18px; border-radius: 4px; }
.sw.good { background: #cfeedd; }
.sw.mid { background: #fae4aa; }
.sw.bad { background: #f5b0a2; }
.calendar { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.day { min-height: 116px; border: 1px solid var(--line); border-radius: 8px; background: white; padding: 10px; }
.day strong { display: block; margin-bottom: 8px; }
.tag { display: inline-block; border-radius: 999px; padding: 4px 8px; margin: 2px 2px 2px 0; font-size: 12px; background: #edf4f5; }
.tag.urgent { background: #ffe2dc; color: #833225; }
.tag.water { background: #dff2f6; }
.tag.food { background: #fff1c5; }
pre {
  white-space: pre-wrap;
  background: white;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  min-height: 240px;
}
.docgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.docgrid a { border: 1px solid var(--line); border-radius: 8px; background: white; padding: 14px; text-decoration: none; display: grid; gap: 6px; }
footer { border-top: 1px solid var(--line); padding: 24px 18px; text-align: center; color: var(--muted); }
.doc-page { max-width: 920px; }
.doc-page section { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px; margin: 14px 0; }
.doc-page p, .doc-page li { color: #40505a; }
@media (max-width: 900px) {
  .hero, .workspace { grid-template-columns: 1fr; }
  .score-grid, .docgrid { grid-template-columns: 1fr; }
  .calendar { grid-template-columns: repeat(2, 1fr); }
  .bar { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 560px) {
  .row { grid-template-columns: 1fr; }
  .calendar { grid-template-columns: 1fr; }
  .tank-preview { min-height: 280px; }
}
