/* ==========================================================================
   NexoStack — Design Tokens
   ========================================================================== */
:root{
  --primary: #5B4BFF;
  --primary-dark: #4636D6;
  --secondary: #00D4FF;
  --accent: #FF6B35;
  --bg: #F8FAFC;
  --bg-alt: #EEF1F8;
  --text: #1F2937;
  --text-mute: #5B6472;
  --card-bg: rgba(255,255,255,0.7);
  --card-border: rgba(255,255,255,0.5);
  --shadow-soft: 0 20px 45px -20px rgba(91,75,255,0.25);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;
  --font-display: 'Poppins', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  --gradient-accent: linear-gradient(135deg, var(--accent) 0%, #FF9166 100%);
  --transition: all 0.35s cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"]{
  --bg: #0B0E1A;
  --bg-alt: #10162B;
  --text: #E7EAF3;
  --text-mute: #93A0BF;
  --card-bg: rgba(23,28,50,0.65);
  --card-border: rgba(255,255,255,0.08);
  --shadow-soft: 0 20px 50px -20px rgba(0,0,0,0.6);
}

*{ box-sizing: border-box; }

html{ scroll-behavior: smooth; }

body{
  font-family: var(--font-display);
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
  transition: background 0.4s ease, color 0.4s ease;
}

a{ text-decoration: none; }
ul{ list-style: none; padding: 0; margin: 0; }
img{ max-width: 100%; }

/* ==========================================================================
   Loader
   ========================================================================== */
.loader{
  position: fixed; inset: 0; z-index: 9999;
  background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}
.loader.hidden{ opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark{
  position: relative; width: 70px; height: 70px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--primary);
}
.loader-ring{
  position: absolute; inset: 0; border-radius: 50%;
  border: 3px solid rgba(91,75,255,0.15);
  border-top-color: var(--primary);
  animation: spin 0.9s linear infinite;
}
@keyframes spin{ to{ transform: rotate(360deg); } }

/* ==========================================================================
   Scroll Progress
   ========================================================================== */
.scroll-progress{
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--gradient-primary);
  z-index: 2000;
  transition: width 0.1s ease;
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header{
  position: sticky; top: 0; z-index: 1000;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--card-border);
  transition: var(--transition);
}
.site-header.scrolled{ box-shadow: 0 8px 30px -15px rgba(0,0,0,0.15); }

.navbar{ padding: 0.9rem 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: nowrap; }

.brand{
  font-weight: 700; font-size: 1.35rem; color: var(--text);
  display: flex; align-items: center; gap: 0.6rem;
}
.brand-mark{
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--gradient-primary);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  box-shadow: 0 8px 20px -8px rgba(91,75,255,0.6);
}
.brand-accent{ color: var(--primary); }

.nav-links{
  display: flex; align-items: center; gap: 1.5rem; flex: 1; justify-content: flex-end;
}
.nav-links .navbar-nav{ display: flex; flex-direction: row; gap: 0.4rem; }
.nav-link{
  color: var(--text-mute) !important; font-weight: 500; font-size: 0.95rem;
  padding: 0.5rem 0.9rem !important; border-radius: 30px; transition: var(--transition);
  position: relative;
}
.nav-link:hover{ color: var(--primary) !important; background: rgba(91,75,255,0.08); }

.header-actions{ display: flex; align-items: center; gap: 0.9rem; }

.theme-toggle{
  width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--card-border);
  background: transparent; color: var(--text); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
}
.theme-toggle:hover{ background: rgba(91,75,255,0.1); color: var(--primary); }

.navbar-toggler{
  display: none; flex-direction: column; gap: 5px; background: transparent; border: 0; padding: 8px;
}
.navbar-toggler .bar{ width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }

