:root {
  --navy: #0f172a;
  --ink: #162033;
  --muted: #6d7789;
  --steel: #475569;
  --line: #e1e6ef;
  --bg: #f7f8fa;
  --card: #ffffff;
  --accent: #3157e5;
  --signal: #d97706;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}
a { color: inherit; text-decoration: none; }

.wrap { max-width: 900px; margin: 0 auto; padding: 0 24px; width: 100%; }

header {
  border-bottom: 1px solid var(--line);
  background: var(--card);
  flex: 0 0 auto;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--navy);
}
.brand .dot {
  width: 8px;
  height: 8px;
  background: var(--signal);
}
.nav-cta {
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.nav-cta:hover { background: var(--accent); }

.hero {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 24px;
}
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 16px;
}
.kicker .bar {
  width: 18px;
  height: 2px;
  background: var(--signal);
}
h1 {
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
  color: var(--navy);
}
.lede {
  max-width: 560px;
  margin: 0 auto 28px;
  font-size: 15px;
  color: var(--muted);
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--steel);
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 4px;
  padding: 6px 12px;
}

footer {
  flex: 0 0 auto;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
}
.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .hero { padding: 20px 20px; }
  .kicker { margin-bottom: 10px; font-size: 10px; }
  h1 { font-size: 28px; margin-bottom: 10px; }
  .lede { font-size: 13px; margin-bottom: 16px; }
  .tags { gap: 6px; }
  .tag { font-size: 11px; padding: 5px 9px; }
  .nav { padding: 12px 0; }
  footer { padding: 10px 20px; }
}

@media (max-width: 400px) {
  h1 { font-size: 24px; }
  .lede { font-size: 12.5px; margin-bottom: 12px; }
  .tags .tag:nth-child(n+6) { display: none; }
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modal-backdrop[hidden] { display: none; }

.modal {
  position: relative;
  background: var(--card);
  border-radius: 8px;
  padding: 28px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.25);
}
.modal h2 {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--navy);
}
.modal-sub {
  margin: 0 0 18px;
  font-size: 13px;
  color: var(--muted);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  cursor: pointer;
  border-radius: 4px;
}
.modal-close:hover { background: var(--bg); color: var(--ink); }

#demo-form { display: flex; flex-direction: column; gap: 4px; }
#demo-form label {
  font-size: 12px;
  font-weight: 600;
  color: var(--steel);
  margin-top: 10px;
}
#demo-form .optional { font-weight: 400; color: var(--muted); }
#demo-form input,
#demo-form textarea {
  font: inherit;
  font-size: 14px;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
  background: var(--bg);
  resize: vertical;
}
#demo-form input:focus,
#demo-form textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.hp-field { position: absolute; left: -9999px; top: -9999px; }

.submit-btn {
  margin-top: 18px;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: inherit;
}
.submit-btn:hover { background: var(--accent); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.form-status {
  margin: 10px 0 0;
  font-size: 13px;
  min-height: 16px;
}
.form-status.ok { color: #15803d; }
.form-status.err { color: #b91c1c; }
