:root {
  --bg: #0b1726;
  --bg-2: #142233;
  --text: #e6edf3;
  --muted: rgba(230, 237, 243, 0.65);
  --blue-1: #1f3a93;
  --blue-2: #3274d9;
  --green-1: #2e5d2c;
  --green-2: #56a64b;
  --card-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  --card-shadow-hover: 0 10px 28px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  min-height: 100vh;
}

body { display: flex; flex-direction: column; }

/* ---------- top nav bar (on dashboard pages) ---------- */
.nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px clamp(12px, 3vw, 24px);
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: wrap;
}

.nav .brand {
  font-weight: 700;
  letter-spacing: -0.3px;
  font-size: clamp(14px, 2.5vw, 16px);
  margin-right: auto;
  color: var(--text);
  text-decoration: none;
}
.nav .brand:hover { opacity: 0.85; }

.nav a.link {
  color: var(--muted);
  text-decoration: none;
  font-size: clamp(13px, 2vw, 14px);
  padding: 6px 12px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}
.nav a.link:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.nav a.link.active { color: var(--text); background: rgba(255, 255, 255, 0.08); }

/* ---------- landing page ---------- */
.landing {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(20px, 5vw, 48px);
  gap: clamp(20px, 4vw, 36px);
}

.landing h1 {
  margin: 0;
  font-size: clamp(24px, 5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.5px;
  text-align: center;
}
.landing .subtitle {
  margin: 0;
  color: var(--muted);
  font-size: clamp(13px, 2vw, 15px);
  text-align: center;
  max-width: 520px;
  line-height: 1.5;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: clamp(16px, 3vw, 24px);
  width: 100%;
  max-width: 920px;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: #fff;
  padding: clamp(28px, 5vw, 48px);
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  min-height: 200px;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}
.card.tides  { background: linear-gradient(135deg, var(--blue-1),  var(--blue-2));  }
.card.river  { background: linear-gradient(135deg, var(--green-1), var(--green-2)); }

.card .icon {
  font-size: clamp(48px, 9vw, 72px);
  line-height: 1;
  margin-bottom: clamp(10px, 2vw, 18px);
}
.card .title {
  font-size: clamp(20px, 3.5vw, 28px);
  font-weight: 700;
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.card .desc {
  margin-top: clamp(6px, 1.5vw, 12px);
  font-size: clamp(12px, 1.8vw, 14px);
  opacity: 0.85;
  max-width: 320px;
  line-height: 1.45;
  font-weight: 400;
}

/* ---------- dashboard pages ---------- */
.dash-page {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.dash-frame {
  flex: 1;
  width: 100%;
  border: 0;
  background: var(--bg-2);
  min-height: calc(100vh - 60px);
}

footer {
  padding: 10px 20px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}
footer a { color: var(--muted); }
