:root {
  --ink: #172033;
  --muted: #5f6b7a;
  --brand: #0176d3;
  --brand-dark: #014486;
  --surface: #ffffff;
  --page: #f4f7fb;
  --border: #d8dde6;
  --success: #2e844a;
  --warning: #a96404;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: var(--page);
  color: var(--ink);
  line-height: 1.55;
}

a { color: var(--brand); }

.site-header {
  background: #0b1f3a;
  color: white;
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 20px;
}

nav {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

nav a {
  color: #dce8f7;
  text-decoration: none;
  padding: 8px 11px;
  border-radius: 6px;
}

nav a:hover,
nav a.active {
  background: #17375e;
  color: white;
}

.hero {
  background: linear-gradient(135deg, #eaf4ff, #f8fbff);
  border-bottom: 1px solid var(--border);
}

.hero-inner,
main,
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 36px 24px;
}

.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(32px, 5vw, 54px);
  line-height: 1.05;
}

.hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 4px 16px rgba(23, 32, 51, 0.05);
}

.card h2, .card h3 { margin-top: 0; }

.price {
  font-size: 34px;
  font-weight: 700;
  margin: 12px 0;
}

.button,
button {
  display: inline-block;
  border: 0;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  padding: 11px 16px;
  text-decoration: none;
  cursor: pointer;
  font-size: 15px;
}

.button.secondary,
button.secondary {
  background: #e8eef5;
  color: var(--ink);
}

.button.outline {
  background: transparent;
  color: var(--brand);
  border: 1px solid var(--brand);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.context-panel,
.event-panel {
  margin-top: 28px;
}

.context-grid {
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: 8px 16px;
}

.context-grid dt {
  font-weight: 700;
}

.context-grid dd {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

#eventLog {
  height: 310px;
  overflow: auto;
  background: #101722;
  color: #dce6f2;
  border-radius: 10px;
  padding: 14px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13px;
}

.log-entry {
  border-bottom: 1px solid #2f3a49;
  padding: 8px 0;
}

.log-entry:last-child { border-bottom: 0; }

.status {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eef3f8;
  color: var(--ink);
  font-size: 13px;
}

.feature-list {
  padding-left: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 4px;
}

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

textarea { min-height: 110px; }

footer {
  margin-top: 34px;
  background: #0b1f3a;
  color: #dce8f7;
}

.small {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 800px) {
  .grid { grid-template-columns: 1fr; }
  .nav-wrap { align-items: flex-start; flex-direction: column; }
  .context-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
}