:root {
  --bg: #f4f1ed;
  --bg-2: #e8ecef;
  --card: #fffdf9;
  --stroke: #e0dbd3;
  --text: #1c1b1a;
  --muted: #5c5a56;
  --accent: #2b6cb0;
  --accent-2: #d9822b;
  --shadow: 0 12px 40px rgba(25, 25, 25, 0.12);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #f9f2e7 0%, #f4f1ed 35%, #e8ecef 100%);
  min-height: 100vh;
}

.bg {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 10% 10%, rgba(43, 108, 176, 0.18), transparent 45%),
    radial-gradient(circle at 80% 20%, rgba(217, 130, 43, 0.18), transparent 50%),
    linear-gradient(135deg, #f9f2e7 0%, #f4f1ed 60%, #e8ecef 100%);
  z-index: -1;
}

.page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 36px 24px 50px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 10px;
}

.hero {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 26px;
}

h1 {
  margin: 0 0 14px;
  font-size: 40px;
  line-height: 1.05;
}

.subtitle {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 16px;
}

.cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn.primary {
  background: var(--accent);
  color: #fff;
}

.btn.secondary {
  background: rgba(43, 108, 176, 0.12);
  color: var(--accent);
  border-color: rgba(43, 108, 176, 0.3);
}

.btn.ghost {
  background: transparent;
  border-color: var(--stroke);
  color: var(--text);
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0,0,0,0.18);
}

.meta {
  margin-top: 12px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 12px;
  color: var(--muted);
}

.hero-card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.hero-card-row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-family: "IBM Plex Mono", monospace;
  font-size: 13px;
}

.hero-card-note {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

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

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 10px;
  font-size: 17px;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
}

.demos {
  display: grid;
  gap: 14px;
  margin-bottom: 24px;
}

.demo-card {
  background: #fffdf9;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: var(--shadow);
}

.demo-card h3 {
  margin: 0 0 6px;
}

.demo-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.cta {
  background: linear-gradient(135deg, rgba(43, 108, 176, 0.12), rgba(217, 130, 43, 0.08));
  border: 1px solid var(--stroke);
  border-radius: 20px;
  padding: 18px;
  text-align: center;
}

.cta h2 {
  margin: 0 0 8px;
}

.cta p {
  margin: 0 0 12px;
  color: var(--muted);
}

.footer {
  margin-top: 20px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .demo-card {
    flex-direction: column;
    align-items: flex-start;
  }
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 50;
}

.modal.is-open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 20, 20, 0.45);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  width: min(520px, 92vw);
  z-index: 1;
  display: grid;
  gap: 12px;
}

.modal-subtitle {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 14px;
}

.modal-card form {
  display: grid;
  gap: 10px;
}

.modal-card label {
  font-size: 13px;
  color: var(--muted);
}

.modal-card input,
.modal-card textarea {
  background: #fffdf9;
  color: var(--text);
  border: 1px solid var(--stroke);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: "IBM Plex Mono", monospace;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: #fff;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  border: 1px solid var(--stroke);
}

.modal-note {
  font-size: 12px;
  color: var(--muted);
}

.contact-email {
  display: inline-block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 16px;
  color: var(--text);
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: #fffdf9;
}

.cta-row {
  display: flex;
  justify-content: center;
}
