:root {
  --primary-dark: #1a1a2e;
  --primary-darker: #12121f;
  --accent: #4361ee;
  --accent-light: #6b83f2;
  --accent-soft: rgba(67, 97, 238, 0.1);
  --success-custom: #2ec4b2;
  --success-soft: rgba(46, 196, 178, 0.1);
  --warning-soft: rgba(255, 193, 7, 0.1);
  --info-soft: rgba(13, 202, 240, 0.1);
  --light-muted: rgba(255, 255, 255, 0.7);
  --bg-light: #f8f9fd;
  --shadow-sm: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.12);
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #2d3436;
  overflow-x: hidden;
}

.fw-800 {
  font-weight: 800;
}

/* ── Navbar ── */
#mainNav {
  background: rgba(26, 26, 46, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding: 0.75rem 0;
  transition: var(--transition);
}

#mainNav.scrolled {
  background: rgba(26, 26, 46, 0.98);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.navbar-brand {
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.nav-link {
  font-weight: 500;
  font-size: 0.95rem;
  padding: 0.5rem 1rem !important;
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--accent-light) !important;
}

/* ── Buttons ── */
.btn-accent {
  background: var(--accent);
  color: #fff;
  border: none;
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-accent:hover {
  background: #3651d4;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(67, 97, 238, 0.35);
}

.btn-outline-accent {
  color: var(--accent);
  border: 2px solid var(--accent);
  font-weight: 600;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-outline-accent:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(67, 97, 238, 0.25);
}

/* ── Hero ── */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(67, 97, 238, 0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(46, 196, 178, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero-title {
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  max-width: 540px;
}

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

.text-light-muted {
  color: var(--light-muted);
}

.text-success-custom {
  color: var(--success-custom) !important;
}

.bg-accent-soft {
  background: var(--accent-soft) !important;
}

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

.bg-success-soft {
  background: var(--success-soft);
}

.bg-warning-soft {
  background: var(--warning-soft);
}

.bg-info-soft {
  background: var(--info-soft);
}

.bg-accent {
  background: var(--accent) !important;
}

/* ── Hero Illustration ── */
.hero-illustration {
  position: relative;
  height: 420px;
}

.hero-phone {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  background: #fff;
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.phone-header {
  background: var(--accent);
  color: #fff;
  padding: 16px;
  font-weight: 600;
  font-size: 0.85rem;
}

.phone-header i {
  margin-right: 6px;
}

.phone-body {
  padding: 12px;
}

.phone-item {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 500;
  margin-bottom: 6px;
  color: #555;
  background: #f8f9fd;
  transition: var(--transition);
}

.phone-item i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

.phone-item.active {
  background: var(--success-soft);
  color: var(--success-custom);
  font-weight: 600;
}

.hero-card {
  position: absolute;
  background: #fff;
  border-radius: 12px;
  padding: 12px 18px;
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #333;
  animation: float 6s ease-in-out infinite;
  z-index: 2;
}

.hero-card i {
  font-size: 1.2rem;
}

.hero-card-1 {
  top: 15%;
  right: 5%;
  animation-delay: 0s;
}

.hero-card-2 {
  top: 55%;
  left: 0;
  animation-delay: 2s;
}

.hero-card-3 {
  bottom: 8%;
  right: 10%;
  animation-delay: 4s;
}

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

/* ── Sections ── */
section[id] {
  scroll-margin-top: 80px;
}

#pricing {
  padding-top: clamp(1.5rem, 3vh, 4rem);
  padding-bottom: clamp(1.5rem, 3vh, 4rem);
}

#features {
  padding-top: clamp(2rem, 4vh, 5rem);
  padding-bottom: clamp(2rem, 4vh, 5rem);
}

.py-lg-6 {
  padding-top: 5rem !important;
  padding-bottom: 5rem !important;
}

#signup,
#success {
  padding-top: 6rem !important;
  padding-bottom: 4rem !important;
}

.section-title {
  font-size: 2rem;
  letter-spacing: -0.02em;
}

.section-subtitle {
  max-width: 560px;
  font-size: 1.05rem;
}

.bg-light-custom {
  background: var(--bg-light);
}

/* ── Feature Cards ── */
.feature-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ── Pricing Section (viewport-aware) ── */
.pricing-container {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.pricing-header {
  margin-bottom: clamp(1rem, 2vh, 2.5rem);
}

.pricing-badge {
  padding: clamp(0.25rem, 0.5vh, 0.5rem) clamp(0.5rem, 1vw, 1rem);
  margin-bottom: clamp(0.25rem, 0.5vh, 0.75rem);
  font-size: clamp(0.7rem, 1.2vw, 0.875rem);
}

.pricing-title {
  font-size: clamp(1.3rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
  margin-bottom: clamp(0.25rem, 0.5vh, 0.5rem);
}

.pricing-subtitle {
  max-width: 560px;
  font-size: clamp(0.8rem, 1.3vw, 1.05rem);
  margin-bottom: 0;
}

/* ── Pricing Cards ── */
.pricing-card {
  background: #fff;
  border-radius: clamp(10px, 1.5vw, 16px);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.pricing-card-featured {
  box-shadow: var(--shadow-md);
  border: 2px solid var(--accent) !important;
  position: relative;
}

.pricing-card-featured:hover {
  box-shadow: 0 16px 48px rgba(67, 97, 238, 0.18);
}

.pricing-card-body {
  padding: clamp(0.75rem, 2vw, 2rem) !important;
}

.pricing-plan-name {
  font-size: clamp(0.85rem, 1.4vw, 1.1rem);
  margin-bottom: clamp(0.1rem, 0.3vh, 0.25rem);
}

.pricing-price {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
}

.pricing-period {
  font-size: clamp(0.7rem, 1.1vw, 0.9rem);
}

.pricing-price-row {
  margin-bottom: clamp(0.25rem, 0.6vh, 0.5rem);
}

.pricing-desc {
  font-size: clamp(0.7rem, 1.1vw, 0.9rem);
  margin-bottom: clamp(0.5rem, 1vh, 1rem);
}

.pricing-features {
  margin-bottom: clamp(0.5rem, 1.2vh, 1.5rem);
}

.pricing-features li {
  font-size: clamp(0.7rem, 1.1vw, 0.9rem);
  margin-bottom: clamp(0.1rem, 0.3vh, 0.4rem);
}

.pricing-badge-rec {
  margin: clamp(0.4rem, 0.8vw, 0.75rem) !important;
  padding: clamp(0.15rem, 0.3vh, 0.35rem) clamp(0.4rem, 0.8vw, 0.75rem);
  font-size: clamp(0.55rem, 0.9vw, 0.75rem);
}

.pricing-card .btn {
  font-size: clamp(0.75rem, 1.2vw, 0.95rem);
  padding: clamp(0.35rem, 0.8vh, 0.6rem) 0;
}

/* ── Signup Form ── */
.form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(67, 97, 238, 0.15);
}

.input-group-text {
  font-size: 0.9rem;
}

/* ── Success Section ── */
.success-icon {
  animation: scaleIn 0.5s ease-out;
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* ── Footer ── */
.footer-section {
  background: var(--primary-dark);
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: var(--light-muted);
  text-decoration: none;
  font-size: 0.95rem;
  transition: var(--transition);
}

.footer-links a:hover {
  color: #fff;
}

.footer-links li:not(:has(a)) {
  color: var(--light-muted);
  font-size: 0.95rem;
}

.footer-social {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--light-muted);
  text-decoration: none;
  transition: var(--transition);
  font-size: 1rem;
}

.footer-social:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

/* ── Section transitions ── */
.section-fade-in {
  animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Pricing cards layout ── */
.pricing-card-body {
  display: flex;
  flex-direction: column;
}

.pricing-card-body .btn {
  margin-top: auto;
}

/* ── Responsive ── */
@media (max-width: 991.98px) {
  .hero-section {
    min-height: auto;
    padding: 100px 0 60px;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.5rem !important;
  }

  .py-lg-6 {
    padding-top: 3rem !important;
    padding-bottom: 3rem !important;
  }

  .section-title {
    font-size: 1.65rem;
  }
}

@media (max-width: 575.98px) {
  .hero-title {
    font-size: 1.8rem;
  }
}
