/* ============================================================
   APEX EDGE PRO — Demo funnel styles (demo.html + shared modals)
   Reuses landing.css design tokens.
   ============================================================ */

/* ---- demo hero badges ---- */
.demo-eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: "JetBrains Mono", monospace; font-size: 0.72rem; letter-spacing: 2px;
  text-transform: uppercase; color: var(--primary, #f59e0b);
  padding: 7px 14px; border: 1px solid rgba(245, 158, 11, 0.32); border-radius: 999px;
  background: rgba(245, 158, 11, 0.06);
}
.demo-eyebrow .status-light { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 10px #10b981; }
.demo-free { color: var(--primary, #f59e0b); }
.demo-availability {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-top: 18px; padding: 11px 14px; border-radius: 10px;
  border: 1px solid rgba(16, 185, 129, 0.28); background: rgba(16, 185, 129, 0.07);
  color: var(--text-secondary, #cbd5e1); font-size: 0.9rem;
}
.demo-availability strong { color: var(--text-primary, #f8fafc); }
.demo-availability .status-light {
  width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 10px #10b981;
}
.demo-availability.is-soldout {
  border-color: rgba(245, 158, 11, 0.34); background: rgba(245, 158, 11, 0.08);
}
.demo-availability.is-soldout .status-light { background: #f59e0b; box-shadow: 0 0 10px #f59e0b; }
.modal-availability { display: flex; margin: 0 0 16px; }
.form-error {
  padding: 11px 12px; border-radius: 10px; border: 1px solid rgba(248, 113, 113, 0.32);
  color: #fecaca; background: rgba(127, 29, 29, 0.24); font-size: 0.86rem; line-height: 1.5;
}
a[aria-disabled="true"] { pointer-events: none; opacity: .58; }

/* ---- "how it works" steps ---- */
.demo-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 2.5rem; }
.demo-step {
  padding: 22px; border-radius: 14px; border: 1px solid var(--border, rgba(148,163,184,0.14));
  background: var(--bg-panel, rgba(17,24,39,0.72)); position: relative; backdrop-filter: blur(14px);
}
.demo-step__n {
  font-family: "JetBrains Mono", monospace; font-size: 0.78rem; font-weight: 700; color: #1a1205;
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center;
  background: linear-gradient(135deg, #fbbf24, #f59e0b); margin-bottom: 14px;
}
.demo-step h3 { font-family: "Rajdhani", sans-serif; font-size: 1.2rem; margin: 0 0 8px; }
.demo-step p { color: var(--text-secondary, #cbd5e1); font-size: 0.92rem; line-height: 1.6; margin: 0; }
.demo-step a.aff { color: var(--primary, #f59e0b); font-weight: 600; }

/* ---- trust note ---- */
.demo-trust {
  margin-top: 1.6rem; padding: 18px 20px; border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.22); background: rgba(59, 130, 246, 0.06);
  color: var(--text-secondary, #cbd5e1); font-size: 0.9rem; line-height: 1.65;
}
.demo-trust strong { color: var(--text-primary, #f8fafc); }

/* ---- feature catalog ---- */
.demo-catalog { margin-top: 2.5rem; display: grid; gap: 2rem; }
.demo-cat-group h3 {
  font-family: "Rajdhani", sans-serif; font-size: 1.5rem; margin: 0 0 4px;
  display: flex; align-items: center; gap: 12px;
}
.demo-cat-group .grp-blurb { color: var(--text-muted, #94a3b8); font-size: 0.92rem; margin: 0 0 16px; }
.demo-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.demo-feat {
  padding: 16px; border-radius: 12px; border: 1px solid var(--border, rgba(148,163,184,0.14));
  background: var(--bg-panel, rgba(17,24,39,0.72)); transition: transform .2s, border-color .2s;
}
.demo-feat:hover { transform: translateY(-3px); border-color: rgba(245,158,11,0.3); }
.demo-feat__h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.demo-feat__h strong { font-size: 0.98rem; line-height: 1.3; }
.demo-feat__what { display: block; color: var(--text-muted, #94a3b8); font-size: 0.82rem; margin-top: 4px; }
.demo-feat p { color: var(--text-secondary, #cbd5e1); font-size: 0.86rem; line-height: 1.55; margin: 10px 0 0; }
.pill-status {
  font-family: "JetBrains Mono", monospace; font-size: 0.62rem; font-weight: 700; letter-spacing: .6px;
  padding: 4px 8px; border-radius: 6px; text-transform: uppercase; white-space: nowrap; flex: none;
}
.pill-usable { color: #052e1a; background: linear-gradient(135deg, #34d399, #10b981); }
.pill-locked { color: var(--text-muted, #94a3b8); background: rgba(148,163,184,0.12); border: 1px solid rgba(148,163,184,0.2); }

/* ---- modal (shared: registration + tried-demo gate) ---- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 1100; display: none; align-items: center; justify-content: center;
  background: rgba(4, 7, 13, 0.78); backdrop-filter: blur(6px); padding: 20px;
}
.modal-backdrop.open { display: flex; animation: fadeIn .2s ease; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-card {
  width: min(520px, 100%); max-height: 92vh; overflow-y: auto; border-radius: 18px;
  background: var(--bg-panel-strong, rgba(8,13,25,0.92)); border: 1px solid rgba(245,158,11,0.28);
  box-shadow: 0 30px 90px -20px rgba(0,0,0,0.8); padding: 28px; position: relative;
  animation: rise .25s cubic-bezier(.2,.7,.2,1);
}
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.modal-card h2 { font-family: "Rajdhani", sans-serif; font-size: 1.7rem; margin: 0 0 6px; }
.modal-card .modal-sub { color: var(--text-secondary, #cbd5e1); font-size: 0.92rem; margin: 0 0 20px; line-height: 1.6; }
.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 9px; border: 0; background: rgba(255,255,255,0.06); color: var(--text-muted); font-size: 16px; cursor: pointer; }
.modal-close:hover { background: rgba(255,255,255,0.12); color: var(--text-primary); }

.field-row { margin-bottom: 14px; }
.field-row label { display: block; font-family: "JetBrains Mono", monospace; font-size: 0.7rem; letter-spacing: 1px; color: var(--text-muted, #94a3b8); text-transform: uppercase; margin-bottom: 6px; }
.field-row input, .field-row select, .field-row textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border, rgba(148,163,184,0.18));
  background: rgba(0,0,0,0.3); color: var(--text-primary, #f8fafc); font-family: "Inter", sans-serif; font-size: 0.95rem;
}
.field-row input:focus, .field-row select:focus, .field-row textarea:focus { outline: none; border-color: rgba(245,158,11,0.5); }
.field-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-btn {
  width: 100%; padding: 14px; border: 0; border-radius: 11px; font-family: "JetBrains Mono", monospace;
  font-weight: 700; letter-spacing: .5px; font-size: 0.95rem; color: #1a1205;
  background: linear-gradient(135deg, #fbbf24, #f59e0b); cursor: pointer; transition: .2s; margin-top: 6px;
}
.modal-btn:hover { box-shadow: 0 12px 30px -10px rgba(245,158,11,0.7); transform: translateY(-1px); }
.modal-btn.secondary { background: rgba(255,255,255,0.06); color: var(--text-secondary); border: 1px solid var(--border); }
.modal-btn[disabled] { opacity: .6; cursor: wait; }
.gate-choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---- key reveal ---- */
.key-reveal { text-align: center; }
.key-box {
  font-family: "JetBrains Mono", monospace; font-size: 1.35rem; font-weight: 700; letter-spacing: 2px;
  color: var(--primary, #f59e0b); padding: 16px; border-radius: 12px; margin: 18px 0;
  background: rgba(245,158,11,0.08); border: 1px dashed rgba(245,158,11,0.4); cursor: copy;
}
.key-note { color: var(--text-muted, #94a3b8); font-size: 0.82rem; line-height: 1.6; }

/* ---- Demo promo section (on the landing home page) ---- */
.demo-promo { position: relative; overflow: hidden; scroll-margin-top: 96px; }
.demo-promo::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(520px 360px at 78% 30%, rgba(245, 158, 11, 0.10), transparent 70%),
              radial-gradient(460px 320px at 12% 70%, rgba(59, 130, 246, 0.08), transparent 70%);
}
.demo-promo .container { position: relative; z-index: 1; }
.demo-promo__grid {
  display: grid; grid-template-columns: 1.02fr 1fr; gap: 52px; align-items: center; margin-top: 2.6rem;
}
.demo-promo__points { display: grid; gap: 16px; margin: 0 0 2rem; }
.demo-point { display: flex; gap: 13px; align-items: flex-start; }
.demo-point__ic {
  flex: none; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center;
  font-size: 13px; font-weight: 800; color: #052e1a;
  background: linear-gradient(135deg, #34d399, #10b981); box-shadow: 0 6px 16px -6px rgba(16, 185, 129, 0.6);
}
.demo-point strong { display: block; font-size: 1.02rem; margin-bottom: 2px; }
.demo-point span { color: var(--text-muted, #94a3b8); font-size: 0.92rem; line-height: 1.55; }
.demo-promo__cta { display: flex; gap: 14px; flex-wrap: wrap; }
.demo-promo__note {
  margin-top: 1.3rem; font-family: "JetBrains Mono", monospace; font-size: 0.74rem; letter-spacing: .4px;
  color: var(--text-soft, #64748b);
}
/* app window frame around the screenshot */
.demo-frame {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border, rgba(148, 163, 184, 0.16));
  background: var(--bg-panel-strong, rgba(8, 13, 25, 0.92));
  box-shadow: 0 40px 100px -30px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(245, 158, 11, 0.12);
  transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .4s ease;
}
.demo-frame:hover { transform: perspective(1400px) rotateY(0deg) rotateX(0deg); }
.demo-frame__bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: rgba(6, 9, 18, 0.92); border-bottom: 1px solid var(--border, rgba(148, 163, 184, 0.14)); }
.demo-frame__bar i { width: 11px; height: 11px; border-radius: 50%; background: #313c4f; }
.demo-frame__bar i:nth-child(1) { background: #f59e0b; }
.demo-frame__bar i:nth-child(2) { background: #8b5cf6; }
.demo-frame__bar i:nth-child(3) { background: #06b6d4; }
.demo-frame__title { margin-left: 10px; font-family: "JetBrains Mono", monospace; font-size: 0.66rem; letter-spacing: 1.5px; color: var(--text-soft, #64748b); text-transform: uppercase; }
.demo-frame img { width: 100%; display: block; }

@media (max-width: 980px) {
  .demo-promo__grid { grid-template-columns: 1fr; gap: 32px; }
  .demo-frame { transform: none; }
  .demo-promo__visual { order: -1; }
}
@media (max-width: 880px) {
  .demo-steps { grid-template-columns: repeat(2, 1fr); }
  .demo-feat-grid { grid-template-columns: 1fr; }
  .field-2, .gate-choice { grid-template-columns: 1fr; }
}
