/* Mpiere Technologies — Bootstrap 5 + custom theme (deep slate + aurora accents) */

:root {
  --bg-deep: #06080d;
  --bg-elevated: #0e1219;
  --bg-card: #121820;
  --border: rgba(255, 255, 255, 0.08);
  --text: #e8ecf1;
  --text-muted: #94a3b8;
  --accent: #3ee8c7;
  --accent-dim: rgba(62, 232, 199, 0.15);
  --accent-2: #8b7cff;
  --gradient-hero: linear-gradient(135deg, #3ee8c7 0%, #5b8cff 45%, #8b7cff 100%);
  --font-display: "Outfit", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  --header-h: 72px;

  /* Bootstrap 5 theme bridge */
  --bs-body-bg: var(--bg-deep);
  --bs-body-color: var(--text);
  --bs-secondary-color: var(--text-muted);
  --bs-secondary-bg: var(--bg-elevated);
  --bs-tertiary-bg: var(--bg-card);
  --bs-border-color: var(--border);
  --bs-primary: var(--accent);
  --bs-primary-rgb: 62, 232, 199;
  --bs-link-color: var(--accent);
  --bs-link-hover-color: #6ef0d8;
  --bs-border-radius: var(--radius-sm);
  --bs-border-radius-lg: var(--radius);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 0.75rem);
}

@media (max-width: 991.98px) {
  html {
    scroll-padding-top: calc(56px + 0.5rem);
  }
}

