:root {
  --bg: #f8fbfd;
  --paper: #ffffff;
  --paper-2: #fbfdff;
  --ink: #0d1b2f;
  --muted: #607089;
  --soft: #8da0b7;
  --line: #dbe5ef;
  --line-2: #c7d5e5;
  --blue: #0b77b7;
  --cyan: #24a8d8;
  --teal: #16a085;
  --green: #2fb86f;
  --warn: #e6a23c;
  --shadow: 0 18px 45px rgba(28, 51, 84, .08);
  --mono: "IBM Plex Mono", "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    linear-gradient(rgba(15, 103, 160, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 103, 160, .035) 1px, transparent 1px),
    radial-gradient(circle at 82% 12%, rgba(36, 168, 216, .11), transparent 34%),
    var(--bg);
  background-size: 28px 28px, 28px 28px, auto, auto;
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.48;
}

a {
  color: var(--blue);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.shell {
  max-width: 1360px;
  margin: 0 auto;
  background: rgba(255,255,255,.86);
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  min-height: 100vh;
}

.topbar {
  height: 64px;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 0 28px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.88);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  width: 42px;
  height: 42px;
}

.brand-title {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.02em;
}

.brand-sub {
  color: var(--muted);
  font-size: 11px;
  margin-top: -2px;
}

.nav {
  display: flex;
  gap: 26px;
  flex: 1;
  justify-content: center;
  font-size: 14px;
  font-weight: 650;
}

.nav a {
  color: #172944;
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 8px 12px;
  color: #33475f;
  font-size: 13px;
  background: #fff;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  display: inline-block;
}

.icon-button {
  width: 38px;
  height: 38px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: #fff;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 560px;
  gap: 30px;
  padding: 34px 42px 22px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.kicker {
  font-family: var(--mono);
  color: var(--teal);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 13px;
  font-weight: 800;
}

h1 {
  margin: 18px 0 16px;
  font-size: clamp(42px, 4.6vw, 68px);
  line-height: 1.03;
  letter-spacing: -.045em;
}

.lead {
  max-width: 720px;
  color: #42536a;
  font-size: 18px;
}

.hero-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 24px 0 0;
}

.hero-links a {
  font-weight: 700;
}

.feature-row {
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.feature-mini {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 118px;
}

.feature-mini svg {
  width: 25px;
  height: 25px;
  color: var(--blue);
}

.feature-mini strong {
  display: block;
  color: var(--blue);
}

.feature-mini span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.blueprint {
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 300px;
}

.section {
  padding: 14px 42px;
}

.panel {
  background: rgba(255,255,255,.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.panel-flat {
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
  padding: 13px 16px 9px;
  border-bottom: 1px solid var(--line);
}

.panel-title .live {
  margin-left: 14px;
  color: var(--muted);
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  font-size: 12px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 9px;
  padding: 12px;
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  background: var(--paper);
  min-height: 80px;
}

.metric-label {
  color: #496079;
  font-size: 12px;
  font-weight: 700;
}

.metric-value {
  font-size: 26px;
  color: var(--blue);
  font-weight: 850;
  letter-spacing: -.03em;
  margin-top: 4px;
}

.metric-sub {
  color: var(--muted);
  font-size: 11px;
}

.spark {
  width: 100%;
  height: 22px;
  margin-top: 4px;
}

.grid-main {
  display: grid;
  grid-template-columns: 1.18fr .92fr;
  gap: 12px;
}

.card-body {
  padding: 14px 16px 16px;
}

.sub {
  color: var(--muted);
  font-size: 13px;
  margin-top: -3px;
}

.tabs {
  display: flex;
  gap: 22px;
  font-size: 12px;
  margin: 14px 0 8px;
}

.tabs a {
  color: #3b536e;
}

.tabs a.active {
  color: var(--blue);
  font-weight: 800;
  border-bottom: 2px solid var(--cyan);
}

.chart {
  width: 100%;
  min-height: 190px;
  border-radius: 6px;
}

.env-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin: 12px 0;
}

.env-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #fff;
}

.env-card strong {
  display: block;
  font-size: 23px;
  color: var(--ink);
  margin-top: 4px;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.table th {
  color: var(--soft);
  text-align: left;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
}

.table td {
  padding: 7px 0;
  border-bottom: 1px solid #edf3f8;
  color: #344961;
}

.lower-grid {
  display: grid;
  grid-template-columns: 1fr 1fr .9fr .9fr;
  gap: 12px;
}

.media-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.thumb {
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  background: #fff;
}

.thumb svg {
  display: block;
  width: 100%;
  height: 116px;
}

.caption {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px;
  color: var(--muted);
  font-size: 11px;
}

.file-list, .doc-list, .status-list {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}

.row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 9px;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #edf3f8;
  font-size: 12px;
  color: #344961;
}

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

.row .ok {
  color: var(--green);
}

.footer {
  margin-top: 20px;
  padding: 22px 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.footer a {
  margin-left: 28px;
}

@media (max-width: 1000px) {
  .hero, .grid-main, .lower-grid { grid-template-columns: 1fr; }
  .overview-grid { grid-template-columns: repeat(2, 1fr); }
  .nav { display: none; }
}


/* legal/contact/login pages */
.page-wrap {
  padding: 44px 42px 64px;
  max-width: 1080px;
  margin: 0 auto;
}

.page-card {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  padding: 30px;
}

.page-card h1 {
  font-size: clamp(36px, 4vw, 54px);
  margin-top: 8px;
}

.page-card h2 {
  margin-top: 30px;
  font-size: 22px;
}

.page-card p,
.page-card li {
  color: #42536a;
  font-size: 15px;
}

.legal-list {
  display: grid;
  gap: 10px;
  padding-left: 20px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 22px;
  align-items: start;
}

.map-frame {
  width: 100%;
  height: 360px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: #eef5fb;
}

.map-frame iframe {
  border: 0;
  width: 100%;
  height: 100%;
}

.email-img {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  margin-top: 8px;
}

.login-link {
  color: #172944;
  font-size: 13px;
  font-weight: 700;
  margin-left: auto;
  margin-right: 4px;
}

.login-card {
  max-width: 460px;
  margin: 34px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 24px;
}

.login-card label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 16px 0 7px;
}

.login-card input {
  width: 100%;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  padding: 12px 13px;
  font: inherit;
  background: #fbfdff;
  color: var(--ink);
}

.login-card button {
  margin-top: 20px;
  width: 100%;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  padding: 13px 16px;
  cursor: pointer;
}

.login-note {
  color: var(--muted);
  font-size: 12px;
  margin-top: 14px;
}

@media (max-width: 800px) {
  .contact-grid { grid-template-columns: 1fr; }
}
