/* =====================================================
   DigiCRM – PUBLIC SITE CSS (FINAL PRODUCTION VERSION)
   Purpose: Enterprise SaaS Landing Page
   Author: Ultra Premium UI System
===================================================== */

/* ROOT VARIABLES */
:root {
  --primary: #1e3a8a;
  --primary-dark: #1e40af;
  --secondary: #0ea5e9;
  --dark: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
  --bg: #f8fafc;
  --radius: 14px;
  --shadow: 0 4px 14px rgba(0,0,0,0.08);
  --shadow-lg: 0 20px 50px rgba(0,0,0,0.15);
  --transition: .25s cubic-bezier(.4,0,.2,1);
  --gradient: linear-gradient(135deg,var(--primary),var(--primary-dark));
}

/* BASE */
*,*::before,*::after{box-sizing:border-box}
body{
  margin:0;
  font-family:"Inter",system-ui,-apple-system,sans-serif;
  background:var(--bg);
  color:var(--dark);
  line-height:1.65;
  font-size:16px;
  -webkit-font-smoothing:antialiased;
}
.container{max-width:1400px;margin:auto;padding:0 1rem}
a{text-decoration:none;color:inherit}

/* NAVBAR */
.navbar{
  background:rgba(255,255,255,.92);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--border);
  box-shadow:var(--shadow);
  transition:var(--transition);
}
.logo-image{transition:.4s ease}
.logo-image:hover{transform:scale(1.05)}
.nav-link{
  font-weight:600;
  color:#334155;
  padding:.7rem 1.1rem;
  border-radius:var(--radius);
  display:flex;
  align-items:center;
  gap:.4rem;
  transition:var(--transition);
}
.nav-link:hover{
  background:rgba(30,58,138,.06);
  color:var(--primary);
  transform:translateY(-1px);
}

/* =====================================================
   BUTTON SYSTEM – CLEAN & COMPACT (NO SHADOW)
===================================================== */

.btn,
.btn-hero-primary,
.btn-hero-secondary,
.btn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  padding: .6rem 1.4rem;      /* reduced padding */
  font-weight: 600;           /* lighter than before */
  font-size: .95rem;          /* compact text */
  border-radius: var(--radius);
  border: 0;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

/* PRIMARY */
.btn-primary,
.btn-hero-primary,
.btn-cta {
  background: var(--gradient);
  color: #fff;
}

.btn-primary:hover,
.btn-hero-primary:hover,
.btn-cta:hover {
  background: linear-gradient(
    135deg,
    var(--primary-dark),
    var(--primary)
  );
  color: #fff;
}

/* OUTLINE */
.btn-outline-primary,
.btn-hero-secondary {
  background: #fff;
  color: var(--primary);
  border: 1.5px solid rgba(30,58,138,.25);
}

.btn-outline-primary:hover,
.btn-hero-secondary:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* SMALL VARIANT */
.btn-sm {
  padding: .45rem 1.1rem;
  font-size: .85rem;
}

/* FULL WIDTH (MOBILE CTA) */
.btn-block {
  width: 100%;
}

/* =====================================================
   SECTION HEADER – MODERN SAAS STYLE
===================================================== */

.section-header {
  max-width: 720px;
  margin: 0 auto 4rem;
}

/* Small eyebrow label */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(30,58,138,.08);
  padding: .35rem .9rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

/* Main title */
.section-title {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: .75rem;
  color: var(--dark);
}

/* Soft subtitle */
.section-subtitle {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}

/* Mobile tuning */
@media (max-width: 768px) {
  .section-header {
    margin-bottom: 3rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }
}

/* HERO */
/* =====================================================
   HERO SECTION – PREMIUM SAAS BACKGROUND (FINAL)
===================================================== */

.hero-section{
  min-height:100vh;
  padding:100px 0 140px;
  position:relative;
  overflow:hidden;

  /* Background image */
  background:
    linear-gradient(
      180deg,
      rgba(248,250,252,0.45),
      rgba(238,242,247,0.45)
    ),
    url("../img/enterprise-bg.webp");

  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
}

/* Soft glow accents (pure CSS) */
.hero-section::before,
.hero-section::after{
  content:"";
  position:absolute;
  width:420px;
  height:420px;
  border-radius:50%;
  filter:blur(120px);
  opacity:.25;
  z-index:0;
}

.hero-section::before{
  background:#1e40af;
  top:-120px;
  left:-120px;
}

.hero-section::after{
  background:#0ea5e9;
  bottom:-140px;
  right:-120px;
}

/* Ensure content stays above background */
.hero-section > *{
  position:relative;
  z-index:1;
}

.hero-badge{
  display:inline-flex;
  align-items:center;
  gap:.6rem;
  padding:.6rem 1.3rem;
  border-radius:30px;
  background:var(--gradient);
  color:#fff;
  font-weight:700;
  margin-bottom:1.5rem;
}
.hero-title{
  font-size:clamp(2.6rem,6vw,4.8rem);
  font-weight:900;
  line-height:1.1;
  margin-bottom:1.4rem;
}
.hero-subtitle{
  font-size:1.25rem;
  color:var(--muted);
  max-width:680px;
  margin:0 auto 2.5rem;
}
.hero-buttons{display:flex;gap:1.2rem;justify-content:center}
/* =====================================================
   HERO – ANIMATED GRADIENT PARTICLES (FINAL)
   Lightweight • SEO Safe • GPU Optimized
===================================================== */

.hero-particles{
  position:absolute;
  inset:0;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
}

