:root {
  --bg: #f8fafc;
  --fg: #0f172a;
  --muted: #64748b;
  --card: #ffffff;
  --border: #e2e8f0;
  --accent: #2563eb;
  --accent-dark: #1d4ed8;
  --navy: #0f172a;
  --soft-blue: #eff6ff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.55;
}

.topbar {
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
}

.topbar-inner {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 0;
  text-decoration: none;
  font-weight: 900;
  letter-spacing: -0.04em;
  font-size: 30px;
  color: var(--fg);
}

.brand-88 { color: var(--accent); }
.brand-dot { color: var(--accent); }
.brand-tr { color: var(--fg); }

.app-badge {
  margin-left: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.nav a {
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}

.nav a:hover { color: var(--accent); }

.nav-button {
  background: var(--accent);
  color: #fff !important;
  padding: 10px 16px;
  border-radius: 10px;
}

.container {
  width: min(1120px, calc(100% - 28px));
  margin: 32px auto;
}

.hero {
  background: linear-gradient(135deg, #0f172a, #111827);
  color: #fff;
  padding: 46px;
  border-radius: 22px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, .16);
}

.hero h1 {
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  margin: 12px 0;
  letter-spacing: -0.04em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(96, 165, 250, .45);
  background: rgba(37,99,235,.16);
  color: #dbeafe;
  padding: 7px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.muted { color: var(--muted); }

.hero .muted { color: #cbd5e1; }

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .05);
}

.card.ok { border-color: #22c55e; }
.card.bad { border-color: #ef4444; }

.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 20px;
}

.button, button {
  display: inline-block;
  background: var(--accent);
  color: white;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}

.button:hover, button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.button.secondary {
  background: #e2e8f0;
  color: var(--fg);
}

.form {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px;
  display: grid;
  gap: 16px;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .04);
}

label {
  display: grid;
  gap: 7px;
  font-weight: 800;
}

input, textarea, select {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font: inherit;
  background: white;
}

textarea { min-height: 110px; }

.notice {
  background: #fffbeb;
  border: 1px solid #fde68a;
  padding: 13px;
  border-radius: 14px;
  color: #78350f;
}

.messages {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.message {
  padding: 11px 13px;
  border-radius: 12px;
  background: #e2e8f0;
}

.message.success { background: #dcfce7; }
.message.error { background: #fee2e2; }

table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 6px 16px rgba(15, 23, 42, .04);
}

th, td {
  border-bottom: 1px solid var(--border);
  padding: 11px;
  text-align: left;
  vertical-align: top;
}

code {
  font-size: 12px;
  overflow-wrap: anywhere;
}

.wide { width: 100%; }

.site-footer {
  background: white;
  border-top: 1px solid var(--border);
  margin-top: 56px;
  padding: 42px 0 24px;
}

.footer-grid {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1fr 1fr;
  gap: 38px;
}

.footer-logo {
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}

.footer-brand p {
  color: var(--muted);
  max-width: 350px;
}

.footer-notice {
  margin-top: 24px;
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  padding: 18px;
  background: #f8fafc;
  max-width: 390px;
}

.footer-notice strong {
  display: block;
  font-size: 12px;
  letter-spacing: .06em;
  margin-bottom: 10px;
}

.footer-notice p {
  font-size: 13px;
  margin: 0;
  color: var(--muted);
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 0 0 16px;
}

.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  margin: 0 0 12px;
  font-size: 14px;
}

.footer-col a:hover {
  color: var(--accent);
}

.footer-bottom {
  width: min(1240px, calc(100% - 32px));
  margin: 34px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 900px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .nav {
    gap: 12px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 20px, 1120px);
    margin: 22px auto;
  }

  .hero {
    padding: 26px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  table {
    font-size: 13px;
  }

  th, td {
    padding: 9px;
  }
}
