/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--duration) var(--ease);
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo-link img,
.logo-link svg {
  height: 36px;
  width: auto;
}

/* Desktop header: horizontal wordmark PNG; mobile/dark: mark (+ text) */
.logo-brand {
  gap: 0;
}

.logo-brand .logo-lockup {
  display: none;
  height: 36px;
  width: auto;
  max-width: min(200px, 42vw);
  object-fit: contain;
  object-position: left center;
}

.logo-brand .logo-compact {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-brand .logo-compact .mark {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.logo-brand .logo-compact .wordmark {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  white-space: nowrap;
}

/* Mobile: mark only (hide text to save space) */
@media (max-width: 899px) {
  .site-header .logo-brand .logo-compact .wordmark {
    display: none;
  }
}

/* Desktop light: prefer wordmark lockup */
@media (min-width: 900px) {
  html:not([data-theme="dark"]) .site-header .logo-brand .logo-lockup {
    display: block;
  }
  html:not([data-theme="dark"]) .site-header .logo-brand .logo-compact {
    display: none;
  }
}

/* Dark theme header: mark + CSS text (wordmark PNG has light canvas) */
[data-theme="dark"] .site-header .logo-brand .logo-lockup {
  display: none;
}
[data-theme="dark"] .site-header .logo-brand .logo-compact {
  display: inline-flex;
}
[data-theme="dark"] .site-header .logo-brand .logo-compact .wordmark {
  display: inline;
  color: #f8fafc;
}

.logo-topbar .logo-lockup {
  height: 32px;
}
.logo-topbar .logo-compact .mark {
  width: 32px;
  height: 32px;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--text-secondary);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color var(--duration) var(--ease), background var(--duration) var(--ease);
}

.nav-desktop a:hover {
  color: var(--text);
  background: var(--bg-muted);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle,
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.theme-toggle:hover,
.menu-toggle:hover {
  background: var(--bg-muted);
  color: var(--text);
}

.theme-toggle:active,
.menu-toggle:active {
  transform: scale(0.95);
}

.menu-toggle {
  display: inline-flex;
}

@media (min-width: 900px) {
  .menu-toggle {
    display: none;
  }
}

.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--bg-elevated);
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 99;
  border-top: 1px solid var(--border);
  overflow-y: auto;
}

.nav-mobile.open {
  display: flex;
}

.nav-mobile a {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-md);
  color: var(--text);
}

.nav-mobile a:hover {
  background: var(--bg-muted);
}

.nav-mobile .btn {
  margin-top: 1rem;
  width: 100%;
  justify-content: center;
}

body.nav-open {
  overflow: hidden;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding-block: 3.5rem 4rem;
  overflow: hidden;
}

@media (min-width: 768px) {
  .hero {
    padding-block: 5rem 6rem;
  }
}

.hero-grid {
  display: grid;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--indigo-700);
  background: var(--indigo-50);
  border: 1px solid var(--indigo-100);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

[data-theme="dark"] .hero-badge {
  color: var(--indigo-200);
  background: var(--accent-soft);
  border-color: rgba(129, 140, 248, 0.3);
}

.hero-badge .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-500);
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulse-dot 2s ease infinite;
}

.hero h1 {
  font-size: var(--fs-5xl);
  font-weight: var(--fw-extrabold);
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero h1 .accent {
  background: linear-gradient(135deg, var(--indigo-600), var(--emerald-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  font-size: var(--fs-lg);
  max-width: 32rem;
  margin-bottom: 2rem;
  line-height: var(--lh-snug);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.hero-stat strong {
  display: block;
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-stat span {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.hero-visual {
  position: relative;
  width: 100%;
  min-width: 0;
}

.hero-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 1.25rem;
  overflow: hidden;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.hero-card-header h3 {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
}

.hero-kpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.mini-kpi {
  background: var(--bg-muted);
  border-radius: var(--radius-md);
  padding: 0.85rem;
}

.mini-kpi .label {
  font-size: var(--fs-xs);
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.mini-kpi .value {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
}

.mini-kpi .delta {
  font-size: var(--fs-xs);
  color: var(--emerald-600);
  font-weight: var(--fw-medium);
  margin-top: 0.15rem;
}

.hero-float {
  position: absolute;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 0.75rem 1rem;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  animation: float 4s ease-in-out infinite;
}

.hero-float.top-right {
  top: -0.75rem;
  right: -0.5rem;
  animation-delay: 0.5s;
}

.hero-float.bottom-left {
  bottom: 1.5rem;
  left: -0.75rem;
  animation-delay: 1.2s;
}

@media (max-width: 959px) {
  .hero-float {
    display: none;
  }
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -1;
}

.hero-bg::before {
  content: "";
  position: absolute;
  top: -20%;
  right: -10%;
  width: 55%;
  height: 70%;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.12), transparent 70%);
  border-radius: 50%;
}

.hero-bg::after {
  content: "";
  position: absolute;
  bottom: -10%;
  left: -5%;
  width: 40%;
  height: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.1), transparent 70%);
  border-radius: 50%;
}

/* ===== Trust bar ===== */
.trust-bar {
  padding-block: 2rem;
  border-block: 1px solid var(--border);
  background: var(--bg-elevated);
}

.trust-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2.5rem;
}

.trust-label {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.5rem 2rem;
}

.trust-pill {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text-secondary);
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg);
}