/* Base particle */
.hero-particles span{
  position:absolute;
  bottom:-15vh;

  width:14px;
  height:14px;
  border-radius:50%;

  background:linear-gradient(135deg,
    rgba(37,99,235,.9),
    rgba(56,189,248,.9)
  );

  opacity:.18;
  filter:blur(.4px);

  animation-name:heroParticleFloat;
  animation-timing-function:linear;
  animation-iteration-count:infinite;
  will-change:transform,opacity;
}

/* Individual particles */
.hero-particles span:nth-child(1){
  left:8%;
  width:10px;height:10px;
  animation-duration:22s;
  animation-delay:-2s;
}
.hero-particles span:nth-child(2){
  left:22%;
  width:14px;height:14px;
  animation-duration:26s;
  animation-delay:-11s;
}
.hero-particles span:nth-child(3){
  left:48%;
  width:18px;height:18px;
  animation-duration:30s;
  animation-delay:-6s;
}
.hero-particles span:nth-child(4){
  left:72%;
  width:13px;height:13px;
  animation-duration:24s;
  animation-delay:-9s;
}
.hero-particles span:nth-child(5){
  left:88%;
  width:9px;height:9px;
  animation-duration:28s;
  animation-delay:-15s;
}

/* Floating motion */
@keyframes heroParticleFloat{
  0%{
    transform:translateY(0) scale(.85);
    opacity:0;
  }
  10%{opacity:.25}
  50%{
    opacity:.2;
    transform:translateY(-55vh) scale(1.05);
  }
  100%{
    transform:translateY(-120vh) scale(1.2);
    opacity:0;
  }
}

/* =====================================================
   PERFORMANCE: MOBILE SAFE
===================================================== */
@media (max-width:768px){
  .hero-particles{
    display:none;
  }
}

/* FEATURES */
.features-section{padding:100px 0}
.feature-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
  gap:2rem;
}
.feature-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:2.5rem 2rem;
  text-align:center;
  transition:var(--transition);
}
.feature-card:hover{
  transform:translateY(-10px);
  box-shadow:var(--shadow-lg);
}
.feature-icon{
  width:76px;
  height:76px;
  margin:0 auto 1.4rem;
  background:var(--gradient);
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:20px;
  box-shadow:0 10px 30px rgba(30,58,138,.3);
}
.feature-icon i{font-size:2rem;color:#fff}
.feature-card h3{font-weight:700;margin-bottom:.7rem}

/* STATS */
.stats-section{
  background:var(--gradient);
  padding:80px 0;
  color:#fff;
}
.stats-card{
  background:rgba(255,255,255,.12);
  backdrop-filter:blur(14px);
  border-radius:var(--radius);
  padding:3rem 2rem;
}
.stat-item{text-align:center}
.stat-number{
  font-size:3rem;
  font-weight:900;
  line-height:1;
}
.stat-label{opacity:.95}

/* PRICING */
#pricing{padding:100px 0;background:var(--bg)}
.pricing-card{
  background:#fff;
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:2.6rem 2.2rem;
  text-align:center;
  transition:var(--transition);
  position:relative;
}
.pricing-card:hover{
  transform:translateY(-10px);
  box-shadow:var(--shadow-lg);
}
.pricing-card.featured{
  border:2px solid var(--primary);
}
.pricing-badge{
  position:absolute;
  top:1rem;
  right:1rem;
  background:var(--gradient);
  color:#fff;
  padding:.5rem 1.2rem;
  border-radius:30px;
  font-size:.8rem;
  font-weight:700;
}
.pricing-price{
  font-size:3.2rem;
  font-weight:900;
  color:var(--primary);
}
.pricing-period{color:var(--muted);margin-bottom:2rem}

/* CTA */
.cta-section{
  background:linear-gradient(135deg,#fff,#f8fafc);
  padding:110px 0;
}
.cta-title{font-size:2.8rem;font-weight:900}
.cta-subtitle{color:var(--muted);max-width:600px;margin:0 auto 3rem}

/* FOOTER */
.footer{
  background:#fff;
  border-top:1px solid var(--border);
  padding:70px 0 30px;
}
.footer-brand h3{font-weight:900}
.footer-section h5{
  font-size:.85rem;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.06em;
  margin-bottom:1.5rem;
}
.footer-section a{
  display:block;
  color:var(--muted);
  margin-bottom:.7rem;
  transition:var(--transition);
}
.footer-section a:hover{color:var(--primary)}
.social-link{
  display:inline-flex;
  width:42px;
  height:42px;
  border-radius:10px;
  background:var(--gradient);
  color:#fff;
  align-items:center;
  justify-content:center;
  margin-right:.4rem;
  transition:var(--transition);
}
.social-link:hover{
  transform:translateY(-4px);
  box-shadow:0 8px 25px rgba(30,58,138,.4);
}
.footer-bottom{
  margin-top:2.5rem;
  padding-top:1.5rem;
  border-top:1px solid var(--border);
  color:var(--muted);
  font-size:.85rem;
}

/* OFFCANVAS */
.offcanvas{
  background:linear-gradient(135deg,#fff,#f8fafc);
  backdrop-filter:blur(18px);
}
.offcanvas .nav-link:hover{
  transform:translateX(6px);
  background:rgba(30,58,138,.06);
}

/* ANIMATIONS */
.animate-up{
  opacity:0;
  transform:translateY(30px);
  animation:fadeUp .7s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes fadeUp{
  to{opacity:1;transform:translateY(0)}
}

/* RESPONSIVE */
@media(max-width:992px){
  .hero-buttons{flex-direction:column}
}
@media(max-width:768px){
  .hero-section{padding:130px 0 90px}
  .hero-title{font-size:2.8rem}
  .feature-grid{grid-template-columns:1fr}
  .stats-card{padding:2rem 1.5rem}
}
