:root {
  --navy: #03162f;
  --midnight: #061f3d;
  --deep-teal: #00677c;
  --cyan: #12c8c1;
  --ink: #132238;
  --muted: #637083;
  --line: #dbe5ee;
  --soft: #f5f8fb;
  --white: #ffffff;
  --success: #0f8f72;
  --danger: #bb3030;
  --shadow: 0 16px 50px rgba(3, 22, 47, 0.10);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--soft); }
a { color: var(--deep-teal); text-decoration: none; }
a:hover { color: var(--navy); }
main { min-height: calc(100vh - 154px); }

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 14px 34px;
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand { display: flex; align-items: center; gap: 12px; color: var(--navy); font-weight: 800; letter-spacing: 0; }
.brand img { height: 40px; width: auto; display: block; }
.brand-word { display: flex; flex-direction: column; line-height: 1.05; }
.brand-word small { color: var(--muted); font-size: 11px; font-weight: 600; }
nav { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-left: auto; }
nav a { color: var(--ink); padding: 9px 11px; border-radius: 8px; font-size: 14px; }
nav a.active, nav a:hover { background: #eaf6f7; color: var(--navy); }

.footer {
  padding: 28px 34px;
  color: #d5e9ef;
  background: linear-gradient(135deg, var(--navy), var(--midnight));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer img { height: 34px; filter: brightness(0) invert(1); opacity: .94; }
.footer a { color: #dffbfb; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .75fr);
  gap: 34px;
  padding: 74px 8vw 58px;
  color: white;
  background:
    linear-gradient(135deg, rgba(3,22,47,.96), rgba(0,103,124,.90)),
    url("/static/brand/eezi-mark.png") right 8vw center / min(44vw, 520px) no-repeat;
}
.hero-copy { max-width: 760px; }
.hero-logo { width: 190px; max-width: 70vw; margin-bottom: 26px; }
.eyebrow { color: #bceff0; font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .08em; }
h1 { color: inherit; margin: 0 0 14px; font-size: clamp(36px, 5vw, 68px); line-height: 1; letter-spacing: 0; }
h2 { color: var(--navy); margin: 28px 0 14px; font-size: 24px; }
h3 { color: var(--navy); margin: 0 0 8px; }
p { line-height: 1.65; }
.hero p { font-size: 19px; max-width: 700px; }
.hero-panel, .card, article, .stat, .contact-card {
  background: rgba(255,255,255,.96);
  color: var(--ink);
  border: 1px solid rgba(219,229,238,.9);
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.hero-panel { padding: 22px; align-self: end; display: grid; gap: 14px; }
.metric { padding: 16px; border-left: 3px solid var(--cyan); background: #f8fcfd; border-radius: 8px; }
.metric strong, .metric span { display: block; }
.metric span, .muted, .sub { color: var(--muted); }

.page, .band { padding: 42px min(6vw, 72px); max-width: 1280px; margin: 0 auto; width: 100%; }
.narrow { max-width: 820px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
article, .card { padding: 22px; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stat { padding: 18px; }
.stat span { display: block; color: var(--muted); font-size: 13px; }
.stat strong { display: block; color: var(--navy); font-size: 34px; margin-top: 8px; }

.btn, button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 10px 16px;
  background: var(--deep-teal);
  color: white;
  font-weight: 750;
  cursor: pointer;
}
.btn:hover, button:hover { background: var(--navy); color: white; }
.btn.ghost { background: white; color: var(--navy); }
.btn.small { min-height: 34px; padding: 7px 11px; font-size: 13px; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.pill { display: inline-flex; align-items: center; border-radius: 999px; background: #e8f8f8; color: var(--deep-teal); padding: 6px 10px; font-size: 12px; font-weight: 750; }
.score { color: var(--success); font-weight: 800; }

.auth { min-height: calc(100vh - 154px); display: grid; place-items: center; padding: 42px 20px; }
.auth .form { max-width: 440px; width: 100%; }
.auth-logo { height: 74px; width: auto; margin-bottom: 20px; }
.form { display: grid; gap: 14px; }
.gridform { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
.gridform.compact { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
label { display: grid; gap: 7px; color: var(--navy); font-weight: 700; font-size: 13px; }
input, select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--ink);
  background: white;
  font: inherit;
}
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: auto; min-height: auto; }
.toolbar { display: flex; gap: 10px; align-items: center; margin: 18px 0; }

table { width: 100%; border-collapse: collapse; margin-top: 18px; background: white; border-radius: 8px; overflow: hidden; box-shadow: var(--shadow); }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--navy); background: #edf7f8; font-size: 13px; }
.sub { display: block; font-size: 12px; margin-top: 3px; }
.review-list { display: grid; gap: 16px; }
.contact-card { padding: 18px; }
.contact-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; margin-bottom: 12px; }
.snippet { background: #f3f8fa; border-left: 3px solid var(--cyan); padding: 12px; border-radius: 8px; color: #44546a; }
.error { color: var(--danger); font-weight: 700; }
.success { padding: 12px 14px; border-radius: 8px; background: #e8fbf6; color: var(--success); border: 1px solid #b8eee0; margin: 12px 0; word-break: break-all; }
.smalltext { font-size: 13px; }
.code { background: var(--navy); color: #dffbfb; padding: 18px; border-radius: 8px; overflow: auto; }
.list p { padding: 16px; border-radius: 8px; background: white; border: 1px solid var(--line); }

@media (max-width: 940px) {
  .topbar { align-items: flex-start; flex-direction: column; padding: 14px 18px; }
  nav { margin-left: 0; }
  .hero, .grid2, .grid3, .stats { grid-template-columns: 1fr; }
  .hero { padding: 46px 22px; background-size: 70vw; }
  .gridform, .gridform.compact { grid-template-columns: 1fr; }
  .toolbar { align-items: stretch; flex-direction: column; }
  table { display: block; overflow-x: auto; }
}

