@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;600;700&display=swap');

:root {
  --primary: #a50d27;
  --primary-dark: #6f0b1b;
  --text: #0d0f12;
  --muted: #4a4d53;
  --bg-soft: #efeff1;
  --card-shadow: 0 12px 40px rgba(40, 10, 10, 0.18);
}

html {
  font-size: 14px;
  position: relative;
  min-height: 100%;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  margin-bottom: 0;
  font-family: 'Noto Sans SC', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg-soft);
  color: var(--text);
}

.page-shell {
  width: 100%;
}

.page-main {
  padding-bottom: 0;
}

.dashboard-hero {
  padding: 80px 0 40px;
  background: linear-gradient(120deg, rgba(165, 13, 39, 0.06), rgba(15, 17, 25, 0.04));
}

.dashboard-summary {
  background: #fff;
  border: 1px solid #e8e8ea;
  border-radius: 14px;
  padding: 18px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  box-shadow: 0 12px 32px rgba(40, 10, 10, 0.08);
}

.summary-value {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--primary-dark);
}

.summary-label {
  color: var(--muted);
  font-size: 0.95rem;
}

.dashboard-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8e8ea;
  padding: 16px 16px;
  box-shadow: 0 10px 28px rgba(40, 10, 10, 0.08);
}

.badge.bg-primary {
  background-color: var(--primary) !important;
}

.badge.bg-success {
  background-color: #22b573 !important;
}

.badge.bg-secondary {
  background-color: #9097a5 !important;
}

.nav-pills .nav-link {
  border-radius: 10px;
  color: #1f1f22;
  margin-bottom: 8px;
}

.nav-pills .nav-link.active {
  background-color: var(--primary);
}

.login-modal .modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
}

.login-visual {
  background: linear-gradient(135deg, #a50d27 0%, #6f0b1b 80%);
  position: relative;
  min-height: 360px;
}

.login-overlay {
  position: absolute;
  inset: 0;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.12), transparent 30%);
}

.login-modal .form-label {
  font-weight: 600;
}

.login-modal .form-control {
  border-radius: 12px;
  border-color: #e1e1e3;
}

.login-modal .btn-primary {
  border-radius: 12px;
  padding: 10px 14px;
}

a {
  text-decoration: none;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--primary);
}

.main-navbar {
  background: #f2f3f5;
  padding: 0.9rem 0;
  border-bottom: 1px solid #e1e1e3;
}

.main-navbar .nav-link {
  font-weight: 500;
  color: #1f1f22 !important;
}

.main-navbar .nav-link:hover {
  color: var(--primary) !important;
}

.hero-section {
  position: relative;
  padding: 110px 0;
  background: linear-gradient(115deg, #c8102e 0%, #991126 50%, #4a0c18 100%);
  overflow: hidden;
}

.hero-section .overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.16), transparent 30%),
              radial-gradient(circle at 80% 10%, rgba(255,255,255,0.1), transparent 28%);
}

.hero-title {
  font-weight: 700;
  font-size: clamp(2rem, 3vw + 1rem, 3.2rem);
}

.hero-subtitle {
  color: rgba(255,255,255,0.85);
  line-height: 1.7;
}

.hero-visual {
  width: 100%;
  height: 320px;
  border-radius: 18px;
  background-size: cover;
  background-position: center;
  box-shadow: var(--card-shadow);
  border: 1px solid rgba(255,255,255,0.25);
  backdrop-filter: blur(4px);
}

.hero-tags span {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 20px;
  background: rgba(255,255,255,0.15);
  color: #fff;
  font-weight: 600;
  border: 1px solid rgba(255,255,255,0.2);
}

.floating-metrics {
  position: relative;
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: var(--card-shadow);
  border: 1px solid #e8e8ea;
}

.floating-metrics.ring-form {
  grid-template-columns: repeat(4, 1fr);
  align-items: end;
}

.ring-field label {
  font-weight: 600;
  font-size: 0.95rem;
}

.ring-field .form-control {
  border-radius: 10px;
}

.ring-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ring-actions .btn {
  border-radius: 10px;
}

.quick-entry {
  padding: 60px 0 40px;
}

.action-card {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid #e9e9ec;
  box-shadow: 0 10px 28px rgba(40, 10, 10, 0.08);
  transition: transform .15s ease, box-shadow .15s ease;
}

