/* ============================================================
   UPLEVEL SYSTEMS — Design System
   Inspired by Verkada's clean enterprise aesthetic
   Fonts: Plus Jakarta Sans (display) + Figtree (body)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Figtree:wght@300;400;500;600;700&display=swap');

/* ── CSS Variables ─────────────────────────────────────────── */
:root {
  /* Colors */
  --bg-base:        #0a0610;
  --bg-surface:     #0f0a1c;
  --bg-raised:      #180f24;
  --bg-overlay:     #21162e;
  --border-subtle:  rgba(255,255,255,0.07);
  --border-light:   rgba(255,255,255,0.12);

  --text-primary:   #ede8f5;
  --text-secondary: #9484b0;
  --text-muted:     #5e4d75;

  --accent:         #8438b8;        /* Brand purple  #693096 */
  --accent-light:   #a855c8;
  --accent-glow:    rgba(132,56,184,0.25);
  --accent-subtle:  rgba(132,56,184,0.10);

  --cyan:           #d3af37;        /* Brand gold    #D3AF37 */
  --cyan-glow:      rgba(211,175,55,0.15);

  --success:        #10b981;
  --warning:        #f59e0b;

  /* Typography */
  --font-display:   'Plus Jakarta Sans', sans-serif;
  --font-body:      'Figtree', sans-serif;

  /* Spacing */
  --section-pad:    clamp(80px, 10vw, 140px);
  --container:      1200px;
  --container-wide: 1400px;

  /* Transitions */
  --ease:           cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:        cubic-bezier(0.4, 0, 1, 1);

  /* Radius */
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  background: var(--bg-base);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* ── Layout Helpers ────────────────────────────────────────── */
.container {
  width: min(var(--container), 100% - 48px);
  margin-inline: auto;
}
.container--wide {
  width: min(var(--container-wide), 100% - 48px);
  margin-inline: auto;
}
.section { padding-block: var(--section-pad); }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.display-xl {
  font-size: clamp(48px, 7vw, 88px);
  line-height: 1.0;
  letter-spacing: -0.03em;
}
.display-lg {
  font-size: clamp(36px, 5vw, 62px);
}
.display-md {
  font-size: clamp(28px, 3.5vw, 44px);
}
.display-sm {
  font-size: clamp(22px, 2.5vw, 32px);
}

.eyebrow {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.lead {
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 400;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Buttons ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.22s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-light);
  box-shadow: 0 8px 30px var(--accent-glow), 0 0 0 1px rgba(211,175,55,0.30);
  transform: translateY(-1px);
}
.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-light);
  backdrop-filter: blur(8px);
}
.btn-secondary:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--accent-light);
  padding: 13px 0;
}
.btn-ghost:hover { color: var(--cyan); }
.btn-lg { padding: 16px 34px; font-size: 17px; border-radius: 11px; }
.btn-sm { padding: 9px 18px; font-size: 13px; }

/* Arrow icon */
.btn-arrow::after {
  content: '→';
  transition: transform 0.2s var(--ease);
}
.btn-arrow:hover::after { transform: translateX(4px); }

/* ── Navigation ────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  transition: background 0.3s ease, border-color 0.3s ease;
}
.nav.scrolled {
  background: rgba(10, 6, 16, 0.92);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 70px;
}
.nav__logo {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav__logo-icon {
  width: 34px;
  height: 34px;
  background: var(--accent);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav__logo-icon svg { width: 18px; height: 18px; }
.nav__links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav__link {
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: color 0.18s, background 0.18s;
  position: relative;
}
.nav__link:hover {
  color: var(--text-primary);
  background: var(--bg-overlay);
}
/* Dropdown */
.nav__item { position: relative; }

/* Invisible bridge fills the gap between the link and dropdown,
   keeping the hover state alive as the cursor moves down */
.nav__item::after {
  content: '';
  position: absolute;
  top: 100%;
  left: -16px;
  right: -16px;
  height: 16px;
  display: none;
  z-index: 101;
}
.nav__item:hover::after { display: block; }

.nav__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px;
  min-width: 220px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  backdrop-filter: blur(24px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
  z-index: 100;
}
.nav__item:hover .nav__dropdown {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav__dropdown-item {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--text-secondary);
  border-radius: 8px;
  transition: all 0.15s;
}
.nav__dropdown-item:hover {
  color: var(--text-primary);
  background: var(--bg-overlay);
}
.nav__dropdown-item span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.nav__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.nav__login {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color 0.18s;
}
.nav__login:hover { color: var(--text-primary); }

/* Portal Login — inline in nav links, slightly muted with external arrow */
.nav__portal-login {
  color: var(--text-muted) !important;
  font-size: 13.5px !important;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 6px 12px !important;
}
.nav__portal-login:hover {
  color: var(--text-primary) !important;
  border-color: var(--accent);
  background: var(--bg-overlay) !important;
}

/* Partners trigger — looks like a nav link but is a span */
.nav__partners-trigger {
  cursor: pointer;
  user-select: none;
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-primary);
  margin-left: auto;
  padding: 8px;
}
.nav__mobile {
  display: none;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  padding: 20px 24px;
}
.nav__mobile.open { display: block; }
.nav__mobile a {
  display: block;
  padding: 12px 0;
  font-size: 16px;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
}
.nav__mobile a:last-child { border-bottom: none; }

/* ── Hero Section ──────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 100px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(132,56,184,0.12) 0%, transparent 65%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(211,175,55,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero__grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-subtle) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-subtle) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  pointer-events: none;
  opacity: 0.4;
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-subtle);
  border: 1px solid rgba(132,56,184,0.3);
  border-radius: 100px;
  padding: 6px 16px;
  margin-bottom: 32px;
}
.hero__eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-light);
  border-radius: 50%;
  animation: pulse-dot 2s ease infinite;
}
@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.7); }
}
.hero h1 {
  margin-bottom: 28px;
  background: linear-gradient(135deg, var(--text-primary) 0%, rgba(237,232,245,0.7) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero__ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 40px;
}
.hero__stats {
  display: flex;
  gap: 48px;
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}
/* Fixed width prevents layout reflow as counter animates */
.hero__stats > div {
  flex: 0 0 auto;
  min-width: 160px;
}
.hero__stat-value {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  display: block;
}
.hero__stat-value span { color: var(--accent-light); }
.hero__stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* ── Feature Bands ─────────────────────────────────────────── */
.logo-band {
  padding-block: 40px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}
