/* ── Base ──────────────────────────────────────────────────────────────────── */

:root {
  --bg-primary: #0F1419;
  --bg-secondary: #1A1F2E;
  --bg-tertiary: #232A3B;
  --bg-deep: #0D1117;
  --accent: #3B82F6;
  --accent-hover: #2563EB;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: #F1F5F9;
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: rgba(59, 130, 246, 0.3);
  color: #fff;
}

/* ── Scroll Animations ────────────────────────────────────────────────────── */

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero-glow {
  background: radial-gradient(
    ellipse 70% 50% at 50% 40%,
    rgba(59, 130, 246, 0.08) 0%,
    transparent 70%
  );
}

.hero-grid {
  background-image: radial-gradient(circle, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 70%);
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.hero-float {
  animation: float 6s ease-in-out infinite;
}

/* ── Navigation ───────────────────────────────────────────────────────────── */

.nav-solid {
  background-color: rgba(15, 20, 25, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* ── Browser Mockup ───────────────────────────────────────────────────────── */

.browser-mockup {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.03),
    0 25px 80px -12px rgba(0, 0, 0, 0.6),
    0 0 120px -20px rgba(59, 130, 246, 0.15),
    0 0 60px -10px rgba(59, 130, 246, 0.1);
}

.browser-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* ── Role Showcase ────────────────────────────────────────────────────────── */

.role-card {
  cursor: pointer;
  transition: all 0.2s ease;
  border-left: 3px solid transparent;
}

.role-card:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

.role-card.active {
  border-left-color: var(--accent);
  background-color: rgba(59, 130, 246, 0.1);
}

.role-demo {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  position: absolute;
  inset: 0;
}

.role-demo.active {
  opacity: 1;
  transform: translateY(0);
  position: relative;
}

/* ── Step Connector Lines ─────────────────────────────────────────────────── */

.step-connector {
  position: relative;
}

.step-connector::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -2rem;
  width: 4rem;
  height: 0;
  border-top: 2px dashed rgba(59, 130, 246, 0.2);
}

.step-connector:last-child::after {
  display: none;
}

@media (max-width: 767px) {
  .step-connector::after {
    display: none;
  }
}

/* ── ERP Badge ────────────────────────────────────────────────────────────── */

.badge-supported {
  background-color: rgba(16, 185, 129, 0.12);
  color: #34D399;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-coming {
  background-color: rgba(148, 163, 184, 0.08);
  color: #94A3B8;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

/* ── Architecture Diagram ─────────────────────────────────────────────────── */

.arch-node {
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  text-align: center;
  position: relative;
}

.arch-arrow {
  color: rgba(59, 130, 246, 0.7);
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── CTA Glow ─────────────────────────────────────────────────────────────── */

.cta-glow {
  background: radial-gradient(
    ellipse 70% 50% at 50% 50%,
    rgba(59, 130, 246, 0.12) 0%,
    transparent 70%
  );
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.4), 0 8px 30px -4px rgba(59, 130, 246, 0.3); }
  50% { box-shadow: 0 0 0 8px rgba(59, 130, 246, 0), 0 8px 30px -4px rgba(59, 130, 246, 0.3); }
}

.cta-btn-pulse {
  animation: cta-pulse 2.5s ease-in-out infinite;
}

/* ── Counter Animation ────────────────────────────────────────────────────── */

.stat-number {
  font-variant-numeric: tabular-nums;
}

/* ── Mobile Menu ──────────────────────────────────────────────────────────── */

.mobile-menu {
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-overlay {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-overlay.open {
  opacity: 1;
  pointer-events: auto;
}

/* ── Section dividers ─────────────────────────────────────────────────────── */

.section-alt {
  background-color: #111827;
}

/* ── Scrollbar ────────────────────────────────────────────────────────────── */

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}
