:root {
  --bg-primary: #06070d;
  --bg-secondary: #0d1020;
  --bg-elevated: #141932;
  --text-primary: #f5f7ff;
  --text-secondary: #afb7d4;
  --brand-start: #6f5cff;
  --brand-end: #39a6ff;
  --brand-soft: rgba(111, 92, 255, 0.25);
  --border-soft: rgba(173, 183, 223, 0.18);
  --success: #37d49a;
  --danger: #ff5d7a;
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.35);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
  background: radial-gradient(circle at 10% 0%, #1b2456 0%, var(--bg-primary) 35%),
    var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
}

a {
  color: inherit;
  text-decoration: none;
}

.section-padding {
  padding: 90px 0;
}

.gradient-text {
  background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar {
  transition: all 0.3s ease;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(9, 12, 25, 0.92) !important;
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border-soft);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  font-size: 1rem;
}

.navbar-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.brand-text {
  background: linear-gradient(90deg, #d3d8ff, #9cc9ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.navbar-toggler-icon {
  filter: invert(1);
}

.nav-link {
  color: var(--text-secondary) !important;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary) !important;
}

.btn-gradient {
  background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
  border: none;
  color: #fff;
  font-weight: 600;
  padding: 0.75rem 1.2rem;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(57, 166, 255, 0.2);
}

.btn-gradient:hover {
  color: #fff;
  transform: translateY(-1px);
}

.btn-outline-light-custom {
  border: 1px solid var(--border-soft);
  color: var(--text-primary);
  border-radius: 10px;
  padding: 0.75rem 1.2rem;
}

.btn-outline-light-custom:hover {
  background: #1a1f3f;
  color: #fff;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  width: 580px;
  height: 580px;
  background: radial-gradient(circle, var(--brand-soft), transparent 70%);
  right: -180px;
  top: -140px;
  z-index: 0;
}

#particles-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.7;
}

.hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.2;
}

.hero p.lead {
  color: var(--text-secondary);
  max-width: 720px;
}

.badge-chip {
  border: 1px solid var(--border-soft);
  background: rgba(57, 166, 255, 0.08);
  color: #d7e2ff;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  font-size: 0.82rem;
}

.card-saas {
  background: linear-gradient(180deg, rgba(22, 26, 51, 0.95), rgba(16, 20, 39, 0.95));
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  height: 100%;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card-saas:hover {
  transform: translateY(-6px);
  border-color: rgba(111, 92, 255, 0.5);
}

.icon-pill {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(111, 92, 255, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.muted {
  color: var(--text-secondary);
}

.step-item {
  padding: 1.5rem;
  border-left: 2px solid var(--brand-start);
  background: rgba(23, 28, 53, 0.55);
  border-radius: 12px;
}

.chat-preview {
  background: #0d1126;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 1.2rem;
}

.product-shot {
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.product-shot img {
  width: 100%;
  height: auto;
  display: block;
}

.chart-wrap {
  background: #0d1126;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  padding: 1rem;
  min-height: 340px;
}

.chat-bubble {
  max-width: 80%;
  border-radius: 14px;
  padding: 0.7rem 0.85rem;
  margin-bottom: 0.75rem;
}

.chat-bubble.user {
  margin-left: auto;
  background: #20274d;
}

.chat-bubble.bot {
  background: linear-gradient(90deg, rgba(111, 92, 255, 0.2), rgba(57, 166, 255, 0.2));
  border: 1px solid var(--border-soft);
}

.pricing-card .price {
  font-size: 2rem;
  font-weight: 700;
}

.pricing-card.highlight {
  border: 1px solid rgba(57, 166, 255, 0.6);
  position: relative;
}

.pricing-card.highlight::before {
  content: "Most Popular";
  position: absolute;
  top: -11px;
  right: 18px;
  font-size: 0.72rem;
  color: #fff;
  background: linear-gradient(90deg, var(--brand-start), var(--brand-end));
  padding: 0.18rem 0.56rem;
  border-radius: 999px;
}

.form-section {
  background: rgba(14, 17, 35, 0.9);
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  padding: 2rem;
}

.form-control,
.form-select {
  background: #0f1330;
  border: 1px solid var(--border-soft);
  color: #fff;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--brand-start);
  box-shadow: 0 0 0 0.2rem rgba(111, 92, 255, 0.2);
  background: #101634;
  color: #fff;
}

.form-control::placeholder {
  color: #8f98bc;
}

.invalid-feedback {
  color: #ff9bb0;
}

.footer {
  border-top: 1px solid var(--border-soft);
  color: var(--text-secondary);
  background: #080b17;
}

.list-check {
  padding-left: 0;
  list-style: none;
  margin-bottom: 0;
}

.list-check li {
  margin-bottom: 0.55rem;
}

.list-check li::before {
  content: "✓";
  color: var(--success);
  font-weight: 700;
  margin-right: 0.55rem;
}

.page-hero {
  padding-top: 130px;
  padding-bottom: 70px;
}

.alert-success-soft {
  border: 1px solid rgba(55, 212, 154, 0.4);
  background: rgba(55, 212, 154, 0.12);
  color: #cbffe9;
}

.alert-danger-soft {
  border: 1px solid rgba(255, 93, 122, 0.4);
  background: rgba(255, 93, 122, 0.12);
  color: #ffd6de;
}

@media (max-width: 991px) {
  .section-padding {
    padding: 68px 0;
  }
}