/* ===== Services ===== */
.services-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .services-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.service-card {
  position: relative;
  isolation: isolate;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), var(--bg-elevated) 42%),
    var(--bg-elevated);
  border: 1px solid transparent;
  border-radius: calc(var(--radius-xl) + 2px);
  padding: 1.65rem 1.5rem 1.4rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 18px 40px -24px rgba(79, 70, 229, 0.45),
    0 10px 24px -18px rgba(15, 23, 42, 0.28);
  background-clip: padding-box;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(145deg, rgba(79, 70, 229, 0.85), rgba(16, 185, 129, 0.55), rgba(99, 102, 241, 0.35));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}

.service-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 1.25rem;
  right: 1.25rem;
  height: 3px;
  border-radius: 0 0 999px 999px;
  background: linear-gradient(90deg, var(--indigo-500), var(--emerald-500));
  opacity: 0.95;
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 28px 50px -22px rgba(79, 70, 229, 0.55),
    0 16px 32px -16px rgba(15, 23, 42, 0.35);
}

[data-theme="dark"] .service-card {
  background:
    linear-gradient(180deg, rgba(49, 46, 129, 0.28), rgba(15, 23, 42, 0.92) 48%),
    var(--bg-elevated);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 22px 44px -24px rgba(99, 102, 241, 0.55);
}

[data-theme="dark"] .service-card:hover {
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 30px 56px -20px rgba(99, 102, 241, 0.65);
}

.service-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  margin-bottom: 0.85rem;
  padding: 0.28rem 0.65rem;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--indigo-700);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(16, 185, 129, 0.12));
  border: 1px solid rgba(79, 70, 229, 0.18);
}

[data-theme="dark"] .service-card-badge {
  color: var(--indigo-200);
  border-color: rgba(129, 140, 248, 0.28);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(79, 70, 229, 0.16), rgba(16, 185, 129, 0.12));
  color: var(--accent);
  margin-bottom: 1.15rem;
  box-shadow: 0 10px 20px -12px rgba(79, 70, 229, 0.65);
  border: 1px solid rgba(79, 70, 229, 0.14);
}

.service-card h3 {
  font-size: var(--fs-xl);
  letter-spacing: -0.02em;
  margin-bottom: 0.55rem;
}

.service-card p {
  font-size: var(--fs-sm);
  margin-bottom: 1.1rem;
  flex: 1;
  line-height: 1.55;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.tag {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  color: var(--indigo-700);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(79, 70, 229, 0.12);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-full);
}

[data-theme="dark"] .tag {
  color: var(--indigo-200);
  border-color: rgba(129, 140, 248, 0.22);
}

.service-card a.service-card-link {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  font-weight: var(--fw-semibold);
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.1), rgba(16, 185, 129, 0.08));
  border: 1px solid rgba(79, 70, 229, 0.16);
  width: fit-content;
  text-decoration: none;
}

.service-card a.service-card-link:hover {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.16), rgba(16, 185, 129, 0.12));
  text-decoration: none;
}

/* ===== Why us ===== */
.why-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 900px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.why-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.why-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  transition: background var(--duration) var(--ease);
}

.why-item:hover {
  background: var(--bg-muted);
}

.why-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--indigo-600), var(--indigo-800));
  color: #fff;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  display: flex;
  align-items: center;
  justify-content: center;
}

