:root {
  --navy: #07111f;
  --blue: #2563eb;
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --green: #16a34a;
  --amber: #d97706;
  --white: #ffffff;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, textarea, select { font: inherit; }
button {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}
button:hover { border-color: #bfdbfe; background: #eff6ff; }
button.disabled {
  opacity: .65;
  cursor: not-allowed;
}
button.disabled:hover {
  border-color: var(--line);
  background: var(--white);
}
h1, h2, h3, p { margin-top: 0; }
p, li { color: var(--muted); line-height: 1.65; }
input, textarea, select {
  width: 100%;
  min-height: 44px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--text);
}
textarea { min-height: 150px; resize: vertical; }
label { display: grid; gap: 8px; margin: 14px 0; font-weight: 800; }
article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 45px rgba(15, 23, 42, .07);
}
.primary {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}
.small { width: auto; }
.full { width: 100%; }
.muted { color: var(--muted); }
.note {
  padding: 14px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a8a;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
}
.brand span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
}
.site-nav {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 252, .92);
  backdrop-filter: blur(12px);
}
.site-nav div, .actions, .top-actions, .chips { display: flex; flex-wrap: wrap; gap: 10px; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  gap: clamp(28px, 6vw, 72px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: clamp(52px, 9vw, 110px) clamp(20px, 5vw, 72px);
  background:
    linear-gradient(90deg, rgba(7, 17, 31, .94), rgba(7, 17, 31, .72)),
    url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1800&q=80") center / cover;
  color: var(--white);
}
.hero h1 {
  max-width: 850px;
  font-size: clamp(2.5rem, 6vw, 5.7rem);
  line-height: .98;
}
.hero p { max-width: 720px; color: #dbeafe; font-size: 1.12rem; }
.pill {
  display: inline-flex;
  padding: 7px 11px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  font-weight: 800;
}
.glass {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.12);
  color: var(--white);
  backdrop-filter: blur(18px);
}
.hero-number { display: block; margin: 8px 0 22px; font-size: 3rem; }
.section { padding: 72px clamp(20px, 5vw, 72px); }
.section > h2, .section > .lead { max-width: 760px; }
.section h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); }
.white { background: var(--white); }
.grid { display: grid; gap: 18px; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.step {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 8px;
  background: var(--navy);
  color: var(--white);
  font-weight: 900;
}
.login {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
  background: linear-gradient(135deg, var(--navy), #1e293b);
}
.login-card { width: min(470px, 100%); }
.app { display: grid; min-height: 100vh; grid-template-columns: 270px 1fr; }
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 22px 16px;
  overflow: auto;
  background: var(--navy);
  color: var(--white);
}
.sidebar .brand { margin-bottom: 24px; }
.sidebar .brand span { background: var(--blue); }
.sidebar nav { display: grid; gap: 7px; }
.sidebar nav button {
  justify-content: flex-start;
  border-color: transparent;
  background: transparent;
  color: #cbd5e1;
  text-align: left;
}
.sidebar nav button.active, .sidebar nav button:hover { background: rgba(255,255,255,.09); color: var(--white); }
.side-note {
  margin-top: 28px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  color: #cbd5e1;
}
.top {
  position: sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
  background: rgba(248, 250, 252, .92);
  backdrop-filter: blur(12px);
}
.top h1 { margin-bottom: 4px; font-size: 1.35rem; }
.top p { margin-bottom: 0; }
.content { padding: 26px; }
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.metrics article span {
  display: block;
  color: var(--muted);
  font-size: .86rem;
  font-weight: 800;
}
.metrics article strong {
  display: block;
  margin: 12px 0 4px;
  font-size: 1.65rem;
}
.metrics article em {
  color: var(--green);
  font-style: normal;
  font-weight: 800;
}
.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  gap: 18px;
  margin-top: 18px;
}
.stack { display: grid; gap: 16px; }
.insight { background: linear-gradient(135deg, #eff6ff, var(--white)); }
.badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: .78rem;
  font-weight: 900;
}
.badge.good { background: #dcfce7; color: #166534; }
.badge.warn { background: #fef3c7; color: #92400e; }
.card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.tabs button.active { border-color: #bfdbfe; background: #eff6ff; color: var(--blue); }
.bars { display: grid; gap: 12px; }
.bars div {
  display: grid;
  grid-template-columns: 100px 1fr 42px;
  align-items: center;
  gap: 12px;
  color: inherit;
  font-weight: 800;
}
.bars i {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e2e8f0;
}
.glass .bars i { background: rgba(255,255,255,.18); }
.bars b { display: block; height: 100%; border-radius: 999px; background: #60a5fa; }
.chart {
  display: flex;
  align-items: end;
  gap: 12px;
  height: 250px;
  padding-top: 28px;
}
.chart span {
  flex: 1;
  min-width: 22px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(#60a5fa, var(--blue));
}
.price {
  display: block;
  margin: 18px 0;
  font-size: 2.2rem;
}
.price small { color: var(--muted); font-size: 1rem; }

@media (max-width: 1060px) {
  .hero, .split { grid-template-columns: 1fr; }
  .three, .four, .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; }
  .top, .site-nav { align-items: stretch; flex-direction: column; }
  .top-actions, .site-nav div, .actions { width: 100%; }
  .top-actions button, .site-nav button, .actions button { flex: 1 1 180px; }
  .content { padding: 18px; }
  .hero { min-height: auto; }
}
@media (max-width: 560px) {
  .two, .three, .four, .metrics, .compact { grid-template-columns: 1fr; }
  .section, .hero { padding-left: 18px; padding-right: 18px; }
  .hero h1 { font-size: 2.45rem; }
  .bars div { grid-template-columns: 82px 1fr 36px; font-size: .9rem; }
}