.logo-band__label {
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 28px;
}
.logo-band__logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}
.logo-band__logo {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  opacity: 0.6;
  transition: opacity 0.2s;
}
.logo-band__logo:hover { opacity: 1; }

/* ── Section Headers ───────────────────────────────────────── */
.section-header {
  max-width: 640px;
}
.section-header--center {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
}
.section-header h2 { margin-top: 14px; margin-bottom: 20px; }
.section-header p { color: var(--text-secondary); }

/* ── Feature Grid ──────────────────────────────────────────── */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1px;
  background: var(--border-subtle);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 64px;
}
.feature-card {
  background: var(--bg-surface);
  padding: 36px;
  transition: background 0.25s;
  position: relative;
}
.feature-card:hover { background: var(--bg-raised); }
.feature-card__icon {
  width: 48px;
  height: 48px;
  background: var(--accent-subtle);
  border: 1px solid rgba(132,56,184,0.25);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all 0.25s;
}
.feature-card:hover .feature-card__icon {
  background: var(--accent);
  border-color: var(--accent);
}
.feature-card__icon svg { width: 22px; height: 22px; color: var(--accent-light); transition: color 0.25s; }
.feature-card:hover .feature-card__icon svg { color: #fff; }
.feature-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 14.5px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.feature-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-light);
  margin-top: 20px;
  transition: gap 0.2s, color 0.2s;
}
.feature-card__link:hover { gap: 10px; color: var(--cyan); }

/* ── Products Grid ─────────────────────────────────────────── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}
@media (max-width: 900px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 580px) { .products-grid { grid-template-columns: 1fr; } }

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
  cursor: pointer;
}
.product-card:hover {
  border-color: rgba(132,56,184,0.4);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(132,56,184,0.15);
}
.product-card__img {
  height: 180px;
  background: var(--bg-raised);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 52px;
  position: relative;
  overflow: hidden;
}
.product-card__img::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, var(--accent-subtle), transparent 70%);
}
.product-card__body { padding: 24px; }
.product-card__tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: var(--accent-subtle);
  padding: 3px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.product-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}
.product-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}
.product-card__arrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--accent-light);
  transition: color 0.2s;
}
.product-card:hover .product-card__arrow { color: var(--cyan); }

/* ── Split Section ─────────────────────────────────────────── */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }
@media (max-width: 768px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split--reverse { direction: ltr; }
}
.split__visual {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  min-height: 380px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.split__visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 30%, var(--accent-glow), transparent 70%);
}

/* Dashboard mockup */
.dashboard-mock {
  width: 100%;
  background: var(--bg-base);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.dashboard-mock__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
}
.dashboard-mock__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}
.dashboard-mock__body { padding: 20px; }
.mock-stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}
.mock-stat {
  background: var(--bg-raised);
  border-radius: 8px;
  padding: 14px;
}
.mock-stat__value {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
}
.mock-stat__label {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}
.mock-chart {
  background: var(--bg-raised);
  border-radius: 8px;
  height: 80px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 12px;
}
.mock-bar {
  flex: 1;
  background: var(--accent-subtle);
  border-radius: 4px 4px 0 0;
  transition: background 0.3s;
}
.mock-bar--active { background: var(--accent); }
.mock-bar--cyan { background: var(--cyan-glow); }

/* ── Stats Section ─────────────────────────────────────────── */
.stats-section {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 768px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat-item {
  background: var(--bg-surface);
  padding: 48px 32px;
  text-align: center;
}
.stat-item__num {
  font-family: var(--font-display);
  font-size: clamp(40px, 5vw, 60px);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.04em;
  line-height: 1;
}
.stat-item__num em {
  font-style: normal;
  color: var(--accent-light);
}
.stat-item__label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 10px;
}

/* ── Testimonials ──────────────────────────────────────────── */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.testimonial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: border-color 0.25s, transform 0.25s;
}
.testimonial-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}
.testimonial-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
}
.testimonial-card__stars span { color: var(--warning); font-size: 14px; }
.testimonial-card__quote {
  font-size: 15.5px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
}
.testimonial-card__quote::before { content: '"'; color: var(--accent-light); }
.testimonial-card__quote::after  { content: '"'; color: var(--accent-light); }
.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-overlay);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-light);
  flex-shrink: 0;
}
.testimonial-card__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.testimonial-card__company {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ── CTA Section ───────────────────────────────────────────── */
.cta-section {
  position: relative;
  overflow: hidden;
}
.cta-section__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 100% at 50% 0%, rgba(132,56,184,0.18), transparent 70%);
  pointer-events: none;
}
.cta-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: clamp(48px, 8vw, 96px) clamp(32px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-box::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 60%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.cta-box h2 { margin-bottom: 20px; }
.cta-box p {
  color: var(--text-secondary);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 40px;
}
.cta-box__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ── Footer ────────────────────────────────────────────────── */
.footer {
  background: var(--bg-base);
  border-top: 1px solid var(--border-subtle);
  padding-top: 72px;
  padding-bottom: 40px;
}
.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--border-subtle);
}
@media (max-width: 1000px) {
  .footer__grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
.footer__brand p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: 16px;
  max-width: 280px;
}
.footer__col-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
}
.footer__link {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 12px;
  transition: color 0.18s;
}
.footer__link:hover { color: var(--text-primary); }
.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 32px;
  gap: 20px;
  flex-wrap: wrap;
}
.footer__copyright {
  font-size: 13px;
  color: var(--text-muted);
}
.footer__socials {
  display: flex;
  gap: 12px;
}
.footer__social {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 16px;
  transition: all 0.2s;
}
.footer__social:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
  background: var(--accent-subtle);
}

