/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:        #2a1660;
  --bg3:       #241355;
  --card:      #3d2480;
  --card2:     #472c95;
  --border:    #6040b8;
  --accent:    #7c3aff;
  --accent2:   #31cdcf;
  --accent3:   #c44dff;
  --text:      #f4f0ff;
  --muted:     #c0b4e0;
  --green:     #22c55e;
  --critical:  #ef4444;
  --high:      #f97316;
  --grad-hero: linear-gradient(135deg, #34e2e4, #4721fb 50%, #ab1dfe);
  --grad-card: linear-gradient(135deg, #330968, #31cdcf);
  --grad-btn:  linear-gradient(135deg, #7c3aff, #c44dff);
  --radius:    14px;
  --shadow:    0 4px 40px rgba(101,40,247,0.45);
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Manrope', 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a { color: var(--accent2); text-decoration: none; }
a:hover { color: #fff; }

/* ── Utility ── */
.container  { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section    { padding: 96px 0; }
.section-sm { padding: 56px 0; }

/* ── Section backgrounds — strict alternation ── */
.s-dark {
  background: var(--bg);
  color: var(--text);
}
.s-light {
  background: #ffffff;
  color: #1a0f45;
}

/* s-light overrides */
.s-light .section-title { color: #1a0f45; }
.s-light .section-sub   { color: #6b5a90; }
.s-light .tag {
  background: rgba(101,40,247,0.08);
  color: #6528F7;
  border-color: rgba(101,40,247,0.25);
}
.s-light .problem-card,
.s-light .security-item {
  background: #f5f0ff;
  border-color: #d8ccf5;
  color: #1a0f45;
}
.s-light .problem-card:hover,
.s-light .security-item:hover {
  border-color: rgba(101,40,247,0.45);
  box-shadow: 0 4px 24px rgba(101,40,247,0.12);
}
.s-light .problem-card p,
.s-light .security-item p { color: #6b5a90; }
.s-light .problem-card h3,
.s-light .security-item h4 { color: #1a0f45; }
.s-light .security-item .icon { opacity: 1; }
.s-light .problem-stat-label { color: #6b5a90; }
.s-light .integration-pill {
  background: #fff;
  border-color: #d8ccf5;
  color: #1a0f45;
}
.s-light .integration-pill:hover {
  border-color: rgba(101,40,247,0.5);
  color: #6528F7;
  background: #f0ebff;
}

/* ── Tags ── */
.tag {
  display: inline-block; font-size: 14px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(101,40,247,0.18); color: var(--accent2);
  border: 1px solid rgba(101,40,247,0.35);
  border-radius: 20px; padding: 6px 18px; margin-bottom: 16px;
}

.section-title { font-size: 2.2rem; font-weight: 700; margin-bottom: 14px; line-height: 1.2;
                 font-family: 'Manrope', sans-serif; }
.section-sub   { font-size: 1.05rem; color: var(--muted); max-width: 600px; }
.center { text-align: center; }
.center .section-sub { margin: 0 auto; }
.glow { background: linear-gradient(135deg, #34e2e4 0%, #c084fc 45%, #f9a8d4 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; filter: drop-shadow(0 0 16px rgba(249,168,212,0.5)) drop-shadow(0 0 6px rgba(192,132,252,0.4)); }

/* ── Navbar ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  border-bottom: none;
  padding: 0 32px;
  height: 110px;
  display: flex; align-items: center; flex-wrap: wrap;
  transition: background 0.35s, height 0.35s, border-color 0.35s;
}
.nav.scrolled {
  background: rgba(18, 12, 36, 0.93);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  height: 70px;
}
.nav-inner { max-width: 1200px; margin: 0 auto; width: 100%;
             display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 50px; }
.nav-links { display: flex; gap: 36px; list-style: none; }
.nav-links a { font-size: 15px; color: rgba(242,245,247,0.76); font-weight: 500; transition: color .2s; text-transform: uppercase; letter-spacing: 0.08em; }
.nav-links a:hover, .nav-links a.active { color: #ffffff; }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px;
       padding: 10px 22px; border-radius: 8px; font-size: 14px;
       font-weight: 600; cursor: pointer; transition: all .2s; border: none; line-height: 1;
       text-transform: uppercase; letter-spacing: 0.07em; }
.btn-primary { background: var(--grad-btn); color: #fff; }
.btn-primary:hover { opacity: 0.88; color: #fff; transform: translateY(-1px); box-shadow: 0 8px 24px rgba(101,40,247,0.45); }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent2); background: rgba(101,40,247,0.08); }
.btn-lg { padding: 14px 32px; font-size: 16px; border-radius: 10px; }
.btn-nav-cta {
  background: #e8d71a; color: #1a1400;
  padding: 12px 28px; border-radius: 40px; font-size: 15px; font-weight: 700;
  cursor: pointer; transition: all .2s; border: none; line-height: 1;
  display: inline-flex; align-items: center;
}
.btn-nav-cta:hover { background: #f5e620; color: #1a1400; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,215,26,0.35); }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 110px;
  background-color: #120c24;
  background:
    linear-gradient(35deg, rgba(6,0,151,0.82) 0%, rgba(130,4,255,0.75) 64%, rgba(193,15,255,0.72) 98%),
    url('../assets/hero-waves.webp') center center / cover no-repeat;
  position: relative; overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; text-align: center; max-width: 1100px; margin: 0 auto; padding: 16px 24px 48px; }
.hero-logo { margin-bottom: 18px; }
.hero-logo img { height: 68px; filter: drop-shadow(0 0 32px rgba(101,40,247,0.6)); }
.hero-eyebrow { font-size: clamp(2.2rem, 4vw, 4rem); font-weight: 900; letter-spacing: -0.02em;
                text-transform: none; color: #fff; margin-bottom: 14px;
                font-family: 'Manrope', sans-serif; line-height: 1.1; }
.hero h1 { font-size: clamp(1rem, 1.8vw, 1.3rem); font-weight: 400; line-height: 1.6; margin-bottom: 20px;
           font-family: 'Manrope', sans-serif; letter-spacing: 0; color: rgba(255,255,255,0.7); }
.hero-sub { font-size: 1.18rem; color: var(--muted); margin-bottom: 42px;
            max-width: 580px; margin-left: auto; margin-right: auto; }
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-bottom: 28px; }
.hero-badges { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.badge { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted);
         background: rgba(101,40,247,0.1); border: 1px solid var(--border);
         border-radius: 30px; padding: 6px 16px; }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }

/* ── Problem ── */
.problem-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; margin-top: 52px; }
.problem-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; position: relative; overflow: hidden;
  transition: transform 0.25s, box-shadow 0.25s;
  display: flex; flex-direction: column;
}
.problem-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.problem-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; }
.problem-card.red::before    { background: linear-gradient(90deg, var(--critical), transparent); }
.problem-card.orange::before { background: linear-gradient(90deg, var(--high), transparent); }
.problem-card.purple::before { background: var(--grad-hero); }
.problem-icon { width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; flex-shrink: 0; }
.problem-icon svg { width: 26px; height: 26px; color: #fff; stroke: #fff; }
.problem-card.red    .problem-icon { background: linear-gradient(135deg, #ef4444, #f97316); }
.problem-card.orange .problem-icon { background: linear-gradient(135deg, #f97316, #fbbf24); }
.problem-card.purple .problem-icon { background: linear-gradient(135deg, #6528F7, #a78bfa); }
.problem-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; font-family: 'Manrope', sans-serif; }
.problem-card p  { font-size: 0.9rem; color: var(--muted); line-height: 1.6; }
.problem-stat { font-size: 2rem; font-weight: 900; margin: 18px 0 4px; margin-top: auto; padding-top: 18px;
                background: var(--grad-hero); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.problem-stat-label { font-size: 0.82rem; color: var(--muted); min-height: 40px; }

/* ── Hypercare ── */
.hypercare-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.hypercare-badge { background: rgba(34,197,94,0.12); color: var(--green); border: 1px solid rgba(34,197,94,0.3); }
.hypercare h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; margin-bottom: 16px; line-height: 1.2;
                font-family: 'Manrope', sans-serif; }
.hypercare-lead { font-size: 1rem; color: var(--muted); margin-bottom: 32px; }
.hypercare-steps { display: flex; flex-direction: column; gap: 14px; }
.step {
  display: flex; gap: 16px; align-items: flex-start;
  background: rgba(101,40,247,0.06); border: 1px solid var(--border);
  border-radius: 10px; padding: 16px 20px; transition: border-color 0.2s;
}
.step:hover { border-color: rgba(101,40,247,0.4); }
.step-num { width: 32px; height: 32px; border-radius: 50%;
            background: var(--grad-btn); color: #fff; font-size: 13px; font-weight: 800;
            display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.step-content h4 { font-size: 0.92rem; font-weight: 700; margin-bottom: 4px; }
.step-content p  { font-size: 0.84rem; color: var(--muted); line-height: 1.5; }

/* ── Terminal Panel ── */
.hypercare-panel {
  background: #2d1a68; border: 1px solid var(--border); border-radius: 14px;
  overflow: hidden; box-shadow: 0 8px 56px rgba(101,40,247,0.5);
}
.panel-header { background: #3d2480; padding: 12px 20px; display: flex; align-items: center; gap: 8px;
                border-bottom: 1px solid var(--border); }
.panel-dots span { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.panel-dots .r { background: #ff5f57; } .panel-dots .y { background: #febc2e; } .panel-dots .g { background: #28c840; }
.panel-title { font-size: 12px; color: var(--muted); margin-left: 8px; font-family: monospace; }
/* Fixed height (not min-height) so the typing animation scrolls inside the
   panel instead of growing it and shifting the rest of the page. */
.panel-body { padding: 20px; font-family: 'Courier New', monospace; font-size: 12.5px; line-height: 1.75; height: 380px; overflow-y: auto; }
.log-line { margin: 1px 0; }
.log-time  { color: #9880cc; }
.log-fatal { color: #ef4444; font-weight: 700; }
.log-warn  { color: #f97316; }
.log-info  { color: #22c55e; }
.log-ai    { color: var(--accent2); }
.log-dim   { color: #1e1535; }

/* ── MTTR box ── */
.mttr-box { margin-top: 24px; background: rgba(101,40,247,0.08); border: 1px solid var(--border);
            border-radius: var(--radius); padding: 20px 24px; }
.mttr-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
              color: var(--muted); margin-bottom: 12px; }
.mttr-row { display: flex; align-items: center; gap: 20px; }
.mttr-val { font-size: 1.6rem; font-weight: 900; }
.mttr-val.red   { color: var(--critical); }
.mttr-val.green { color: var(--green); }
.mttr-sub { font-size: 0.78rem; color: var(--muted); }
.mttr-arrow { font-size: 1.8rem; color: var(--accent2); }

/* ── Comparison ── */
.comparison { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0; margin-top: 48px; align-items: stretch; }
.comp-card { border-radius: var(--radius); overflow: hidden; border: 1px solid; }
.comp-card.before { background: rgba(239,68,68,0.06); border-color: rgba(239,68,68,0.25); }
.comp-card.after  { background: rgba(34,197,94,0.06);  border-color: rgba(34,197,94,0.25); }
.comp-header { display: flex; align-items: center; gap: 12px; padding: 18px 24px; }
.before-header { background: rgba(239,68,68,0.15); border-bottom: 1px solid rgba(239,68,68,0.2); }
.after-header  { background: rgba(34,197,94,0.15);  border-bottom: 1px solid rgba(34,197,94,0.2); }
.comp-icon { font-size: 1.1rem; font-weight: 900; width: 28px; height: 28px; border-radius: 50%;
             display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.before-header .comp-icon { background: rgba(239,68,68,0.25); color: var(--critical); }
.after-header  .comp-icon { background: rgba(34,197,94,0.25);  color: var(--green); }
.comp-card h4 { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; margin: 0; }
.comp-card.before h4 { color: var(--critical); }
.comp-card.after  h4 { color: var(--green); }
.comp-list { list-style: none; padding: 8px 24px 20px; }
.comp-list li { font-size: 0.9rem; color: var(--muted); padding: 10px 0;
                border-bottom: 1px solid rgba(255,255,255,0.05);
                display: flex; align-items: flex-start; gap: 10px; line-height: 1.5; }
.comp-list li:last-child { border-bottom: none; }
.comp-card.before .comp-list li::before { content: '✗'; color: var(--critical); flex-shrink: 0; font-weight: 700; }
.comp-card.after  .comp-list li::before { content: '✓'; color: var(--green);    flex-shrink: 0; font-weight: 700; }
.comp-vs { display: flex; align-items: center; justify-content: center; padding: 0 20px;
           font-size: 1rem; font-weight: 900; color: var(--muted);
           background: rgba(101,40,247,0.08); border-top: 1px solid var(--border);
           border-bottom: 1px solid var(--border); letter-spacing: 0.1em; }

/* ── Modules ── */
.module-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin-bottom: 14px; flex-shrink: 0; align-self: flex-start; }
.module-icon svg { width: 20px; height: 20px; color: #fff; }
.mi-purple { background: linear-gradient(135deg, #6528F7, #8b5cf6); }
.mi-blue   { background: linear-gradient(135deg, #0284c7, #0ea5e9); }
.mi-green  { background: linear-gradient(135deg, #16a34a, #22c55e); }
.mi-orange { background: linear-gradient(135deg, #ea580c, #f97316); }
.mi-violet { background: linear-gradient(135deg, #7c3aed, #a78bfa); }
.mi-red    { background: linear-gradient(135deg, #dc2626, #ef4444); }
.mi-cyan   { background: linear-gradient(135deg, #0891b2, #06b6d4); }
.mi-amber  { background: linear-gradient(135deg, #b45309, #f59e0b); }
.mi-teal   { background: linear-gradient(135deg, #0f766e, #2dd4bf); }
.module-features { list-style: none; }
.module-features li { font-size: 0.82rem; color: var(--muted); padding: 3px 0;
                      display: flex; gap: 8px; align-items: flex-start; }
.module-features li::before { content: '→'; color: var(--accent2); flex-shrink: 0; }

/* ── Module showcase (tabbed product screenshots) ────────────────────────
   The screenshots are light Salesforce UI, so they sit on a dark "stage"
   inside the white section: the contrast is what makes them read as product
   rather than decoration. Everything inside the stage is styled for dark,
   regardless of the surrounding section. */
.mod-stage {
  position: relative;
  margin-top: 52px;
  padding: 30px;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(155deg, #331c75 0%, #241355 55%, #1b0e42 100%);
  border: 1px solid rgba(124,58,255,0.32);
  box-shadow: 0 30px 90px rgba(101,40,247,0.26), inset 0 1px 0 rgba(255,255,255,0.07);
}
/* ambient light so the panel doesn't read as a flat rectangle */
.mod-stage::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 58% 46% at 80% -6%, rgba(140,80,255,0.38), transparent 70%),
    radial-gradient(ellipse 44% 38% at 4% 104%, rgba(49,205,207,0.13), transparent 70%);
}
.mod-stage > * { position: relative; z-index: 1; }

.mod-showcase {
  display: grid;
  grid-template-columns: 278px 1fr;
  gap: 28px;
  align-items: start;
}
/* min-width:0 stops the 1600px-wide screenshots forcing the grid column wider
   than its track (grid items default to min-width:auto) */
.mod-panels, .mod-rail { min-width: 0; }
.mod-tabs { display: flex; flex-direction: column; gap: 4px; min-width: 0; }

.mod-tab {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  width: 100%; padding: 12px 14px; cursor: pointer;
  background: transparent; border: 1px solid transparent; border-radius: 12px;
  text-align: left; font-family: inherit;
  color: rgba(244,240,255,0.62);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.mod-tab:hover { background: rgba(255,255,255,0.06); color: #fff; transform: translateX(2px); }
.mod-tab.active {
  color: #fff;
  background: linear-gradient(100deg, rgba(124,58,255,0.32), rgba(124,58,255,0.10));
  border-color: rgba(160,110,255,0.5);
  box-shadow: 0 6px 22px rgba(101,40,247,0.28);
}
.mod-tab.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 3px; height: 22px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #34e2e4, #c44dff);
}
.mod-tab:focus-visible { outline: 2px solid var(--accent2); outline-offset: 2px; }
.mod-tab .module-icon {
  width: 32px; height: 32px; border-radius: 9px; margin-bottom: 0;
  opacity: 0.6; transition: opacity 0.2s, transform 0.2s;
}
.mod-tab .module-icon svg { width: 16px; height: 16px; }
.mod-tab:hover .module-icon  { opacity: 1; }
.mod-tab.active .module-icon { opacity: 1; transform: scale(1.05); }
.mod-tab-name { font-size: 0.88rem; font-weight: 700; line-height: 1.3; color: inherit; white-space: nowrap; }
.mod-tab-flag {
  margin-left: auto; font-size: 8.5px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase; background: var(--grad-btn); color: #fff;
  padding: 3px 7px; border-radius: 4px; flex-shrink: 0;
}

.mod-rail-foot {
  margin-top: 20px; padding: 18px 14px 0;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.mod-rail-foot p {
  font-size: 0.78rem; line-height: 1.55;
  color: rgba(244,240,255,0.5); margin-bottom: 10px;
}
.mod-rail-foot a {
  font-size: 0.8rem; font-weight: 700; color: var(--accent2);
  transition: color 0.2s;
}
.mod-rail-foot a:hover { color: #fff; }

.mod-panel[hidden] { display: none; }
.mod-panel { animation: modFade 0.4s cubic-bezier(0.22,1,0.36,1); }
@keyframes modFade {
  from { opacity: 0; transform: translateY(8px) scale(0.994); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .mod-panel { animation: none; } }

.mod-head { margin-bottom: 18px; }
.mod-head h3 {
  font-size: 1.3rem; font-weight: 800; color: #fff;
  margin-bottom: 6px; font-family: 'Manrope', sans-serif;
}
.mod-head .module-desc {
  font-size: 0.92rem; color: rgba(244,240,255,0.68);
  line-height: 1.55; max-width: 660px; margin: 0;
}

/* browser-chrome frame around each screenshot */
.mod-shot {
  position: relative;
  border-radius: 14px; overflow: hidden;
  border: 1px solid rgba(255,255,255,0.13);
  background: rgba(0,0,0,0.22);
  box-shadow: 0 26px 60px rgba(0,0,0,0.45);
}
.mod-shot-bar {
  height: 34px; display: flex; align-items: center; gap: 7px; padding: 0 14px;
  background: rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.09);
}
.mod-shot-bar span { width: 10px; height: 10px; border-radius: 50%; display: block; }
.mod-shot-bar .r { background: #ff5f57; }
.mod-shot-bar .y { background: #febc2e; }
.mod-shot-bar .g { background: #28c840; }
/* slide deck: a horizontal track that slides, clipped by .mod-shot's overflow.
   Easing matches the hero carousel so both read as the same component. */
.mod-slides {
  display: flex; aspect-ratio: 2 / 1;
  will-change: transform;
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1);
}
.mod-slide { flex: 0 0 100%; height: 100%; }
.mod-shot img {
  display: block; width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
}
@media (prefers-reduced-motion: reduce) { .mod-slides { transition: none; } }

/* prev / next, overlaid on the frame */
.mod-nav {
  position: absolute; top: calc(50% + 17px); transform: translateY(-50%);
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1; padding-bottom: 3px;
  color: #fff; cursor: pointer;
  background: rgba(20,10,45,0.55); border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
  opacity: 0; transition: opacity 0.2s, background 0.2s;
}
.mod-shot:hover .mod-nav,
.mod-nav:focus-visible { opacity: 1; }
.mod-nav:hover { background: rgba(20,10,45,0.8); }
.mod-prev { left: 12px; }
.mod-next { right: 12px; }

/* caption + dots strip under the frame */
.mod-slidebar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 12px;
}
.mod-caption {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em;
  color: rgba(244,240,255,0.55);
}
.mod-dots { display: flex; gap: 7px; }
.mod-dot {
  width: 7px; height: 7px; padding: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,0.22); border: none;
  transition: background 0.2s, width 0.25s;
}
.mod-dot:hover { background: rgba(255,255,255,0.45); }
.mod-dot.active { width: 20px; border-radius: 4px; background: var(--accent2); }
.mod-dot:focus-visible { outline: 2px solid var(--accent2); outline-offset: 3px; }
.mod-shot-empty {
  aspect-ratio: 2 / 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 12px;
  background: linear-gradient(140deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015));
  color: rgba(244,240,255,0.45);
}
.mod-shot-empty svg  { width: 44px; height: 44px; opacity: 0.55; }
.mod-shot-empty span { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.03em; }

.mod-panel > .module-features {
  margin-top: 20px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px 26px;
}
.mod-panel > .module-features li { color: rgba(244,240,255,0.72); }
.mod-panel > .module-features li::before { color: var(--accent2); }

@media (max-width: 900px) {
  .mod-stage { padding: 20px; border-radius: 20px; }
  .mod-showcase { grid-template-columns: 1fr; gap: 22px; }
  /* tab list becomes a horizontal, swipeable strip above the screenshot.
     scroll-snap keeps it from resting mid-tab (which reads as a layout bug),
     and the right-edge fade signals there's more to scroll to. No left fade:
     the first tab is active by default and shouldn't look dimmed on load. */
  .mod-tabs {
    flex-direction: row; overflow-x: auto; gap: 8px;
    padding-bottom: 6px; scrollbar-width: none;
    scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
            mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
  }
  .mod-tabs::-webkit-scrollbar { display: none; }
  .mod-tab { width: auto; flex: 0 0 auto; padding: 10px 14px; scroll-snap-align: start; }
  .mod-tab.active::before { display: none; }
  .mod-tab-flag { display: none; }
  .mod-rail-foot { display: none; }   /* rail is a horizontal strip here */
  /* no hover on touch, so keep the arrows visible */
  .mod-nav { opacity: 1; width: 32px; height: 32px; font-size: 19px; }
  .mod-prev { left: 8px; }
  .mod-next { right: 8px; }
  .mod-panel > .module-features { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .mod-stage { padding: 14px; }
  .mod-tab .module-icon { display: none; }
  .mod-tab-name { font-size: 0.82rem; white-space: nowrap; }
  .mod-head h3 { font-size: 1.12rem; }
}

/* ── How it works ── */
.how-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 52px; }
.how-card { text-align: center; padding: 36px 28px; background: var(--card);
            border: 1px solid var(--border); border-radius: var(--radius); transition: all 0.25s; }
.how-card:hover { border-color: rgba(101,40,247,0.4); transform: translateY(-3px); box-shadow: var(--shadow); }
.how-num { width: 56px; height: 56px; border-radius: 50%;
           background: var(--grad-btn); color: #fff; font-size: 1.4rem; font-weight: 900;
           display: flex; align-items: center; justify-content: center; margin: 0 auto 20px; }
.how-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; font-family: 'Manrope', sans-serif; }
.how-card p  { font-size: 0.875rem; color: var(--muted); line-height: 1.6; }

/* ── Integrations ── */
.integrations-row { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 44px; }
.integration-pill {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 40px; padding: 12px 28px; font-size: 0.92rem; font-weight: 600;
  display: flex; align-items: center; gap: 10px; transition: all 0.2s;
}
.integration-pill:hover { border-color: rgba(101,40,247,0.5); color: var(--accent2);
                           background: rgba(101,40,247,0.1); transform: translateY(-2px); }
.integration-pill .icon { font-size: 1.25rem; }
.integration-icon { width: 22px; height: 22px; object-fit: contain; flex-shrink: 0; display: block; }
/* Brand color tints via CSS filter (SVGs come in black from Simple Icons) */
.icon-slack   { filter: invert(18%) sepia(89%) saturate(600%) hue-rotate(240deg) brightness(60%); }
.icon-jira    { filter: invert(18%) sepia(89%) saturate(1200%) hue-rotate(200deg) brightness(80%); }
.icon-ado     { filter: invert(30%) sepia(99%) saturate(600%) hue-rotate(185deg) brightness(90%); }
.icon-sf      { filter: invert(50%) sepia(80%) saturate(500%) hue-rotate(165deg) brightness(95%); }
.icon-openai  { filter: brightness(0) saturate(100%); }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 52px; }
.pricing-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px; display: flex; flex-direction: column; transition: all 0.25s;
}
.pricing-card:hover { border-color: rgba(101,40,247,0.4); box-shadow: var(--shadow); }
.pricing-card.popular { border-color: rgba(124,58,255,0.7); background: linear-gradient(160deg, #472c95, #3d2480); position: relative; }
.pricing-card.popular::before { content: 'Most Popular'; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--grad-btn); color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 16px; border-radius: 12px; white-space: nowrap; }
.pricing-name  { font-size: 0.82rem; font-weight: 700; color: var(--muted); text-transform: uppercase;
                 letter-spacing: 0.1em; margin-bottom: 14px; }
.pricing-price { font-size: 2.5rem; font-weight: 900; margin-bottom: 4px; font-family: 'Manrope', sans-serif; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--muted); }
.pricing-size  { font-size: 0.82rem; color: var(--muted); margin-bottom: 26px; }
.pricing-features { list-style: none; flex: 1; margin-bottom: 28px; }
.pricing-features li { font-size: 0.85rem; color: var(--muted); padding: 7px 0;
                        border-bottom: 1px solid rgba(255,255,255,0.04);
                        display: flex; gap: 10px; align-items: flex-start; }
.pricing-features li::before { content: '✓'; color: var(--accent2); flex-shrink: 0; }

/* ── Security ── */
.security-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 48px; }
.security-item { display: flex; gap: 14px; align-items: flex-start; padding: 22px;
                 background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
                 transition: all 0.2s; }
.security-item:hover { border-color: rgba(101,40,247,0.35); }
.security-item .icon { width: 40px; height: 40px; min-width: 40px; border-radius: 10px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.security-item .icon svg { width: 20px; height: 20px; color: #fff !important; }
.si-purple { background: linear-gradient(135deg, #6528F7, #8b5cf6) !important; }
.si-blue   { background: linear-gradient(135deg, #0284c7, #0ea5e9) !important; }
.si-green  { background: linear-gradient(135deg, #16a34a, #22c55e) !important; }
.si-orange { background: linear-gradient(135deg, #ea580c, #f97316) !important; }
.si-violet { background: linear-gradient(135deg, #7c3aed, #a78bfa) !important; }
.si-red    { background: linear-gradient(135deg, #dc2626, #ef4444) !important; }
.security-item h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 5px; }
.security-item p  { font-size: 0.82rem; color: var(--muted); line-height: 1.5; }

/* ── CTA Banner ── */
.cta-banner {
  background: rgba(101,40,247,0.12);
  border: 1px solid rgba(101,40,247,0.3); border-radius: 20px;
  padding: 72px 48px; text-align: center;
  position: relative; overflow: hidden;
}
.cta-banner::before { content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 80% 80% at 50% 110%, rgba(101,40,247,0.25), transparent); }
.cta-banner > * { position: relative; z-index: 1; }
.cta-banner h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 16px;
                 font-family: 'Manrope', sans-serif; }
.cta-banner p  { font-size: 1.1rem; color: var(--muted); max-width: 500px; margin: 0 auto 36px; }
.cta-buttons { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ── Footer ── */
footer {
  background: linear-gradient(to bottom, #2a1660 0%, #4a2a88 55%, #7a4fc0 100%);
  border-top: none;
  padding: 56px 24px 32px;
  color: #e8deff;
}
.footer-inner { max-width: 1160px; margin: 0 auto; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand img { height: 36px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.875rem; color: #c8b8e8; line-height: 1.65; margin-top: 14px; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em;
                  color: #c8b8e8; margin-bottom: 18px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 11px; }
.footer-col a  { font-size: 0.875rem; color: #c8b8e8; transition: color .2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(101,40,247,0.2); padding-top: 24px;
                  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: 0.82rem; color: #9070c0; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hypercare-inner  { grid-template-columns: 1fr; }
  .how-grid         { grid-template-columns: 1fr; }
  .footer-top       { grid-template-columns: 1fr 1fr; }
  .comparison       { grid-template-columns: 1fr; }
  .comp-vs          { padding: 16px; border: 1px solid var(--border); border-left: none; border-right: none; }
}
/* ── Hamburger ── */
.nav-toggle-input { display: none; }
.nav-hamburger {
  display: none; flex-direction: column; justify-content: center; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; z-index: 110;
}
.nav-hamburger span {
  display: block; width: 26px; height: 2px;
  background: rgba(242,245,247,0.9); border-radius: 2px;
  transition: all 0.3s;
}
.nav-toggle-input:checked ~ .nav-inner .nav-hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle-input:checked ~ .nav-inner .nav-hamburger span:nth-child(2) { opacity: 0; }
.nav-toggle-input:checked ~ .nav-inner .nav-hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile-menu {
  display: none; flex-direction: column; gap: 8px;
  padding: 20px 24px 24px;
  background: rgba(18,12,36,0.98);
  border-top: 1px solid rgba(255,255,255,0.1);
  position: fixed; top: 70px; left: 0; right: 0;
  z-index: 200;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.nav-toggle-input:checked ~ .nav-mobile-menu { display: flex; }
.nav-mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; }
.nav-mobile-menu ul a { display: block; padding: 12px 0; font-size: 16px; font-weight: 600;
                         color: rgba(242,245,247,0.85); text-transform: uppercase; letter-spacing: 0.08em;
                         border-bottom: 1px solid rgba(255,255,255,0.07); transition: color .2s; }
.nav-mobile-menu ul a:hover { color: #fff; }

@media (max-width: 768px) {
  .nav-links    { display: none; }
  .nav-buttons  { display: none; }
  .nav-hamburger{ display: flex; }
  .nav          { height: 70px; }
  .hero         { padding-top: 70px; }
}

/* ── Hero Card Carousel (3-D coverflow) ── */
.hb-wrap {
  position: relative;
  max-width: 1060px;
  margin: 36px auto 0;
}
.hb-viewport {
  width: 100%;
  position: relative;
  overflow: hidden;
}
.hb-track {
  position: relative;
  /* height set by JS */
}
.hb-card {
  position: absolute;
  top: 0;
  left: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
  padding: 28px 28px 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  /* opacity, transform, z-index all set by JS */
}
.hb-card.active {
  border-color: rgba(255,255,255,0.22);
  background: rgba(255,255,255,0.09);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  cursor: default;
}
.hb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.13);
  color: rgba(255,255,255,0.75);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
}
.hb-arrow:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.28); color: #fff; }
.hb-prev { left: -52px; }
.hb-next { right: -52px; }
.hb-eyebrow { font-size: 0.82rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; margin-bottom: 10px; }
.hb-stat { font-size: clamp(2.4rem,6vw,4rem); font-weight: 900; line-height: 1; margin-bottom: 6px; font-family: 'Manrope',sans-serif; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hb-stat-label { font-size: 0.75rem; color: rgba(255,255,255,0.5); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 600; margin-bottom: 14px; }
.hb-headline { font-size: clamp(1rem,2vw,1.2rem); font-weight: 800; color: #fff; margin-bottom: 10px; line-height: 1.35; font-family: 'Manrope',sans-serif; max-width: 440px; }
.hb-body { font-size: 0.85rem; color: rgba(255,255,255,0.6); line-height: 1.7; max-width: 440px; }
.hb-dots { display: flex; justify-content: center; gap: 8px; margin: 14px 0 20px; }
.hb-dot { width: 8px; height: 8px; border-radius: 4px; background: rgba(255,255,255,0.2); border: none; cursor: pointer; transition: all 0.3s; padding: 0; flex-shrink: 0; }
.hb-dot.active { width: 28px; background: currentColor; }

/* ── FAQ Accordion ── */
.faq-accordion { margin-top: 52px; display: flex; flex-direction: column; gap: 10px; max-width: 820px; margin-left: auto; margin-right: auto; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; transition: border-color 0.2s; }
.faq-item.open { border-color: var(--accent2); }
.faq-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; background: none; border: none; cursor: pointer; text-align: left; gap: 16px;
}
.faq-trigger-text { font-size: 1rem; font-weight: 700; color: var(--text); font-family: 'Manrope', sans-serif; line-height: 1.35; }
.faq-trigger-icon { font-size: 1.6rem; color: var(--accent2); flex-shrink: 0; font-weight: 300; line-height: 1; transition: transform 0.3s ease; }
.faq-item.open .faq-trigger-icon { transform: rotate(45deg); }
.faq-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.3s ease; }
.faq-body-inner { overflow: hidden; }
.faq-item.open .faq-body { grid-template-rows: 1fr; }
.faq-body-inner p { padding: 0 24px 22px; font-size: 0.93rem; color: var(--muted); line-height: 1.8; margin: 0; border-top: 1px solid var(--border); padding-top: 18px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

/* ── Contact Modal ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6, 2, 20, 0.88);
  backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-card {
  background: #241355;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
  width: 100%; max-width: 540px;
  position: relative;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7), 0 0 0 1px rgba(101,40,247,0.2);
  transform: translateY(24px);
  transition: transform 0.3s;
  max-height: 92vh;
  overflow-y: auto;
}
.modal-overlay.open .modal-card { transform: translateY(0); }
.modal-close {
  position: absolute; top: 14px; right: 18px;
  background: none; border: none; color: var(--muted);
  font-size: 22px; cursor: pointer; line-height: 1;
  padding: 4px 8px; border-radius: 6px; transition: color 0.2s, background 0.2s;
}
.modal-close:hover { color: #fff; background: rgba(255,255,255,0.1); }
.modal-icon { font-size: 2.2rem; margin-bottom: 12px; }
.modal-title { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; font-family: 'Manrope', sans-serif; }
.modal-sub { font-size: 0.88rem; color: var(--muted); margin-bottom: 28px; line-height: 1.55; }
.modal-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.77rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.09em; }
.req { color: var(--accent3); }
.form-group input,
.form-group textarea {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 8px; padding: 12px 14px;
  font-size: 0.9rem; color: var(--text);
  font-family: 'Manrope', sans-serif; outline: none;
  transition: border-color 0.2s, background 0.2s;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--accent); background: rgba(124,58,255,0.08); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(192,180,224,0.45); }
.form-group textarea { resize: vertical; min-height: 100px; }
.modal-submit { justify-content: center; margin-top: 4px; }
.modal-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.modal-privacy { font-size: 0.77rem; color: var(--muted); text-align: center; }
.modal-success {
  display: none; flex-direction: column; align-items: center;
  text-align: center; gap: 14px; padding: 24px 0;
}
.success-icon {
  width: 68px; height: 68px; border-radius: 50%;
  background: rgba(34,197,94,0.12); border: 2px solid var(--green);
  color: var(--green); font-size: 30px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin: 0 auto;
}
.modal-success h3 { font-size: 1.35rem; font-weight: 800; font-family: 'Manrope', sans-serif; }
.modal-success p { color: var(--muted); font-size: 0.9rem; }

@media (max-width: 560px) {
  .modal-card { padding: 28px 18px; }
  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section       { padding: 60px 0; }
  .section-title { font-size: 1.8rem; }
  .footer-top    { grid-template-columns: 1fr; }
  .pricing-grid  { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }

  /* Hero */
  .hero          { min-height: auto; padding-top: 80px; padding-bottom: 40px; }
  .hero-inner    { padding: 28px 20px 24px; }
  .hero-eyebrow  { font-size: clamp(1.6rem, 8vw, 2.2rem); letter-spacing: -0.01em; margin-bottom: 10px; }
  .hero h1       { font-size: 0.95rem; margin-bottom: 20px; }

  /* Card carousel — mobile */
  .hb-wrap       { gap: 0; margin-top: 20px; }
  .hb-arrow      { display: none; }
  .hb-card       { border-radius: 14px; padding: 22px 18px 18px; }
  .hb-stat       { font-size: clamp(2rem, 10vw, 3rem); margin-bottom: 4px; }
  .hb-stat-label { font-size: 0.7rem; margin-bottom: 10px; }
  .hb-headline   { font-size: 0.92rem; margin-bottom: 8px; }
  .hb-body       { font-size: 0.82rem; line-height: 1.65; }
  .hb-dots       { margin: 10px 0 14px; }

  /* CTAs — stack vertically, full width */
  .hero-ctas     { flex-direction: column; align-items: stretch; gap: 10px; margin-bottom: 0; }
  .hero-ctas .btn { text-align: center; justify-content: center; width: 100%; }

  /* Terminal — shorter fixed height; log lines wrap so content scrolls inside */
  .panel-body    { height: 300px; padding: 16px; }
}

/* ── Trial modal: module checklist ────────────────────────────────── */
.trial-modules-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.trial-module-check {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.85rem; color: var(--text); cursor: pointer; padding: 6px 0; font-weight: 400;
}
.trial-module-check input[type="checkbox"] {
  width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; flex-shrink: 0;
}
@media (max-width: 480px) {
  .trial-modules-grid { grid-template-columns: 1fr; }
}

/* ── Cookie consent banner ──────────────────────────────────────────── */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900;
  display: none; /* shown via JS only when no prior choice is stored */
  background: var(--bg3); border-top: 1px solid var(--border);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.35);
  padding: 16px 24px;
}
.cookie-banner.show { display: block; }
.cookie-banner-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.cookie-banner-text { color: var(--muted); font-size: 0.88rem; line-height: 1.5; max-width: 640px; }
.cookie-banner-text a { color: var(--accent2); text-decoration: underline; }
.cookie-banner-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-banner-actions .btn { padding: 8px 18px; font-size: 0.85rem; }
@media (max-width: 640px) {
  .cookie-banner-inner { flex-direction: column; align-items: stretch; }
  .cookie-banner-actions { justify-content: stretch; }
  .cookie-banner-actions .btn { flex: 1; text-align: center; justify-content: center; }
}
