:root {
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #101828;
  --muted: #667085;
  --line: #e5e7eb;
  --blue: #1d4ed8;
  --blue2: #2563eb;
  --green: #16a34a;
  --red: #dc2626;
  --amber: #f59e0b;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: var(--blue); text-decoration: none; }
.container { width: min(1160px, calc(100% - 32px)); margin: 0 auto; }
.header {
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.nav { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { font-size: 24px; font-weight: 800; letter-spacing: -.03em; color: #0f172a; }
.logo span { color: var(--blue2); }
.navlinks { display: flex; gap: 24px; color: var(--muted); font-size: 15px; }
.navlinks a { color: var(--muted); }
.actions { display: flex; gap: 12px; align-items: center; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
}
.btn-primary { background: var(--blue2); color: #fff; }
.btn-light { background: #fff; color: var(--blue); border-color: #dbe4ff; }
.hero { padding: 78px 0 54px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 44px; align-items: center; }
.kicker { color: var(--blue); font-weight: 800; margin-bottom: 16px; }
h1 { font-size: clamp(38px, 5vw, 62px); line-height: 1.02; margin: 0 0 22px; letter-spacing: -.055em; }
.lead { color: var(--muted); font-size: 20px; line-height: 1.55; margin-bottom: 30px; }
.hero-card, .card {
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 18px 60px rgba(15,23,42,.08);
  border-radius: 24px;
}
.hero-card { padding: 22px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 18px; }
.stat { padding: 18px; border-radius: 18px; background: #f8fafc; border: 1px solid #eef2f7; }
.stat b { font-size: 30px; display: block; margin-top: 6px; }
.status { display: inline-flex; border-radius: 999px; padding: 6px 10px; font-size: 13px; font-weight: 700; }
.ok { background: #dcfce7; color: #166534; }
.wait { background: #fef3c7; color: #92400e; }
.err { background: #fee2e2; color: #991b1b; }
.table { width: 100%; border-collapse: collapse; overflow: hidden; font-size: 14px; }
.table th, .table td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); }
.table th { color: var(--muted); font-size: 12px; font-weight: 700; }
.section { padding: 64px 0; }
.section h2 { font-size: 38px; letter-spacing: -.04em; margin: 0 0 16px; }
.section p { color: var(--muted); line-height: 1.55; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.feature { padding: 24px; }
.feature .icon { width: 44px; height: 44px; border-radius: 14px; background: #eff6ff; color: var(--blue); display:flex; align-items:center; justify-content:center; font-weight:900; margin-bottom: 16px; }
.feature h3 { margin: 0 0 10px; font-size: 20px; }
.cta { padding: 34px; display:flex; justify-content:space-between; gap:24px; align-items:center; }
.footer { padding: 34px 0; color: var(--muted); border-top: 1px solid var(--line); background:#fff; }
.form-wrap { min-height: calc(100vh - 72px); display:flex; align-items:center; justify-content:center; padding: 48px 16px; }
.form-card { width:min(480px,100%); background:#fff; border:1px solid var(--line); border-radius:24px; box-shadow:0 18px 60px rgba(15,23,42,.08); padding:32px; }
.form-card h1 { font-size:34px; margin-bottom:12px; }
.form-card form p { margin: 0 0 14px; }
.form-card label { display:block; font-weight:700; margin-bottom:6px; }
.form-card input { width:100%; border:1px solid var(--line); border-radius:12px; padding:12px 14px; font-size:16px; }
.helptext, .errorlist { color: var(--muted); font-size: 13px; }
.errorlist { color: var(--red); }
.messages { margin: 16px 0; }
.message { padding:12px 14px; border-radius:12px; background:#eff6ff; color:#1e3a8a; margin-bottom:8px; }
.dashboard { padding: 34px 0 70px; }
.dash-top { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; margin-bottom:24px; }
.dash-title h1 { font-size:38px; margin:0 0 8px; }
.dash-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:18px; }
.dash-card { padding:24px; }
.muted { color: var(--muted); }
@media (max-width: 900px) {
  .hero-grid, .grid4, .grid3, .dash-grid { grid-template-columns: 1fr; }
  .navlinks { display:none; }
  .hero { padding-top: 44px; }
  .cta { flex-direction: column; align-items: flex-start; }
}
