:root {
  --brand-primary: #4f46e5;
  --brand-secondary: #7c3aed;
  --brand-accent: #06b6d4;
  --brand-dark: #0f172a;
  --brand-light: #f8fafc;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
}

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar-brand span {
  color: var(--brand-accent);
}

.navbar.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,.12);
  background: rgba(15,23,42,.97) !important;
}

.nav-link {
  transition: color .25s;
}

.nav-link:hover {
  color: var(--brand-accent) !important;
}

@media (max-width: 991.98px) {
  #navbar {
    background: rgba(15,23,42,.98) !important;
    backdrop-filter: blur(8px);
  }

  #navMenu {
    margin-top: .75rem;
    padding: 1rem;
    border-radius: 16px;
    background: rgba(15,23,42,.98);
    box-shadow: 0 16px 40px rgba(0,0,0,.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  #navMenu .navbar-nav {
    align-items: stretch;
    gap: .25rem !important;
  }

  #navMenu .nav-link {
    color: #e2e8f0 !important;
    padding: .6rem .8rem;
    border-radius: 10px;
  }

  #navMenu .nav-link:hover {
    color: var(--brand-accent) !important;
    background: rgba(255, 255, 255, 0.08);
  }

  .navbar-toggler {
    padding: .4rem .6rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 10px;
  }

  .navbar-toggler-icon {
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.45));
  }
}

/* ─── Hero ───────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--brand-dark) 0%, #1e1b4b 55%, #0c4a6e 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
/* animated floating orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  animation: drift 12s ease-in-out infinite alternate;
}

.orb-1 {
  width: 600px;
  height: 600px;
  background: var(--brand-primary);
  top: -200px;
  left: -150px;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px;
  height: 500px;
  background: var(--brand-secondary);
  bottom: -150px;
  right: -100px;
  animation-delay: -4s;
}

.orb-3 {
  width: 300px;
  height: 300px;
  background: var(--brand-accent);
  top: 40%;
  left: 50%;
  animation-delay: -8s;
}

/* grid lines overlay */
#hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: #e0e7ff;
  font-size: .8rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 50px;
  backdrop-filter: blur(6px);
  margin-bottom: 1.5rem;
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
}

.hero-title .highlight {
  background: linear-gradient(90deg, var(--brand-accent), #818cf8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  color: #94a3b8;
  font-size: 1.1rem;
  max-width: 540px;
}

.btn-hero-primary {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border: none;
  color: #fff;
  padding: .75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
}

.btn-hero-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(79,70,229,.5);
  color: #fff;
}

.btn-hero-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,.3);
  color: #fff;
  padding: .75rem 2rem;
  border-radius: 50px;
  font-weight: 600;
  transition: background .2s, border-color .2s;
}

.btn-hero-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
  color: #fff;
}

/* hero dashboard mock */
.dashboard-mock {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 100px rgba(0,0,0,.6);
  border: 1px solid rgba(255,255,255,.1);
  animation: float 6s ease-in-out infinite;
}

.mock-bar {
  background: #1e293b;
  padding: .6rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.mock-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.mock-body {
  background: #0f172a;
  padding: 1.5rem;
}

.mock-stat {
  background: #1e293b;
  border-radius: 10px;
  padding: .8rem 1rem;
  text-align: center;
}

.mock-stat-val {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
}

.mock-stat-lbl {
  font-size: .7rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.mock-bar-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 70px;
  margin-top: .5rem;
}

.mock-bar-item {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--brand-primary), var(--brand-secondary));
  animation: grow-bar 2s ease-out both;
}

.mock-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #22c55e;
  display: inline-block;
  animation: pulse-dot 1.5s ease-in-out infinite;
}

/* ─── Stats strip ─────────────────────────────────────────── */
#stats-strip {
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  padding: 3rem 0;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
}

.stat-label {
  color: rgba(255,255,255,.8);
  font-size: .9rem;
}

/* ─── Features ───────────────────────────────────────────── */
.feature-card {
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 2rem;
  transition: transform .3s, box-shadow .3s;
  background: #fff;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(79,70,229,.12);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.2rem;
}

.fi-purple {
  background: #ede9fe;
  color: var(--brand-secondary);
}

.fi-cyan {
  background: #cffafe;
  color: #0891b2;
}

.fi-green {
  background: #dcfce7;
  color: #16a34a;
}