.why-item h3 {
  font-size: var(--fs-base);
  margin-bottom: 0.25rem;
}

.why-item p {
  font-size: var(--fs-sm);
}

.why-panel {
  background: linear-gradient(145deg, var(--indigo-900), var(--navy-900));
  border-radius: var(--radius-xl);
  padding: 2rem;
  color: #e2e8f0;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

.why-panel::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  height: 80%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.25), transparent 70%);
}

.why-panel h3 {
  color: #fff;
  font-size: var(--fs-2xl);
  margin-bottom: 0.75rem;
  position: relative;
}

.why-panel p {
  color: #cbd5e1;
  margin-bottom: 1.5rem;
  position: relative;
}

.why-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  position: relative;
}

.why-metric {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 1rem;
  backdrop-filter: blur(8px);
}

.why-metric strong {
  display: block;
  font-size: var(--fs-2xl);
  color: #fff;
  margin-bottom: 0.2rem;
}

.why-metric span {
  font-size: var(--fs-xs);
  color: #94a3b8;
}

/* ===== Tools ===== */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 640px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .tools-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.tool-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 1.25rem 1rem;
  text-align: center;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), border-color var(--duration) var(--ease);
}

.tool-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
  border-color: var(--indigo-200);
}

.tool-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 0.75rem;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
  color: #fff;
}

.tool-card span {
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  color: var(--text);
}

/* ===== Social proof ===== */
.proof-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .proof-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.proof-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.proof-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.proof-stars {
  color: #f59e0b;
  letter-spacing: 0.1em;
  font-size: var(--fs-sm);
}

.proof-card blockquote {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: var(--lh-normal);
  flex: 1;
}

.proof-author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.proof-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo-500), var(--emerald-500));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  font-size: var(--fs-sm);
}

.proof-author strong {
  display: block;
  font-size: var(--fs-sm);
}

.proof-author span {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

/* ===== CTA ===== */
.cta-section {
  padding-block: 2rem 5rem;
}

.cta-banner {
  background: linear-gradient(135deg, var(--indigo-700), var(--indigo-900) 50%, #064e3b);
  border-radius: var(--radius-xl);
  padding: 2.5rem 1.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-glow);
}

@media (min-width: 768px) {
  .cta-banner {
    padding: 3.5rem 3rem;
  }
}

.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(52, 211, 153, 0.2), transparent 50%),
              radial-gradient(circle at 80% 30%, rgba(129, 140, 248, 0.25), transparent 45%);
}

.cta-banner > * {
  position: relative;
}

.cta-banner h2 {
  color: #fff;
  font-size: var(--fs-3xl);
  margin-bottom: 0.75rem;
}

@media (min-width: 768px) {
  .cta-banner h2 {
    font-size: var(--fs-4xl);
  }
}

.cta-banner p {
  color: #c7d2fe;
  max-width: 28rem;
  margin-inline: auto;
  margin-bottom: 1.75rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--navy-900);
  color: #94a3b8;
  padding-block: 3.5rem 2rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.footer-brand .logo-link {
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: var(--fs-sm);
  color: #94a3b8;
  max-width: 16rem;
}

.footer-col h4 {
  color: #f1f5f9;
  font-size: var(--fs-sm);
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
}

.footer-col a {
  display: block;
  font-size: var(--fs-sm);
  color: #94a3b8;
  padding: 0.3rem 0;
  transition: color var(--duration) var(--ease);
}

.footer-col a:hover {
  color: #e2e8f0;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid #1e293b;
  font-size: var(--fs-xs);
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: #e2e8f0;
}

/* ===== Dashboard layout ===== */
.dash-body {
  background: var(--bg);
  min-height: 100vh;
}

.dash-shell {
  display: flex;
  min-height: 100vh;
}

.dash-sidebar {
  display: none;
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  padding: 1.25rem 1rem;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

@media (min-width: 960px) {
  .dash-sidebar {
    display: flex;
  }
}

.dash-sidebar .logo-link {
  padding: 0.5rem 0.75rem 1.5rem;
}

.dash-nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}

.dash-nav a {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: #94a3b8;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.dash-nav a:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

.dash-nav a.active {
  background: rgba(79, 70, 229, 0.35);
  color: #fff;
}

.dash-nav a svg {
  flex-shrink: 0;
  opacity: 0.85;
}

.dash-sidebar-foot {
  padding: 1rem 0.75rem 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: var(--fs-xs);
  color: #64748b;
}

.dash-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

@media (min-width: 960px) {
  .dash-main {
    margin-left: var(--sidebar-w);
  }
}

.dash-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(10px);
}