body {
  font-family: var(--font-body);
  line-height: 1.65;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .service-card {
    transition: none;
  }

  .hero-video {
    transform: none;
  }
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a:not(.btn):not(.navbar-brand) {
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* Header / Bootstrap navbar */
.site-header {
  z-index: 100;
  background: rgba(6, 8, 13, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header .navbar {
  --bs-navbar-color: var(--text-muted);
  --bs-navbar-hover-color: var(--text);
  --bs-navbar-active-color: var(--accent);
}

.site-header .navbar-nav .nav-link {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0.75rem;
}

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

.site-header .navbar-toggler {
  padding: 0.5rem 0.65rem;
}

.site-header .navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(62, 232, 199, 0.25);
}

.brand-logo {
  height: 48px;
  width: auto;
  max-width: min(220px, 52vw);
}

@media (max-width: 400px) {
  .brand-logo {
    height: 40px;
    max-width: min(200px, 58vw);
  }
}

.nav-cta.btn-primary {
  --bs-btn-color: var(--bg-deep);
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: var(--bg-deep);
  --bs-btn-hover-bg: #5eebd4;
  --bs-btn-hover-border-color: #5eebd4;
  font-weight: 600;
}

@media (max-width: 991.98px) {
  .site-header .navbar-collapse {
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    margin-top: 0.75rem;
    max-height: calc(100vh - 5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .site-header .navbar-nav .nav-link {
    padding: 0.75rem 0;
    min-height: 44px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
  }

  .site-header .nav-item:last-child {
    padding-top: 0.75rem;
  }

  .site-header .nav-cta {
    width: 100%;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}

/* Buttons — Bootstrap + Mpiere */
.btn-primary {
  --bs-btn-color: var(--bg-deep);
  --bs-btn-bg: var(--accent);
  --bs-btn-border-color: var(--accent);
  --bs-btn-hover-color: var(--bg-deep);
  --bs-btn-hover-bg: #5eebd4;
  --bs-btn-hover-border-color: #5eebd4;
  --bs-btn-focus-shadow-rgb: 62, 232, 199;
  --bs-btn-active-color: var(--bg-deep);
  --bs-btn-active-bg: #4dd9c4;
  --bs-btn-active-border-color: #4dd9c4;
  font-weight: 600;
  box-shadow: 0 8px 32px rgba(62, 232, 199, 0.22);
}

.btn-primary:hover {
  filter: brightness(1.03);
}

.btn-outline-mp {
  --bs-btn-color: var(--text);
  --bs-btn-border-color: var(--border);
  --bs-btn-hover-color: var(--accent);
  --bs-btn-hover-bg: transparent;
  --bs-btn-hover-border-color: rgba(62, 232, 199, 0.45);
  --bs-btn-active-color: var(--accent);
  --bs-btn-active-bg: rgba(62, 232, 199, 0.08);
  --bs-btn-active-border-color: rgba(62, 232, 199, 0.45);
  font-weight: 600;
}

/* Hero */
.hero {
  overflow: hidden;
  padding-top: clamp(2rem, 5vw, 3rem);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}

.hero-with-video {
  min-height: clamp(560px, 88vh, 920px);
  display: flex;
  align-items: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: var(--bg-deep);
}

.hero-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
}

.hero-video-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    105deg,
    rgba(6, 8, 13, 0.94) 0%,
    rgba(6, 8, 13, 0.7) 45%,
    rgba(6, 8, 13, 0.48) 100%
  );
  pointer-events: none;
}

.hero-video-glow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 55% at 72% 18%, rgba(62, 232, 199, 0.15), transparent 55%),
    radial-gradient(ellipse 55% 45% at 18% 42%, rgba(139, 124, 255, 0.11), transparent 50%);
  mix-blend-mode: screen;
  opacity: 0.9;
}

.hero-media.hero-media--static .hero-video {
  display: none;
}

.hero-media.hero-media--static {
  background: linear-gradient(165deg, var(--bg-deep) 0%, #0e1524 45%, #12182a 100%);
}

.hero-media.hero-media--static .hero-video-glow {
  opacity: 1;
  mix-blend-mode: normal;
  background:
    radial-gradient(ellipse 80% 60% at 70% 20%, rgba(62, 232, 199, 0.12), transparent 55%),
    radial-gradient(ellipse 60% 50% at 20% 40%, rgba(139, 124, 255, 0.1), transparent 50%);
}

.eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5.5vw + 0.5rem, 3.35rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 1.25rem;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.text-gradient {
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lead {
  color: var(--text-muted);
  font-size: clamp(0.98rem, 2.5vw, 1.0625rem);
  max-width: min(36ch, 100%);
  margin: 0 0 2rem;
}

.hero-metrics dt.metric-value {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  color: var(--text);
}

.hero-metrics dd.metric-label {
  margin: 0.25rem 0 0;
  font-size: clamp(0.7rem, 2vw, 0.875rem);
  line-height: 1.35;
  color: var(--text-muted);
}

@media (max-width: 380px) {
  .hero-metrics dd.metric-label {
    font-size: 0.65rem;
    letter-spacing: -0.02em;
  }
}

.hero-card {
  position: relative;
  width: min(100%, 400px);
  border-radius: calc(var(--radius) + 4px);
  padding: 1px;
  background: linear-gradient(145deg, rgba(62, 232, 199, 0.4), rgba(139, 124, 255, 0.25) 50%, transparent);
  overflow: hidden;
}

.hero-card-glow {
  position: absolute;
  inset: -30%;
  background: radial-gradient(circle at 50% 50%, rgba(62, 232, 199, 0.2), transparent 60%);
  filter: blur(40px);
  z-index: 0;
}

.hero-card-inner {
  position: relative;
  z-index: 1;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.hero-card-inner.card-body {
  padding: clamp(1.25rem, 4vw, 1.5rem);
}

.hero-card-tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}

.hero-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
}

.hero-card-text {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0 0 1.25rem;
}

.hero-card-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.hero-card-list li {
  margin-bottom: 0.4rem;
}

.hero-card-interactive {
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
}

@media (hover: hover) and (pointer: fine) {
  .hero-card-interactive:hover {
    transform: translateY(-8px) perspective(900px) rotateX(3deg);
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.35);
  }
}

/* “Watch our story” — interactive feature video */
.video-story-frame {
  background: var(--bg-card);
}

.video-story-frame.ratio .video-story-el {
  object-fit: cover;
}

.video-story-play {
  z-index: 4;
  width: 4.25rem;
  height: 4.25rem;
  line-height: 1;
  transition: opacity 0.35s ease, transform 0.3s ease;
}

.video-story-play:hover {
  transform: translate(-50%, -50%) scale(1.06);
}

.video-story-frame.is-playing .video-story-play {
  opacity: 0;
  pointer-events: none;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-card-interactive:hover {
    transform: none;
  }

  .video-story-play:hover {
    transform: translate(-50%, -50%);
  }
}

/* Sections */
.section-head {
  max-width: 640px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}

.section-desc {
  color: var(--text-muted);
  margin: 0;
  font-size: 1.05rem;
}

.services {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-elevated) 40%, var(--bg-deep) 100%);
}

.service-card.border-secondary {
  border-color: var(--border) !important;
}

.service-card {
  border-radius: var(--radius) !important;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
  border-color: rgba(62, 232, 199, 0.35) !important;
  transform: translateY(-3px);
}

.service-card .card-body {
  padding: 1.5rem 1.5rem 1.65rem;
}

.service-icon {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.service-card .card-title {
  font-family: var(--font-display);
  font-weight: 600;
}

.service-card .card-text {
  color: var(--text-muted);
}

.mv-block.card {
  padding: 0;
  background: transparent;
}

.mv-block h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--accent);
}

