:root {
  --saas-bg: #050B18;
  --saas-section: #07111F;
  --saas-card: rgba(15, 23, 42, 0.75);
  --saas-border: rgba(148, 163, 184, 0.18);
  --saas-primary: #2563EB;
  --saas-cyan: #06B6D4;
  --saas-text: #F8FAFC;
  --saas-muted: #94A3B8;
  --saas-glow: 0 0 0 1px rgba(37, 99, 235, 0.22), 0 14px 40px rgba(2, 8, 23, 0.6);
}

.saas-page {
  background:
    radial-gradient(1100px 600px at 15% -5%, rgba(37, 99, 235, 0.2), transparent 65%),
    radial-gradient(900px 500px at 90% 10%, rgba(6, 182, 212, 0.15), transparent 62%),
    linear-gradient(180deg, #050B18 0%, #050B18 100%);
  color: var(--saas-text);
}

.saas-page .section-shell {
  padding: 56px 0;
}

.saas-page .section-shell.compact {
  padding: 40px 0;
}

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

.saas-page .section-title {
  font-weight: 700;
  font-size: clamp(1.7rem, 3.2vw, 2.35rem);
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.saas-page .section-subtitle {
  color: var(--saas-muted);
  max-width: 720px;
  margin: 0 auto;
}

.saas-page .glass-card {
  background: var(--saas-card);
  border: 1px solid var(--saas-border);
  border-radius: 18px;
  backdrop-filter: blur(10px);
  box-shadow: var(--saas-glow);
}

.saas-page .glow-card {
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.saas-page .glow-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.48);
  box-shadow: 0 0 0 1px rgba(6, 182, 212, 0.25), 0 18px 44px rgba(2, 8, 23, 0.7);
}

.navbar-custom {
  background: rgba(5, 11, 24, 0.6) !important;
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  box-shadow: none;
}

.navbar-custom .navbar-brand {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.06rem;
  letter-spacing: 0.1px;
}

.navbar-custom .nav-link {
  font-size: 0.92rem;
  color: rgba(248, 250, 252, 0.84) !important;
}

.navbar-custom .nav-link:hover {
  color: #ffffff !important;
}

.navbar-custom .consult-btn {
  border: 1px solid rgba(37, 99, 235, 0.35);
  border-radius: 10px;
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #fff;
  padding: 0.58rem 0.9rem;
  font-size: 0.83rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.navbar-custom .consult-btn:hover {
  background: linear-gradient(135deg, #3B82F6, #2563EB);
}

.saas-hero {
  padding: 46px 0 28px;
}

.saas-badge {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #bfdbfe;
  background: rgba(15, 23, 42, 0.65);
}

.saas-hero h1 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(2rem, 4vw, 3.45rem);
  line-height: 1.08;
  margin: 1rem 0;
  max-width: 12ch;
}

.saas-hero .accent {
  background: linear-gradient(135deg, #3B82F6, #06B6D4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.saas-hero p {
  color: var(--saas-muted);
  max-width: 54ch;
}

.saas-btn-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1.2rem;
}

.saas-btn-primary,
.saas-btn-secondary {
  border-radius: 12px;
  padding: 0.72rem 1rem;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.saas-btn-primary {
  color: #fff;
  background: linear-gradient(135deg, #2563EB, #0EA5E9);
  border: 1px solid rgba(59, 130, 246, 0.5);
}

.saas-btn-secondary {
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--saas-border);
}

.saas-btn-primary:hover,
.saas-btn-secondary:hover {
  transform: translateY(-2px);
}

.saas-chip-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-top: 1.25rem;
  max-width: 420px;
}

.saas-chip {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid var(--saas-border);
  border-radius: 10px;
  padding: 0.5rem 0.62rem;
}

.dashboard-shell {
  padding: 0.9rem;
  animation: dashboardFloat 6s ease-in-out infinite;
}

.dashboard-top {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.65rem;
}

.kpi {
  background: rgba(2, 6, 23, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 10px;
  padding: 0.52rem;
}

.kpi-label {
  color: #94a3b8;
  font-size: 0.62rem;
}

.kpi-value {
  color: #e2e8f0;
  font-size: 0.94rem;
  font-weight: 700;
}

.kpi-delta {
  color: #34d399;
  font-size: 0.62rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 0.55rem;
}

.chart-card,
.side-card,
.feed-card,
.status-card,
.copilot-card {
  background: rgba(2, 6, 23, 0.58);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 12px;
  padding: 0.68rem;
}

.chart-canvas {
  height: 130px;
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(37, 99, 235, 0.16), rgba(37, 99, 235, 0)),
    repeating-linear-gradient(to right, rgba(148, 163, 184, 0.12) 0, rgba(148, 163, 184, 0.12) 1px, transparent 1px, transparent 32px),
    repeating-linear-gradient(to top, rgba(148, 163, 184, 0.08) 0, rgba(148, 163, 184, 0.08) 1px, transparent 1px, transparent 28px);
  position: relative;
  overflow: hidden;
}

.chart-line {
  position: absolute;
  left: 6%;
  right: 6%;
  bottom: 10%;
  height: 62%;
  border-bottom: 2px solid rgba(37, 99, 235, 0.85);
  border-left: 2px solid transparent;
  transform: skewY(-8deg);
  filter: drop-shadow(0 0 8px rgba(37, 99, 235, 0.45));
}

.donut {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  margin: 0.2rem auto;
  background: conic-gradient(#2563EB 0 68%, #0EA5E9 68% 90%, #334155 90% 100%);
  position: relative;
}

.donut::after {
  content: '68%';
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  background: #020617;
  display: grid;
  place-items: center;
  color: #e2e8f0;
  font-weight: 700;
  font-size: 0.9rem;
}

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

.mini-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #cbd5e1;
  font-size: 0.74rem;
  padding: 0.3rem 0;
  border-bottom: 1px dashed rgba(148, 163, 184, 0.15);
}

.mini-list li:last-child {
  border-bottom: 0;
}

.saas-logo-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.9rem;
}

.logo-pill {
  text-align: center;
  border-radius: 10px;
  border: 1px solid var(--saas-border);
  background: rgba(15, 23, 42, 0.6);
  color: #94a3b8;
  font-size: 0.8rem;
  padding: 0.58rem 0.35rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 0.8rem;
}

.metric-card {
  padding: 0.75rem;
}

.metric-value {
  font-size: 1.38rem;
  font-weight: 700;
}

.metric-label {
  color: var(--saas-muted);
  font-size: 0.8rem;
}

.solutions-grid,
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.78rem;
}