/* ── Page Hero (inner pages) ───────────────────────────────── */
.page-hero {
  padding-top: 140px;
  padding-bottom: 80px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border-subtle);
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 30% 50%, rgba(132,56,184,0.10), transparent 65%);
  pointer-events: none;
}

/* ── Utility ───────────────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--accent-light), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.bg-surface { background: var(--bg-surface); }
.border-top { border-top: 1px solid var(--border-subtle); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mt-12 { margin-top: 48px; }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

/* ── Animations ────────────────────────────────────────────── */
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.animate-fade-up {
  opacity: 0;
  animation: fade-up 0.7s var(--ease) forwards;
}
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.35s; }
.delay-4 { animation-delay: 0.5s; }
.delay-5 { animation-delay: 0.65s; }

/* ── Contact Form ──────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-raised);
  border: 1.5px solid var(--border-subtle);
  border-radius: 9px;
  padding: 13px 16px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--text-muted); }
.form-textarea { min-height: 120px; resize: vertical; }
.form-select { cursor: pointer; }

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .nav__links, .nav__actions { display: none; }
  .nav__toggle { display: flex; }
}
@media (max-width: 768px) {
  :root { --section-pad: 60px; }
  .hero__stats { gap: 32px; }
}

/* ════════════════════════════════════════════════════════════
   MEGA-MENU
════════════════════════════════════════════════════════════ */

/* Trigger link styling - shows chevron */
.nav__mega-trigger {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 14px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.18s, background 0.18s;
  user-select: none;
  white-space: nowrap;
}
.nav__mega-trigger:hover,
.nav__mega-trigger.mega-active {
  color: var(--text-primary);
  background: var(--bg-overlay);
}
.nav__mega-trigger .chevron {
  font-size: 10px;
  opacity: 0.6;
  transition: transform 0.2s var(--ease);
  display: inline-block;
}
.nav__mega-trigger.mega-active .chevron {
  transform: rotate(180deg);
}

/* Full-width mega panel */
.mega-panel {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  z-index: 99;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: 0 32px 80px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.22s var(--ease), transform 0.22s var(--ease);
}
.mega-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* Inner layout: left column + right column */
.mega-inner {
  display: flex;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 420px;
}

/* Left column: category list */
.mega-left {
  width: 220px;
  flex-shrink: 0;
  padding: 28px 0;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}
.mega-section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0 16px;
  margin-bottom: 6px;
  margin-top: 16px;
}
.mega-section-label:first-child { margin-top: 0; }
.mega-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 16px 0;
}
.mega-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  margin: 0 6px;
  text-decoration: none;
}
.mega-cat:hover,
.mega-cat.active {
  color: var(--text-primary);
  background: var(--bg-overlay);
}
.mega-cat.active { color: var(--accent-light); }
.mega-cat .cat-arrow {
  font-size: 11px;
  opacity: 0.4;
  transition: opacity 0.15s, transform 0.15s;
}
.mega-cat:hover .cat-arrow,
.mega-cat.active .cat-arrow {
  opacity: 1;
  transform: translateX(2px);
}

/* Right column: items panel */
.mega-right {
  flex: 1;
  padding: 28px 40px;
  display: flex;
  flex-direction: column;
}
.mega-pane {
  display: none;
  flex-direction: column;
  height: 100%;
}
.mega-pane.active { display: flex; }
.mega-pane-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.mega-items {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px;
  flex: 1;
}
.mega-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
  text-decoration: none;
}
.mega-item:hover { background: var(--bg-overlay); }
.mega-item__icon {
  width: 36px;
  height: 36px;
  background: var(--accent-subtle);
  border: 1px solid rgba(132,56,184,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
  transition: background 0.15s, border-color 0.15s;
}
.mega-item:hover .mega-item__icon {
  background: var(--accent);
  border-color: var(--accent);
}
.mega-item__name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.mega-item__desc {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
  line-height: 1.4;
}

/* Overview link (direct link at bottom of left col) */
.mega-overview-link {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 12px 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
  border-top: 1px solid var(--border-subtle);
  transition: color 0.18s;
  text-decoration: none;
}
.mega-overview-link:hover { color: var(--cyan); }

/* Overlay backdrop */
.mega-backdrop {
  position: fixed;
  inset: 0;
  top: 70px;
  z-index: 98;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s;
}
.mega-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

/* Hide mega on mobile - use regular mobile menu */
@media (max-width: 1024px) {
  .mega-panel, .mega-backdrop { display: none !important; }
}

/* ── Overview-split pane layout ─────────────────────────────── */
.mega-items-split {
  display: flex;
  gap: 16px;
  flex: 1;
  align-items: flex-start;
}

/* The prominent Overview card */
.mega-item--overview {
  width: 200px;
  flex-shrink: 0;
  flex-direction: column;
  align-items: flex-start;
  background: rgba(132,56,184,0.1);
  border: 1px solid rgba(132,56,184,0.25);
  border-radius: 14px;
  padding: 20px 18px;
  gap: 0;
  align-self: stretch;
}
.mega-item--overview:hover {
  background: rgba(132,56,184,0.2);
}
.mega-item__icon--lg {
  width: 48px;
  height: 48px;
  font-size: 22px;
  margin-bottom: 14px;
  flex-shrink: 0;
}
.mega-item__name--lg {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1.2;
}
.mega-item--overview .mega-item__desc {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: 0;
}

/* ── Overview card: hero image thumbnail ── */
.mega-item__thumb {
  width: 100%;
  height: 110px;
  border-radius: 8px;
  overflow: hidden;
  margin-bottom: 12px;
  flex-shrink: 0;
  background: var(--bg-surface);
  /* Pull card padding outward so image goes edge-to-edge */
  margin-left: -18px;
  margin-right: -18px;
  width: calc(100% + 36px);
  margin-top: -20px;
  border-radius: 12px 12px 0 0;
}
.mega-item__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}
.mega-item--overview:hover .mega-item__thumb-img {
  transform: scale(1.04);
}

