/* ===== Base & Reset ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333;
  overflow-x: hidden;
  background: #060b17;
}

/* ===== Navbar ===== */
.navbar {
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.4rem;
  color: #fff !important;
}
.navbar-brand i { color: #4facfe; margin-right: 6px; }
.brand-highlight {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav-link {
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500;
  transition: color 0.3s;
}
.nav-link:hover { color: #4facfe !important; }
.nav-link.active { color: #4facfe !important; }
.btn-nav {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #000 !important;
  border-radius: 30px;
  padding: 0.5rem 1.6rem;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}
.btn-nav:hover { transform: translateY(-2px); box-shadow: 0 6px 24px rgba(79, 172, 254, 0.5); }

/* Dropdown Dark */
.dropdown-menu-dark {
  background: rgba(10, 17, 31, 0.97);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 0.5rem 0;
}
.dropdown-menu-dark .dropdown-item {
  color: rgba(255, 255, 255, 0.8);
  padding: 0.55rem 1.2rem;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.dropdown-menu-dark .dropdown-item:hover {
  background: rgba(79, 172, 254, 0.15);
  color: #4facfe;
}

/* ===== Hero Section ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, #0b0f1e 0%, #0d1b3e 30%, #0a1628 60%, #020510 100%);
  overflow: hidden;
}
.hero-short { min-height: 55vh !important; }
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(79, 172, 254, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 242, 254, 0.14) 0%, transparent 55%),
    radial-gradient(ellipse at 60% 80%, rgba(120, 80, 255, 0.12) 0%, transparent 55%);
  animation: pulseGlow 8s ease-in-out infinite alternate;
}
@keyframes pulseGlow {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

/* floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(0) scale(1); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(-120vh) scale(0.3); opacity: 0; }
}
.hero .container {
  position: relative;
  z-index: 2;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50px;
  padding: 0.4rem 1.4rem;
  color: #a0c4ff;
  font-weight: 500;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}
.hero-badge i { color: #4facfe; margin-right: 6px; }
.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.hero h1 .gradient-text {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 650px;
  margin: 0 auto 2.2rem;
  line-height: 1.7;
}
.hero-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-primary-custom {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #000;
  border: none;
  border-radius: 50px;
  padding: 0.8rem 2.2rem;
  font-weight: 700;
  font-size: 1.05rem;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  display: inline-block;
}
.btn-primary-custom:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 32px rgba(79, 172, 254, 0.55);
  color: #000;
}
.btn-outline-custom {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-radius: 50px;
  padding: 0.8rem 2.2rem;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s;
  text-decoration: none;
  display: inline-block;
}
.btn-outline-custom:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: #fff;
  color: #fff;
}
.hero-scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: bounceDown 2s ease-in-out infinite;
}
.hero-scroll-indicator span {
  display: block;
  width: 28px;
  height: 28px;
  border-right: 2px solid rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid rgba(255, 255, 255, 0.5);
  transform: rotate(45deg);
}
@keyframes bounceDown {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(10px); }
}

/* ===== Stats Bar ===== */
.stats-bar {
  background: #0a111f;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 2.5rem 0;
}
.stat-item { text-align: center; padding: 1rem; }
.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { color: rgba(255, 255, 255, 0.55); font-size: 0.9rem; margin-top: 0.3rem; }

/* ===== Features Grid Section ===== */
.features-section {
  background: #060b17;
  padding: 5rem 0;
}
.section-header {
  text-align: center;
  margin-bottom: 3.5rem;
}
.section-header h2 {
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  margin-bottom: 0.8rem;
}
.section-header p {
  color: rgba(255, 255, 255, 0.55);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.05rem;
}
.feature-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 2rem 1.8rem;
  text-align: center;
  height: 100%;
  transition: transform 0.35s, box-shadow 0.35s, border-color 0.35s;
  position: relative;
  overflow: hidden;
}
.feature-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 48px rgba(79, 172, 254, 0.12);
  border-color: rgba(79, 172, 254, 0.3);
}
.feature-card-lg { padding: 2.5rem 2rem; }
.feature-card a { text-decoration: none; color: inherit; }
.card-arrow {
  position: absolute;
  bottom: 1.2rem;
  right: 1.5rem;
  color: rgba(79, 172, 254, 0.5);
  font-size: 1rem;
  transition: all 0.3s;
  opacity: 0;
  transform: translateX(-8px);
}
.feature-card:hover .card-arrow {
  opacity: 1;
  transform: translateX(0);
  color: #4facfe;
}
.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.3rem;
  font-size: 1.7rem;
}
.fi-blue { background: rgba(79, 172, 254, 0.12); color: #4facfe; }
.fi-teal { background: rgba(0, 242, 254, 0.12); color: #00f2fe; }
.fi-purple { background: rgba(120, 80, 255, 0.12); color: #a78bfa; }
.fi-green { background: rgba(52, 211, 153, 0.12); color: #34d399; }
.fi-orange { background: rgba(251, 146, 60, 0.12); color: #fb923c; }
.fi-pink { background: rgba(244, 114, 182, 0.12); color: #f472b6; }

/* ===== Store Badges ===== */
.badge-store {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  padding: 0.65rem 1.4rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
  box-shadow: 0 2px 10px rgba(255,255,255,0.08);
  transition: all 0.3s;
}
.badge-store:hover {
  background: rgba(251, 146, 60, 0.25);
  border-color: rgba(251, 146, 60, 0.6);
  color: #fb923c;
  transform: translateY(-1px);
}
.badge-store i { font-size: 1.05rem; }

.feature-card h5 { color: #fff; font-weight: 600; margin-bottom: 0.6rem; }
.feature-card p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ===== How It Works / AI SaaS Section ===== */
.how-section {
  background: #0a111f;
  padding: 5rem 0;
}
.step-card {
  text-align: center;
  padding: 1.5rem;
  position: relative;
}
.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  color: #000;
  font-weight: 800;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.2rem;
}
.step-card h5 { color: #fff; font-weight: 600; }
.step-card p { color: rgba(255, 255, 255, 0.5); font-size: 0.9rem; margin: 0; }

/* ===== Feature List (Service Page) ===== */
.feature-list {
  list-style: none;
  padding: 0;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
  padding: 0.7rem 0;
  color: rgba(255, 255, 255, 0.75);
  font-size: 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.feature-list li:last-child { border-bottom: none; }
.feature-list li i { color: #34d399; margin-top: 0.2rem; flex-shrink: 0; }

/* ===== Service Icon Large ===== */
.service-icon-large {
  width: 140px;
  height: 140px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  font-size: 3.5rem;
}
.stats-mini .stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stats-mini .stat-label {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.8rem;
}
.stats-mini .stat-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 1rem 0.5rem;
}

/* ===== CTA Section ===== */
.cta-section {
  background: linear-gradient(160deg, #0b0f1e, #0d1b3e);
  padding: 5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(79, 172, 254, 0.08), transparent 70%);
}
.cta-section .container { position: relative; z-index: 1; }
.cta-section h2 { color: #fff; font-weight: 700; font-size: clamp(1.8rem, 5vw, 2.6rem); }
.cta-section p { color: rgba(255, 255, 255, 0.6); max-width: 550px; margin: 1rem auto 2rem; }

/* ===== Quote Form Custom Inputs ===== */
.custom-input {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
  border-radius: 10px !important;
  padding: 0.65rem 1rem !important;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.custom-input:focus {
  border-color: #4facfe !important;
  box-shadow: 0 0 0 3px rgba(79, 172, 254, 0.15) !important;
  outline: none !important;
}
.custom-input::placeholder { color: rgba(255, 255, 255, 0.3) !important; }
.custom-input option { background: #0a111f; color: #fff; }
.quote-form-wrapper {
  animation: fadeSlideIn 0.4s ease-out;
}
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Footer ===== */
footer {
  background: #020510;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 3rem 0 1.5rem;
}
.footer-links a {
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s;
}
.footer-links a:hover { color: #4facfe; }
.footer-social a {
  color: rgba(255, 255, 255, 0.45);
  font-size: 1.2rem;
  margin-right: 1rem;
  transition: color 0.3s;
}
.footer-social a:hover { color: #4facfe; }
.trustpilot-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(0, 182, 122, 0.12);
  border: 1px solid rgba(0, 182, 122, 0.3);
  color: #00b67a;
  padding: 0.55rem 1.1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
}
.trustpilot-badge i { font-size: 1.1rem; }
.trustpilot-badge:hover {
  background: rgba(0, 182, 122, 0.2);
  border-color: rgba(0, 182, 122, 0.5);
  box-shadow: 0 0 16px rgba(0, 182, 122, 0.15);
  color: #00d68f;
}
footer .copyright { color: rgba(255, 255, 255, 0.3); font-size: 0.82rem; margin-top: 1rem; text-align: center; }

/* ===== HTMX Transition helpers ===== */
.htmx-indicator { display: none; }
.htmx-request .htmx-indicator { display: inline; }

/* ===== Responsive Tweaks ===== */
@media (max-width: 768px) {
  .hero h1 { font-size: 2rem; }
  .hero p { font-size: 0.95rem; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .navbar .btn-nav { display: none; }
  .service-icon-large { width: 100px; height: 100px; font-size: 2.5rem; border-radius: 20px; }
}

/* ===== Calculator Styles ===== */
.calculator-card { text-align: left !important; }
.calculator-card:hover { transform: none !important; }

.calc-label {
  color: rgba(255, 255, 255, 0.75) !important;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}
.calc-hint {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.75rem;
  display: block;
  margin-top: 0.25rem;
}
.calc-notes {
  background: rgba(79, 172, 254, 0.06);
  border: 1px solid rgba(79, 172, 254, 0.12);
  border-radius: 10px;
  padding: 0.9rem 1.2rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
  line-height: 1.6;
}

.custom-input-prefix {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(255, 255, 255, 0.5) !important;
  border-radius: 10px 0 0 10px !important;
}

/* Calculator Result */
.calc-result-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 1.6rem;
  animation: fadeSlideIn 0.4s ease-out;
}
.calc-error {
  border-color: rgba(244, 114, 114, 0.3);
  background: rgba(244, 114, 114, 0.06);
  color: #f47272;
}
.calc-table {
  width: 100%;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}
.calc-table td {
  padding: 0.55rem 0.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.calc-table tr:last-child td { border-bottom: none; }
.calc-highlight-row td {
  border-bottom: 1px solid rgba(79, 172, 254, 0.2);
  padding: 0.7rem 0.5rem;
}
.gradient-text-sm {
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.calc-total-row td {
  padding: 0.8rem 0.5rem;
  font-size: 1.05rem;
}
.final-price {
  font-size: 1.4rem;
  background: linear-gradient(135deg, #4facfe, #00f2fe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.calc-extra-note {
  background: rgba(251, 146, 60, 0.08);
  border: 1px solid rgba(251, 146, 60, 0.15);
  border-radius: 8px;
  padding: 0.7rem 1rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

/* ===== Custom Accordion (FAQ) ===== */
.custom-accordion .accordion-button {
  background-color: transparent !important;
  color: #fff !important;
  box-shadow: none !important;
  border: none !important;
}
.custom-accordion .accordion-button:not(.collapsed) {
  color: #4facfe !important;
}
.custom-accordion .accordion-button::after {
  filter: invert(1);
}
.custom-accordion .accordion-item {
  border-color: rgba(255, 255, 255, 0.08) !important;
}
.category-item {
  transition: transform 0.3s ease;
}
.category-item:hover {
  transform: translateX(5px);
  background: rgba(255,255,255,0.04) !important;
}

