/* Global styles */
body {
  background: radial-gradient(circle at top, rgba(59, 130, 246, 0.18), transparent 45%),
    linear-gradient(180deg, #0b1520 0%, #050910 100%);
  color: #f8f9fa;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0.01em;
  line-height: 1.6;
  font-size: 1rem;
}

h1, h2, h3, h4, h5 {
  color: #f8f9fa;
}

p,
li {
  color: rgba(226, 232, 240, 0.92);
}

a {
  color: #7dd3fc;
  text-decoration: none;
}

a:hover {
  color: #bae6fd;
}

.text-muted {
  color: rgba(226, 232, 240, 0.9) !important;
}

small,
.small {
  color: rgba(226, 232, 240, 0.86);
}

.page-content {
  min-height: 60vh;
}

.site-nav {
  position: sticky;
  top: 0;
  z-index: 1020;
  background: rgba(5, 9, 16, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 10px 30px rgba(2, 6, 23, 0.4);
}

.navbar .nav-link {
  color: rgba(248, 249, 250, 0.7);
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  margin: 0 0.15rem;
  border-radius: 999px;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.navbar .nav-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 0.15rem rgba(16, 185, 129, 0.5);
}

.navbar-nav {
  gap: 0.35rem;
  align-items: center;
}

.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: #f8f9fa;
  background: rgba(148, 163, 184, 0.18);
  transform: translateY(-1px);
}

.navbar .nav-link::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 6px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(16, 185, 129, 0), rgba(16, 185, 129, 0.9), rgba(16, 185, 129, 0));
  opacity: 0;
  transform: scaleX(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.navbar .nav-link:hover::after,
.navbar .nav-link.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.navbar .nav-cta {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.9), rgba(59, 130, 246, 0.85));
  color: #0b1520;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.25);
}

.navbar .nav-cta:hover {
  background: linear-gradient(135deg, rgba(16, 185, 129, 1), rgba(59, 130, 246, 0.95));
  color: #0b1520;
  transform: translateY(-2px);
}

.navbar .nav-cta::after {
  display: none;
}

.navbar-brand {
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.navbar-toggler {
  border-color: rgba(148, 163, 184, 0.4);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.15rem rgba(16, 185, 129, 0.35);
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.92);
    box-shadow: 0 20px 40px rgba(2, 6, 23, 0.5);
  }

  .navbar-nav {
    align-items: stretch;
  }

  .navbar .nav-link {
    justify-content: center;
  }
}

.page-hero {
  background: radial-gradient(circle at top left, rgba(16, 185, 129, 0.2), transparent 55%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

/* HERO SECTION */
.hero-section {
  min-height: 80vh;
  background: radial-gradient(circle at top, rgba(16, 185, 129, 0.25), transparent 55%),
    linear-gradient(135deg, #0b1220 0%, #06111a 45%, #050910 100%);
}

.hero-title {
  letter-spacing: 0.04em;
}

.hero-subtitle {
  max-width: 32rem;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.4);
  color: rgba(226, 232, 240, 0.95);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.7rem;
  margin-bottom: 1.5rem;
}

.hero-highlights {
  display: grid;
  gap: 1rem;
  max-width: 30rem;
  margin: 1.5rem 0 0;
}

.hero-highlights h6 {
  color: #f8fafc;
  margin-bottom: 0.35rem;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.7);
}

.hero-panel {
  position: relative;
  border-radius: 1.5rem;
  padding: 2rem;
  background: linear-gradient(155deg, rgba(15, 23, 42, 0.92), rgba(2, 6, 23, 0.95));
  border: 1px solid rgba(148, 163, 184, 0.2);
  box-shadow: 0 24px 50px rgba(2, 6, 23, 0.6);
  overflow: hidden;
}

.hero-panel::after {
  content: "";
  position: absolute;
  inset: 12% 8%;
  border-radius: 1.2rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
  opacity: 0.6;
  pointer-events: none;
}

.hero-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.8);
  margin-bottom: 2rem;
}

.hero-panel-header h5 {
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: 1.1rem;
  color: #f8fafc;
}

.hero-panel-pill {
  display: inline-flex;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  color: #d1fae5;
  border: 1px solid rgba(16, 185, 129, 0.5);
  font-size: 0.7rem;
}

.hero-panel-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 2rem;
  position: relative;
  z-index: 1;
}

.hero-metric h3 {
  color: #f8fafc;
  font-size: 1.5rem;
}

.hero-panel-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.75);
  position: relative;
  z-index: 1;
}

.hero-panel-footer a {
  color: #7dd3fc;
  text-decoration: none;
  font-weight: 600;
}

.hero-panel-footer a:hover {
  color: #bae6fd;
}

@media (max-width: 991px) {
  .hero-section {
    text-align: left;
  }

  .hero-panel {
    margin-top: 1rem;
  }
}

/* Feature cards */
.feature-card {
  border: none;
  border-radius: 1rem;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.35);
  background: #0f172a;
  color: #e5e7eb;
  transform: translateY(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 40px rgba(15, 23, 42, 0.6);
  background: #020617;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.85);
}

.section-title {
  font-size: clamp(1.6rem, 2.4vw, 2.3rem);
  margin: 0.6rem 0 1rem;
}

