:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --border: #e3e6ea;
  --text: #1c2530;
  --muted: #6b7785;
  --primary: #2f6df6;
  --primary-dark: #1f57d6;
  --secondary: #eef2f8;
  --danger: #d64545;
  --ok: #1f9d6b;
  --warn: #b9821c;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(18, 30, 48, .06), 0 4px 16px rgba(18, 30, 48, .05);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }
code { font-family: var(--mono); font-size: .9em; background: var(--secondary); padding: 1px 5px; border-radius: 4px; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 10;
}
.topbar-inner {
  max-width: 1080px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; gap: 28px; height: 58px;
}
.brand { font-weight: 700; color: var(--text); font-size: 16px; }
.brand:hover { text-decoration: none; }
.nav { display: flex; gap: 20px; flex: 1; }
.nav a { color: var(--muted); font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }
.user { display: flex; align-items: center; gap: 10px; }
.user-email { color: var(--muted); font-size: 13px; }

/* ---------- layout ---------- */
.container { max-width: 1080px; width: 100%; margin: 0 auto; padding: 28px 24px; flex: 1; }
.section { margin-bottom: 36px; }
.section.narrow { max-width: 560px; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-head h2 { font-size: 18px; margin: 0; }
.footer { text-align: center; color: var(--muted); font-size: 12px; padding: 20px; }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.product-card { display: flex; flex-direction: column; gap: 8px; }
.product-card.is-inactive { opacity: .6; }
.product-head { display: flex; justify-content: space-between; align-items: center; }
.product-name { margin: 2px 0; font-size: 16px; }
.product-url { color: var(--muted); font-size: 13px; font-family: var(--mono); word-break: break-all; }
.product-code { font-family: var(--mono); font-weight: 600; background: var(--secondary); color: var(--primary-dark); padding: 2px 8px; border-radius: 6px; font-size: 13px; }
.product-code.sm { font-size: 12px; padding: 1px 6px; }
.card-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 10px; flex-wrap: wrap; }

