:root {
  --bg: #0E1512;
  --bg-elevated: #141E1A;
  --surface: #17221D;
  --border: #26332C;
  --ink: #F3F5F2;
  --ink-secondary: #A9B3AC;
  --ink-muted: #6E7B72;
  --accent: #3E9C82;
  --accent-strong: #4FBB9C;
  --accent-bg: rgba(62, 156, 130, 0.12);
  --radius: 12px;
  --radius-sm: 8px;
  --font-display: "Space Grotesk", sans-serif;
  --font-body: "Inter", sans-serif;
  --font-mono: "JetBrains Mono", monospace;
  --max-width: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.15; margin: 0; }
p { margin: 0; color: var(--ink-secondary); }
a { color: inherit; text-decoration: none; }

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(14, 21, 18, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink);
  white-space: nowrap;
}
.brand span { color: var(--accent-strong); }
.nav { display: flex; gap: 28px; }
.nav a { font-size: 14px; color: var(--ink-secondary); transition: color .15s; }
.nav a:hover { color: var(--ink); }

@media (max-width: 780px) {
  .nav { display: none; }
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 12px 22px; border-radius: 999px;
  font-size: 14px; font-weight: 600; font-family: var(--font-body);
  cursor: pointer; border: 1px solid transparent; transition: all .15s;
}
.btn-small { padding: 9px 18px; font-size: 13px; }
.btn-primary { background: var(--accent); color: #06120D; }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent-strong); }
.btn-outline { background: transparent; color: var(--accent-strong); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent-bg); }

/* ---- Hero ---- */
.hero { padding: 96px 0 88px; position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto -10%; height: 480px;
  background: radial-gradient(ellipse at top, rgba(62,156,130,0.16), transparent 70%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-strong); margin-bottom: 18px;
}
.hero h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.02em; color: var(--ink); }
.hero-sub { font-size: 17px; margin-top: 22px; max-width: 620px; color: var(--ink-secondary); }
.hero-ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* ---- Sections ---- */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: clamp(26px, 3.5vw, 34px); letter-spacing: -0.01em; margin-bottom: 14px; }
.section-sub { max-width: 620px; font-size: 16px; margin-bottom: 40px; }

.grid { display: grid; gap: 20px; margin-top: 40px; }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .grid-4, .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-4, .grid-3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px;
}
.card-icon {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent-strong);
  border: 1px solid var(--border); border-radius: 999px; width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card h3 { font-size: 16px; margin-bottom: 8px; color: var(--ink); }
.card p { font-size: 14px; }

.step { padding: 4px; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-bg); color: var(--accent-strong);
  font-family: var(--font-mono); font-weight: 600; margin-bottom: 16px;
}
.step h3 { font-size: 16px; margin-bottom: 8px; color: var(--ink); }
.step p { font-size: 14px; }

/* ---- Demo section ---- */
.demo-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px; }
@media (max-width: 700px) { .demo-cards { grid-template-columns: 1fr; } }
.demo-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px;
}
.demo-card h3 { font-size: 17px; color: var(--ink); margin-bottom: 8px; }
.demo-card p { font-size: 14px; margin-bottom: 18px; }

.creds-trigger { width: auto; }

/* ---- Contact ---- */
.contact-inner { text-align: left; max-width: 620px; }
.contact-inner .btn { margin-top: 22px; font-family: var(--font-mono); }

/* ---- Footer ---- */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; }
.footer-inner {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  font-size: 13px; color: var(--ink-muted);
}

/* ---- Modal ---- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(6, 10, 8, 0.7);
  display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-overlay[hidden] { display: none; }
.modal {
  background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.modal-head h3 { font-size: 19px; color: var(--ink); }
.modal-close {
  background: none; border: none; color: var(--ink-muted); font-size: 26px; line-height: 1;
  cursor: pointer; padding: 0 4px;
}
.modal-close:hover { color: var(--ink); }
.modal-sub { font-size: 13px; margin-bottom: 22px; }
.modal-foot { font-size: 12px; margin-top: 20px; color: var(--ink-muted); }

.cred-block {
  border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; margin-bottom: 16px;
  background: var(--surface);
}
.cred-block-head { margin-bottom: 12px; }
.cred-tag {
  font-family: var(--font-mono); font-size: 11px; color: var(--accent-strong);
  background: var(--accent-bg); padding: 3px 10px; border-radius: 999px;
}
.cred-tag-admin { color: #E0B45C; background: rgba(224,180,92,0.12); }

.cred-row {
  display: flex; align-items: center; gap: 10px; padding: 6px 0;
}
.cred-label { font-size: 12px; color: var(--ink-muted); width: 62px; flex-shrink: 0; }
.cred-value {
  font-family: var(--font-mono); font-size: 13px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
  padding: 5px 9px; flex: 1; overflow-x: auto; white-space: nowrap;
}
.copy-btn {
  font-family: var(--font-body); font-size: 12px; font-weight: 500; color: var(--accent-strong);
  background: transparent; border: 1px solid var(--border); border-radius: 6px;
  padding: 5px 10px; cursor: pointer; flex-shrink: 0; transition: all .15s;
}
.copy-btn:hover { border-color: var(--accent); }
.copy-btn.copied { color: var(--accent-strong); border-color: var(--accent); }
