:root {
  --sea-900: #062a3d;
  --sea-700: #0b4f6c;
  --sea-500: #1583a8;
  --sea-100: #e3f3f8;
  --sand: #f7f3ea;
  --ink: #12232e;
  --muted: #5b6f7a;
  --ok: #1f9d6b;
  --warn: #d9900f;
  --bad: #c8412f;
  --radius: 14px;
  --max: 1100px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; line-height: 1.55; }
a { color: var(--sea-500); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.01em; }
h3 { font-size: 1.1rem; }

.topbar {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .75rem clamp(1rem, 4vw, 2.5rem);
  background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid #e6edf0;
}
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--sea-900); font-weight: 700; font-size: 1.15rem; }
.brand b { color: var(--sea-500); }
nav { display: flex; align-items: center; gap: 1.25rem; }
nav a { text-decoration: none; color: var(--ink); font-size: .95rem; }
nav a:hover { color: var(--sea-500); }
.lang { border: 1px solid #cfdde3; background: #fff; border-radius: 999px; padding: .3rem .7rem; font-weight: 600; cursor: pointer; color: var(--sea-700); }
@media (max-width: 720px) { nav a { display: none; } }

.hero {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: center;
  max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 8vw, 6rem) clamp(1rem, 4vw, 2.5rem);
}
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .8rem; font-weight: 700; color: var(--sea-500); margin: 0 0 .75rem; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.cta { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1.5rem; }
.btn {
  display: inline-block; padding: .75rem 1.25rem; border-radius: 999px; text-decoration: none; font-weight: 600;
  border: 1.5px solid var(--sea-700); color: var(--sea-700); background: #fff;
}
.btn.primary { background: var(--sea-700); color: #fff; }
.btn:hover { filter: brightness(1.08); }

.hero-card {
  background: linear-gradient(160deg, var(--sea-700), var(--sea-900));
  border-radius: 24px; padding: 1.75rem; color: #fff; box-shadow: 0 20px 50px rgba(6,42,61,.25);
}
.reading { display: flex; flex-direction: column; }
.reading .place { font-weight: 600; opacity: .85; }
.reading .temp { font-size: 4.5rem; font-weight: 700; line-height: 1; margin: .25rem 0; }
.reading .sub { opacity: .7; margin-bottom: 1rem; }
.reading .row { display: flex; justify-content: space-between; padding: .55rem 0; border-top: 1px solid rgba(255,255,255,.15); }
.reading .row.muted { opacity: .7; font-size: .9rem; }
.ok { color: #7ee0b5; }
.demo-note { margin: 1rem 0 0; font-size: .8rem; opacity: .6; }

.section { max-width: var(--max); margin: 0 auto; padding: clamp(2.5rem, 6vw, 4.5rem) clamp(1rem, 4vw, 2.5rem); }
.section > p { color: var(--muted); max-width: 42em; font-size: 1.05rem; }

.map-wrap { position: relative; margin-top: 1.5rem; }
#buoymap { height: min(70vh, 560px); border-radius: var(--radius); border: 1px solid #dbe6ea; }
.map-badge {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 500;
  background: rgba(255,255,255,.95); padding: .35rem .8rem; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--muted);
  box-shadow: 0 2px 8px rgba(0,0,0,.12); white-space: nowrap;
}
.buoy-dot {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: .72rem; font-weight: 700; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3);
}
.popup h4 { margin: 0 0 .35rem; font-size: 1rem; }
.popup .big { font-size: 1.8rem; font-weight: 700; color: var(--sea-700); }
.popup table { width: 100%; border-collapse: collapse; font-size: .9rem; margin-top: .35rem; }
.popup td { padding: .2rem 0; }
.popup td:last-child { text-align: right; font-weight: 600; }

.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.feature { background: var(--sand); border-radius: var(--radius); padding: 1.4rem; }
.feature p { margin: 0; color: var(--muted); }
.feature .icon { font-size: 1.6rem; margin-bottom: .5rem; }

#who .feature { background: var(--sea-100); }

.open { text-align: center; }
.open > p { margin: 0 auto; }

.contact { text-align: center; background: var(--sand); max-width: none; }
.contact > p { margin: 0 auto 1.5rem; }

.footer {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  padding: 1.5rem clamp(1rem, 4vw, 2.5rem); font-size: .85rem; color: var(--muted); border-top: 1px solid #e6edf0;
}