/* ---------- buttons ---------- */
.btn { display: inline-block; border: 1px solid transparent; border-radius: 8px; padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit; line-height: 1; text-align: center; transition: background .12s, border-color .12s; }
.btn:hover { text-decoration: none; }
.btn-sm { padding: 6px 11px; font-size: 13px; }
.btn-block { display: block; width: 100%; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-secondary { background: var(--secondary); color: var(--text); border-color: var(--border); }
.btn-secondary:hover { background: #e2e8f2; color: var(--text); }
.btn-ghost { background: transparent; color: var(--muted); border-color: transparent; }
.btn-ghost:hover { background: var(--secondary); color: var(--text); }
.btn-danger { background: #fff; color: var(--danger); border-color: #f1c9c9; }
.btn-danger:hover { background: var(--danger); color: #fff; }
.inline { display: inline; margin: 0; }

/* ---------- tables ---------- */
.table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.table th, .table td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--border); font-size: 14px; }
.table th { background: #fafbfc; color: var(--muted); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; }
.table tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: #fafbfd; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.muted { color: var(--muted); }

/* ---------- badges ---------- */
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; line-height: 1.3; }
.badge-role { background: var(--secondary); color: var(--muted); text-transform: uppercase; font-size: 11px; }
.status-created,
.status-pending { background: #e7eefc; color: #2f6df6; }
.status-opened,
.status-ready { background: #e4f6ee; color: #1f9d6b; }
.status-expired,
.status-creating,
.status-provisioning,
.status-stopping { background: #fdeede; color: #b9821c; }
.status-closed,
.status-failed,
.status-stopped { background: #f6e6e6; color: #d64545; }

/* ---------- forms ---------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
label { display: block; font-weight: 600; font-size: 14px; }
label input, label select { margin-top: 6px; }
input[type=text],
input[type=email],
input[type=password],
input[type=url],
input[type=number],
input[type=file],
select {
  width: 100%; padding: 10px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 14px; font-family: inherit; background: #fff; color: var(--text);
}
input:focus, select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(47,109,246,.12); }
input:disabled { background: var(--secondary); color: var(--muted); }
.checkbox { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.checkbox input { width: auto; margin: 0; }
.hint { color: var(--muted); font-size: 12px; font-weight: 400; }

/* ---------- alerts ---------- */
.alert { padding: 11px 14px; border-radius: 8px; font-size: 14px; margin-bottom: 16px; }
.alert-error { background: #fbeaea; color: #a5302f; }
.alert-ok { background: #e4f6ee; color: #167a53; }
.alert-warn { background: #fdf3e2; color: #8a6314; }

/* ---------- copy row + kv ---------- */
.copy-row { display: flex; gap: 8px; margin-bottom: 18px; }
.copy-input { flex: 1; font-family: var(--mono); font-size: 13px; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 8px 16px; margin: 0 0 18px; }
.kv.compact { grid-template-columns: 90px 1fr; text-align: left; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; font-size: 14px; }

/* ---------- empty state ---------- */
.empty { background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); padding: 28px; text-align: center; color: var(--muted); }

/* ---------- product documents ---------- */
.document-admin-card {
  margin-bottom: 18px;
}
.document-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: end;
}
.document-form-wide {
  grid-column: 1 / -1;
}
.document-form button {
  min-height: 40px;
}

@media (max-width: 720px) {
  .document-form {
    grid-template-columns: 1fr;
  }
  .document-form-wide {
    grid-column: auto;
  }
}

/* ---------- auth ---------- */
.auth-wrap { display: flex; justify-content: center; padding-top: 6vh; }
.auth-card { width: 100%; max-width: 380px; }
.auth-card.center { text-align: center; }
.auth-title { font-size: 22px; margin: 0 0 4px; }
.auth-sub { color: var(--muted); margin: 0 0 22px; font-size: 14px; }
.btn-block + .hint { text-align: center; margin-top: 10px; }
.dev-box { margin-top: 24px; padding-top: 20px; border-top: 1px dashed var(--border); }
.dev-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--warn); margin-bottom: 12px; }
.big-icon { font-size: 40px; margin-bottom: 8px; }
.spinner {
  width: 42px;
  height: 42px;
  margin: 0 auto 16px;
  border: 3px solid rgba(47,109,246,.15);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- public landing ---------- */
.landing-page {
  --landing-bg: #080b12;
  --landing-surface: #101722;
  --landing-surface-2: #131f2b;
  --landing-border: rgba(202, 213, 225, .16);
  --landing-text: #edf5f2;
  --landing-muted: #95a8aa;
  --landing-green: #2dd4a7;
  --landing-copper: #d49a5b;
  --landing-blue: #4f8df7;
  background:
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px) 0 0 / 84px 84px,
    linear-gradient(180deg, #080b12 0%, #0c1218 48%, #08100f 100%);
  color: var(--landing-text);
}
.landing-page a { color: inherit; }
.landing-page code {
  background: rgba(255,255,255,.08);
  color: var(--landing-green);
}
.landing-page .footer {
  color: rgba(237,245,242,.52);
  background: #080b12;
}
.landing-main {
  width: 100%;
  flex: 1;
  overflow: hidden;
}
.landing-hero {
  position: relative;
  min-height: 86vh;
  display: flex;
  align-items: center;
  padding: 72px 24px 42px;
  isolation: isolate;
}
.landing-depth {
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
  opacity: .52;
}
.depth-one {
  width: 62vw;
  height: 62vw;
  right: -24vw;
  top: -18vw;
  background:
    repeating-linear-gradient(135deg, rgba(45,212,167,.2) 0 1px, transparent 1px 16px);
  transform: rotate(-10deg);
}
.depth-two {
  width: 54vw;
  height: 44vw;
  left: -22vw;
  bottom: -20vw;
  background:
    repeating-linear-gradient(0deg, rgba(212,154,91,.18) 0 1px, transparent 1px 18px);
  transform: rotate(12deg);
}
.landing-shell {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, .78fr);
  gap: 48px;
  align-items: center;
}
.landing-copy {
  max-width: 680px;
}
.landing-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--landing-green);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: .08em;
  margin-bottom: 18px;
}
.landing-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: var(--landing-green);
}
.landing-copy h1 {
  margin: 0;
  max-width: 760px;
  font-size: 76px;
  line-height: .98;
  letter-spacing: 0;
  font-weight: 850;
}
.landing-lead {
  max-width: 650px;
  margin: 24px 0 0;
  color: var(--landing-muted);
  font-size: 18px;
  line-height: 1.65;
}
.landing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.landing-btn-primary,
.landing-btn-secondary {
  border-radius: 8px;
  padding: 13px 18px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.landing-btn-primary {
  background: var(--landing-green);
  color: #07100e;
  border-color: transparent;
  box-shadow: 0 12px 30px rgba(45,212,167,.18);
}
.landing-btn-primary:hover {
  background: #58e3bd;
  color: #07100e;
}
.landing-btn-secondary {
  background: rgba(255,255,255,.06);
  color: var(--landing-text);
  border-color: var(--landing-border);
}
.landing-btn-secondary:hover {
  background: rgba(255,255,255,.1);
  color: var(--landing-text);
}
.landing-btn-secondary.is-disabled {
  opacity: .58;
  cursor: not-allowed;
}
.landing-note {
  margin-top: 14px;
  color: rgba(237,245,242,.56);
  font-size: 13px;
}
.runtime-panel {
  border: 1px solid var(--landing-border);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(79,141,247,.18), transparent 38%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.025)),
    var(--landing-surface);
  min-height: 430px;
  padding: 22px;
  box-shadow: 0 34px 80px rgba(0,0,0,.38);
  transform: translateY(18px);
}
.runtime-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: rgba(237,245,242,.76);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
}
.runtime-live {
  color: var(--landing-green);
}
.runtime-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 34px;
}
.runtime-node {
  min-height: 116px;
  border: 1px solid rgba(202,213,225,.18);
  border-radius: 8px;
  padding: 16px;
  background: rgba(8,11,18,.48);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.runtime-node.active {
  border-color: rgba(45,212,167,.58);
  box-shadow: inset 0 0 0 1px rgba(45,212,167,.18);
}
.runtime-node.wide {
  grid-column: 1 / -1;
  min-height: 132px;
}
.node-label {
  font-weight: 800;
  font-size: 16px;
}
.node-meta {
  color: var(--landing-muted);
  font-family: var(--mono);
  font-size: 12px;
}
.runtime-trace {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 32px;
}
.runtime-trace span {
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.12);
  overflow: hidden;
  position: relative;
}
.runtime-trace span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--landing-green), transparent);
  animation: trace 2.6s ease-in-out infinite;
}
.runtime-trace span:nth-child(2)::after { animation-delay: .18s; }
.runtime-trace span:nth-child(3)::after { animation-delay: .36s; }
.runtime-trace span:nth-child(4)::after { animation-delay: .54s; }
@keyframes trace {
  0% { transform: translateX(-100%); }
  52%, 100% { transform: translateX(100%); }
}
.landing-band {
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 24px 66px;
}
.landing-section-head {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 22px;
}
.landing-section-head span {
  color: var(--landing-copper);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 800;
}
.landing-section-head h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.feature-card,
.project-strip > div,
.dev-panel {
  border: 1px solid var(--landing-border);
  border-radius: 8px;
  background: rgba(255,255,255,.045);
}
.feature-card {
  min-height: 184px;
  padding: 18px;
}
.feature-card strong,
.project-strip strong,
.dev-panel strong {
  display: block;
  color: var(--landing-text);
  font-size: 16px;
  margin-bottom: 10px;
}
.feature-card p,
.project-strip p,
.dev-panel p {
  margin: 0;
  color: var(--landing-muted);
  font-size: 14px;
  line-height: 1.55;
}
.landing-projects {
  padding-top: 18px;
}
.project-strip {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: 14px;
}
.project-strip > div {
  padding: 20px;
  min-height: 150px;
}
.landing-dev {
  padding-top: 0;
}
.dev-panel {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) 1.2fr;
  gap: 24px;
  align-items: center;
  padding: 18px;
}
.dev-panel span {
  color: var(--landing-copper);
  font-size: 12px;
  font-weight: 900;
}
.dev-inline-form {
  display: grid;
  grid-template-columns: 1fr 120px auto;
  gap: 10px;
}
.dev-inline-form input,
.dev-inline-form select {
  margin: 0;
  border-color: var(--landing-border);
  background: rgba(8,11,18,.72);
  color: var(--landing-text);
}