.fi-orange {
  background: #ffedd5;
  color: #ea580c;
}

.fi-blue {
  background: #dbeafe;
  color: #2563eb;
}

.fi-pink {
  background: #fce7f3;
  color: #db2777;
}

.feature-card h5 {
  font-weight: 700;
  margin-bottom: .5rem;
}

.feature-card p {
  color: #64748b;
  font-size: .93rem;
}

/* ─── How it works ───────────────────────────────────────── */
#how {
  background: var(--brand-dark);
}

.step-line {
  width: 2px;
  flex: 1;
  background: linear-gradient(180deg, var(--brand-primary), transparent);
  min-height: 60px;
}

.step-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  font-size: 1.1rem;
  flex-shrink: 0;
  box-shadow: 0 0 0 8px rgba(79,70,229,.2);
}

.step-title {
  font-weight: 700;
  color: #f1f5f9;
}

.step-body {
  color: #94a3b8;
  font-size: .93rem;
}

/* ─── Testimonials ───────────────────────────────────────── */
.testimonial-card {
  background: #fff;
  border-radius: 16px;
  padding: 2rem;
  border: 1px solid #e2e8f0;
  height: 100%;
  transition: box-shadow .3s;
}

.testimonial-card:hover {
  box-shadow: 0 16px 48px rgba(79,70,229,.1);
}

.star-row {
  color: #f59e0b;
  font-size: 1rem;
  margin-bottom: .8rem;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .9rem;
  color: #fff;
}

/* ─── Pricing ─────────────────────────────────────────────── */
.price-card {
  border-radius: 20px;
  padding: 2.5rem 2rem;
  height: 100%;
  border: 2px solid #e2e8f0;
  transition: transform .3s, border-color .3s, box-shadow .3s;
  background: #fff;
}

.price-card.featured {
  border-color: var(--brand-primary);
  background: linear-gradient(135deg, var(--brand-dark), #1e1b4b);
  color: #f1f5f9;
  box-shadow: 0 20px 60px rgba(79,70,229,.35);
  transform: scale(1.04);
}

.price-card:not(.featured):hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,0,0,.08);
}

.price-badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .25rem .75rem;
  border-radius: 50px;
  margin-bottom: .75rem;
}

.price-amount {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.price-amount sup {
  font-size: 1.4rem;
  font-weight: 700;
  vertical-align: super;
}

.price-card.featured .price-amount {
  color: #fff;
}

.check-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.check-list li {
  padding: .4rem 0;
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  font-size: .93rem;
}

.check-list li i {
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 2px;
}

.price-card.featured .check-list li {
  color: #cbd5e1;
}

/* ─── CTA ────────────────────────────────────────────────── */
#cta {
  background: linear-gradient(135deg, #1e1b4b 0%, var(--brand-dark) 60%, #042f2e 100%);
  position: relative;
  overflow: hidden;
}

#cta::before {
  content: '';
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(79,70,229,.3), transparent 70%);
  top: -300px;
  left: 50%;
  transform: translateX(-50%);
}

/* ─── Footer ─────────────────────────────────────────────── */
footer {
  background: #020617;
  color: #64748b;
  font-size: .88rem;
}

footer a {
  color: #64748b;
  text-decoration: none;
  transition: color .2s;
}

footer a:hover {
  color: var(--brand-accent);
}

.footer-brand {
  font-size: 1.3rem;
  font-weight: 800;
  color: #fff;
}

/* ─── Live clock ─────────────────────────────────────────── */
#live-clock {
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  color: var(--brand-accent);
  font-weight: 600;
}

/* ─── Scroll to top ──────────────────────────────────────── */
#scrollTop {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
  border: none;
  color: #fff;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 999;
  cursor: pointer;
}

#scrollTop.visible {
  opacity: 1;
  pointer-events: all;
}

#scrollTop:hover {
  transform: scale(1.1);
}

/* ─── Typed cursor ───────────────────────────────────────── */
.typed-cursor {
  animation: blink .7s infinite;
}

/* ─── Section headers ────────────────────────────────────── */
.section-eyebrow {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--brand-primary);
  margin-bottom: .5rem;
}

.section-title {
  font-size: clamp(1.8rem,4vw,2.6rem);
  font-weight: 800;
}

.section-sub {
  color: #64748b;
  font-size: 1rem;
  max-width: 560px;
  margin: .75rem auto 0;
}