.action-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(40, 10, 10, 0.14);
}

.action-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(165, 13, 39, 0.1);
  color: var(--primary);
  font-size: 22px;
}

.service-grid .service-card {
  display: flex;
  gap: 14px;
}

.service-card {
  background: #fff;
  border-radius: 14px;
  padding: 18px 18px;
  border: 1px solid #e8e8ea;
  box-shadow: 0 12px 32px rgba(40, 10, 10, 0.08);
  height: 100%;
  transition: transform .15s ease, box-shadow .15s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 38px rgba(40, 10, 10, 0.14);
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(165, 13, 39, 0.12);
  color: var(--primary);
  font-size: 22px;
  flex-shrink: 0;
}

.service-card h5 {
  font-weight: 700;
  margin-bottom: 8px;
}

.service-card ul {
  padding-left: 18px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.scene-gallery {
  padding: 80px 0;
}

.scene-card {
  position: relative;
  height: 260px;
  border-radius: 18px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  box-shadow: var(--card-shadow);
  border: 1px solid #e8e8ea;
}

.scene-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 10%, rgba(0,0,0,0.65) 100%);
  color: #fff;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 6px;
}

.scene-tag {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 12px;
  background: rgba(255,255,255,0.18);
  font-weight: 600;
  width: fit-content;
}

.capability-board .capability-card {
  background: #fff;
  border-radius: 14px;
  padding: 20px 18px;
  border: 1px solid #e8e8ea;
  box-shadow: 0 12px 32px rgba(40, 10, 10, 0.08);
  height: 100%;
}

.capability-card h5 {
  font-weight: 700;
  margin-bottom: 10px;
}

.capability-card ul {
  padding-left: 18px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.7;
}

.cases-news .case-list {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8e8ea;
  box-shadow: 0 12px 32px rgba(40, 10, 10, 0.08);
}

.case-list .case-item {
  padding: 16px 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #f0f0f3;
}

.case-list .case-item:last-child {
  border-bottom: none;
}

.news-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e8e8ea;
  padding: 16px 16px;
  box-shadow: 0 10px 28px rgba(40, 10, 10, 0.08);
  margin-bottom: 12px;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 2.5rem;
}

.section-header h2 {
  font-weight: 700;
  letter-spacing: 0.3px;
}

.section-header p {
  color: var(--muted);
}

.section-spaced {
  padding: 80px 0;
}

.stat-card {
  padding: 22px 18px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--card-shadow);
  border: 1px solid #eef2f8;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary-dark);
}

.stat-label {
  color: var(--muted);
  font-weight: 500;
}

.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: var(--card-shadow);
  border: 1px solid #eef2f8;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(139, 15, 36, 0.18);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(200, 16, 46, 0.12);
  color: var(--primary);
  font-size: 24px;
  margin-bottom: 14px;
}

.feature-card h5 {
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--muted);
  margin-bottom: 12px;
}

.tag {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 30px;
  background: rgba(200, 16, 46, 0.12);
  color: var(--primary);
  font-weight: 600;
  font-size: 0.85rem;
}

.timeline {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
}

.timeline:before {
  content: '';
  position: absolute;
  left: 18px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(#c8102e, #4a0c18);
  opacity: 0.35;
}

.timeline-step {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  margin-bottom: 22px;
  align-items: center;
}

.timeline-dot {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 4px solid var(--primary);
  box-shadow: 0 8px 20px rgba(200, 16, 46, 0.25);
  margin-left: 9px;
}

.timeline h6 {
  margin-bottom: 6px;
  font-weight: 700;
}

.timeline p {
  color: var(--muted);
}

.case-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--card-shadow);
  border: 1px solid #eef2f8;
  height: 100%;
  transition: transform .2s ease, box-shadow .2s ease;
}

.case-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 50px rgba(139, 15, 36, 0.18);
}

.case-image {
  height: 180px;
  background-size: cover;
  background-position: center;
}

.case-body {
  padding: 18px 18px 20px;
}

.case-body h6 {
  font-weight: 700;
}

.case-body p {
  color: var(--muted);
}

.cta-section {
  padding: 70px 0 90px;
  background: linear-gradient(110deg, #c8102e, #991126 55%, #4a0c18);
}

.cta-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 18px;
  padding: 28px;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,0.25);
}

.footer {
  background: #1f1f22;
  color: rgba(255,255,255,0.7);
}