@media (min-width: 768px) {
  .dash-topbar {
    padding: 1rem 1.75rem;
  }
}

.dash-topbar-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.dash-topbar h1 {
  font-size: var(--fs-lg);
}

.dash-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.dash-content {
  padding: 1.25rem;
  flex: 1;
}

@media (min-width: 768px) {
  .dash-content {
    padding: 1.75rem;
  }
}

.dash-mobile-nav {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  margin-bottom: 1rem;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 960px) {
  .dash-mobile-nav {
    display: none;
  }
}

.dash-mobile-nav a {
  flex-shrink: 0;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text-secondary);
}

.dash-mobile-nav a.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.kpi-grid {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 560px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.kpi-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.kpi-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.kpi-label {
  font-size: var(--fs-sm);
  color: var(--text-muted);
  font-weight: var(--fw-medium);
}

.kpi-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
}

.kpi-value {
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.03em;
  margin-bottom: 0.35rem;
}

.kpi-delta {
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
}

.kpi-delta.up { color: var(--emerald-600); }
.kpi-delta.down { color: #ef4444; }

.dash-panels {
  display: grid;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 960px) {
  .dash-panels {
    grid-template-columns: 1.6fr 1fr;
  }
}

.panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.panel-head h2 {
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
}

.market-tabs {
  display: flex;
  gap: 0.25rem;
  background: var(--bg-muted);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
}

.market-tab {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  padding: 0.4rem 0.7rem;
  border-radius: 6px;
  color: var(--text-muted);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}

.market-tab:hover {
  color: var(--text);
}

.market-tab.active {
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.chart-wrap {
  position: relative;
  height: 260px;
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.activity-item {
  display: flex;
  gap: 0.85rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.activity-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 0.35rem;
  flex-shrink: 0;
  background: var(--accent);
}

.activity-dot.success { background: var(--emerald-500); }
.activity-dot.warn { background: #f59e0b; }
.activity-dot.info { background: var(--indigo-400); }

.activity-body strong {
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-semibold);
  margin-bottom: 0.15rem;
}

.activity-body p {
  font-size: var(--fs-xs);
  color: var(--text-muted);
}

.activity-time {
  margin-left: auto;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  white-space: nowrap;
}

.market-summary {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 560px) {
  .market-summary {
    grid-template-columns: repeat(3, 1fr);
  }
}

.market-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.market-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.market-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.market-card-head h3 {
  font-size: var(--fs-base);
}

.market-badge {
  font-size: 0.65rem;
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
}

.market-badge.ebay { background: #dbeafe; color: #1d4ed8; }



[data-theme="dark"] .market-badge.ebay { background: rgba(59, 130, 246, 0.2); color: #93c5fd; }
[data-theme="dark"] 
[data-theme="dark"] 

.market-stats {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.market-stat {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-sm);
}

.market-stat span { color: var(--text-muted); }
.market-stat strong { font-weight: var(--fw-semibold); }

.user-chip {
  display: none;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.65rem 0.35rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
}

@media (min-width: 640px) {
  .user-chip {
    display: inline-flex;
  }
}

.user-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--indigo-500), var(--emerald-500));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
}

@media (max-width: 959px) {
  .dash-topbar .logo-brand .logo-compact .wordmark,
  .dash-topbar .logo-inline .wordmark {
    display: none;
  }
  .dash-topbar .logo-brand .logo-lockup {
    display: none;
  }
  .dash-topbar .logo-brand .logo-compact {
    display: inline-flex;
  }
}

@media (min-width: 960px) {
  .dash-topbar .logo-brand,
  .dash-topbar .logo-inline {
    display: none !important;
  }
}

/* ===== Service landing pages ===== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}
.breadcrumb a { color: var(--text-secondary); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb [aria-current="page"] { color: var(--text); font-weight: var(--fw-medium); }

.page-hero {
  padding: clamp(2.5rem, 5vw, 4rem) 0 2rem;
  background: linear-gradient(180deg, var(--bg-soft), var(--bg));
  border-bottom: 1px solid var(--border);
}
.page-hero .section-label { margin-bottom: 0.75rem; }
.page-hero h1 {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
  font-weight: var(--fw-extrabold);
  max-width: 18ch;
  margin: 0 0 1rem;
}
.page-hero h1 .accent { color: var(--accent); }
.page-hero .page-lead {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  max-width: 62ch;
  margin: 0 0 1.5rem;
  line-height: var(--lh-normal);
}
.page-hero-cta { display: flex; flex-wrap: wrap; gap: 0.75rem; }

.prose-section { padding: 3rem 0; }
.prose {
  max-width: 72ch;
  color: var(--text-secondary);
  font-size: var(--fs-base);
  line-height: 1.75;
}
.prose h2 {
  color: var(--text);
  font-size: var(--fs-2xl);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  margin: 2rem 0 0.85rem;
  line-height: var(--lh-snug);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  color: var(--text);
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
  margin: 1.5rem 0 0.65rem;
}
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}
.prose li { margin-bottom: 0.45rem; }
.prose a { color: var(--accent); font-weight: var(--fw-medium); }
.prose a:hover { text-decoration: underline; }
.prose strong { color: var(--text); font-weight: var(--fw-semibold); }

.related-services {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}
@media (min-width: 700px) {
  .related-services { grid-template-columns: repeat(2, 1fr); }
}
.related-card {
  display: block;
  padding: 1.25rem 1.35rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.related-card:hover {
  border-color: var(--indigo-300, #a5b4fc);
  box-shadow: var(--shadow-md);
}
.related-card strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.35rem;
}
.related-card span { color: var(--text-muted); font-size: var(--fs-sm); }

.error-page {
  min-height: calc(100vh - var(--header-h) - 120px);
  display: flex;
  align-items: center;
  padding: 3rem 0;
}
.error-page .error-code {
  font-size: clamp(4rem, 12vw, 6rem);
  font-weight: var(--fw-extrabold);
  letter-spacing: -0.04em;
  color: var(--accent);
  line-height: 1;
  margin: 0 0 0.5rem;
}
.error-page h1 {
  font-size: var(--fs-3xl);
  margin: 0 0 0.75rem;
}
.error-page .page-lead { margin-bottom: 1.75rem; }
.error-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ===== Premium service hero banners ===== */
.service-hero {
  position: relative;
  min-height: clamp(320px, 52vw, 520px);
  display: flex;
  align-items: flex-end;
  color: #f8fafc;
  overflow: hidden;
  background-color: #0f172a;
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(15, 23, 42, 0.92) 0%,
    rgba(15, 23, 42, 0.78) 42%,
    rgba(15, 23, 42, 0.35) 68%,
    rgba(15, 23, 42, 0.15) 100%
  );
  z-index: 1;
}
.service-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(15, 23, 42, 0.55) 0%, transparent 45%);
  z-index: 1;
  pointer-events: none;
}
.service-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3.25rem);
}
.service-hero .breadcrumb {
  color: rgba(226, 232, 240, 0.75);
  margin-bottom: 1rem;
}
.service-hero .breadcrumb a { color: rgba(226, 232, 240, 0.9); }
.service-hero .breadcrumb a:hover { color: #fff; }
.service-hero .breadcrumb [aria-current="page"] { color: #fff; }
.service-hero .hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #a5b4fc;
  background: rgba(79, 70, 229, 0.25);
  border: 1px solid rgba(129, 140, 248, 0.35);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}
.service-hero h1 {
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: var(--lh-tight);
  letter-spacing: -0.03em;
  font-weight: var(--fw-extrabold);
  max-width: 16ch;
  margin: 0 0 1rem;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.35);
}
.service-hero .hero-lead {
  font-size: clamp(1rem, 2vw, 1.125rem);
  line-height: var(--lh-normal);
  color: #cbd5e1;
  max-width: 48ch;
  margin: 0 0 1.5rem;
}
.service-hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
.service-hero .btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #f8fafc;
}
.service-hero .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Theme variants for distinct pages */
.service-hero--ds {
  background-image: url("../assets/banners/ebay-dropshipping.png");
}
.service-hero--pl {
  background-image: url("../assets/banners/ebay-private-label.png");
  background-position: center right;
}
.service-hero--pl::before {
  background: linear-gradient(
    105deg,
    rgba(15, 23, 42, 0.94) 0%,
    rgba(6, 78, 59, 0.55) 45%,
    rgba(15, 23, 42, 0.2) 100%
  );
}
.service-hero--ws {
  background-image: url("../assets/banners/ebay-wholesale.png");
  background-position: center right;
}
.service-hero--ws::before {
  background: linear-gradient(
    105deg,
    rgba(15, 23, 42, 0.93) 0%,
    rgba(30, 58, 138, 0.55) 48%,
    rgba(15, 23, 42, 0.18) 100%
  );
}