/* ── Small icon items: hero thumbnail instead of emoji ── */
.mega-item__icon--img {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
}
.mega-item__icon--img img {
  width: 36px;
  height: 36px;
  object-fit: cover;
  display: block;
  border-radius: 5px;
}
.mega-item:hover .mega-item__icon--img img {
  opacity: 0.85;
}

/* Products sub-grid sits to the right */
.mega-items-split .mega-items {
  flex: 1;
  align-content: start;
}

/* ═══════════════════════════════════════════════════════════════
   Resources mega-menu styles
═══════════════════════════════════════════════════════════════ */

/* Resources pane: column layout with footer that sticks to bottom */
.mega-pane--res {
  flex-direction: column;
  overflow: hidden;
}

/* ── Case Studies: 3-column logo + quote grid ── */
.mega-cs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
  align-content: start;
}
.mega-cs-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-overlay);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.mega-cs-card:hover {
  background: rgba(132,56,184,0.1);
  border-color: rgba(132,56,184,0.3);
}
.mega-cs-logo-wrap {
  height: 28px;
  display: flex;
  align-items: center;
}
.mega-cs-logo {
  max-height: 28px;
  max-width: 100px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.8;
}
.mega-cs-card:hover .mega-cs-logo { opacity: 1; }
.mega-cs-quote {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Download grid: 2-column list (brochures + sales guides) ── */
.mega-dl-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  flex: 1;
  align-content: start;
}
.mega-dl-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
}
.mega-dl-item:hover { background: var(--bg-overlay); }
.mega-dl-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: var(--accent-light);
  opacity: 0.7;
  transition: opacity 0.15s;
}
.mega-dl-item:hover .mega-dl-icon { opacity: 1; }
.mega-dl-item span {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Webinars: 3-column thumbnail + title grid ── */
.mega-video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  flex: 1;
  align-content: start;
}
.mega-video-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
}
.mega-video-item:hover { background: var(--bg-overlay); }
.mega-video-thumb {
  width: 100%;
  aspect-ratio: 16/9;
  background: rgba(132,56,184,0.08);
  border: 1px solid rgba(132,56,184,0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
}
.mega-video-item:hover .mega-video-thumb {
  background: rgba(132,56,184,0.18);
  border-color: rgba(132,56,184,0.45);
}
.mega-video-play {
  width: 40px;
  height: 40px;
}
.mega-video-title {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mega-video-item:hover .mega-video-title { color: var(--text-primary); }

/* ── Blog: 2-column title + subtitle grid ── */
.mega-blog-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  flex: 1;
  align-content: start;
}
.mega-blog-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 11px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.15s;
  cursor: pointer;
}
.mega-blog-item:hover { background: var(--bg-overlay); }
.mega-blog-title {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.mega-blog-sub {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── View All footer link (shared across all resource panes) ── */
.mega-view-all {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-light);
  text-decoration: none;
  border: 1px solid rgba(132,56,184,0.25);
  background: rgba(132,56,184,0.06);
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}
.mega-view-all:hover {
  background: rgba(132,56,184,0.16);
  border-color: rgba(132,56,184,0.5);
  color: var(--text-primary);
}
.mega-view-all-arrow {
  margin-left: auto;
  font-size: 14px;
}


/* ═══════════════════════════════════════════════════════════════
   Partner Private modal
   ═══════════════════════════════════════════════════════════════ */

/* Full-screen overlay */
.pmodal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
}

.pmodal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Modal box — top edge uses a purple→cyan gradient accent bar */
.pmodal__box {
  position: relative;
  z-index: 1;
  background: var(--bg-surface);
  border: 1px solid rgba(132,56,184,0.25);
  border-top: 2px solid transparent;
  border-radius: 16px;
  /* Gradient painted via background-image on the border using outline trick */
  box-shadow:
    0 4px 24px rgba(0,0,0,0.5),
    0 0 80px rgba(132,56,184,0.12);
  width: 100%;
  max-width: 680px;
  height: 88vh;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  /* Top accent line */
  background-image: linear-gradient(var(--bg-surface), var(--bg-surface)),
                    linear-gradient(90deg, #8438b8, #d3af37);
  background-origin: border-box;
  background-clip: padding-box, border-box;
}

/* Close button */
.pmodal__close {
  position: absolute;
  top: 18px;
  right: 16px;
  background: var(--bg-overlay);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  z-index: 10;
  padding: 5px 9px;
  border-radius: 6px;
  line-height: 1;
  transition: color .15s, background .15s, border-color .15s;
}
.pmodal__close:hover {
  color: var(--text-primary);
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

/* ── Spinner ── */
.pmodal__spinner-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 64px;
}
.pmodal__spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(132,56,184,0.2);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: pmodal-spin 0.7s linear infinite;
}
@keyframes pmodal-spin { to { transform: rotate(360deg); } }

/* ── Login prompt ── */
.pmodal__login {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 52px 48px;
  gap: 16px;
}
.pmodal__lock {
  font-size: 48px;
  line-height: 1;
  filter: drop-shadow(0 0 16px rgba(132,56,184,0.5));
}
.pmodal__title  { font-size: 1.35rem; font-weight: 700; color: var(--text-primary); margin: 0; }
.pmodal__sub    { font-size: 0.9rem; color: var(--text-secondary); max-width: 400px; line-height: 1.6; margin: 0; }
.pmodal__hint   { font-size: 0.78rem; color: var(--text-muted); margin: 0; }

.pmodal__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 32px;
  background: linear-gradient(135deg, #8438b8, #693096);
  color: #fff;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: opacity .15s, transform .15s, box-shadow .15s;
  margin-top: 4px;
  box-shadow: 0 4px 16px rgba(132,56,184,0.35);
}
.pmodal__btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(132,56,184,0.45);
}

