/* ============================================================
   SITEPILOT — GLOBAL STYLESHEET
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=DM+Mono:wght@400;500&display=swap');

/* ── CSS Variables ── */
:root {
  --blue:        #0B5CFF;
  --blue-light:  #3A7BFF;
  --indigo:      #4F35E8;
  --violet:      #7B2FF7;
  --navy:        #060D1F;
  --navy-mid:    #0E1A36;
  --charcoal:    #1A2340;
  --slate:       #4A5578;
  --mist:        #8A95B0;
  --silver:      #C8D0E0;
  --ghost:       #EEF1F8;
  --white:       #FFFFFF;

  --grad-primary:   linear-gradient(135deg, #0B5CFF 0%, #4F35E8 50%, #7B2FF7 100%);
  --grad-glow:      linear-gradient(135deg, #0B5CFF22, #7B2FF722);
  --grad-hero:      radial-gradient(ellipse 120% 80% at 60% -10%, #0B3A9944 0%, transparent 65%),
                    radial-gradient(ellipse 80% 60% at 90% 50%, #7B2FF715 0%, transparent 55%);

  --shadow-sm:  0 2px 8px rgba(11,92,255,.10);
  --shadow-md:  0 8px 32px rgba(11,92,255,.14);
  --shadow-lg:  0 20px 60px rgba(11,92,255,.18);
  --shadow-xl:  0 32px 80px rgba(11,92,255,.22);

  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  36px;

  --transition: .25s cubic-bezier(.4,0,.2,1);
  --transition-slow: .5s cubic-bezier(.4,0,.2,1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background: var(--white);
  color: var(--charcoal);
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a  { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--ghost); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 99px; }

/* ── Typography ── */
h1,h2,h3,h4,h5 { line-height: 1.15; font-weight: 800; letter-spacing: -0.03em; }
h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); }
h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
h3 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }
h4 { font-size: 1.2rem; font-weight: 700; }
p  { color: var(--slate); font-size: 1.05rem; }

.mono { font-family: 'DM Mono', monospace; }

/* ── Layout ── */
.container {
  width: 90%;
  max-width: 1160px;
  margin: 0 auto;
}

section { padding: 100px 0; }

/* ── Gradient Text ── */
.grad-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 100px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-primary);
  color: var(--white);
  box-shadow: 0 4px 24px rgba(11,92,255,.35);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(11,92,255,.45);
}
.btn-outline {
  background: transparent;
  color: var(--blue);
  border: 2px solid var(--blue);
}
.btn-outline:hover {
  background: var(--blue);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-ghost {
  background: rgba(255,255,255,.12);
  color: var(--white);
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(10px);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.22);
  transform: translateY(-2px);
}
.btn-lg { padding: 18px 38px; font-size: 1.05rem; }

/* ── Tags / Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-blue {
  background: rgba(11,92,255,.1);
  color: var(--blue);
  border: 1px solid rgba(11,92,255,.2);
}
.badge-green {
  background: rgba(22,197,94,.1);
  color: #16C55E;
  border: 1px solid rgba(22,197,94,.2);
}
.badge-violet {
  background: rgba(123,47,247,.1);
  color: var(--violet);
  border: 1px solid rgba(123,47,247,.2);
}

/* ── Section Label ── */
.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}
.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--grad-primary);
  border-radius: 2px;
}

/* ── Card Base ── */
.card {
  background: var(--white);
  border: 1px solid var(--ghost);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.card:hover {
  border-color: rgba(11,92,255,.2);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.card-glass {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 0;
  transition: var(--transition);
}
.nav.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  box-shadow: 0 1px 24px rgba(11,92,255,.08);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--navy);
}
.nav-logo-img {
  height: 76px;
  width: auto;
  display: block;
  object-fit: contain;
  transition: transform .3s cubic-bezier(.34,1.56,.64,1), filter .3s ease;
}
/* Transparent — no pill wrapper */
.nav-logo {
  background: transparent;
  padding: 0;
  gap: 0;
}
.nav-logo:hover .nav-logo-img {
  transform: scale(1.08);
  filter: drop-shadow(0 4px 18px rgba(11,92,255,.4));
}
/* Footer logos */
.footer .nav-logo,
.footer-logo {
  background: transparent;
  padding: 0;
}
.footer .nav-logo-img,
.footer-logo .nav-logo-img {
  height: 60px;
}
/* Dashboard & login */
.db-logo .nav-logo-img,
.login-brand .nav-logo-img {
  height: 60px;
}

