:root {
  --bg: #FBFCFA;
  --bg-elevated: #F1F4F1;
  --surface: #FFFFFF;
  --border: #DFE6E1;
  --ink: #121815;
  --ink-secondary: #48534D;
  --ink-muted: #7C877F;
  --accent: #2F9C7A;
  --accent-strong: #1E7A5C;
  --accent-bg: rgba(47, 156, 122, 0.10);
  --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(251, 252, 250, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 17px; color: var(--ink);
  white-space: nowrap;
}
.brand-mark { flex-shrink: 0; }
.brand-text {
  display: flex; align-items: baseline; gap: 8px; color: var(--ink);
  font-size: 19px; letter-spacing: -0.01em;
}
.brand-tag {
  font-family: var(--font-mono); font-weight: 400; font-size: 11px;
  letter-spacing: 0.03em; color: var(--ink-muted);
}
@media (max-width: 480px) { .brand-tag { display: none; } }

/* ---- Vision statement ---- */
.vision-section { padding: 56px 0 60px; }
.vision-eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--ink-muted); margin-bottom: 16px;
}
.vision-section h2 { max-width: 700px; }
.vision-sub { max-width: 700px; }
.vision-highlight { color: var(--ink); }
.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: #4B5563; color: #fff; }
.btn-primary:hover { background: #374151; }
.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); }
.btn-large { padding: 18px 40px; font-size: 18px; }

/* ---- 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; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); letter-spacing: -0.02em; color: var(--ink); }
.hero-subhead {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(19px, 2.4vw, 24px);
  color: var(--accent-strong); margin-top: 16px; letter-spacing: -0.01em;
}
.hero-sub { font-size: 17px; margin-top: 18px; max-width: 620px; color: var(--ink-secondary); }
.hero-ctas { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

/* ---- Connectors strip ---- */
.platforms-strip { border-bottom: 1px solid var(--border); background: var(--bg-elevated); }
.platforms-inner {
  display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap;
  padding: 18px 24px;
}
.platforms-label {
  font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-muted); flex-shrink: 0;
}
.platforms-names {
  font-size: 14px; color: var(--ink-secondary); letter-spacing: 0.01em;
}
.platform-live { color: var(--ink); font-weight: 600; text-decoration: none; }
.platform-live:hover { text-decoration: underline; }
.platform-live em { color: var(--accent-strong); font-style: normal; font-weight: 500; }

/* ---- 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; }

/* ---- How it works: layout + console mock ---- */
.how-layout { display: flex; flex-direction: column; gap: 52px; margin-top: 40px; }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
@media (max-width: 820px) { .how-steps { grid-template-columns: 1fr; gap: 30px; } }