/* ── modal content ── */
.pmodal__content {
  display: flex;    /* needed to let pmodal__browser inherit */
  flex-direction: column;
  flex: 1 1 0;   /* must grow to fill pmodal__box available height */
  min-height: 0;    /* allow flex shrinking below content size */
  overflow: hidden; /* contain the scroll within the table-wrap, not here */
}

/* ── File browser ── */
.pmodal__browser {
  display: flex;
  flex-direction: column;
  flex: 1 1 0;   /* must grow to fill pmodal__box so table-wrap can scroll */
  min-height: 0;
}

/* Header: gradient background tying it to the brand palette */
.pmodal__browser-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 56px 18px 24px; /* 56px right clears the X button */
  background: linear-gradient(135deg, rgba(132,56,184,0.12), rgba(211,175,55,0.06));
  border-bottom: 1px solid rgba(132,56,184,0.2);
  flex-shrink: 0;
}
.pmodal__browser-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-primary);
}
.pmodal__browser-icon { font-size: 1.3rem; }

.pmodal__browser-user {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.pmodal__logout-btn {
  font-size: 0.78rem;
  padding: 5px 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: background .15s, color .15s;
}
.pmodal__logout-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }

/* Breadcrumb */
.pmodal__breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 9px 20px;
  font-size: 0.82rem;
  background: rgba(132,56,184,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  flex-shrink: 0;
  flex-wrap: wrap;
}
.pmodal__bc-link {
  color: var(--accent-light);
  text-decoration: none;
  padding: 2px 6px;
  border-radius: 4px;
  transition: background .12s;
}
.pmodal__bc-link:hover { background: rgba(132,56,184,0.15); }
.pmodal__bc-sep     { color: var(--text-muted); margin: 0 2px; }
.pmodal__bc-current { color: var(--text-primary); font-weight: 500; padding: 2px 6px; }

/* Table */
.pmodal__table-wrap {
  overflow-y: auto;
  flex: 1 1 0;         /* shrinks to fit, scrolls when needed */
  min-height: 0;       /* critical — lets flex children shrink below content size */
  transition: opacity .15s;
}
/* Custom scrollbar — thin purple tint */
.pmodal__table-wrap::-webkit-scrollbar       { width: 9px; }
.pmodal__table-wrap::-webkit-scrollbar-track  { background: rgba(255,255,255,0.05); border-radius: 4px; }
.pmodal__table-wrap::-webkit-scrollbar-thumb  { background: rgba(168,85,200,0.65); border-radius: 4px; }
.pmodal__table-wrap::-webkit-scrollbar-thumb:hover { background: rgba(168,85,200,0.90); }

.pmodal__table {
  width: 100%;
  border-collapse: collapse;
}
.pmodal__th {
  padding: 8px 16px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--text-muted);
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  position: sticky;
  top: 0;
  background: var(--bg-surface);
}

/* Alternating row tint + left accent bar on hover */
.pmodal__row {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  border-left: 3px solid transparent;
  transition: background .12s, border-left-color .12s;
}
.pmodal__row:nth-child(even) { background: rgba(255,255,255,0.018); }
.pmodal__row:last-child { border-bottom: none; }
.pmodal__row--dir { cursor: pointer; }
.pmodal__row:hover {
  background: rgba(132,56,184,0.07);
  border-left-color: rgba(132,56,184,0.6);
}
.pmodal__row--dir:hover { border-left-color: rgba(211,175,55,0.6); }

.pmodal__cell-icon   { padding: 11px 6px 11px 14px; font-size: 1.15rem; width: 32px; }
.pmodal__cell-name   { padding: 11px 8px; }
.pmodal__cell-action { padding: 11px 16px 11px 8px; text-align: right; }

.pmodal__fname {
  display: block;
  font-size: 0.88rem;
  color: var(--text-primary);
  font-weight: 500;
}

/* Meta line: size · modified date */
.pmodal__fmeta {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 3px;
}
.pmodal__fsize {
  font-size: 0.73rem;
  color: var(--text-secondary);
}
.pmodal__fsep {
  font-size: 0.73rem;
  color: rgba(255,255,255,0.30);
}
.pmodal__fdate {
  font-size: 0.73rem;
  color: var(--text-secondary);
}

.pmodal__open {
  font-size: 0.8rem;
  color: var(--cyan);
  font-weight: 500;
  letter-spacing: .02em;
}

/* Download button — pill style */
.pmodal__dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-light);
  text-decoration: none;
  padding: 5px 11px;
  border: 1px solid rgba(132,56,184,0.3);
  border-radius: 20px;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
  white-space: nowrap;
}
.pmodal__dl-btn:hover {
  background: rgba(132,56,184,0.15);
  border-color: rgba(132,56,184,0.55);
  color: #cc99e8;
  box-shadow: 0 2px 8px rgba(132,56,184,0.2);
}

.pmodal__empty {
  padding: 48px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.88rem;
  font-style: italic;
}

/* Mobile tweaks */
@media (max-width: 600px) {
  .pmodal__box { max-width: 100%; border-radius: 12px; }
  .pmodal__login { padding: 36px 24px; }
  .pmodal__browser-user span:first-child { display: none; }
  .pmodal__fdate { display: none; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE OVERLAY MENU
═══════════════════════════════════════════════════════════════ */

/* Full-screen overlay */
.mob-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: var(--bg-base);
  flex-direction: column;
  overflow: hidden;
}
.mob-overlay--open {
  display: flex;
}

/* Screen container — clips the sliding panels */
.mob-screens {
  position: relative;
  flex: 1;
  overflow: hidden;
}

/* Individual screens */
.mob-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-base);
  transform: translateX(100%);
  /* no transition by default — added by JS state classes */
}

.mob-screen--active {
  transform: translateX(0);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 2;
}

.mob-screen--from-right {
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.mob-screen--from-left {
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.mob-screen--to-left {
  transform: translateX(-30%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  opacity: 0;
}

.mob-screen--to-right {
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
}

/* ── Screen header ────────────────────────────────────────── */
.mob-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  height: 60px;
  min-height: 60px;
  border-bottom: 1px solid var(--border-subtle);
  flex-shrink: 0;
  gap: 8px;
}

.mob-header__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
}
.mob-header__logo .nav__logo-icon {
  width: 28px;
  height: 28px;
  min-width: 28px;
}

.mob-screen-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  flex: 1;
  text-align: center;
}