.info-card,
.service-card,
.step-card,
.stat-card,
.cta-card,
.team-card,
.contact-card {
  background: #0f172a;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.35);
  color: #e5e7eb;
}

.paper-card {
  background: #0f172a;
  border-radius: 1rem;
  padding: 1.75rem;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.35);
  border: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.paper-meta {
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.85);
}

.paper-link {
  font-weight: 600;
  color: #38bdf8;
  text-decoration: none;
}

.paper-link:hover {
  color: #7dd3fc;
  text-decoration: underline;
}

.paper-spotlight {
  background: #ffffff;
  border-radius: 1.2rem;
  padding: 2rem;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.paper-spotlight-item {
  display: none;
}

.paper-spotlight-item.is-active {
  display: block;
}

.paper-spotlight-meta {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: rgba(71, 85, 105, 0.9);
  margin-bottom: 0.5rem;
}

.paper-spotlight-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.5rem;
}

.paper-spotlight-btn {
  border: 0;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  border-radius: 999px;
  width: 36px;
  height: 36px;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.paper-spotlight-btn:hover {
  background: rgba(15, 23, 42, 0.16);
}

.paper-spotlight-dots {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  justify-content: center;
}

.paper-spotlight-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: 0;
  background: rgba(15, 23, 42, 0.2);
}

.paper-spotlight-dot.is-active {
  background: rgba(16, 185, 129, 0.8);
}

.paper-resource-list {
  padding-left: 1.1rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.stat-label {
  color: rgba(226, 232, 240, 0.8);
  margin-bottom: 0;
}

.step-card {
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #0b1520;
}

.step-number {
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  color: rgba(148, 163, 184, 0.8);
  margin-bottom: 0.75rem;
}

.service-card h5 {
  margin-bottom: 0.5rem;
}

.service-list li {
  margin-bottom: 0.4rem;
  color: rgba(226, 232, 240, 0.8);
}

.cta-card {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(59, 130, 246, 0.1));
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.team-card .divider,
.contact-card .divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.2);
  margin: 1.2rem 0;
}

.contact-card {
  display: grid;
  gap: 1rem;
}

.contact-detail {
  display: grid;
  gap: 0.25rem;
}

.contact-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
  color: rgba(148, 163, 184, 0.8);
}

.contact-form .form-control,
.contact-form .form-select {
  background: #0b1520;
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #f8f9fa;
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: rgba(16, 185, 129, 0.8);
  box-shadow: 0 0 0 0.2rem rgba(16, 185, 129, 0.2);
}

.contact-form .form-label {
  color: rgba(226, 232, 240, 0.9);
}

/* Light section background override */
.bg-light {
  background-color: #f8fafc !important;
  color: #0f172a;
}

.bg-light h2 {
  color: #0f172a;
}

.bg-light .section-title {
  color: #0f172a;
}

.bg-light .info-card,
.bg-light .service-card,
.bg-light .step-card,
.bg-light .stat-card,
.bg-light .team-card,
.bg-light .contact-card {
  background: #ffffff;
  color: #0f172a;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.bg-light .info-card p,
.bg-light .service-card p,
.bg-light .step-card p,
.bg-light .stat-label,
.bg-light .team-card p,
.bg-light .contact-card p {
  color: #475569;
}

.bg-light .pipeline-card .text-muted,
.bg-light .pipeline-card p {
  color: rgba(226, 232, 240, 0.85) !important;
}

.bg-light p,
.bg-light li,
.bg-light .text-muted {
  color: #475569 !important;
}

.pipeline-card {
  background: #0f172a;
  border-radius: 1rem;
  padding: 1.5rem;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.4);
  display: grid;
  gap: 1rem;
  height: 100%;
}

.tab-nav {
  border-bottom: 0;
  gap: 0.75rem;
}

.tab-nav .nav-link {
  border: 1px solid rgba(148, 163, 184, 0.3);
  color: #0f172a;
  border-radius: 999px;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  background: #ffffff;
}

.tab-nav .nav-link:hover {
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.4);
}

.tab-nav .nav-link.active {
  background: #0f172a;
  color: #f8fafc;
  border-color: #0f172a;
}

.tab-content-panel {
  margin-top: 2rem;
}

.people-card {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.people-avatar {
  width: 96px;
  height: 96px;
  border-radius: 999px;
  object-fit: cover;
  border: 3px solid rgba(148, 163, 184, 0.2);
  margin-bottom: 0.75rem;
}

.pipeline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.pipeline-status {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.2);
  color: #d1fae5;
  border: 1px solid rgba(16, 185, 129, 0.5);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.pipeline-details {
  display: grid;
  gap: 0.6rem;
  background: rgba(15, 23, 42, 0.6);
  border-radius: 0.75rem;
  padding: 0.85rem;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.pipeline-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(226, 232, 240, 0.7);
  margin-bottom: 0.15rem;
}

.leadership-meta {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}

.leadership-meta span {
  color: rgba(226, 232, 240, 0.85);
}

/* Footer */
footer {
  border-top: 1px solid rgba(148, 163, 184, 0.4);
}

.to-top-btn {
  position: fixed;
  right: 18px;
  bottom: 18px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  color: #f8f9fa;
  font-size: 18px;
  cursor: pointer;

  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.to-top-btn.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