.mv-block p {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.stat-card.card {
  padding: 0;
  background: transparent;
}

.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.5rem);
  font-weight: 800;
  background: var(--gradient-hero);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}

.stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.tech-pill {
  padding: 0.5rem 1rem !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--text) !important;
  background: var(--accent-dim) !important;
  border: 1px solid rgba(62, 232, 199, 0.25) !important;
}

.why-item.card {
  padding: 0;
  background: linear-gradient(160deg, var(--bg-card), transparent);
}

.why-item h3 {
  font-family: var(--font-display);
  font-size: 1.125rem;
  margin: 0 0 0.5rem;
}

.why-item p {
  color: var(--text-muted);
  font-size: 0.9375rem;
}

/* Request for services / contact */
.contact-request {
  background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(14, 18, 25, 0.97) 40%, var(--bg-deep) 100%);
  border-top: 1px solid var(--border);
}

.contact-request-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.3;
}

.contact-request-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin-bottom: 0.85rem;
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.contact-request-check {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  margin-top: 0.1rem;
  border-radius: 999px;
  background: rgba(62, 232, 199, 0.12);
  color: var(--accent);
}

.contact-request-direct.card {
  padding: 0;
  background: rgba(18, 24, 32, 0.65);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.contact-request-direct.card:hover {
  border-color: rgba(62, 232, 199, 0.22);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.contact-request-direct-title {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-request-direct-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text);
}

.contact-request-direct-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-request-direct-row a {
  color: var(--text);
}

.contact-request-direct-row a:hover {
  color: var(--accent);
}

.contact-request-direct-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 8px;
  background: rgba(62, 232, 199, 0.08);
  color: var(--accent);
}

.contact-form {
  position: relative;
}

.contact-form-card.card {
  padding: 0;
  border: 1px solid rgba(62, 232, 199, 0.2);
  background: linear-gradient(165deg, rgba(18, 24, 32, 0.95), rgba(6, 8, 13, 0.5));
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.contact-form-title {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
}

.contact-form-lead {
  line-height: 1.55;
}

.contact-form .form-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}