/* Buttons */
.btn{
  font-family: var(--font-display); font-weight: 600; border-radius: 50px;
  padding: 0.65rem 1.5rem; border: none; display: inline-flex; align-items: center; gap: 0.5rem;
  transition: var(--transition); position: relative; overflow: hidden; cursor: pointer;
}
.btn-cta{
  background: var(--gradient-primary); color: #fff;
  box-shadow: 0 10px 25px -10px rgba(91,75,255,0.6);
}
.btn-cta:hover{ transform: translateY(-2px); box-shadow: 0 16px 30px -10px rgba(91,75,255,0.7); color: #fff; }
.btn-outline-cta{
  background: transparent; color: var(--primary); border: 2px solid var(--primary);
}
.btn-outline-cta:hover{ background: var(--primary); color: #fff; transform: translateY(-2px); }
.btn-buy{
  background: var(--bg-alt); color: var(--primary); font-size: 0.9rem; width: 100%; justify-content: center;
  border: 1px solid rgba(91,75,255,0.2);
}
.btn-buy:hover{ background: var(--gradient-primary); color: #fff; }
.btn-lg{ padding: 0.85rem 2rem; font-size: 1.05rem; }

/* Ripple */
.ripple{
  position: absolute; border-radius: 50%; transform: scale(0);
  animation: ripple-anim 0.6s linear; background: rgba(255,255,255,0.5); pointer-events: none;
}
@keyframes ripple-anim{ to{ transform: scale(3); opacity: 0; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero{
  position: relative; padding: 7rem 0 6rem; overflow: hidden;
}
.hero-blobs{ position: absolute; inset: 0; z-index: 0; }
.blob{
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.35;
  animation: float 12s ease-in-out infinite;
}
.blob-1{ width: 420px; height: 420px; background: var(--primary); top: -120px; left: -100px; }
.blob-2{ width: 350px; height: 350px; background: var(--secondary); top: 100px; right: -100px; animation-delay: 2s; }
.blob-3{ width: 300px; height: 300px; background: var(--accent); bottom: -100px; left: 30%; animation-delay: 4s; }
@keyframes float{
  0%, 100%{ transform: translate(0,0) scale(1); }
  50%{ transform: translate(30px,-30px) scale(1.08); }
}

.hero .container{ position: relative; z-index: 1; }

.eyebrow{
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(91,75,255,0.1); color: var(--primary); font-weight: 600;
  font-size: 0.85rem; padding: 0.4rem 1rem; border-radius: 30px; margin-bottom: 1.2rem;
}

.hero-title{
  font-size: clamp(2.2rem, 4.2vw, 3.4rem); font-weight: 800; line-height: 1.15; margin-bottom: 1.3rem;
}
.typing-wrap{ background: var(--gradient-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.type-cursor{ color: var(--primary); animation: blink 1s step-end infinite; }
@keyframes blink{ 50%{ opacity: 0; } }

.hero-sub{ font-size: 1.1rem; color: var(--text-mute); max-width: 520px; margin-bottom: 2rem; }
.hero-btns{ display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.2rem; }

.hero-trust{ display: flex; align-items: center; gap: 1rem; color: var(--text-mute); font-size: 0.95rem; }
.avatar-stack{ display: flex; }
.avatar-stack span{
  width: 36px; height: 36px; border-radius: 50%; border: 3px solid var(--bg);
  background: var(--gradient-primary); margin-left: -10px;
}
.avatar-stack span:first-child{ margin-left: 0; }

/* Dashboard mock */
.dashboard-mock{ position: relative; padding: 2rem; }
.glass-panel{
  background: var(--card-bg); border: 1px solid var(--card-border);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-soft);
}
.main-panel{ padding: 1.5rem; }
.panel-head{ display: flex; align-items: center; gap: 0.4rem; margin-bottom: 1.2rem; }
.panel-head .dot{ width: 10px; height: 10px; border-radius: 50%; }
.dot.red{ background: #FF6B6B; } .dot.yellow{ background: #FFD166; } .dot.green{ background: #06D6A0; }
.panel-title{ margin-left: 0.8rem; font-weight: 600; font-size: 0.9rem; color: var(--text-mute); }

.panel-row{
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.8rem; border-radius: var(--radius-sm); margin-bottom: 0.7rem;
  background: rgba(91,75,255,0.05);
}
.mini-stat{ display: flex; align-items: center; gap: 0.8rem; }
.mini-stat i{
  width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  background: var(--gradient-primary); color: #fff;
}
.mini-stat strong{ display: block; font-size: 0.9rem; }
.mini-stat span{ font-size: 0.78rem; color: var(--text-mute); font-family: var(--font-mono); }
.status-pill{
  background: rgba(6,214,160,0.15); color: #06D6A0; font-size: 0.72rem; font-weight: 700;
  padding: 0.25rem 0.7rem; border-radius: 20px; font-family: var(--font-mono);
}

.panel-chart{ display: flex; align-items: flex-end; gap: 6px; height: 70px; margin-top: 1rem; }
.chart-bar{
  flex: 1; height: var(--h); border-radius: 4px; background: var(--gradient-primary); opacity: 0.85;
}

.float-card{
  position: absolute; display: flex; align-items: center; gap: 0.7rem; padding: 0.9rem 1.1rem;
  animation: floaty 5s ease-in-out infinite;
}
.float-card i{
  width: 34px; height: 34px; border-radius: 10px; background: var(--gradient-accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.float-card strong{ display: block; font-size: 0.82rem; }
.float-card span{ font-size: 0.72rem; color: var(--text-mute); }
.card-a{ top: -10px; left: -20px; animation-delay: 0s; }
.card-b{ bottom: 0px; right: -25px; animation-delay: 1.5s; }
@keyframes floaty{
  0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-14px); }
}

/* ==========================================================================
   Sections generic
   ========================================================================== */
.section{ padding: 5.5rem 0; }
.section-alt{ background: var(--bg-alt); }
.section-head{ max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head h2{ font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; margin: 0.5rem 0 0.8rem; }
.section-head p{ color: var(--text-mute); }

/* Trusted strip */
.trusted-strip{ padding: 2.5rem 0; border-top: 1px solid var(--card-border); border-bottom: 1px solid var(--card-border); }
.trusted-strip i{ font-size: 1.6rem; color: var(--primary); margin-bottom: 0.5rem; }
.trusted-strip p{ margin: 0; font-weight: 600; color: var(--text-mute); font-size: 0.92rem; }

/* Icon cards (why choose us) */
.icon-card{
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-md);
  padding: 2rem; height: 100%; backdrop-filter: blur(12px); transition: var(--transition);
  box-shadow: var(--shadow-soft);
}
.icon-card:hover{ transform: translateY(-8px); }
.icon-card-icon{
  width: 56px; height: 56px; border-radius: 16px; background: var(--gradient-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1.2rem;
}
.icon-card h3{ font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }
.icon-card p{ color: var(--text-mute); font-size: 0.92rem; margin: 0; }

/* Categories */
.category-card{
  display: flex; flex-direction: column; align-items: center; gap: 0.9rem;
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-md);
  padding: 2rem 1rem; text-align: center; color: var(--text); transition: var(--transition);
  height: 100%;
}
.category-card i{ font-size: 1.8rem; color: var(--primary); }
.category-card span{ font-weight: 600; font-size: 0.95rem; }
.category-card:hover{ transform: translateY(-6px); background: var(--gradient-primary); color: #fff; }
.category-card:hover i{ color: #fff; }

/* Product tabs */
.product-tabs{ display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; margin-bottom: 2.5rem; }
.tab-btn{
  background: var(--card-bg); border: 1px solid var(--card-border); color: var(--text-mute);
  padding: 0.5rem 1.2rem; border-radius: 30px; font-weight: 600; font-size: 0.88rem; cursor: pointer;
  transition: var(--transition);
}
.tab-btn.active, .tab-btn:hover{ background: var(--gradient-primary); color: #fff; border-color: transparent; }

/* Product card */
.product-item{ display: block; }
.product-item.hidden{ display: none; }
.product-card{
  position: relative; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-md);
  padding: 1.8rem; height: 100%; backdrop-filter: blur(12px); transition: var(--transition);
  box-shadow: var(--shadow-soft);
}
.product-card:hover{ transform: translateY(-8px); border-color: var(--primary); }
.product-card.featured{ border-color: var(--accent); }
.ribbon{
  position: absolute; top: 14px; right: 14px; background: var(--gradient-accent); color: #fff;
  font-size: 0.68rem; font-weight: 700; padding: 0.25rem 0.7rem; border-radius: 20px;
}
.product-logo{
  width: 52px; height: 52px; border-radius: 14px; background: var(--gradient-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 1rem;
}
.product-card h3{ font-size: 1.1rem; font-weight: 700; margin-bottom: 0.4rem; }
.product-card p{ color: var(--text-mute); font-size: 0.88rem; margin-bottom: 0.8rem; }
.product-card ul{ margin-bottom: 1rem; }
.product-card ul li{ font-size: 0.82rem; color: var(--text-mute); padding-left: 1.2rem; position: relative; margin-bottom: 0.3rem; }
.product-card ul li::before{ content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; color: var(--secondary); font-size: 0.7rem; top: 3px; }
.product-price{ font-family: var(--font-mono); font-weight: 700; color: var(--primary); margin-bottom: 1rem; }
.product-price span{ font-size: 1.2rem; }

/* Pricing */
.pricing-card{
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg);
  padding: 2.5rem 2rem; text-align: center; position: relative; height: 100%; transition: var(--transition);
  box-shadow: var(--shadow-soft);
}
.pricing-card:hover{ transform: translateY(-6px); }
.pricing-card.highlighted{
  background: var(--gradient-primary); color: #fff; transform: scale(1.05);
  box-shadow: 0 25px 50px -15px rgba(91,75,255,0.5);
}
.pricing-card.highlighted:hover{ transform: scale(1.05) translateY(-6px); }
.pricing-card.highlighted .plan-desc, .pricing-card.highlighted .plan-features li{ color: rgba(255,255,255,0.85); }
.pricing-card.highlighted .plan-features li i{ color: #fff; }
.plan-badge{
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 0.75rem; font-weight: 700;
  padding: 0.35rem 1rem; border-radius: 20px;
}
.pricing-card h3{ font-size: 1.4rem; font-weight: 800; margin-bottom: 0.4rem; }
.plan-desc{ color: var(--text-mute); font-size: 0.88rem; margin-bottom: 1.2rem; min-height: 40px; }
.plan-price{ font-family: var(--font-mono); font-size: 2.2rem; font-weight: 800; margin-bottom: 1.5rem; }
.plan-price span{ font-size: 2.2rem; }
.plan-features{ text-align: left; margin-bottom: 1.8rem; }
.plan-features li{ padding: 0.5rem 0; color: var(--text-mute); font-size: 0.92rem; display: flex; gap: 0.6rem; align-items: center; }
.plan-features li i{ color: var(--secondary); }

/* Feature boxes */
.feature-box{
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-md);
  padding: 1.6rem 1rem; text-align: center; height: 100%; transition: var(--transition);
}
.feature-box:hover{ transform: translateY(-6px); }
.feature-box i{ font-size: 1.6rem; color: var(--primary); margin-bottom: 0.7rem; display: block; }
.feature-box span{ font-weight: 600; font-size: 0.9rem; }

/* How it works */
.step-card{
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-md);
  padding: 2rem 1.5rem; height: 100%; position: relative; transition: var(--transition);
}
.step-card:hover{ transform: translateY(-6px); }
.step-num{ font-family: var(--font-mono); font-size: 2rem; font-weight: 800; color: rgba(91,75,255,0.15); position: absolute; top: 1rem; right: 1.3rem; }
.step-card i{ font-size: 1.6rem; color: var(--primary); margin-bottom: 1rem; display: block; }
.step-card h3{ font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.step-card p{ color: var(--text-mute); font-size: 0.88rem; margin: 0; }

/* Testimonials */
.testimonial-slider{ max-width: 760px; margin: 0 auto; overflow: hidden; }
.testimonial-track{ display: flex; transition: transform 0.5s ease; }
.testimonial-card{
  min-width: 100%; background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg);
  padding: 2.5rem; text-align: center; box-shadow: var(--shadow-soft);
}
.stars{ color: #FFD166; margin-bottom: 1rem; }
.testimonial-card p{ font-size: 1.05rem; color: var(--text); margin-bottom: 1.5rem; font-style: italic; }
.testimonial-user{ display: flex; align-items: center; justify-content: center; gap: 0.8rem; }
.user-avatar{
  width: 44px; height: 44px; border-radius: 50%; background: var(--gradient-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem;
}
.testimonial-user strong{ display: block; font-size: 0.95rem; }
.testimonial-user span{ font-size: 0.8rem; color: var(--text-mute); }
.slider-controls{ display: flex; align-items: center; justify-content: center; gap: 1.2rem; margin-top: 1.5rem; }
.slider-btn{
  width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--card-border); background: var(--card-bg);
  color: var(--primary); cursor: pointer; transition: var(--transition);
}
.slider-btn:hover{ background: var(--gradient-primary); color: #fff; }
.slider-dots{ display: flex; gap: 0.5rem; }
.slider-dots span{ width: 8px; height: 8px; border-radius: 50%; background: var(--card-border); cursor: pointer; transition: var(--transition); }
.slider-dots span.active{ background: var(--primary); width: 22px; border-radius: 4px; }

/* FAQ */
.faq-accordion{ max-width: 760px; margin: 0 auto; }
.faq-item{
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-md);
  margin-bottom: 1rem; overflow: hidden;
}
.faq-question{
  width: 100%; text-align: left; background: transparent; border: none; padding: 1.2rem 1.5rem;
  font-weight: 600; font-size: 0.98rem; color: var(--text); display: flex; justify-content: space-between; align-items: center;
  cursor: pointer;
}
.faq-question i{ transition: transform 0.3s ease; color: var(--primary); }
.faq-item.open .faq-question i{ transform: rotate(180deg); }
.faq-answer{ max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-answer p{ padding: 0 1.5rem 1.2rem; color: var(--text-mute); font-size: 0.92rem; margin: 0; }

/* Stats */
.stats-section{ padding: 5rem 0; background: var(--gradient-primary); color: #fff; }
.stat-box h3{ font-family: var(--font-mono); font-size: 2.6rem; font-weight: 800; display: inline-block; margin: 0; }
.stat-box span{ font-family: var(--font-mono); font-size: 1.8rem; font-weight: 700; }
.stat-box p{ margin-top: 0.4rem; opacity: 0.9; }

/* CTA Banner */
.cta-banner{ padding: 5rem 0; text-align: center; }
.cta-banner h2{ font-size: clamp(1.7rem, 3.4vw, 2.6rem); font-weight: 800; margin-bottom: 0.8rem; }
.cta-banner p{ color: var(--text-mute); margin-bottom: 1.8rem; }

/* Contact */
.contact-form{
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-soft);
}
.contact-form label{ font-size: 0.85rem; font-weight: 600; margin-bottom: 0.3rem; display: block; color: var(--text-mute); }
.contact-form input, .contact-form textarea{
  width: 100%; padding: 0.75rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--card-border);
  background: rgba(255,255,255,0.5); color: var(--text); font-family: var(--font-display); transition: var(--transition);
}
[data-theme="dark"] .contact-form input, [data-theme="dark"] .contact-form textarea{ background: rgba(255,255,255,0.04); }
.contact-form input:focus, .contact-form textarea:focus{ outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(91,75,255,0.15); }
.form-note{ margin-top: 0.8rem; font-size: 0.88rem; color: var(--secondary); font-weight: 600; }

.contact-info-card{
  background: var(--card-bg); border: 1px solid var(--card-border); border-radius: var(--radius-lg);
  padding: 2rem; height: 100%; box-shadow: var(--shadow-soft);
}
.contact-info-item{ display: flex; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--card-border); }
.contact-info-item:last-of-type{ border-bottom: none; }
.contact-info-item i{
  width: 44px; height: 44px; border-radius: 12px; background: var(--gradient-primary); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0;
}
.contact-info-item strong{ display: block; font-size: 0.95rem; }
.contact-info-item span{ font-size: 0.85rem; color: var(--text-mute); }
.contact-map{ display: flex; align-items: center; gap: 0.8rem; margin-top: 1rem; color: var(--text-mute); font-size: 0.88rem; }
.contact-map i{ color: var(--accent); font-size: 1.2rem; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer{ background: var(--bg-alt); padding: 4rem 0 1.5rem; border-top: 1px solid var(--card-border); }
.footer-brand{ margin-bottom: 1rem; }
.site-footer p{ color: var(--text-mute); font-size: 0.9rem; }
.site-footer h4{ font-size: 1rem; font-weight: 700; margin-bottom: 1.2rem; }
.footer-links li{ margin-bottom: 0.7rem; }
.footer-links a{ color: var(--text-mute); font-size: 0.9rem; transition: var(--transition); }
.footer-links a:hover{ color: var(--primary); padding-left: 4px; }
.social-icons{ display: flex; gap: 0.7rem; margin-top: 1rem; }
.social-icons a{
  width: 38px; height: 38px; border-radius: 50%; background: var(--card-bg); border: 1px solid var(--card-border);
  display: flex; align-items: center; justify-content: center; color: var(--text); transition: var(--transition);
}
.social-icons a:hover{ background: var(--gradient-primary); color: #fff; transform: translateY(-3px); }
.newsletter-form{ display: flex; gap: 0.5rem; margin-top: 0.5rem; }
.newsletter-form input{
  flex: 1; padding: 0.6rem 0.9rem; border-radius: var(--radius-sm); border: 1px solid var(--card-border);
  background: var(--card-bg); color: var(--text); min-width: 0;
}
.newsletter-form button{
  width: 42px; border-radius: var(--radius-sm); border: none; background: var(--gradient-primary); color: #fff; cursor: pointer;
}
.footer-bottom{ text-align: center; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--card-border); }
.footer-bottom p{ margin: 0; font-size: 0.85rem; }

/* ==========================================================================
   Floating elements
   ========================================================================== */
.back-to-top{
  position: fixed; bottom: 1.8rem; right: 1.8rem; width: 46px; height: 46px; border-radius: 50%;
  background: var(--gradient-primary); color: #fff; border: none; box-shadow: var(--shadow-soft);
  display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 900;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: var(--transition);
}
.back-to-top.show{ opacity: 1; visibility: visible; transform: translateY(0); }

.whatsapp-float{
  position: fixed; bottom: 1.8rem; left: 1.8rem; width: 54px; height: 54px; border-radius: 50%;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; box-shadow: 0 10px 25px -8px rgba(37,211,102,0.6); z-index: 900;
  animation: pulse-wa 2.4s ease-in-out infinite;
}
@keyframes pulse-wa{
  0%,100%{ box-shadow: 0 0 0 0 rgba(37,211,102,0.5); }
  50%{ box-shadow: 0 0 0 12px rgba(37,211,102,0); }
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal-up{ opacity: 0; transform: translateY(30px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-up.visible{ opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce){
  .reveal-up{ opacity: 1; transform: none; transition: none; }
  .blob, .float-card, .whatsapp-float{ animation: none; }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 991.98px){
  .navbar-toggler{ display: flex; }
  .nav-links{
    position: fixed; top: 0; right: -100%; height: 100vh; width: min(320px, 85vw);
    background: var(--bg); flex-direction: column; align-items: flex-start; justify-content: flex-start;
    padding: 6rem 2rem 2rem; gap: 2rem; box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    transition: right 0.4s ease; z-index: 999;
  }
  .nav-links.open{ right: 0; }
  .nav-links .navbar-nav{ flex-direction: column; align-items: flex-start; width: 100%; gap: 0.3rem; }
  .nav-link{ width: 100%; }
  .header-actions{ flex-direction: column; align-items: flex-start; width: 100%; gap: 1rem; }
  .header-actions .btn{ width: 100%; justify-content: center; }
  .dashboard-mock{ margin-top: 2rem; }
  .float-card{ display: none; }
}

@media (max-width: 575.98px){
  .hero{ padding: 5rem 0 4rem; text-align: left; }
  .section{ padding: 3.5rem 0; }
  .stat-box h3{ font-size: 2rem; }
}
