:root {
  --bg: #f4f7fb;
  --text: #13243a;
  --muted: #5d6f85;
  --card: #ffffff;
  --primary: #0f5bd8;
  --border: #dce5f2;
  --shadow: 0 18px 40px rgba(13, 34, 64, 0.08);
  --success: #1e8e5a;
  --warning: #e48a09;
  --radius: 14px;
}

[data-theme="dark"] {
  --bg: #0b1220;
  --text: #e8f0ff;
  --muted: #9eb2d1;
  --card: #111d32;
  --primary: #63a0ff;
  --border: #223455;
  --shadow: 0 20px 42px rgba(0, 0, 0, 0.35);
  --success: #4ac08b;
  --warning: #f8b347;
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Sora", "Segoe UI", sans-serif;
  background: radial-gradient(circle at top right, rgba(15, 91, 216, 0.14), transparent 38%),
    radial-gradient(circle at bottom left, rgba(8, 145, 178, 0.1), transparent 36%),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
  transition: background-color 0.3s ease, color 0.3s ease;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img,
svg {
  max-width: 100%;
}

.page-wrap {
  min-height: 100vh;
}

.section-pad {
  padding: 4.5rem 0;
}

.section-pad-sm {
  padding: 3rem 0;
}

.glass-nav {
  background: color-mix(in srgb, var(--card) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.navbar-brand {
  font-weight: 700;
  letter-spacing: 0.2px;
}

.brand-logo-nav {
  width: 198px;
  height: 44px;
  max-width: 100%;
  filter: drop-shadow(0 4px 10px rgba(15, 91, 216, 0.18));
}

.brand-logo-footer {
  width: 176px;
  height: 38px;
  max-width: 100%;
  filter: drop-shadow(0 3px 8px rgba(15, 91, 216, 0.12));
}

[data-theme="dark"] .brand-logo-nav,
[data-theme="dark"] .brand-logo-footer {
  filter: drop-shadow(0 5px 12px rgba(3, 10, 24, 0.45));
}

@media (max-width: 575.98px) {
  .brand-logo-nav {
    width: 164px;
    height: 36px;
  }
}

.navbar-brand .dot {
  color: var(--primary);
}

.navbar {
  --bs-navbar-color: var(--muted);
  --bs-navbar-hover-color: var(--text);
  --bs-navbar-active-color: var(--primary);
}

.navbar-toggler {
  border-color: var(--border);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.18rem color-mix(in srgb, var(--primary) 28%, transparent);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(19,36,58,0.86)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

[data-theme=\"dark\"] .navbar-toggler-icon {
  background-image: url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(232,240,255,0.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e\");
}

.nav-link.active {
  color: var(--primary) !important;
  font-weight: 600;
}

.dropdown-item.active,
.dropdown-item:active {
  color: #fff !important;
  background-color: var(--primary) !important;
  font-weight: 600;
}

.dropdown-menu {
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--card);
}

.dropdown-item {
  color: var(--text);
}

.dropdown-item:hover,
.dropdown-item:focus {
  color: var(--text);
  background: color-mix(in srgb, var(--primary) 16%, var(--card));
  text-decoration: none;
}

.dropdown-item.disabled,
.dropdown-item:disabled {
  color: color-mix(in srgb, var(--muted) 82%, var(--text));
  opacity: 1;
}

[data-theme="dark"] .dropdown-item.disabled,
[data-theme="dark"] .dropdown-item:disabled {
  color: #7f97bc;
}

.card-surface {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

.btn-brand {
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: 10px;
  font-weight: 600;
}

.btn-brand:hover,
.btn-brand:focus {
  background: color-mix(in srgb, var(--primary), #000 9%);
  color: #fff;
}

.btn-ghost {
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  border-radius: 10px;
  font-weight: 600;
}

.btn-ghost:hover,
.btn-ghost:focus {
  border-color: var(--primary);
  color: var(--primary);
}

.hero {
  padding: 7rem 0 5rem;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 3.35rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--muted);
  font-size: 1.07rem;
}

.hero-card {
  padding: 1.6rem;
  height: 100%;
}

.kpi {
  font-size: 1.5rem;
  font-weight: 700;
}

.logo-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 90%, transparent);
}

.logo-chip {
  min-width: 130px;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.75rem 0.5rem;
  color: var(--muted);
  background: var(--card);
  font-weight: 600;
}

.feature-card,
.module-card,
.case-card,
.pricing-card,
.industry-card {
  padding: 1.4rem;
  height: 100%;
}

.module-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.9rem;
}

.badge-soft {
  border: 1px solid color-mix(in srgb, var(--primary) 32%, var(--border));
  color: var(--primary);
  background: color-mix(in srgb, var(--primary) 9%, transparent);
  font-weight: 600;
}

.step-badge {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  color: var(--primary);
  background: var(--card);
  font-weight: 700;
}

.trust-bar {
  border: 1px dashed color-mix(in srgb, var(--primary) 45%, var(--border));
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  color: var(--muted);
}

.teaser {
  padding: 1.5rem;
  background: linear-gradient(120deg, color-mix(in srgb, var(--primary) 16%, var(--card)), var(--card));
}

.testimonial {
  padding: 1.4rem;
  height: 100%;
}

.final-cta {
  padding: 3rem 1.5rem;
  text-align: center;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.85rem;
}

.metric-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem;
  background: var(--card);
}

.page-hero {
  padding: 6rem 0 3rem;
}

.page-hero p {
  color: var(--muted);
}

.pricing-card h3 {
  font-size: 1.25rem;
}

.price {
  font-size: 2.2rem;
  font-weight: 700;
}

.price-current {
  display: inline-block;
}

.price small {
  font-size: 0.92rem;
  color: var(--muted);
  font-weight: 500;
}

.price-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.price-old {
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: line-through;
}

.price-save {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--success);
  border: 1px solid color-mix(in srgb, var(--success) 35%, var(--border));
  border-radius: 999px;
  padding: 0.14rem 0.55rem;
  line-height: 1.3;
}