.mob-close,
.mob-back {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 500;
  flex-shrink: 0;
  border-radius: 8px;
  transition: background 0.14s, color 0.14s;
}
.mob-close:hover,
.mob-back:hover {
  color: var(--text-primary);
  background: var(--bg-overlay);
}

/* ── Scrollable body ──────────────────────────────────────── */
.mob-body {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 48px;
}

/* ── Top-level list items ─────────────────────────────────── */
.mob-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  text-decoration: none;
  cursor: pointer;
  user-select: none;
  transition: background 0.12s, color 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.mob-item:hover,
.mob-item:active {
  background: var(--bg-overlay);
  color: var(--text-primary);
}
.mob-item--cta {
  color: var(--accent-light);
  font-weight: 600;
  border-bottom: none;
  margin-top: 4px;
}

.mob-arrow {
  font-size: 20px;
  line-height: 1;
  color: var(--text-muted);
}

/* ── Section label (Hardware / Services) ─────────────────── */
.mob-section-label {
  padding: 16px 20px 6px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

/* ── Partners accordion ───────────────────────────────────── */
.mob-item--accordion {
  position: relative;
}
.mob-chevron {
  display: inline-block;
  font-size: 20px;
  color: var(--text-muted);
  transition: transform 0.22s ease;
}
.mob-item--acc-open .mob-chevron {
  transform: rotate(90deg);
}
.mob-acc {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  background: var(--bg-overlay);
}
.mob-acc--open {
  max-height: 240px;
}
.mob-acc-item {
  display: block;
  padding: 13px 20px 13px 32px;
  font-size: 15px;
  color: var(--text-secondary);
  text-decoration: none;
  border-bottom: 1px solid var(--border-subtle);
  transition: color 0.12s, background 0.12s;
}
.mob-acc-item:last-child { border-bottom: none; }
.mob-acc-item:hover { color: var(--text-primary); background: var(--bg-surface); }

/* ── Product category item grid ──────────────────────────── */
.mob-items-grid {
  display: flex;
  flex-direction: column;
}

.mob-grid-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 20px;
  text-decoration: none;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.12s;
  -webkit-tap-highlight-color: transparent;
}
.mob-grid-item:hover,
.mob-grid-item:active {
  background: var(--bg-overlay);
}

.mob-grid-icon {
  font-size: 22px;
  line-height: 1.2;
  flex-shrink: 0;
  margin-top: 1px;
  width: 28px;
  text-align: center;
}

.mob-grid-text {
  flex: 1;
  min-width: 0;
}

.mob-grid-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.mob-grid-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 3px;
}

/* ── Resource items (case studies) ───────────────────────── */
.mob-res-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  text-decoration: none;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.12s;
}
.mob-res-item:hover,
.mob-res-item:active {
  background: var(--bg-overlay);
}
.mob-res-logo {
  height: 22px;
  max-width: 88px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.75;
  flex-shrink: 0;
  margin-top: 2px;
}
.mob-res-quote {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* ── Download / webinar items ────────────────────────────── */
.mob-dl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  text-decoration: none;
  color: var(--text-secondary);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.4;
  transition: background 0.12s, color 0.12s;
}
.mob-dl-item:hover,
.mob-dl-item:active {
  background: var(--bg-overlay);
  color: var(--text-primary);
}
.mob-dl-item svg {
  flex-shrink: 0;
  color: var(--accent-light);
  opacity: 0.85;
}

/* ── Blog items ──────────────────────────────────────────── */
.mob-blog-item {
  display: block;
  padding: 13px 20px;
  text-decoration: none;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.12s;
}
.mob-blog-item:hover,
.mob-blog-item:active {
  background: var(--bg-overlay);
}
.mob-blog-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}
.mob-blog-sub {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
  margin-top: 3px;
}

/* ── View all link ───────────────────────────────────────── */
.mob-view-all {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 16px 20px 0;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
  text-decoration: none;
  border: 1px solid rgba(124, 58, 237, 0.3);
  background: rgba(124, 58, 237, 0.07);
  transition: background 0.15s;
}
.mob-view-all:hover {
  background: rgba(124, 58, 237, 0.13);
}

/* ── Hide old nav__mobile on all sizes ───────────────────── */
.nav__mobile { display: none !important; }


/* ════════════════════════════════════════════════════════════
   LIGHT MODE — brand-tinted palette + element-specific fixes
   Applied via [data-theme="light"] on <html>
   ════════════════════════════════════════════════════════════ */

[data-theme="light"] {
  /* Backgrounds — soft lavender-white tones */
  --bg-base:        #f8f4fd;
  --bg-surface:     #ffffff;
  --bg-raised:      #ede8f8;
  --bg-overlay:     #e0d4f0;
  --border-subtle:  rgba(105, 48, 150, 0.10);
  --border-light:   rgba(105, 48, 150, 0.18);

  /* Text — deep purple ink */
  --text-primary:   #1a0a2e;
  --text-secondary: #3d2558;
  --text-muted:     #7a65a0;

  /* Accent — use actual brand purple (readable on light bg) */
  --accent:         #693096;
  --accent-light:   #8438b8;
  --accent-glow:    rgba(105, 48, 150, 0.20);
  --accent-subtle:  rgba(105, 48, 150, 0.08);

  /* Gold — stays the same, reads fine on light */
  --cyan:           #b89420;          /* slightly deepened gold for contrast */
  --cyan-glow:      rgba(184, 148, 32, 0.12);

  --success:        #0a9c6a;
  --warning:        #c47d00;
}

/* ── Light: nav scrolled ────────────────────────────────── */
[data-theme="light"] .nav.scrolled {
  background: rgba(248, 244, 253, 0.95);
}