.solution-card,
.feature-item,
.work-card {
  padding: 0.88rem;
}

.solution-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.28), rgba(6, 182, 212, 0.25));
  border: 1px solid rgba(59, 130, 246, 0.35);
  margin-bottom: 0.65rem;
}

.solution-card h5,
.work-card h5 {
  margin-bottom: 0.45rem;
  font-size: 1rem;
}

.solution-card p,
.work-card p,
.feature-item p {
  color: var(--saas-muted);
  margin-bottom: 0.55rem;
  font-size: 0.86rem;
}

.learn-link {
  color: #7dd3fc;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
}

.work-media {
  height: 150px;
  border-radius: 12px;
  margin-bottom: 0.65rem;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.23), rgba(6, 182, 212, 0.18)),
    repeating-linear-gradient(to right, rgba(148, 163, 184, 0.12) 0, rgba(148, 163, 184, 0.12) 1px, transparent 1px, transparent 24px);
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 12px;
  display: block;
}

.tag-row {
  display: flex;
  gap: 0.38rem;
  flex-wrap: wrap;
}

.tag-pill {
  border: 1px solid var(--saas-border);
  border-radius: 999px;
  font-size: 0.69rem;
  color: #cbd5e1;
  padding: 0.22rem 0.55rem;
}

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

.footer.saas-footer {
  background: #040914;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

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

@media (max-width: 1199.98px) {
  .dashboard-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .solutions-grid,
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

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

  .dashboard-shell {
    margin-top: 1rem;
  }

  .saas-logo-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .navbar-custom .consult-btn {
    margin: 0.65rem 0 0;
    display: inline-flex;
    justify-content: center;
  }
}

@media (max-width: 767.98px) {
  .saas-page .section-shell {
    padding: 42px 0;
  }

  .saas-chip-grid,
  .solutions-grid,
  .feature-grid,
  .metric-grid,
  .saas-logo-row,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .saas-hero h1 {
    max-width: 100%;
  }
}