.price-discount-note {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--primary);
}

.pricing-card--discount {
  border: 2px solid color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 10%, transparent), var(--shadow);
}

.discount-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  border: 1px solid color-mix(in srgb, var(--primary) 35%, var(--border));
  background: linear-gradient(
    110deg,
    color-mix(in srgb, var(--primary) 15%, var(--card)),
    color-mix(in srgb, var(--success) 10%, var(--card))
  );
  border-radius: 12px;
  padding: 0.5rem 0.65rem;
}

.discount-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--primary);
}

.discount-value {
  font-size: 0.95rem;
  color: var(--text);
}

.discount-chip {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.35px;
  text-transform: uppercase;
  color: #fff;
  background: var(--success);
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  line-height: 1.25;
}

.plan-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.plan-list li {
  margin: 0.45rem 0;
  color: var(--muted);
}

.plan-list li::before {
  content: "\2713";
  color: var(--success);
  margin-right: 0.5rem;
}

.table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--text);
  --bs-table-border-color: var(--border);
}

.table thead th {
  color: var(--muted);
  font-weight: 600;
}

.screenshot {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}

.screenshot figcaption {
  padding: 0.65rem 0.95rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  background: var(--card);
}

.footer {
  padding: 0 0 1.4rem;
  margin-top: 4rem;
}

.footer .footer-shell {
  position: relative;
  overflow: hidden;
  padding: 2.2rem 2rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: linear-gradient(
      130deg,
      color-mix(in srgb, var(--primary) 9%, var(--card)),
      var(--card) 45%
    ),
    var(--card);
  box-shadow: var(--shadow);
}

.footer .footer-shell::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -96px;
  top: -140px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--primary) 14%, transparent);
  pointer-events: none;
}

.footer-copy {
  max-width: 34ch;
  color: var(--muted);
}

.footer-contact-card {
  display: inline-block;
  padding: 0.7rem 0.95rem;
  border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border));
  border-radius: 12px;
  background: color-mix(in srgb, var(--primary) 8%, var(--card));
}

.footer-contact-card p {
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-email {
  display: inline-flex;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.footer-title {
  margin-bottom: 0.55rem;
}

.footer a {
  color: var(--muted);
  text-decoration: none;
  line-height: 1.9;
}

.footer a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.footer-divider {
  margin: 1.5rem 0 0.95rem;
  border-color: var(--border);
}

.footer-bottom a {
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .footer .footer-shell {
    padding: 1.7rem 1.2rem 1rem;
  }

  .footer-copy {
    max-width: 100%;
  }
}

.theme-toggle {
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  font-size: 0.9rem;
}

.modal-content {
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  color: var(--text);
}

.form-control,
.form-select {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
}

.form-control:focus,
.form-select:focus {
  box-shadow: 0 0 0 0.2rem color-mix(in srgb, var(--primary) 25%, transparent);
  border-color: var(--primary);
  background: var(--card);
  color: var(--text);
}

.form-text,
.text-muted {
  color: var(--muted) !important;
}

.accordion {
  --bs-accordion-bg: var(--card);
  --bs-accordion-color: var(--text);
  --bs-accordion-border-color: var(--border);
  --bs-accordion-btn-color: var(--text);
  --bs-accordion-active-bg: color-mix(in srgb, var(--primary) 9%, var(--card));
  --bs-accordion-active-color: var(--text);
}

.notice {
  border-left: 4px solid var(--warning);
  padding: 0.75rem 1rem;
  background: color-mix(in srgb, var(--warning) 11%, var(--card));
  border-radius: 10px;
}

.chat-shell {
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.chat-log {
  max-height: 420px;
  overflow-y: auto;
  padding: 1rem;
  background: linear-gradient(180deg, color-mix(in srgb, var(--primary) 7%, transparent), transparent 40%);
}

.chat-bubble {
  max-width: 88%;
  margin-bottom: 0.85rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
}

.chat-bubble.user {
  margin-left: auto;
  background: var(--primary);
  color: #fff;
}

.chat-bubble.ai {
  background: color-mix(in srgb, var(--card) 90%, #dfe9f7);
  border: 1px solid var(--border);
}

.quick-prompts .btn {
  margin: 0.3rem 0.2rem;
}

.response-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
}

.response-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem;
  background: var(--card);
}

.cookie-banner {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1070;
  width: min(760px, calc(100% - 24px));
  padding: 0.9rem 1rem;
}

.visually-hidden-focusable:active,
.visually-hidden-focusable:focus {
  clip: auto;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  position: static;
}

@media (max-width: 991.98px) {
  .hero {
    padding-top: 6rem;
  }

  .navbar .theme-toggle {
    margin-top: 0.75rem;
  }
}