.contact-form-control {
  color: var(--text);
  background-color: rgba(6, 8, 13, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form-control::placeholder {
  color: rgba(148, 163, 184, 0.55);
}

.contact-form-control:focus {
  border-color: rgba(62, 232, 199, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(62, 232, 199, 0.12);
  background-color: var(--bg-deep);
  color: var(--text);
}

select.contact-form-control {
  cursor: pointer;
}

textarea.contact-form-control {
  min-height: 120px;
  max-height: 12rem;
  resize: vertical;
  overflow-y: auto;
}

.contact-form-check {
  border-color: var(--border);
  background-color: rgba(6, 8, 13, 0.75);
}

.contact-form-check:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

.contact-form-check:focus {
  box-shadow: 0 0 0 0.2rem rgba(62, 232, 199, 0.2);
}

.contact-form-hp {
  position: absolute !important;
  left: -9999px !important;
  height: 1px !important;
  width: 1px !important;
  overflow: hidden !important;
}

.contact-form-note {
  line-height: 1.55;
}

.contact-form-code {
  font-size: 0.8125em;
  color: var(--accent);
  word-break: break-all;
}

.contact-form .alert-success {
  background: rgba(62, 232, 199, 0.12);
  border-color: rgba(62, 232, 199, 0.35);
  color: #b8f5e8;
}

.contact-form .alert-danger {
  background: rgba(248, 113, 113, 0.1);
  border-color: rgba(248, 113, 113, 0.35);
  color: #fecaca;
}

.contact-success-state {
  border-radius: var(--radius-sm);
}

.contact-success-icon {
  width: 4rem;
  height: 4rem;
  color: var(--accent);
  background: rgba(62, 232, 199, 0.12);
  border: 1px solid rgba(62, 232, 199, 0.3);
}

.contact-success-message {
  max-width: 28rem;
  line-height: 1.6;
}

/* Footer */
.site-footer {
  position: relative;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-elevated) 28%, var(--bg-elevated) 100%);
  margin-top: 0;
}

.footer-accent {
  height: 4px;
  width: 100%;
  background: linear-gradient(
    90deg,
    var(--accent) 0%,
    rgba(91, 140, 255, 0.95) 35%,
    var(--accent-2) 65%,
    var(--accent) 100%
  );
  background-size: 200% 100%;
  animation: footer-accent-shimmer 10s ease-in-out infinite;
}

@keyframes footer-accent-shimmer {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

.footer-main {
  border-bottom: 1px solid var(--border);
}

.footer-brand-link {
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.footer-brand-link:hover {
  opacity: 0.92;
  transform: translateY(-1px);
}

.footer-tagline {
  font-size: 0.9375rem;
  line-height: 1.65;
  max-width: 34ch;
}

.footer-logo {
  width: auto;
  height: auto;
  max-width: min(220px, 100%);
}

.footer-heading {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.footer-nav li {
  margin-bottom: 0.55rem;
}

.footer-nav a {
  position: relative;
  display: inline-block;
  color: var(--text-muted);
  font-size: 0.9375rem;
  padding: 0.15rem 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.25s ease;
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-nav a:hover::after {
  width: 100%;
}

.footer-social li {
  display: inline-flex;
}

.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 999px;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 500;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.footer-social-btn:hover {
  color: var(--accent);
  border-color: rgba(62, 232, 199, 0.45);
  background: rgba(62, 232, 199, 0.08);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.footer-social-btn:active {
  transform: translateY(-1px);
}

.footer-contact-card {
  padding: 1.35rem 1.35rem 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(155deg, rgba(62, 232, 199, 0.06), rgba(18, 24, 32, 0.6));
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.footer-contact-card:hover {
  border-color: rgba(62, 232, 199, 0.28);
  box-shadow: 0 20px 56px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

@media (hover: none) {
  .footer-contact-card:hover {
    transform: none;
  }
}

.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.5rem 0;
  text-decoration: none;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  transition: color 0.2s ease, padding-left 0.2s ease, background 0.2s ease;
}

.footer-contact-row:last-of-type {
  border-bottom: none;
}

.footer-contact-row:hover {
  color: var(--accent);
  padding-left: 0.35rem;
  background: linear-gradient(90deg, rgba(62, 232, 199, 0.06), transparent);
}

.footer-contact-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  background: rgba(62, 232, 199, 0.1);
  color: var(--accent);
}

.footer-contact-text {
  font-size: 0.9rem;
  line-height: 1.45;
  padding-top: 0.1rem;
}

.footer-contact-cta {
  font-weight: 600;
}

.footer-cta-strip {
  border-bottom: 1px solid var(--border);
  background: linear-gradient(160deg, rgba(62, 232, 199, 0.07), rgba(139, 124, 255, 0.04));
}

.footer-cta-inner {
  border-left: 3px solid var(--accent);
  padding-left: 1.25rem;
  margin-left: 0;
}

@media (min-width: 768px) {
  .footer-cta-inner {
    padding-left: 1.5rem;
  }
}

.footer-cta-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.footer-cta-title {
  font-family: var(--font-display);
  font-size: clamp(1.05rem, 2.5vw, 1.25rem);
  font-weight: 600;
  color: var(--text);
  max-width: 36ch;
}

.footer-cta-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom {
  background: rgba(6, 8, 13, 0.65);
  border-top: 1px solid var(--border);
}

.footer-copy {
  max-width: 100%;
}

.footer-legal {
  font-size: 0.8125rem;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.footer-legal:hover {
  color: var(--accent);
}

.footer-back-top {
  color: var(--accent) !important;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.footer-back-top-inner {
  transition: color 0.2s ease, transform 0.2s ease;
}

.footer-back-top:hover .footer-back-top-inner {
  color: #6ef0d8;
  transform: translateY(-2px);
}

.footer-back-top svg {
  transition: transform 0.25s ease;
}

.footer-back-top:hover svg {
  transform: translateY(-3px);
}

@media (prefers-reduced-motion: reduce) {
  .footer-accent {
    animation: none;
    background-size: 100% 100%;
  }

  .footer-nav a::after {
    transition: none;
  }

  .footer-social-btn:hover,
  .footer-contact-card:hover,
  .footer-back-top:hover .footer-back-top-inner {
    transform: none;
  }

  .footer-back-top:hover svg {
    transform: none;
  }
}

/* Responsive helpers — notched devices: respect safe-area alongside Bootstrap padding */
.site-header .container {
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
}

main .container.px-3,
footer .container.px-3 {
  padding-left: max(1rem, env(safe-area-inset-left, 0px));
  padding-right: max(1rem, env(safe-area-inset-right, 0px));
}

@media (min-width: 576px) {
  main .container.px-sm-4,
  footer .container.px-sm-4 {
    padding-left: max(1.5rem, env(safe-area-inset-left, 0px));
    padding-right: max(1.5rem, env(safe-area-inset-right, 0px));
  }
}

.tech-pills {
  row-gap: 0.5rem;
}

.tech-pills .badge {
  max-width: 100%;
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

@media (max-width: 575.98px) {
  .section-head {
    margin-inline: 0;
  }

  .why-item {
    padding: 1.25rem;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1140px;
  }
}