@media (max-width: 699px) {
  .service-hero {
    min-height: 420px;
    background-position: 70% center;
  }
  .service-hero::before {
    background: linear-gradient(
      180deg,
      rgba(15, 23, 42, 0.55) 0%,
      rgba(15, 23, 42, 0.88) 55%,
      rgba(15, 23, 42, 0.95) 100%
    );
  }
  .service-hero h1 { max-width: 100%; }
}

/* Process / benefit layouts — distinct per page */
.process-rail {
  display: grid;
  gap: 1rem;
  counter-reset: step;
}
@media (min-width: 800px) {
  .process-rail { grid-template-columns: repeat(4, 1fr); }
}
.process-step {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.25rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: block;
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 0.65rem;
}
.process-step h3 {
  font-size: var(--fs-base);
  margin: 0 0 0.4rem;
  color: var(--text);
}
.process-step p {
  margin: 0;
  font-size: var(--fs-sm);
  color: var(--text-muted);
  line-height: var(--lh-normal);
}

.benefit-split {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 900px) {
  .benefit-split { grid-template-columns: 1.1fr 0.9fr; gap: 3rem; }
}
.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.85rem;
}
.benefit-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.benefit-list .tick {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
}
.benefit-list strong { display: block; color: var(--text); margin-bottom: 0.15rem; }
.benefit-list span { font-size: var(--fs-sm); color: var(--text-muted); }

