/* Contact Us button + modal */
.NewMegaMenu_contact {
  border: 0; cursor: pointer; font-family: inherit;
  background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%);
  box-shadow: 0 2px 10px rgba(124, 58, 237, 0.3);
}
.NewMegaMenu_contact:hover { box-shadow: 0 4px 16px rgba(124, 58, 237, 0.45); }

.cm-overlay {
  position: fixed; inset: 0; z-index: 3000; display: none; align-items: center; justify-content: center;
  padding: 20px; background: rgba(10, 6, 30, 0.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.cm-overlay.is-open { display: flex; animation: cmFade 0.25s ease both; }
@keyframes cmFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes cmPop { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }

.cm-modal {
  position: relative; width: min(920px, 100%); max-height: 100%; overflow: auto;
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 28px; align-items: stretch;
  padding: 28px; border-radius: 28px; font-family: var(--ff-font-poppins, sans-serif);
  background: linear-gradient(100deg, #6d28d9 0%, #c026d3 38%, #f9a8d4 55%, #be185d 80%, #7e22ce 100%);
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, 0.7);
  animation: cmPop 0.4s cubic-bezier(.2,.8,.2,1) both;
}

.cm-art {
  position: relative; overflow: hidden; border-radius: 22px; min-height: 380px; padding: 28px;
  display: flex; flex-direction: column; justify-content: flex-end; color: #fff;
  background: radial-gradient(circle at 70% 20%, #2a0a5e, #0a0420 70%);
}
.cm-orb { position: absolute; border-radius: 50%; filter: blur(0.5px); animation: cmFloat 9s ease-in-out infinite; }
.cm-orb--1 { width: 230px; height: 230px; top: -40px; right: -50px; background: radial-gradient(circle at 35% 30%, #fb923c, #db2777 45%, #4c1d95 80%); }
.cm-orb--2 { width: 190px; height: 190px; top: 70px; left: 20px; background: radial-gradient(circle at 40% 35%, #c084fc, #7c3aed 50%, #1e1b4b 85%); animation-delay: -3s; }
.cm-orb--3 { width: 90px; height: 90px; bottom: 150px; right: 30px; background: radial-gradient(circle at 35% 30%, #f472b6, #9d174d 70%); animation-delay: -5s; opacity: 0.9; }
.cm-orb--4 { width: 60px; height: 60px; bottom: 120px; left: 40px; border: 2px solid rgba(244, 114, 182, 0.7); background: rgba(244, 114, 182, 0.12); animation-delay: -1s; }
@keyframes cmFloat { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(10px, -14px); } }

.cm-fact { position: relative; z-index: 1; padding: 16px 18px; border-radius: 16px; background: rgba(10, 4, 32, 0.55); border: 1px solid rgba(255, 255, 255, 0.18); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.cm-fact__label { display: block; margin-bottom: 6px; font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #f9a8d4; }
.cm-fact__text { margin: 0; font-size: 14px; line-height: 1.5; min-height: 63px; transition: opacity 0.35s ease, transform 0.35s ease; }
.cm-fact__text.is-out { opacity: 0; transform: translateY(6px); }

.cm-panel {
  position: relative; padding: 30px 30px 26px; border-radius: 22px; color: #fff;
  background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  display: flex; flex-direction: column; justify-content: center;
}
.cm-close {
  position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; cursor: pointer;
  font-size: 22px; line-height: 1; color: #fff; background: rgba(255, 255, 255, 0.2);
}
.cm-close:hover { background: rgba(255, 255, 255, 0.35); }
.cm-title { margin: 0 0 4px; text-align: center; font-size: 2rem; font-weight: 500; letter-spacing: 0.01em; }
.cm-sub { margin: 0 0 22px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, 0.85); }

.cm-field { display: block; margin-bottom: 18px; }
.cm-field span { display: block; font-size: 12px; color: rgba(255, 255, 255, 0.9); margin-bottom: 2px; }
.cm-field input, .cm-field textarea {
  width: 100%; box-sizing: border-box; padding: 8px 2px; font: 400 14px var(--ff-font-poppins, sans-serif); color: #fff;
  background: transparent; border: 0; border-bottom: 1.5px solid rgba(255, 255, 255, 0.75); outline: none; resize: none;
}
.cm-field input::placeholder, .cm-field textarea::placeholder { color: rgba(255, 255, 255, 0.55); }
.cm-field input:focus, .cm-field textarea:focus { border-bottom-color: #fff; box-shadow: 0 2px 0 0 rgba(255, 255, 255, 0.6); }
.cm-field [aria-invalid="true"] { border-bottom-color: #fecaca; }
.cm-err { min-height: 16px; margin: -10px 0 8px; font-size: 12px; color: #fee2e2; }

.cm-submit {
  align-self: center; margin-top: 4px; padding: 11px 32px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 14px var(--ff-font-poppins, sans-serif); color: #fff; background: #2e0a4f;
  transition: transform 0.15s ease, background 0.15s ease;
}
.cm-submit:hover { background: #1b0634; transform: translateY(-1px); }
.cm-submit:disabled { opacity: 0.6; cursor: wait; transform: none; }
.cm-status { margin: 12px 0 0; min-height: 18px; text-align: center; font-size: 12.5px; color: #fff; }
.cm-status a { color: #fff; }

.cm-thanks { display: none; text-align: center; padding: 20px 0; }
.cm-panel.is-sent form { display: none; }
.cm-panel.is-sent .cm-thanks { display: block; animation: cmPop 0.45s ease both; }
.cm-tick { width: 70px; height: 70px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.25); border: 2px solid #fff; }
.cm-tick svg { width: 34px; height: 34px; }
.cm-thanks h3 { margin: 0 0 8px; font-size: 1.6rem; font-weight: 600; }
.cm-thanks p { margin: 0 0 20px; font-size: 14px; color: rgba(255, 255, 255, 0.9); }

.cm-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Legibility: lighter frosted panel with dark text so nothing blends into the gradient */
.cm-panel { background: rgba(255, 255, 255, 0.82); border-color: rgba(255, 255, 255, 0.9); color: #2b1450; }
.cm-sub { color: #5b4a7a; }
.cm-field span { color: #3b2466; font-weight: 500; }
.cm-field input, .cm-field textarea { color: #1e0f3a; border-bottom-color: rgba(76, 29, 149, 0.55); }
.cm-field input::placeholder, .cm-field textarea::placeholder { color: rgba(76, 29, 149, 0.45); }
.cm-field input:focus, .cm-field textarea:focus { border-bottom-color: #7c3aed; box-shadow: 0 2px 0 0 rgba(124, 58, 237, 0.45); }
.cm-field [aria-invalid="true"] { border-bottom-color: #dc2626; }
.cm-err { color: #b91c1c; }
.cm-status { color: #2b1450; }
.cm-status a { color: #6d28d9; }
.cm-close { color: #2b1450; background: rgba(76, 29, 149, 0.1); }
.cm-close:hover { background: rgba(76, 29, 149, 0.2); }
.cm-thanks p { color: #4a3a6a; }
.cm-tick { background: rgba(124, 58, 237, 0.12); border-color: #7c3aed; }
.cm-tick svg path { stroke: #7c3aed; }

@media (max-width: 760px) {
  .cm-modal { grid-template-columns: 1fr; padding: 16px; gap: 16px; }
  .cm-art { min-height: 170px; padding: 16px; }
  .cm-orb--1 { width: 140px; height: 140px; } .cm-orb--2 { width: 110px; height: 110px; top: 30px; }
  .cm-orb--3, .cm-orb--4 { display: none; }
  .cm-fact__text { min-height: 0; }
}
@media (prefers-reduced-motion: reduce) { .cm-orb, .cm-modal, .cm-overlay.is-open { animation: none; } }

/* =========================================================================
   Header fit: the nav has 5 menu items and 4 CTA buttons, so keep all items
   non-shrinking and compact step by step as the viewport narrows.
   ========================================================================= */
.NewMegaMenu_nav { min-width: 0; gap: 14px; padding: 0 20px; }
.NewMegaMenu_menu { flex-shrink: 0; gap: 4px; white-space: nowrap; }
.NewMegaMenu_menuBtn, .NewMegaMenu_menuLink { white-space: nowrap; padding: 10px 11px; font-size: 13.5px; }
.NewMegaMenu_actions { flex-shrink: 0; gap: 8px; }
.NewMegaMenu_actions > * { white-space: nowrap; flex-shrink: 0; }
.NewMegaMenu_signIn, .NewMegaMenu_cta { padding: 8px 14px; font-size: 13px; }

@media (max-width: 1560px) {
  .NewMegaMenu_nav { padding: 0 16px; gap: 10px; }
  .NewMegaMenu_menu { gap: 2px; }
  .NewMegaMenu_menuBtn, .NewMegaMenu_menuLink { padding: 9px 8px; font-size: 13px; gap: 4px; }
  .NewMegaMenu_actions { gap: 7px; }
  .NewMegaMenu_signIn, .NewMegaMenu_cta { padding: 7px 11px; font-size: 12.5px; }
}
@media (max-width: 1360px) {
  .NewMegaMenu_logoSub { display: none; }
  .NewMegaMenu_menuBtn, .NewMegaMenu_menuLink { padding: 8px 7px; font-size: 12.5px; gap: 3px; }
  .NewMegaMenu_actions { gap: 6px; }
  .NewMegaMenu_signIn, .NewMegaMenu_cta { padding: 7px 10px; font-size: 12px; }
}
@media (max-width: 1180px) {
  .NewMegaMenu_signIn { display: none; } /* "Get started" is on the welcome screen and in the drawer */
}
/* Below this the full menu cannot fit; use the hamburger drawer (it includes Contact Us & Test Workspace). */
@media (max-width: 1060px) {
  .NewMegaMenu_menu, .NewMegaMenu_actions { display: none; }
  .NewMobileMenu_hamburger { display: flex; }
}
/* Simulator: hide the idle "Ready to simulate" line; export buttons only appear after a run */
.runner-status[data-tone="idle"] { display: none; }
.runner-export-actions[hidden] { display: none; }

/* Walkthrough: Previous / Next are inert at the first / last stage */
#btnPrev:disabled, #btnNext:disabled { opacity: 0.4; cursor: not-allowed; pointer-events: none; }

/* =========================================================================
   ATOM Workspace Launch Button & Confirmation Modal
   ========================================================================= */
.NewMegaMenu_appLaunch {
  border: 0;
  cursor: pointer;
  font-family: inherit;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 10px rgba(37, 99, 235, 0.35) !important;
}
.NewMegaMenu_appLaunch:hover {
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.5) !important;
  transform: translateY(-1px);
}

.welcome-btn--workspace {
  background: linear-gradient(135deg, #2563eb, #7c3aed) !important;
  color: #ffffff !important;
  border: 0 !important;
  box-shadow: 0 10px 30px -8px rgba(99, 102, 241, 0.7) !important;
}
.welcome-btn--workspace:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -8px rgba(99, 102, 241, 0.85) !important;
}

.app-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 3200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(6, 13, 31, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.app-confirm-overlay.is-open {
  display: flex;
  animation: cmFade 0.25s ease both;
}

.app-confirm-modal {
  position: relative;
  width: min(580px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  border-radius: 24px;
  font-family: var(--ff-font-poppins, sans-serif);
  color: #e2e8f0;
  background: linear-gradient(145deg, #0e1b38 0%, #080f24 100%);
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 30px 80px -15px rgba(0, 0, 0, 0.8), 0 0 40px rgba(59, 130, 246, 0.15);
  animation: cmPop 0.35s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.app-confirm-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  display: grid;
  place-items: center;
  transition: all 0.15s ease;
}
.app-confirm-close:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
}

.app-confirm-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
}
.app-confirm-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0b1736 0%, #1d4ed8 65%, #0ea5e9 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  box-shadow: 0 4px 14px rgba(29, 78, 216, 0.35);
  flex-shrink: 0;
}
.app-confirm-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(147, 197, 253, 0.3);
  padding: 3px 9px;
  border-radius: 999px;
  margin-bottom: 4px;
}
.app-confirm-title {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.app-confirm-lead {
  font-size: 14px;
  line-height: 1.6;
  color: #cbd5e1;
  margin: 0 0 18px;
}

.app-confirm-features {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}
.app-confirm-feature {
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.app-confirm-feature strong {
  display: block;
  font-size: 13px;
  color: #7dd3fc;
  margin-bottom: 2px;
}
.app-confirm-feature span {
  display: block;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.45;
}

.app-confirm-note {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  margin-bottom: 22px;
  font-size: 12px;
  color: #cbd5e1;
}
.app-confirm-note code {
  color: #34d399;
  font-family: var(--ff-font-mono, monospace);
  font-weight: 600;
}
.app-confirm-note small {
  display: block;
  color: #64748b;
  margin-top: 2px;
}

.app-confirm-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}
.app-confirm-btn {
  padding: 10px 20px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.16s ease;
}
.app-confirm-btn--cancel {
  background: transparent;
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.app-confirm-btn--cancel:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}
.app-confirm-btn--confirm {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #ffffff;
  border: 0;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.4);
}
.app-confirm-btn--confirm:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.55);
}