/* ── Light: hero h1 gradient ────────────────────────────── */
[data-theme="light"] .hero h1 {
  background: linear-gradient(135deg, #1a0a2e 0%, rgba(26, 10, 46, 0.65) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Light: soften heavy dark box-shadows ───────────────── */
[data-theme="light"] .mega-panel {
  box-shadow: 0 24px 60px rgba(105, 48, 150, 0.08);
}
[data-theme="light"] .product-card:hover {
  box-shadow: 0 16px 48px rgba(105, 48, 150, 0.10), 0 0 0 1px rgba(105, 48, 150, 0.15);
}
[data-theme="light"] .nav__dropdown {
  box-shadow: 0 16px 40px rgba(105, 48, 150, 0.10);
}
[data-theme="light"] .pmodal__box {
  box-shadow: 0 4px 24px rgba(105, 48, 150, 0.12), 0 0 40px rgba(105, 48, 150, 0.06);
}

/* ── Light: modal / partner portal element fixes ─────────── */
[data-theme="light"] .pmodal__close {
  border-color: rgba(105, 48, 150, 0.15);
}
[data-theme="light"] .pmodal__close:hover {
  background: rgba(105, 48, 150, 0.06);
  border-color: rgba(105, 48, 150, 0.25);
}
[data-theme="light"] .pmodal__logout-btn {
  background: rgba(105, 48, 150, 0.05);
  border-color: rgba(105, 48, 150, 0.15);
}
[data-theme="light"] .pmodal__logout-btn:hover {
  background: rgba(105, 48, 150, 0.10);
}
[data-theme="light"] .pmodal__th {
  border-bottom-color: rgba(105, 48, 150, 0.10);
}
[data-theme="light"] .pmodal__row {
  border-bottom-color: rgba(105, 48, 150, 0.06);
}
[data-theme="light"] .pmodal__row:nth-child(even) {
  background: rgba(105, 48, 150, 0.02);
}
[data-theme="light"] .pmodal__fsep { color: rgba(105, 48, 150, 0.30); }
[data-theme="light"] .pmodal__breadcrumb {
  border-bottom-color: rgba(105, 48, 150, 0.08);
  background: rgba(105, 48, 150, 0.03);
}

/* ── Light: case-study logo tint (invert looks wrong on white) */
[data-theme="light"] .mega-cs-logo,
[data-theme="light"] .mob-res-logo {
  filter: none;
  opacity: 0.80;
}

/* ── Light: scrollbar ───────────────────────────────────── */
[data-theme="light"] .pmodal__table-wrap::-webkit-scrollbar-track {
  background: rgba(105, 48, 150, 0.04);
}
[data-theme="light"] .pmodal__table-wrap::-webkit-scrollbar-thumb {
  background: rgba(105, 48, 150, 0.40);
}
[data-theme="light"] .pmodal__table-wrap::-webkit-scrollbar-thumb:hover {
  background: rgba(105, 48, 150, 0.60);
}

/* ── Light: mob-view-all uses new border variables ──────── */
[data-theme="light"] .mob-view-all {
  border-color: rgba(105, 48, 150, 0.25);
  background: rgba(105, 48, 150, 0.06);
}
[data-theme="light"] .mob-view-all:hover {
  background: rgba(105, 48, 150, 0.12);
}

/* ── Theme transition — smooth swap on toggle ────────────── */
.theme-transitioning,
.theme-transitioning *,
.theme-transitioning *::before,
.theme-transitioning *::after {
  transition:
    background-color 0.28s ease,
    background 0.28s ease,
    color 0.28s ease,
    border-color 0.28s ease,
    box-shadow 0.28s ease !important;
}

/* ── Theme toggle button ─────────────────────────────────── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--bg-overlay);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.18s, background 0.18s, border-color 0.18s;
  flex-shrink: 0;
  padding: 0;
}
.theme-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-raised);
  border-color: var(--border-light);
}
/* Sun shown in dark mode → click to go light */
.theme-toggle__sun  { display: block; }
.theme-toggle__moon { display: none;  }
[data-theme="light"] .theme-toggle__sun  { display: none;  }
[data-theme="light"] .theme-toggle__moon { display: block; }

/* Mobile theme toggle row */
.mob-item--theme {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
  gap: 10px;
}
.mob-item--theme .mob-theme-icon {
  font-size: 17px;
  line-height: 1;
}


/* ════════════════════════════════════════════════════════════
   LOGO IMAGES — real image files replace placeholder SVG icons
   ════════════════════════════════════════════════════════════ */

/* Remove the purple square background from the old icon container */
.nav__logo-icon {
  display: none !important;
}

/* The anchor that wraps the logo */
.nav__logo {
  display: flex;
  align-items: center;
  gap: 0;                /* image already contains the wordmark */
  text-indent: -9999px;  /* hide "Uplevel Systems" text node — logo image has it */
  font-size: 0;          /* belt-and-suspenders for inline text */
}

/* Base image styles */
.nav__logo-img {
  display: block;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* Dark mode: show white logo, hide colour logo */
.nav__logo-img--dark  { display: block; }
.nav__logo-img--light { display: none;  }

/* Light mode: show colour logo, hide white logo */
[data-theme="light"] .nav__logo-img--dark  { display: none;  }
[data-theme="light"] .nav__logo-img--light { display: block; }

/* Hover: slight opacity nudge for interactivity */
.nav__logo:hover .nav__logo-img { opacity: 0.88; transition: opacity 0.18s; }

/* Mobile overlay header logo sizing */
.mob-header__logo .nav__logo-img {
  /* height set inline via HTML attribute; just ensure no overflow */
  max-width: 160px;
}

/* Footer brand logo sizing */
.footer__brand .nav__logo-img {
  max-width: 180px;
}
.footer__brand .nav__logo {
  margin-bottom: 4px;
}

/* ─────────────────────────────────────────────────────────────────
   Listing-page card styles — appended to main.css.
   Drives /pages/case-studies.html, /pages/brochures.html, and
   /pages/sales-guides.html, which fetch from /api/resources/<category>
   and inject markup matching these classes.
   ───────────────────────────────────────────────────────────────── */

/* ── Case studies grid ───────────────────────────────────────────── */
.cs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  min-height: 200px;
}
.cs-grid[data-state="loading"],
.cs-grid[data-state="error"],
.cs-grid[data-state="empty"] {
  display: block;            /* don't try to grid a single <p> */
}
.cs-status {
  padding: 48px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
}
.cs-status--error { color: var(--warning); }

.cs-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: transform 0.18s var(--ease),
              border-color 0.18s var(--ease),
              box-shadow 0.18s var(--ease);
}
.cs-card:hover {
  transform: translateY(-2px);
  border-color: rgba(132, 56, 184, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* Logo "chip": white background so dark-on-transparent brand logos stay
   legible against the dark card. In light mode we tone this down. */
.cs-card__logo-wrap {
  height: 64px;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 8px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cs-card__logo {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.cs-card__logo-placeholder {
  font-size: 15px;
  font-weight: 600;
  color: rgba(15, 10, 28, 0.85);    /* readable on the white chip */
  text-align: center;
}

.cs-card__quote {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-primary);
  font-style: italic;
  flex: 1;
}
.cs-card__person {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* Outline button variant — was previously used by the static cards but
   never had a CSS definition. Define it here so the listing-page CTAs
   render correctly anywhere they're used. */
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1.5px solid var(--border-light);
}
.btn-outline:hover {
  border-color: var(--accent-light);
  color: var(--accent-light);
}

.cs-card__cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cs-card__cta-icon {
  flex-shrink: 0;
  transition: transform 0.18s var(--ease);
}
.cs-card__cta:hover .cs-card__cta-icon { transform: translateY(2px); }

/* Light-mode tweak: the white chip is too bright on a light page, so
   swap to a very subtle grey wash. */
[data-theme="light"] .cs-card {
  background: #fff;
  border-color: rgba(15, 10, 28, 0.10);
}
[data-theme="light"] .cs-card:hover {
  box-shadow: 0 12px 32px rgba(132, 56, 184, 0.10);
}
[data-theme="light"] .cs-card__logo-wrap {
  background: rgba(15, 10, 28, 0.04);
}
[data-theme="light"] .cs-card__logo-placeholder { color: var(--text-primary); }


/* ── Brochures / sales-guides grid ──────────────────────────────── */
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  min-height: 200px;
}
.dl-grid[data-state="loading"],
.dl-grid[data-state="error"],
.dl-grid[data-state="empty"] {
  display: block;
}
.dl-status {
  padding: 48px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
}
.dl-status--error { color: var(--warning); }

.dl-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s var(--ease),
              border-color 0.18s var(--ease),
              box-shadow 0.18s var(--ease);
}
.dl-card:hover {
  transform: translateY(-2px);
  border-color: rgba(132, 56, 184, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

/* Top-half-of-page-1 thumbnails are landscape (~1.55:1). We crop to a
   16:10 banner so cards line up — the relevant page header content sits
   in the top portion and stays visible. */
.dl-card__thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: rgba(132, 56, 184, 0.06);
  border-bottom: 1px solid var(--border-subtle);
  overflow: hidden;
}
.dl-card__thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.dl-card__thumb-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
  opacity: 0.55;
}

.dl-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px 8px;
}
.dl-card__date {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-light);
}
.dl-card__title {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}
.dl-card__desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
}
.dl-card__cta {
  padding: 14px 20px 18px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.dl-card__cta-icon {
  flex-shrink: 0;
  transition: transform 0.18s var(--ease);
}
.dl-card:hover .dl-card__cta-icon { transform: translateY(2px); }
.dl-card:hover .dl-card__cta { color: var(--cyan); }

[data-theme="light"] .dl-card {
  background: #fff;
  border-color: rgba(15, 10, 28, 0.10);
}
[data-theme="light"] .dl-card:hover {
  box-shadow: 0 12px 32px rgba(132, 56, 184, 0.10);
}


/* ─────────────────────────────────────────────────────────────────
   Mega-menu: real logos instead of white silhouettes.

   The previous .mega-cs-logo rule (line ~1394 of main.css) used
   `filter: brightness(0) invert(1)` which turned every logo into a
   white silhouette. With actual local logos in place we want their
   real colours — but most brand logos are dark text on transparent,
   so we wrap them in a light "chip" against the dark mega panel.
   ───────────────────────────────────────────────────────────────── */
.mega-cs-logo-wrap {
  height: 36px;                       /* was 28px; chip needs the breathing room */
  background: rgba(255, 255, 255, 0.92);
  border-radius: 6px;
  padding: 4px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mega-cs-logo {
  max-height: 28px;
  max-width: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: none;                       /* override earlier rule */
  opacity: 1;                          /* override earlier rule */
}
.mega-cs-card:hover .mega-cs-logo { opacity: 1; }  /* keep hover stable */

/* Light mode: the chip can blend in instead of looking pasted on. */
[data-theme="light"] .mega-cs-logo-wrap {
  background: rgba(15, 10, 28, 0.04);
}
[data-theme="light"] .mega-cs-logo,
[data-theme="light"] .mob-res-logo {
  filter: none;
  opacity: 1;
}

/* Mega-menu thumbnails for brochures + sales guides (replaces the
   placeholder download SVG). Tiny portrait-ratio chip on the left. */
.mega-dl-thumb {
  width: 36px;
  height: 46px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
  background: rgba(132, 56, 184, 0.08);
  display: block;
}

/* Mobile menu: same idea, just slightly bigger so it reads on a touch
   target. */
.mob-res-logo-wrap {
  background: rgba(255, 255, 255, 0.94);
  border-radius: 6px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.mob-dl-thumb {
  width: 40px;
  height: 52px;
  flex-shrink: 0;
  object-fit: cover;
  object-position: top center;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}
[data-theme="light"] .mob-res-logo-wrap {
  background: rgba(15, 10, 28, 0.04);
}
