:root {
  --app-bg: #0f172a;
  --sidebar-bg: rgba(15, 23, 42, 0.9);
  --sidebar-border: rgba(148, 163, 184, 0.1);
  --accent: #38bdf8;
  --accent-soft: rgba(56, 189, 248, 0.12);
  --text-primary: #e2e8f0;
  --text-muted: #94a3b8;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at 5% 5%, rgba(56, 189, 248, 0.18), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(248, 113, 113, 0.2), transparent 40%),
    var(--app-bg);
  color: var(--text-primary);
  line-height: 1.6;
}

.app-shell {
  min-height: 100vh;
  width: 100%;
  position: relative;
}

.app-sidebar {
  width: 250px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  padding: 2rem 1.25rem 1.25rem;
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 10;
}

.app-brand {
  margin-bottom: 2rem;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(58, 108, 217, 0.18));
  color: var(--text-primary);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.18);
}

.text-accent {
  color: #38bdf8 !important;
}

.brand-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(15, 118, 110, 0.3);
  color: #2dd4bf;
  font-size: 1.15rem;
}

.app-nav {
  gap: 0.25rem;
  display: flex;
}

.app-nav-link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.75rem 1rem;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 0.9rem;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
  font-weight: 500;
}

.app-nav-link i {
  font-size: 1.1rem;
}

.app-nav-link:hover {
  color: var(--text-primary);
  background: rgba(56, 189, 248, 0.08);
  transform: translateX(4px);
}

.app-nav-link.active {
  color: var(--text-primary);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.25);
}

.app-sidebar-footer {
  margin-top: auto;
  padding-top: 2rem;
  border-top: 1px solid var(--sidebar-border);
}

.app-main {
  margin-left: 0;
  background: linear-gradient(160deg, rgba(15, 23, 42, 0.75), rgba(30, 41, 59, 0.85));
}

.app-header {
  padding: 1rem 0;
  background: rgba(15, 23, 42, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  position: sticky;
  top: 0;
  z-index: 5;
}

.app-page-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-primary);
}

.app-user .avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.2);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.app-content {
  position: relative;
  z-index: 1;
}

.app-footer {
  padding: 1rem 0;
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.9);
}

.app-footer-links a {
  text-decoration: none;
  margin-left: 1.25rem;
}

.app-footer-links a:hover {
  color: var(--text-primary);
}

.small-card {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 1rem;
  background: rgba(15, 23, 42, 0.72);
  color: var(--text-primary);
}

.app-card {
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.75);
  box-shadow: 0 24px 40px -24px rgba(15, 23, 42, 0.45);
  color: var(--text-primary);
}

.app-card .card-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  background: transparent;
  color: var(--text-primary);
}

.app-card .table {
  color: var(--text-primary);
}

.badge-soft {
  background: rgba(56, 189, 248, 0.16);
  color: #bae6fd;
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.sidebar-toggle {
  border-radius: 0.75rem;
}

.app-body.sidebar-open .app-sidebar {
  transform: translateX(0);
}

.app-body.sidebar-open::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  z-index: 9;
}

@media (min-width: 992px) {
  .app-sidebar {
    min-height: 100vh;
  }

  .app-main {
    margin-left: 250px;
  }
}

@media (max-width: 991.98px) {
  .app-shell {
    overflow-x: hidden;
  }

  .app-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    transform: translateX(-100%);
    transition: transform 0.25s ease;
    width: 260px;
  }

  .app-main {
    width: 100%;
    margin-left: 0;
    min-height: 100vh;
  }

.app-footer {
  position: relative;
  z-index: 2;
  }
}

.landing-body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(circle at 15% 15%, rgba(56, 189, 248, 0.2), transparent 50%),
    radial-gradient(circle at 85% 20%, rgba(248, 113, 113, 0.18), transparent 45%),
    var(--app-bg);
  color: var(--text-primary);
}

.landing-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.landing-header {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.landing-header .navbar-brand {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1.05rem;
}

.landing-header .nav-link {
  color: var(--text-muted);
  font-weight: 500;
}

.landing-header .nav-link:hover,
.landing-header .nav-link:focus {
  color: var(--text-primary);
}

.btn-accent {
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.9), rgba(59, 130, 246, 0.9));
  color: #0f172a;
  font-weight: 600;
  border: none;
}

.btn-accent:hover {
  background: linear-gradient(135deg, rgba(56, 189, 248, 1), rgba(59, 130, 246, 1));
  color: #0f172a;
}

.landing-main {
  flex: 1;
  padding-top: 4rem;
  padding-bottom: 6rem;
}

.landing-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.85);
}

.landing-hero {
  text-align: center;
  padding: 4rem 0 5rem;
}

.landing-hero h1 {
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 1rem;
}

.landing-hero p.lead {
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
}

.metric-card {
  padding: 1.5rem;
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.12);
  text-align: left;
}

.metric-card .metric-value {
  font-size: 1.6rem;
  font-weight: 600;
  color: #f8fafc;
}

.landing-section-title {
  font-size: 2rem;
  font-weight: 600;
  margin-bottom: 2rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  padding: 1.75rem;
  border-radius: 1.25rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.12);
  height: 100%;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-muted);
  margin-bottom: 0;
}

.case-study-card {
  border-radius: 1.25rem;
  padding: 1.75rem;
  border: 1px solid rgba(56, 189, 248, 0.2);
  background: rgba(15, 23, 42, 0.6);
  height: 100%;
}

.case-study-card .case-metric {
  font-size: 1.8rem;
  font-weight: 700;
  color: #38bdf8;
}

.workflow-step {
  padding: 1.5rem;
  border-radius: 1.1rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.1);
  height: 100%;
}

.workflow-step .step-number {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.pricing-card {
  border-radius: 1.35rem;
  padding: 2.25rem 2rem;
  border: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(15, 23, 42, 0.7);
  height: 100%;
  position: relative;
  overflow: hidden;
}

.pricing-card.highlight {
  border-color: rgba(56, 189, 248, 0.35);
  box-shadow: 0 20px 45px -20px rgba(56, 189, 248, 0.45);
}

.pricing-card .pricing-price {
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.pricing-card ul {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  color: var(--text-muted);
}

.pricing-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.6rem;
}

.pricing-card ul li i {
  color: #38bdf8;
  font-size: 1rem;
  margin-top: 0.15rem;
}

.testimonials-slider {
  border-radius: 1.5rem;
  padding: 2rem;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(148, 163, 184, 0.12);
}

.testimonials-slider blockquote {
  font-size: 1.1rem;
  font-weight: 500;
  color: #e2e8f0;
}

.cta-banner {
  border-radius: 1.5rem;
  padding: 2.5rem 2rem;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(59, 130, 246, 0.25));
  border: 1px solid rgba(56, 189, 248, 0.3);
  text-align: center;
}

.cta-banner h2 {
  font-size: clamp(1.8rem, 4vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.cta-banner p {
  color: var(--text-muted);
  margin-bottom: 2rem;
}

@media (max-width: 575.98px) {
  .landing-header {
    padding-top: 1rem;
    padding-bottom: 1rem;
    background: rgba(15, 23, 42, 0.92);
  }

  .landing-main {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }
}