.brand-panel {
  background: linear-gradient(160deg, var(--indigo-900), var(--navy-900));
  color: #e2e8f0;
  border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3vw, 2rem);
  box-shadow: var(--shadow-lg);
}
.brand-panel h3 { color: #fff; margin: 0 0 0.75rem; font-size: var(--fs-xl); }
.brand-panel p { margin: 0 0 1rem; color: #cbd5e1; line-height: var(--lh-normal); }
.brand-panel .pill-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.brand-panel .pill {
  font-size: var(--fs-xs);
  font-weight: var(--fw-semibold);
  padding: 0.35rem 0.7rem;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  color: #e0e7ff;
}

.catalog-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
}
.catalog-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.catalog-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.catalog-card .icon-box {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 0.85rem;
}
.catalog-card h3 { margin: 0 0 0.4rem; font-size: var(--fs-lg); color: var(--text); }
.catalog-card p { margin: 0; font-size: var(--fs-sm); color: var(--text-muted); line-height: var(--lh-normal); }

.ai-callout {
  display: grid;
  gap: 1.25rem;
  align-items: center;
  padding: clamp(1.5rem, 3vw, 2rem);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--bg-soft);
}
@media (min-width: 800px) {
  .ai-callout { grid-template-columns: auto 1fr auto; }
}
.ai-callout .ai-badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  box-shadow: var(--shadow-glow);
}
.ai-callout h3 { margin: 0 0 0.35rem; color: var(--text); }
.ai-callout p { margin: 0; color: var(--text-secondary); font-size: var(--fs-sm); line-height: var(--lh-normal); }

.service-card a.service-card-link {
  color: var(--accent);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.85rem;
}
.service-card a.service-card-link:hover { text-decoration: underline; }


/* Dashboard brand — single clean mark + wordmark */
.dash-sidebar .dash-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  max-width: 100%;
  overflow: visible;
  padding: 0.35rem 0.5rem 1.35rem;
}
.dash-sidebar .dash-brand .mark {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 9px;
  display: block;
}
.dash-sidebar .dash-brand .wordmark {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #f8fafc;
  white-space: nowrap;
  overflow: visible;
}

.dash-topbar-title {
  margin: 0;
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  letter-spacing: -0.02em;
  color: var(--text);
}
.dash-topbar-sub {
  margin: 0.15rem 0 0;
  font-size: var(--fs-xs);
  color: var(--text-muted);
}
@media (min-width: 960px) {
  .dash-topbar-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}