.nav-logo .logo-icon {
  width: 36px; height: 36px;
  background: var(--grad-primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white;
  font-size: 1.1rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate);
  transition: var(--transition);
}
.nav-links a:hover { color: var(--blue); }
.nav-links a.active { color: var(--blue); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}
.nav-burger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--charcoal);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Mobile Menu ── */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6,13,31,.96);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  color: white;
  font-size: 1.6rem;
  font-weight: 700;
}
.mobile-menu-close {
  position: absolute;
  top: 24px; right: 24px;
  background: rgba(255,255,255,.1);
  border: none;
  color: white;
  font-size: 1.4rem;
  cursor: pointer;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

/* ── Footer ── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,.6);
  padding: 64px 0 32px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 0.9rem; margin-top: 12px; line-height: 1.7; }
.footer-col h5 {
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 10px;
  transition: var(--transition);
}
.footer-col a:hover { color: var(--blue-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}
.footer-logo { color: white; }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes pulse-ring {
  0%   { transform: scale(1); opacity: .6; }
  100% { transform: scale(1.6); opacity: 0; }
}
@keyframes gradient-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes count-up { from { opacity: 0; } to { opacity: 1; } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position: 200% 0; }
}

.animate-float { animation: float 4s ease-in-out infinite; }

/* Intersection observer reveal */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }
.reveal-delay-4 { transition-delay: .4s; }

/* ── Score Ring ── */
.score-ring {
  position: relative;
  width: 90px; height: 90px;
  display: flex; align-items: center; justify-content: center;
}
.score-ring svg { position: absolute; top: 0; left: 0; transform: rotate(-90deg); }
.score-ring .score-val {
  font-size: 1.5rem; font-weight: 800;
  color: var(--navy);
  position: relative; z-index: 1;
}

