/* ==========================================================================
   Smart Business Apps — Design tokens
   ========================================================================== */
:root{
  --blue: #2563EB;
  --blue-dark: #1D4ED8;
  --blue-deep: #1E3A8A;
  --blue-50: #EFF6FF;
  --blue-100: #DBEAFE;
  --green: #10B981;
  --green-dark: #059669;
  --green-50: #ECFDF5;
  --ink: #0B1220;
  --ink-700: #1E293B;
  --gray-600: #64748B;
  --gray-400: #94A3B8;
  --gray-200: #E2E8F0;
  --gray-100: #F1F5F9;
  --gray-50: #F8FAFC;
  --white: #FFFFFF;

  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px -12px rgba(37, 99, 235, 0.25);
  --shadow-card: 0 1px 2px rgba(15,23,42,.04), 0 12px 32px -8px rgba(15,23,42,.10);

  --ease: cubic-bezier(.22,1,.36,1);
}

@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
body{
  font-family: var(--font-body);
  color: var(--ink-700);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1,h2,h3,h4{
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
}
p{ margin: 0; }
a{ text-decoration: none; color: inherit; }
img{ max-width: 100%; display:block; }
:focus-visible{ outline: 2.5px solid var(--blue); outline-offset: 3px; border-radius: 4px; }

.container{ max-width: 1220px; }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  cursor: pointer;
  white-space: nowrap;
}
.btn svg{ transition: transform .3s var(--ease); flex-shrink:0; }
.btn:hover svg{ transform: translateX(3px); }

.btn-primary-cta{
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white);
  box-shadow: 0 10px 24px -8px rgba(37,99,235,.55);
}
.btn-primary-cta:hover{ transform: translateY(-2px); box-shadow: 0 16px 32px -8px rgba(37,99,235,.6); color: var(--white); }

.btn-ghost-cta{
  background: var(--white);
  color: var(--ink-700);
  border-color: var(--gray-200);
}
.btn-ghost-cta:hover{ border-color: var(--blue); color: var(--blue); transform: translateY(-2px); }

.btn-nav-cta{
  padding: 0.6rem 1.2rem;
  font-size: 0.88rem;
  background: var(--ink);
  color: var(--white);
}
.btn-nav-cta:hover{ background: var(--blue); color: var(--white); transform: translateY(-1px); }

.btn-light-cta{ background: var(--white); color: var(--blue-deep); box-shadow: 0 10px 24px -8px rgba(0,0,0,.25); }
.btn-light-cta:hover{ color: var(--blue-deep); }
.btn-ghost-dark{ background: transparent; border-color: rgba(255,255,255,.35); color: var(--white); }
.btn-ghost-dark:hover{ border-color: var(--white); color: var(--white); background: rgba(255,255,255,.08); }

.text-accent{ color: var(--blue); }

/* ==========================================================================
   Navbar
   ========================================================================== */
.sba-nav{
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 1.1rem 0;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), padding .3s var(--ease);
}
.sba-nav.scrolled{
  padding: 0.7rem 0;
  border-bottom-color: var(--gray-200);
  box-shadow: 0 4px 20px rgba(15,23,42,.05);
}
.brand{ display: flex; align-items: center; gap: 10px; }
.brand-mark{
  width: 34px; height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 14px -4px rgba(37,99,235,.55);
}
.brand-text{ font-family: var(--font-display); font-weight: 500; font-size: 1.08rem; color: var(--ink); }
.brand-text strong{ font-weight: 700; }

.nav-links{ display: flex; align-items: center; gap: 2rem; }
.nav-link-item{
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-600);
  position: relative;
  padding: 4px 0;
  transition: color .2s var(--ease);
}
.nav-link-item::after{
  content:'';
  position: absolute; left:0; bottom:-2px;
  width:0; height:2px;
  background: var(--blue);
  transition: width .25s var(--ease);
}
.nav-link-item:hover{ color: var(--ink); }
.nav-link-item:hover::after{ width: 100%; }