@media (max-width: 920px) {
  .landing-hero {
    min-height: auto;
    padding-top: 56px;
  }
  .landing-shell,
  .landing-section-head,
  .dev-panel {
    grid-template-columns: 1fr;
  }
  .runtime-panel {
    min-height: 360px;
    transform: none;
  }
  .landing-copy h1 {
    font-size: 58px;
  }
  .feature-grid,
  .project-strip {
    grid-template-columns: 1fr 1fr;
  }
  .dev-inline-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .landing-copy h1 {
    font-size: 42px;
  }
  .landing-lead {
    font-size: 16px;
  }
  .runtime-grid,
  .feature-grid,
  .project-strip {
    grid-template-columns: 1fr;
  }
  .runtime-node.wide {
    grid-column: auto;
  }
}

/* ---------- demo projects showcase ---------- */
.showcase-page {
  background: #080c1a;
  color: #e8ebf7;
}
.showcase-page .footer {
  background: #080c1a;
  border-top: 1px solid rgba(104,116,190,.24);
  color: #7f89ad;
}
.showcase-main {
  width: 100%;
  flex: 1;
}
.showcase-head {
  min-height: 184px;
  padding: 24px 76px 42px;
  border-bottom: 1px solid rgba(104,116,190,.28);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.showcase-head h1 {
  margin: 0 0 10px;
  font-size: 34px;
  font-weight: 500;
  line-height: 1.14;
  letter-spacing: 0;
  color: #f2f4ff;
}
.showcase-head p {
  margin: 0;
  color: #a0a9cb;
  font-size: 18px;
  font-weight: 400;
}
.showcase-head .showcase-schedule {
  margin-top: 2px;
  color: #8e98bd;
  font-size: 14px;
  font-weight: 400;
}
.showcase-head-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  padding-top: 8px;
}
.showcase-login {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  border: 1px solid rgba(111,101,244,.42);
  border-radius: 8px;
  padding: 8px 12px;
  color: #eceeff;
  background: rgba(28,34,70,.7);
  font-weight: 500;
}
.showcase-login:hover {
  text-decoration: none;
  background: rgba(44,52,104,.78);
}
.showcase-login.muted {
  color: #98a2c7;
}
.mvp-strip {
  margin: 30px 76px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.mvp-strip > div {
  border: 1px solid rgba(104,116,190,.30);
  border-radius: 8px;
  background: #11172d;
  padding: 16px 18px;
}
.mvp-strip span {
  display: block;
  margin-bottom: 6px;
  color: #6878f4;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}
.mvp-strip strong {
  display: block;
  color: #f0f3ff;
  font-size: 15px;
  font-weight: 500;
  margin-bottom: 6px;
}
.mvp-strip p {
  margin: 0;
  color: #9ba5c8;
  font-size: 14px;
  line-height: 1.45;
}
.project-grid {
  padding: 30px 76px 58px;
  display: grid;
  grid-template-columns: repeat(3, minmax(300px, 1fr));
  gap: 28px;
  align-items: stretch;
}
.demo-card {
  min-height: 1040px;
  border: 1px solid rgba(104,116,190,.34);
  border-radius: 8px;
  background: #12182f;
  padding: 30px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 28px 70px rgba(0,0,0,.24);
}
.demo-card.accent-blue {
  border-color: rgba(103,105,255,.72);
}
.project-code {
  height: 26px;
  border-radius: 999px;
  padding: 2px 14px;
  display: flex;
  align-items: center;
  color: #eef2ff;
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  text-transform: uppercase;
}
.accent-blue .project-code { background: #3f6fe6; }
.accent-green .project-code { background: #4da171; }
.accent-red .project-code { background: #e04038; }
.card-topline {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.card-topline h2 {
  margin: 0;
  color: #f3f5ff;
  font-size: 24px;
  font-weight: 500;
  line-height: 1.18;
  letter-spacing: 0;
}
.mvp-badge {
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  white-space: nowrap;
}
.mvp-badge.ready {
  color: #08130e;
  background: #55e4a9;
}
.mvp-badge.draft {
  color: #101422;
  background: #b9c6ff;
}
.mvp-badge.planned {
  color: #25100f;
  background: #f2aaa4;
}
.project-subtitle {
  margin: 10px 0 18px;
  color: #98a2c4;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.35;
}
.project-description {
  margin: 0 0 22px;
  color: #e0e4f5;
  font-size: 15px;
  font-weight: 400;
  line-height: 1.55;
}
.useful-docs {
  margin: 0 0 22px;
  border: 1px solid rgba(104,116,190,.30);
  border-radius: 8px;
  background: rgba(8,12,26,.32);
  padding: 14px;
}
.useful-docs h3 {
  margin: 0 0 10px;
  color: #f2f4ff;
  font-size: 15px;
  font-weight: 500;
}
.useful-docs ul {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.useful-docs li {
  display: grid;
  gap: 2px;
}
.useful-docs a {
  color: #dbe1ff;
  font-size: 14px;
  font-weight: 500;
}
.useful-docs span,
.useful-docs p {
  margin: 0;
  color: #8f99bd;
  font-size: 13px;
  line-height: 1.4;
}
.tag-list {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tag-list span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(104,116,190,.42);
  border-radius: 8px;
  padding: 2px 10px;
  color: #d8ddf1;
  background: #202747;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.1;
}
.demo-creds {
  margin-top: 28px;
  border: 1px dashed rgba(104,116,190,.46);
  border-radius: 8px;
  padding: 14px 16px;
  color: #f1f4ff;
  background: #202747;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.3;
}
.card-actions-stack {
  margin-top: 22px;
  border-top: 1px dashed rgba(104,116,190,.32);
  padding-top: 16px;
  display: grid;
  gap: 10px;
}
.card-primary,
.card-secondary {
  min-height: 48px;
  border-radius: 8px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #eef1ff;
  font-size: 15px;
  font-weight: 600;
}
.card-primary {
  background: #665df0;
}
.card-primary:hover {
  background: #776fff;
  color: #fff;
  text-decoration: none;
}
.card-secondary {
  border: 1px solid rgba(104,116,190,.34);
  background: #202747;
}
.card-secondary:hover {
  text-decoration: none;
}
.card-primary.disabled,
.card-secondary.disabled {
  opacity: .68;
  cursor: default;
}
.showcase-dev {
  margin: 0 76px 48px;
  border: 1px solid rgba(104,116,190,.30);
  border-radius: 8px;
  background: #11172d;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(250px, .6fr) 1fr;
  gap: 18px;
  align-items: center;
}
.showcase-dev strong,
.showcase-dev span {
  display: block;
}
.showcase-dev strong {
  color: #f2f4ff;
  font-size: 18px;
}
.showcase-dev span {
  color: #99a3c4;
  font-size: 14px;
}
.showcase-dev form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 120px auto;
  gap: 10px;
}
.showcase-dev input,
.showcase-dev select,
.showcase-dev button {
  min-height: 40px;
  border: 1px solid rgba(104,116,190,.42);
  border-radius: 8px;
  padding: 0 12px;
  color: #eef1ff;
  background: #202747;
  font: inherit;
}
.showcase-dev button {
  background: #665df0;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 1180px) {
  .showcase-head,
  .project-grid,
  .mvp-strip,
  .showcase-dev {
    margin-left: 28px;
    margin-right: 28px;
  }
  .showcase-head {
    padding-left: 28px;
    padding-right: 28px;
  }
  .project-grid {
    padding-left: 28px;
    padding-right: 28px;
    grid-template-columns: 1fr;
  }
  .demo-card {
    min-height: auto;
  }
}

@media (max-width: 760px) {
  .showcase-head {
    margin: 0;
    flex-direction: column;
  }
  .showcase-head h1 {
    font-size: 30px;
  }
  .showcase-head p {
    font-size: 16px;
  }
  .mvp-strip,
  .showcase-dev {
    grid-template-columns: 1fr;
  }
  .project-grid {
    margin: 0;
    padding: 24px 16px 44px;
  }
  .showcase-dev form {
    grid-template-columns: 1fr;
  }
}

/* ---------- CRM-only public home ---------- */
.crm-home {
  --crm-bg: #080c16;
  --crm-surface: #10182a;
  --crm-surface-2: #16203a;
  --crm-border: rgba(128, 145, 206, .28);
  --crm-text: #f0f3ff;
  --crm-muted: #97a3c5;
  --crm-accent: #56d6a8;
  --crm-blue: #5b76ff;
  background:
    linear-gradient(90deg, rgba(128,145,206,.08) 1px, transparent 1px) 0 0 / 72px 72px,
    linear-gradient(180deg, #080c16 0%, #0d1220 100%);
  color: var(--crm-text);
}
.crm-home .footer {
  background: transparent;
  border-top: 1px solid var(--crm-border);
  color: #7f8aaa;
}
.crm-home-main {
  width: 100%;
  flex: 1;
}
.crm-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 54px 28px 30px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: stretch;
}
.crm-hero-copy,
.crm-status-panel,
.crm-info-grid article,
.crm-stack-section,
.crm-dev-login {
  border: 1px solid var(--crm-border);
  border-radius: 8px;
  background: rgba(16,24,42,.84);
  box-shadow: 0 28px 70px rgba(0,0,0,.24);
}
.crm-hero-copy {
  padding: 34px;
}
.crm-eyebrow,
.section-label {
  display: inline-flex;
  color: var(--crm-accent);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.crm-hero h1 {
  margin: 14px 0 12px;
  color: var(--crm-text);
  font-size: 64px;
  line-height: .98;
  letter-spacing: 0;
}
.crm-lead {
  margin: 0;
  max-width: 760px;
  color: #cfd6f1;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
}
.crm-summary {
  margin: 22px 0 0;
  max-width: 820px;
  color: var(--crm-muted);
  font-size: 17px;
  line-height: 1.62;
}
.crm-actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.crm-primary,
.crm-secondary {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
}
.crm-primary {
  background: var(--crm-blue);
  color: #fff;
}
.crm-primary:hover {
  background: #6d84ff;
  color: #fff;
  text-decoration: none;
}
.crm-secondary {
  border: 1px solid var(--crm-border);
  background: var(--crm-surface-2);
  color: #dce2f7;
}
.crm-secondary:hover {
  color: #fff;
  text-decoration: none;
}
.crm-primary.disabled,
.crm-secondary.disabled {
  opacity: .66;
  cursor: default;
}
.crm-status-panel {
  padding: 22px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.status-row {
  border-bottom: 1px solid rgba(128,145,206,.18);
  padding-bottom: 12px;
}
.status-row span {
  display: block;
  color: var(--crm-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.status-row strong {
  display: block;
  margin-top: 5px;
  color: var(--crm-text);
  font-size: 17px;
}
.demo-creds.compact {
  margin-top: 6px;
}
.crm-info-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.crm-info-grid article,
.crm-stack-section {
  padding: 24px;
}
.crm-info-grid h2 {
  margin: 10px 0 12px;
  color: var(--crm-text);
  font-size: 26px;
  line-height: 1.12;
  letter-spacing: 0;
}
.crm-info-grid p {
  margin: 0;
  color: #c1cae8;
  font-size: 17px;
  line-height: 1.62;
}
.crm-stack-section {
  max-width: 1148px;
  margin: 0 auto 18px;
}
.crm-stack {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.crm-stack span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(128,145,206,.34);
  border-radius: 8px;
  padding: 2px 10px;
  color: #dbe1f5;
  background: #202a48;
  font-size: 15px;
  font-weight: 800;
}
.crm-dev-login {
  max-width: 1148px;
  margin: 0 auto 42px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(260px, .7fr) 1fr;
  gap: 18px;
  align-items: center;
}
.crm-dev-login strong,
.crm-dev-login span {
  display: block;
}
.crm-dev-login strong {
  color: var(--crm-text);
}
.crm-dev-login span {
  color: var(--crm-muted);
  font-size: 14px;
}
.crm-dev-login form {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 120px auto;
  gap: 10px;
}
.crm-dev-login input,
.crm-dev-login select,
.crm-dev-login button {
  min-height: 40px;
  border: 1px solid rgba(128,145,206,.38);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--crm-text);
  background: #202a48;
  font: inherit;
}
.crm-dev-login button {
  background: var(--crm-blue);
  font-weight: 900;
  cursor: pointer;
}

@media (max-width: 900px) {
  .crm-hero,
  .crm-info-grid,
  .crm-dev-login {
    grid-template-columns: 1fr;
  }
  .crm-hero h1 {
    font-size: 48px;
  }
}

@media (max-width: 560px) {
  .crm-hero {
    padding: 22px 14px;
  }
  .crm-hero-copy,
  .crm-status-panel,
  .crm-info-grid article,
  .crm-stack-section,
  .crm-dev-login {
    padding: 18px;
  }
  .crm-info-grid {
    padding-left: 14px;
    padding-right: 14px;
  }
  .crm-dev-login form {
    grid-template-columns: 1fr;
  }
}