.how-console { max-width: 760px; margin: 0 auto; width: 100%; }
.how-console:has(.console-card-wide) { max-width: 960px; }
.console-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.55);
}
.console-split { display: flex; }
@media (max-width: 720px) { .console-split { flex-direction: column; } }
.console-bar {
  display: flex; align-items: center; gap: 8px; padding: 12px 16px;
  background: var(--bg-elevated); border-bottom: 1px solid var(--border);
}
.console-dot { width: 9px; height: 9px; border-radius: 50%; opacity: 0.8; }
.console-dot-red { background: #E0625C; }
.console-dot-yellow { background: #E0B45C; }
.console-dot-green { background: #4FBB9C; }
.console-title { margin-left: 6px; font-family: var(--font-mono); font-size: 12px; color: var(--ink-muted); }
.console-live {
  margin-left: auto; display: flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; color: var(--accent-strong);
}
.console-live-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent-strong);
  box-shadow: 0 0 0 3px var(--accent-bg);
}

.console-body { padding: 22px; display: flex; flex-direction: column; gap: 18px; flex: 1.6; min-width: 0; }
.console-input-row {
  display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 4px;
}
.console-input {
  flex: 1; font-size: 12.5px; color: var(--ink-muted);
  background: var(--bg); border: 1px solid var(--border); border-radius: 999px;
  padding: 10px 16px;
}
.console-send-btn {
  flex-shrink: 0; font-size: 12.5px; font-weight: 600; color: #06120D;
  background: var(--accent); border-radius: 999px; padding: 10px 18px;
}

.console-sidebar {
  flex: 1; min-width: 200px; max-width: 240px; border-left: 1px solid var(--border);
  background: var(--bg-elevated); padding: 20px 18px; display: flex; flex-direction: column; gap: 18px;
}
@media (max-width: 720px) {
  .console-sidebar { max-width: none; border-left: none; border-top: 1px solid var(--border); }
}
.console-sidebar-title {
  font-size: 12.5px; font-weight: 600; color: var(--ink); margin: 0;
}
.cap-block { display: flex; flex-direction: column; gap: 6px; }
.cap-heading {
  font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--accent-strong); margin: 0;
}
.cap-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.cap-list li { font-size: 11.5px; line-height: 1.4; color: var(--ink-secondary); }
.chat-row { display: flex; gap: 10px; }
.chat-row-user { justify-content: flex-end; }
.chat-bubble { border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.55; }
.chat-bubble-user {
  background: var(--accent-bg); color: var(--ink); border: 1px solid rgba(62, 156, 130, 0.35);
  max-width: 85%; border-bottom-right-radius: 4px;
}
.chat-avatar {
  flex-shrink: 0; width: 26px; height: 26px; border-radius: 8px;
  background: linear-gradient(135deg, #5FCBAD, #3E9C82); color: #06120D;
  font-family: var(--font-display); font-weight: 700; font-size: 12px;
  display: flex; align-items: center; justify-content: center;
}
.chat-bubble-agent {
  background: var(--bg-elevated); border: 1px solid var(--border); flex: 1;
  border-bottom-left-radius: 4px; min-width: 0;
}
.chat-text { color: var(--ink-secondary); font-size: 13.5px; margin-bottom: 14px; }

.report-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
.report-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.report-table th {
  text-align: left; font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase;
  letter-spacing: 0.04em; color: var(--ink-muted); padding: 9px 12px; background: var(--surface);
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
.report-table td {
  padding: 9px 12px; border-bottom: 1px solid var(--border); color: var(--ink-secondary);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.report-table tbody tr:last-child td { border-bottom: none; }
.report-table td:first-child { color: var(--ink); font-family: var(--font-mono); font-size: 12px; }

.tag { display: inline-block; font-family: var(--font-mono); font-size: 10.5px; padding: 2px 8px; border-radius: 999px; }
.tag-pending { color: #9A6B14; background: rgba(224, 180, 92, 0.18); }
.tag-approved { color: var(--accent-strong); background: var(--accent-bg); }

.chat-meta { margin-top: 12px; font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted); }

/* ---- Roadmap / phase cards ---- */
.phase-grid { align-items: stretch; }
.phase-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; position: relative; opacity: 0.72;
}
.phase-active {
  opacity: 1; border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 12px 32px -16px rgba(62, 156, 130, 0.35);
}
.phase-status {
  display: inline-block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--ink-muted); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 10px; margin-bottom: 18px;
}
.phase-status-active { color: var(--accent-strong); border-color: var(--accent); background: var(--accent-bg); }
.phase-card .step-num {
  width: 34px; height: 34px; font-size: 14px; margin-bottom: 14px;
}
.phase-card h3 { font-size: 17px; margin-bottom: 8px; color: var(--ink); }
.phase-card p { font-size: 14px; }

/* ---- Plans ---- */
.grid-2 { grid-template-columns: 1fr 1fr; }
@media (max-width: 700px) { .grid-2 { grid-template-columns: 1fr; } }
.plan-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
}
.plan-card-highlight { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.plan-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.plan-head h3 { font-size: 20px; color: var(--ink); }
.plan-badge {
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-muted);
  border: 1px solid var(--border); border-radius: 999px; padding: 3px 10px;
}
.plan-badge-pro { color: var(--accent-strong); border-color: var(--accent); background: var(--accent-bg); }
.plan-price { font-size: 26px; font-weight: 700; color: var(--ink); margin: 0 0 12px; }
.plan-price span { font-size: 13px; font-weight: 500; color: var(--ink-muted); margin-left: 6px; }
.plan-sub { font-size: 14px; margin-bottom: 20px; }
.plan-sub-spaced { margin-top: 12px; margin-bottom: 32px; }
.plan-list { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.plan-list-tight { flex-grow: 0; }
.plan-list li {
  font-size: 14px; color: var(--ink-secondary); padding-left: 22px; position: relative;
}
.plan-list li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--accent-strong); font-weight: 600;
}
.plan-card .btn { align-self: flex-start; margin-top: auto; }
.plan-card .btn-primary {
  background: #E4E8E5; color: var(--ink); border: 1px solid var(--border); font-weight: 500;
}
.plan-card .btn-primary:hover { background: #D7DCD8; }

/* ---- 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; }
.demo-card-actions { display: flex; gap: 10px; }
.demo-card-actions .btn { flex: 1; justify-content: center; }
@media (max-width: 480px) { .demo-card-actions { flex-direction: column; } }

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

.contact-form { display: flex; flex-direction: column; gap: 16px; margin-top: 8px; }
.form-row { display: flex; gap: 16px; }
@media (max-width: 560px) { .form-row { flex-direction: column; } }
.form-field { display: flex; flex-direction: column; gap: 6px; flex: 1; font-size: 13px; color: var(--ink-secondary); }
.form-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-muted); }
.form-field input, .form-field textarea {
  font-family: var(--font-body); font-size: 14px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px 14px; resize: vertical;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--accent);
}
.contact-form .btn { align-self: flex-start; margin-top: 4px; }
.contact-direct { font-size: 13px; margin-top: 18px; }
.contact-direct a { color: var(--accent-strong); font-weight: 600; }

/* ---- 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: 620px; 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; }
.buy-error { color: #B3261E; }
.modal-foot { font-size: 12px; margin-top: 20px; color: var(--ink-muted); }

.cred-all { margin-top: 20px; }
.cred-all-title { font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 10px; }
.cred-all-pass { font-weight: 400; color: var(--ink-muted); }
.cred-all-pass code {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-strong);
  background: var(--accent-bg); padding: 1px 6px; border-radius: 4px;
}
.cred-table-wrap {
  max-height: 320px; overflow-y: auto; overflow-x: auto;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.cred-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.cred-table th {
  position: sticky; top: 0; text-align: left; font-family: var(--font-mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-muted);
  background: var(--bg-elevated); padding: 8px 12px; border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.cred-table td {
  padding: 7px 12px; border-bottom: 1px solid var(--border); color: var(--ink-secondary); white-space: nowrap;
}
.cred-table tbody tr:last-child td { border-bottom: none; }
.cred-table tbody tr:hover { background: var(--surface); }
.cred-table td:first-child { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink); }

.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: #9A6B14; background: rgba(224,180,92,0.18); }

.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); }

/* ---- Thank-you page ---- */
.thankyou-inner { max-width: 560px; text-align: center; padding-top: 40px; padding-bottom: 40px; }
.thankyou-inner h1 { font-size: clamp(28px, 4vw, 38px); margin-bottom: 14px; }
.thankyou-inner .section-sub { margin-left: auto; margin-right: auto; margin-bottom: 12px; }
.thankyou-note { font-size: 13px; color: var(--ink-muted); margin-top: 24px; }
.thankyou-note a { color: var(--accent-strong); font-weight: 600; }