.nav-toggle{
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 38px; height: 38px;
  background: none; border: none;
  cursor: pointer;
}
.nav-toggle span{ width: 100%; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav-toggle.open span:nth-child(1){ transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2){ opacity: 0; }
.nav-toggle.open span:nth-child(3){ transform: translateY(-7px) rotate(-45deg); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position: relative;
  padding: 6rem 0 6.5rem;
  overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, var(--blue-100) 0%, transparent 60%),
    linear-gradient(180deg, var(--gray-50) 0%, var(--white) 100%);
}
.hero-grid{
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(37,99,235,.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37,99,235,.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 70% 20%, black, transparent);
  pointer-events: none;
}
.hero-glow{
  position: absolute; top: -180px; right: -160px;
  width: 560px; height: 560px;
  background: radial-gradient(circle, rgba(16,185,129,.18), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.eyebrow{
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue-dark);
  background: var(--blue-50);
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.3rem;
  border: 1px solid var(--blue-100);
}
.eyebrow-dot{ width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-50); }
.eyebrow-center{ display: flex; margin-left: auto; margin-right: auto; }

.hero-title{
  font-size: clamp(2.3rem, 4.4vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 1.4rem;
}
.hero-subtitle{
  font-size: 1.12rem;
  color: var(--gray-600);
  line-height: 1.65;
  max-width: 520px;
  margin-bottom: 2.2rem;
}
.hero-actions{ display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 2.6rem; }

.hero-proof{ display: flex; align-items: center; gap: 14px; }
.hero-proof p{ font-size: 0.9rem; color: var(--gray-600); }
.hero-proof strong{ color: var(--ink); }
.avatar-stack{ display: flex; }
.avatar-stack span{
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--bg, var(--blue));
  border: 2.5px solid var(--white);
  margin-left: -10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 0.7rem; font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.avatar-stack span:first-child{ margin-left: 0; }

/* Hero visual / mock dashboard */
.hero-visual{ position: relative; padding: 20px; }
.hero-blob{ position: absolute; border-radius: 50%; filter: blur(50px); z-index: 0; }
.blob-1{ width: 260px; height: 260px; background: rgba(37,99,235,.25); top: -30px; left: -30px; }
.blob-2{ width: 220px; height: 220px; background: rgba(16,185,129,.22); bottom: -20px; right: 0; }

.mock-dashboard{
  position: relative;
  z-index: 1;
  background: var(--ink);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.06) inset;
  overflow: hidden;
  animation: float-slow 6s ease-in-out infinite;
}
.mock-topbar{
  display: flex; align-items: center; gap: 8px;
  padding: 14px 18px;
  background: #0F1729;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.mock-dot{ width: 9px; height: 9px; border-radius: 50%; background: var(--c); opacity: .85; }
.mock-title{ margin-left: 10px; font-size: 0.75rem; color: rgba(255,255,255,.45); font-family: var(--font-body); }

.mock-body{ display: flex; background: var(--white); min-height: 300px; }
.mock-side{
  width: 54px;
  background: var(--gray-50);
  border-right: 1px solid var(--gray-200);
  display: flex; flex-direction: column; align-items: center;
  gap: 18px;
  padding: 20px 0;
}
.mock-side-item{ color: var(--gray-400); display:flex; }
.mock-side-item svg{ width: 18px; height: 18px; }
.mock-side-item.active{ color: var(--blue); }

.mock-main{ flex: 1; padding: 18px 20px; }
.mock-kpis{ display: flex; gap: 10px; margin-bottom: 14px; }
.mock-kpi{
  flex: 1;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex; flex-direction: column; gap: 4px;
}
.mock-kpi-label{ font-size: 0.62rem; color: var(--gray-600); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.mock-kpi-value{ font-size: 0.95rem; font-weight: 700; color: var(--ink); font-family: var(--font-display); }
.mock-kpi-delta{ font-size: 0.65rem; font-weight: 700; width: fit-content; padding: 1px 6px; border-radius: 999px; }
.mock-kpi-delta.up{ color: var(--green-dark); background: var(--green-50); }

.mock-chart-card{
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 10px 12px 4px;
  margin-bottom: 14px;
}
.mock-chart{ width: 100%; height: 70px; }

.mock-rows{ display: flex; flex-direction: column; gap: 8px; }
.mock-row{
  display: flex; align-items: center; gap: 8px;
  font-size: 0.7rem; color: var(--ink-700);
  background: var(--gray-50);
  border-radius: 8px;
  padding: 7px 10px;
}
.mock-row-dot{ width: 6px; height: 6px; border-radius: 50%; background: var(--c); }
.mock-row-time{ margin-left: auto; color: var(--gray-400); font-size: 0.62rem; }

.mock-phone{
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 130px;
  background: var(--ink);
  border-radius: 22px;
  padding: 8px 8px 14px;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,.08) inset;
  z-index: 2;
  animation: float-slow 6s ease-in-out infinite;
  animation-delay: .4s;
}
.mock-phone-notch{ width: 40px; height: 5px; background: rgba(255,255,255,.2); border-radius: 4px; margin: 0 auto 8px; }
.mock-phone-screen{
  background: var(--white);
  border-radius: 14px;
  padding: 12px 10px;
  display: flex; flex-direction: column; gap: 6px;
}
.mock-phone-label{ font-size: 0.6rem; color: var(--gray-600); font-weight: 600; }
.mock-phone-value{ font-size: 1rem; font-weight: 700; font-family: var(--font-display); color: var(--ink); }
.mock-phone-chart{ width: 100%; height: 32px; margin: 2px 0; }
.mock-phone-badge{
  font-size: 0.6rem; font-weight: 700;
  color: var(--blue-dark);
  background: var(--blue-50);
  padding: 3px 7px;
  border-radius: 999px;
  width: fit-content;
}

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

/* ==========================================================================
   Section heads (shared)
   ========================================================================== */
.section-head{ text-align: center; max-width: 620px; margin: 0 auto 3.2rem; }
.section-title{ font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 700; margin-bottom: 0.9rem; }
.section-subtitle{ color: var(--gray-600); font-size: 1.02rem; }

/* ==========================================================================
   Tools
   ========================================================================== */
.tools{ padding: 6.5rem 0; background: #f0f6fa; }

.tool-card{
  display: flex; flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.tool-card:hover{
  transform: translateY(-8px);
  box-shadow: 0 30px 50px -20px rgba(37,99,235,.25);
  border-color: var(--blue-100);
  color: inherit;
}

.tool-visual{
  position: relative;
  height: 180px;
  overflow: hidden;
}
.tool-illustration{ width: 100%; height: 100%; display: block; transition: transform .5s var(--ease); }
.tool-card:hover .tool-illustration{ transform: scale(1.06); }

.tool-icon-badge{
  position: absolute; top: 16px; left: 16px; z-index: 2;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  color: var(--blue-dark);
}
.tool-icon-badge svg{ width: 22px; height: 22px; }

.tool-body{ padding: 1.6rem 1.6rem 1.8rem; display: flex; flex-direction: column; flex: 1; }
.tool-title{ font-size: 1.28rem; font-weight: 700; margin-bottom: 0.5rem; }
.tool-desc{ color: var(--gray-600); font-size: 0.92rem; margin-bottom: 1.1rem; line-height: 1.5; }

.tool-features{ list-style: none; padding: 0; margin: 0 0 1.4rem; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tool-features li{ display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--ink-700); }
.tool-features li svg{ width: 16px; height: 16px; color: var(--green); flex-shrink: 0; }

.tool-cta{
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 700; font-size: 0.92rem; color: var(--blue);
  padding-top: 0.9rem;
  border-top: 1px solid var(--gray-100);
  transition: gap .25s var(--ease);
}
.tool-card:hover .tool-cta{ gap: 10px; }
.tool-cta svg{ transition: transform .3s var(--ease); }
.tool-card:hover .tool-cta svg{ transform: translateX(3px); }

/* ==========================================================================
   Benefits
   ========================================================================== */
.benefits{ padding: 6.5rem 0; background: var(--gray-50); }
.benefit-card{
  height: 100%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.8rem 1.6rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.benefit-card:hover{ transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--blue-100); }
.benefit-icon{
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1.1rem;
}
.benefit-icon svg{ width: 22px; height: 22px; }
.benefit-card h3{ font-size: 1.08rem; font-weight: 700; margin-bottom: 0.5rem; }
.benefit-card p{ color: var(--gray-600); font-size: 0.9rem; line-height: 1.55; }

/* ==========================================================================
   Stats
   ========================================================================== */
.stats{ padding: 0 0 6.5rem; background: var(--gray-50); }
.stats-bar{
  background: linear-gradient(120deg, var(--blue-deep), var(--blue-dark) 55%, var(--green-dark));
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  box-shadow: var(--shadow-lg);
}
.stat-item{ text-align: center; color: var(--white); }
.stat-icon{ display: inline-flex; align-items:center; justify-content:center; width: 42px; height:42px; border-radius: 12px; background: rgba(255,255,255,.14); margin-bottom: 0.8rem; }
.stat-icon svg{ width: 20px; height: 20px; }
.stat-value{ display: block; font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; }
.stat-label{ font-size: 0.88rem; color: rgba(255,255,255,.75); font-weight: 500; }

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials{ padding: 6.5rem 0; background: var(--white); }
.testimonial-card{
  height: 100%;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 1.8rem;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.testimonial-card:hover{ transform: translateY(-5px); box-shadow: var(--shadow-md); }
.testimonial-stars{ color: #F59E0B; font-size: 0.95rem; letter-spacing: 2px; margin-bottom: 0.9rem; }
.testimonial-quote{ font-size: 0.96rem; color: var(--ink-700); line-height: 1.6; margin-bottom: 1.4rem; }
.testimonial-author{ display: flex; align-items: center; gap: 12px; }
.testimonial-avatar{
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg, var(--blue));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.8rem;
  flex-shrink: 0;
}
.testimonial-author strong{ display: block; font-size: 0.92rem; color: var(--ink); }
.testimonial-author span{ font-size: 0.8rem; color: var(--gray-600); }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta{ padding: 0 0 6.5rem; }
.final-cta-box{
  position: relative;
  overflow: hidden;
  background: var(--ink);
  border-radius: var(--radius-xl);
  padding: 4rem 2rem;
  text-align: center;
}
.final-cta-box::before{
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 20% 0%, rgba(37,99,235,.35), transparent 60%),
              radial-gradient(500px 260px at 90% 100%, rgba(16,185,129,.3), transparent 60%);
}
.final-cta-box h2{ position: relative; color: var(--white); font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: 0.8rem; }
.final-cta-box p{ position: relative; color: rgba(255,255,255,.72); font-size: 1.02rem; margin-bottom: 2rem; }
.final-cta-actions{ position: relative; display: flex; justify-content: center; flex-wrap: wrap; gap: 0.9rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.sba-footer{ background: #060B18; padding: 4.5rem 0 0; color: rgba(255,255,255,.7); }
.brand-footer .brand-text{ color: var(--white); }
.footer-desc{ font-size: 0.9rem; margin: 1rem 0 1.4rem; max-width: 300px; line-height: 1.6; }
.footer-social{ display: flex; gap: 10px; }
.footer-social a{
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.footer-social a svg{ width: 17px; height: 17px; }
.footer-social a:hover{ background: var(--blue); transform: translateY(-3px); }

.footer-heading{ color: var(--white); font-size: 0.92rem; font-weight: 700; margin-bottom: 1.2rem; }
.footer-list{ list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-list a, .footer-list span{ font-size: 0.88rem; display: flex; align-items: center; gap: 8px; transition: color .2s var(--ease); }
.footer-list a:hover{ color: var(--white); }
.footer-list svg{ width: 14px; height: 14px; flex-shrink: 0; }

.footer-bottom{
  margin-top: 3.5rem;
  padding: 1.6rem 0;
  border-top: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 0.82rem;
}
.back-to-top{
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.04);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background .25s var(--ease), transform .25s var(--ease);
}
.back-to-top:hover{ background: var(--blue); transform: translateY(-3px); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991.98px){
  .nav-toggle{ display: flex; }
  .nav-links{
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--white);
    flex-direction: column; align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.2rem 1.5rem;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: transform .3s var(--ease), opacity .3s var(--ease);
  }
  .nav-links.open{ transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-link-item{ padding: 0.85rem 0; border-bottom: 1px solid var(--gray-100); }
  .btn-nav-cta{ margin-top: 1rem; justify-content: center; }

  .mock-phone{ display: none; }
  .stats-bar{ grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767.98px){
  .hero{ padding: 3rem 0 4rem; text-align: left; }
  .hero-visual{ padding: 0; margin-top: 1rem; }
  .mock-main{ padding: 14px; }
  .final-cta-box{ padding: 2.8rem 1.4rem; }
  .footer-bottom{ flex-direction: column; gap: 1rem; text-align: center; }
}