/* ── Status Dot ── */
.status-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #16C55E;
  display: inline-block;
  position: relative;
}
.status-dot::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: #16C55E44;
  animation: pulse-ring 1.5s ease infinite;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  section { padding: 72px 0; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1/-1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   SITEPILOT — ENHANCED ANIMATION LAYER
   ============================================================ */

/* ── Extra Keyframes ── */
@keyframes slideInLeft {
  from { opacity:0; transform:translateX(-40px); }
  to   { opacity:1; transform:translateX(0); }
}
@keyframes slideInRight {
  from { opacity:0; transform:translateX(40px); }
  to   { opacity:1; transform:translateX(0); }
}
@keyframes scaleIn {
  from { opacity:0; transform:scale(.88); }
  to   { opacity:1; transform:scale(1); }
}
@keyframes glow-pulse {
  0%,100% { box-shadow: 0 0 20px rgba(11,92,255,.18); }
  50%      { box-shadow: 0 0 40px rgba(11,92,255,.42); }
}
@keyframes gradient-flow {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes orbit {
  from { transform: rotate(0deg) translateX(18px) rotate(0deg); }
  to   { transform: rotate(360deg) translateX(18px) rotate(-360deg); }
}
@keyframes typewriter-blink {
  0%,100% { opacity:1; } 50% { opacity:0; }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@keyframes wiggle {
  0%,100% { transform: rotate(0); }
  25%      { transform: rotate(-4deg); }
  75%      { transform: rotate(4deg); }
}
@keyframes blob-morph {
  0%,100% { border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%; }
  50%      { border-radius: 30% 60% 70% 40% / 50% 60% 30% 60%; }
}
@keyframes shimmer-slide {
  from { transform: translateX(-100%); }
  to   { transform: translateX(200%); }
}
@keyframes ping {
  75%,100% { transform:scale(2); opacity:0; }
}

/* ── Reveal variants ── */
.reveal-left {
  opacity:0; transform:translateX(-32px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal-left.visible { opacity:1; transform:translateX(0); }

.reveal-right {
  opacity:0; transform:translateX(32px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal-right.visible { opacity:1; transform:translateX(0); }

.reveal-scale {
  opacity:0; transform:scale(.92);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal-scale.visible { opacity:1; transform:scale(1); }

.reveal-delay-5 { transition-delay:.5s; }
.reveal-delay-6 { transition-delay:.6s; }

/* ── Hero animated gradient orbs ── */
.hero-orb {
  position:absolute; border-radius:50%;
  filter: blur(80px); pointer-events:none; z-index:0;
  animation: blob-morph 8s ease-in-out infinite;
}
.hero-orb-1 {
  width:500px; height:500px; top:-100px; right:-80px;
  background: radial-gradient(circle, rgba(11,92,255,.12) 0%, transparent 70%);
  animation-delay: 0s;
}
.hero-orb-2 {
  width:380px; height:380px; bottom:0; left:-60px;
  background: radial-gradient(circle, rgba(123,47,247,.09) 0%, transparent 70%);
  animation-delay:-4s;
}
.hero-orb-3 {
  width:260px; height:260px; top:40%; right:20%;
  background: radial-gradient(circle, rgba(79,53,232,.07) 0%, transparent 70%);
  animation-delay:-2s;
}

/* ── Animated gradient buttons ── */
.btn-primary {
  background-size: 200% 200%;
  animation: gradient-flow 4s ease infinite;
}
.btn-primary:hover { animation-play-state: paused; }

/* ── Card hover lift with glow ── */
.card:hover,
.step-card:hover,
.price-card:hover,
.testi-card:hover {
  box-shadow: 0 20px 60px rgba(11,92,255,.16), 0 0 0 1px rgba(11,92,255,.08);
}

/* ── Shimmer effect on featured price card ── */
.price-card.featured {
  animation: glow-pulse 3s ease-in-out infinite;
}
.price-card.featured::after {
  content:''; position:absolute;
  top:0; left:-60%; width:40%; height:100%;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.06) 50%, transparent 60%);
  animation: shimmer-slide 3.5s ease-in-out infinite;
  pointer-events:none;
}

/* ── Nav link underline slide ── */
.nav-links a {
  position: relative;
}
.nav-links a::after {
  content:''; position:absolute; bottom:-3px; left:0;
  width:0; height:2px;
  background: var(--grad-primary); border-radius:2px;
  transition: width .28s cubic-bezier(.4,0,.2,1);
}
.nav-links a:hover::after,
.nav-links a.active::after { width:100%; }

/* ── Animated step cards stagger ── */
.step-card { animation: none; }
.step-card:nth-child(1) { transition-delay:.05s; }
.step-card:nth-child(2) { transition-delay:.15s; }
.step-card:nth-child(3) { transition-delay:.25s; }

/* ── Score ring glow ── */
.score-ring { filter: drop-shadow(0 0 10px rgba(11,92,255,.22)); }

/* ── Stats counter pop ── */
.stat-val {
  transition: transform .3s ease;
}
.stat-item:hover .stat-val {
  transform: scale(1.08);
}

/* ── Hero badge float tweak ── */
.hero-badge {
  animation: float 4s ease-in-out infinite;
  will-change: transform;
}

/* ── Testimonial card slide in from different angles ── */
.testi-grid .testi-card:nth-child(1).reveal { transform: translateX(-24px) translateY(16px); }
.testi-grid .testi-card:nth-child(2).reveal { transform: translateY(32px); }
.testi-grid .testi-card:nth-child(3).reveal { transform: translateX(24px) translateY(16px); }
.testi-grid .testi-card.reveal.visible { transform: translateX(0) translateY(0); }

/* ── Animated ticker / marquee trust bar ── */
.marquee-track {
  overflow:hidden; white-space:nowrap;
  padding:16px 0; border-top:1px solid var(--ghost); border-bottom:1px solid var(--ghost);
  background: var(--white); position:relative;
}
.marquee-track::before,
.marquee-track::after {
  content:''; position:absolute; top:0; bottom:0; width:80px; z-index:2;
  pointer-events:none;
}
.marquee-track::before { left:0; background: linear-gradient(90deg,white,transparent); }
.marquee-track::after  { right:0; background: linear-gradient(-90deg,white,transparent); }
.marquee-inner {
  display:inline-flex; gap:48px;
  animation: marquee 28s linear infinite;
}
.marquee-item {
  display:inline-flex; align-items:center; gap:8px;
  font-size:.82rem; font-weight:700; color:var(--mist);
  letter-spacing:.04em; text-transform:uppercase; white-space:nowrap;
}
.marquee-dot {
  width:5px; height:5px; border-radius:50%; background:var(--silver);
}

/* ── Parallax floating shapes (hero bg) ── */
.hero-shape {
  position:absolute; pointer-events:none; z-index:0;
  opacity:.06;
}
.hero-shape-1 {
  width:320px; height:320px; top:10%; right:8%;
  border:1.5px solid var(--blue); border-radius:50%;
  animation: spin-slow 30s linear infinite;
}
.hero-shape-2 {
  width:180px; height:180px; top:55%; right:16%;
  border:1.5px solid var(--violet); border-radius:50%;
  animation: spin-slow 20s linear infinite reverse;
}
.hero-shape-3 {
  width:100px; height:100px; top:25%; right:38%;
  border:1px solid var(--blue); transform:rotate(45deg);
  animation: spin-slow 15s linear infinite;
}

/* ── Floating dot grid ── */
.dot-grid {
  position:absolute; inset:0; pointer-events:none;
  background-image: radial-gradient(rgba(11,92,255,.07) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

/* ── Section label animate ── */
.section-label.visible {
  animation: slideInLeft .5s ease both;
}

/* ── Btn press feedback ── */
.btn:active { transform: scale(.97) translateY(0) !important; }

/* ── Input focus ring animation ── */
.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  transition: border-color .2s ease, box-shadow .3s cubic-bezier(.34,1.56,.64,1);
}

/* ── Dashboard card ping dot ── */
.ping-dot {
  position:relative; display:inline-block;
  width:10px; height:10px;
}
.ping-dot::before {
  content:''; position:absolute; inset:0;
  border-radius:50%; background:#16C55E;
  animation: ping 1.5s cubic-bezier(0,0,.2,1) infinite;
}
.ping-dot::after {
  content:''; position:absolute; inset:1px;
  border-radius:50%; background:#16C55E;
}

/* ── Scroll progress bar ── */
#scroll-progress {
  position:fixed; top:0; left:0; height:3px; z-index:9999;
  background: var(--grad-primary); width:0%;
  transition: width .1s linear;
  background-size:200% 200%;
  animation: gradient-flow 3s ease infinite;
}

/* ── Responsive adjustments for 2x logo ── */
@media (max-width:768px) {
  .nav-logo-img { height:54px; }
  .nav-inner { padding:14px 0; }
}
