:root {
  --page-bg: #f5f7fb;
  --surface: rgba(255, 255, 255, 0.84);
  --surface-strong: #ffffff;
  --text-strong: #1d2433;
  --text-muted: #6c7588;
  --line: rgba(28, 42, 70, 0.08);
  --teal: #1bb8b0;
  --teal-deep: #0d7f87;
  --blue: #4c73ff;
  --violet: #7c5cff;
  --gold: #f4b545;
  --shadow: 0 20px 50px rgba(17, 30, 60, 0.08);
}

html {
  font-size: 15px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text-strong);
  background:
    radial-gradient(circle at top left, rgba(27, 184, 176, 0.16), transparent 34%),
    radial-gradient(circle at top right, rgba(76, 115, 255, 0.12), transparent 28%),
    linear-gradient(180deg, #fbfcff 0%, var(--page-bg) 100%);
}

a {
  color: inherit;
}

.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1 1 auto;
  padding: 1.25rem 0 2rem;
}

.site-header .navbar {
  backdrop-filter: blur(14px);
}

.navbar-brand {
  color: var(--text-strong) !important;
  letter-spacing: 0.04em;
}

.brand-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: 0 12px 24px rgba(27, 184, 176, 0.3);
}

.nav-link {
  color: var(--text-muted);
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1rem !important;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-strong);
  background: rgba(27, 184, 176, 0.09);
}

.text-bg-success-soft {
  background-color: rgba(27, 184, 176, 0.12);
}

.text-success-emphasis {
  color: var(--teal-deep) !important;
}

.hero-shell,
.module-shell,
.report-shell {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-shell {
  padding: 1.25rem;
}

.hero-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(27, 184, 176, 0.12);
  color: var(--teal-deep);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-title {
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.05;
  margin: 0.85rem 0;
  font-weight: 800;
}

.hero-copy {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 40rem;
}

.glass-panel {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(34, 48, 82, 0.08);
  border-radius: 1.4rem;
  box-shadow: 0 14px 30px rgba(24, 38, 70, 0.08);
}

.chat-card {
  padding: 1.1rem;
}

.bubble {
  max-width: 100%;
  border-radius: 1.3rem;
  padding: 1rem 1.1rem;
  position: relative;
}

.bubble-user {
  background: linear-gradient(135deg, #19b9b0, #1f9dd0);
  color: #fff;
}

.bubble-ai {
  background: #fff;
  border: 1px solid rgba(29, 36, 51, 0.08);
}

.avatar {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  object-fit: cover;
  box-shadow: 0 10px 22px rgba(24, 38, 70, 0.08);
}

.module-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 576px) {
  .module-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .module-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.module-card {
  position: relative;
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 1.4rem;
  padding: 1.1rem;
  box-shadow: 0 10px 26px rgba(17, 30, 60, 0.05);
  height: 100%;
}

.module-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: #fff;
}

.accent-teal {
  background: linear-gradient(135deg, #11b8b0, #0e8f96);
}

.accent-blue {
  background: linear-gradient(135deg, #4c73ff, #334ec7);
}

.accent-violet {
  background: linear-gradient(135deg, #7c5cff, #5936d2);
}

.accent-gold {
  background: linear-gradient(135deg, #f4b545, #db7b22);
}

.kpi-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.35rem;
  padding: 1.1rem 1.15rem;
  box-shadow: 0 10px 28px rgba(17, 30, 60, 0.05);
}

.kpi-value {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
  font-weight: 800;
}

.kpi-label {
  color: var(--text-muted);
  font-weight: 600;
}

.timeline {
  position: relative;
  padding-left: 1.2rem;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 0.28rem;
  top: 0.4rem;
  bottom: 0.2rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(27, 184, 176, 0.25), rgba(76, 115, 255, 0.25));
}

.timeline-item {
  position: relative;
  padding: 0.15rem 0 1rem 1rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -0.01rem;
  top: 0.45rem;
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: #fff;
  border: 3px solid currentColor;
}

.report-shell {
  padding: 1.2rem;
}

.scene-card {
  background:
    radial-gradient(circle at top right, rgba(76, 115, 255, 0.18), transparent 22%),
    radial-gradient(circle at bottom left, rgba(27, 184, 176, 0.16), transparent 26%),
    #fff;
  border-radius: 1.6rem;
  border: 1px solid rgba(34, 48, 82, 0.08);
  box-shadow: 0 18px 40px rgba(17, 30, 60, 0.08);
}

.assistant-stage {
  min-height: 18rem;
}

.prompt-panel {
  border-radius: 1.5rem;
  padding: 1.25rem;
  color: #fff;
  background: linear-gradient(135deg, #17b8af 0%, #1d8fb7 100%);
  box-shadow: 0 16px 32px rgba(21, 141, 171, 0.25);
}

.prompt-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.soft-list li + li {
  margin-top: 0.8rem;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.btn-pill {
  border-radius: 999px;
  padding-inline: 1.1rem;
}

@media (max-width: 575.98px) {
  .hero-shell,
  .module-shell,
  .report-shell {
    border-radius: 1.25rem;
  }
}
