:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --soft: #f6f7f9;
  --soft-2: #fff4ec;
  --text: #171923;
  --muted: #5f6675;
  --line: #e7e9ee;
  --orange: #ff6b00;
  --orange-dark: #d95b00;
  --navy: #1c2a3a;
  --radius: 8px;
  --shadow-sm: 0 10px 28px rgba(28, 42, 58, 0.08);
  --shadow-md: 0 18px 48px rgba(28, 42, 58, 0.13);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.section-pad {
  padding: 104px 0;
}

.section-pad-sm {
  padding: 46px 0;
}

.alt-section {
  background: var(--soft);
}

.massoni-navbar {
  padding: 18px 0;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  transition: padding 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.massoni-navbar.is-scrolled {
  padding: 12px 0;
  border-color: rgba(231, 233, 238, 0.9);
  box-shadow: 0 12px 34px rgba(28, 42, 58, 0.08);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--orange), #ff9a3d);
  box-shadow: 0 10px 22px rgba(255, 107, 0, 0.2);
}

.brand-text strong {
  color: var(--orange);
}

.navbar .nav-link {
  color: #3e4654;
  font-size: 0.94rem;
  font-weight: 650;
}

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

.navbar-toggler {
  border-color: var(--line);
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.18rem rgba(255, 107, 0, 0.18);
}

.btn {
  border-radius: var(--radius);
  font-weight: 800;
  letter-spacing: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary-brand {
  color: #fff;
  border: 1px solid var(--orange);
  background: var(--orange);
  box-shadow: 0 14px 28px rgba(255, 107, 0, 0.2);
}

.btn-primary-brand:hover,
.btn-primary-brand:focus {
  color: #fff;
  border-color: var(--orange-dark);
  background: var(--orange-dark);
  box-shadow: 0 18px 36px rgba(255, 107, 0, 0.26);
}

.btn-outline-brand {
  color: var(--navy);
  border: 1px solid var(--line);
  background: #fff;
}

.btn-outline-brand:hover {
  color: var(--orange);
  border-color: rgba(255, 107, 0, 0.35);
  box-shadow: var(--shadow-sm);
}

.btn-xl {
  padding: 16px 28px;
  font-size: 1.06rem;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 146px 0 84px;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 107, 0, 0.09), transparent 25%),
    linear-gradient(180deg, #ffffff 0%, #fbfbfd 100%);
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 120px;
  background: linear-gradient(180deg, transparent, #fff);
  pointer-events: none;
}

.hero-section > .container {
  position: relative;
  z-index: 1;
}

.eyebrow-cta,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: fit-content;
  color: var(--orange-dark);
  font-weight: 800;
  font-size: 0.86rem;
  padding: 9px 14px;
  border: 1px solid rgba(255, 107, 0, 0.2);
  border-radius: 999px;
  background: #fff5ee;
}

.hero-title {
  margin: 22px 0 18px;
  max-width: 760px;
  font-size: clamp(2.45rem, 5vw, 4.9rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0;
}

.hero-subtitle {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1rem, 1.7vw, 1.17rem);
  line-height: 1.72;
}

.typing-line {
  min-height: 31px;
  margin: 18px 0 0;
  color: var(--muted);
}

.typing-line strong {
  color: var(--orange-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 650px;
  margin-top: 32px;
}

.trust-row span {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-sm);
}

.trust-row strong {
  display: block;
  color: var(--text);
  font-size: 1.3rem;
}

.hero-banner {
  position: relative;
  max-width: 650px;
  margin-left: auto;
  padding: clamp(16px, 3vw, 28px);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(255, 107, 0, 0.14), rgba(255, 255, 255, 0.92) 38%),
    #fff;
  box-shadow: var(--shadow-md);
}

.hero-banner::before {
  content: "";
  position: absolute;
  inset: 10% -4% -5% 14%;
  z-index: -1;
  border-radius: 32px;
  background: #fff0e5;
}

.hero-image-wrap {
  overflow: hidden;
  border: 1px solid rgba(231, 233, 238, 0.8);
  border-radius: 22px;
  background: #fff;
}

.hero-image-wrap img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
}

.hero-metric,
.hero-card {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 11px;
  max-width: min(290px, 72%);
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.hero-metric i {
  display: grid;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: var(--orange);
}

.hero-metric span,
.hero-card span {
  color: var(--muted);
  font-size: 0.86rem;
}

.hero-metric strong,
.hero-card strong {
  display: block;
  color: var(--text);
}

.metric-top {
  top: 10%;
  left: -4%;
}

.metric-bottom {
  right: -3%;
  bottom: 18%;
}

.hero-card {
  left: 8%;
  bottom: -22px;
  display: block;
}

.stat-card,
.solution-panel,
.tech-card,
.project-card,
.testimonial-card,
.timeline-item,
.final-cta-box,
.mobility-board,
.dashboard-strip,
.automation-board article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.stat-card {
  height: 100%;
  padding: 26px 18px;
  text-align: center;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.stat-card:hover,
.solution-panel:hover,
.tech-card:hover,
.project-card:hover,
.timeline-item:hover,
.automation-board article:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.stat-card i {
  color: var(--orange);
  font-size: 1.35rem;
}

.stat-card strong {
  display: block;
  margin-top: 11px;
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
}

.stat-card p {
  margin: 0;
  color: var(--muted);
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 50px;
  text-align: center;
}

.section-heading h2 {
  margin: 16px 0;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
  font-weight: 900;
}

.section-heading p {
  color: var(--muted);
  font-size: 1.07rem;
  line-height: 1.7;
}

.solution-panel {
  height: 100%;
  padding: 28px;
  transition: 0.22s ease;
}

.solution-panel.featured {
  border-color: rgba(255, 107, 0, 0.26);
  background: linear-gradient(180deg, #fff, #fff7f0);
}

.panel-icon,
.tech-card i,
.timeline-item i {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border-radius: var(--radius);
  color: var(--orange);
  background: #fff1e7;
}

.solution-panel h3,
.tech-card h3,
.project-card h3,
.timeline-item h3 {
  margin: 20px 0 10px;
  font-size: 1.15rem;
  font-weight: 850;
}

.solution-panel p,
.tech-card p,
.project-card p,
.timeline-item p,
.automation-board span {
  color: var(--muted);
  line-height: 1.62;
}

.solution-panel ul {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 18px 0 0;
  list-style: none;
  color: #333b48;
}

.solution-panel li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: var(--orange);
}

.mobility-board,
.dashboard-strip {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 22px;
  margin-top: 38px;
  padding: 22px;
}

.map-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  aspect-ratio: 850 / 554;
  background: #fff;
  display: block;
  box-shadow: 0 18px 48px rgba(28, 42, 58, 0.16);
}

.map-card img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.feature-list {
  display: grid;
  align-content: center;
  gap: 13px;
}

.feature-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: #333b48;
}

.feature-list i {
  color: var(--orange);
}

.tech-card {
  height: 100%;
  min-height: 176px;
  padding: 23px;
  transition: 0.22s ease;
}

.dashboard-strip {
  background: #fff;
}

.code-window,
.chart-window {
  min-height: 250px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #f9fafc;
}

.code-window {
  padding: 18px;
}

.code-window > span {
  display: inline-block;
  width: 11px;
  height: 11px;
  margin-right: 6px;
  border-radius: 50%;
  background: #ff6b00;
}

.code-window > span:nth-child(2) {
  background: #f7b267;
}

.code-window > span:nth-child(3) {
  background: #8d99ae;
}

.code-window pre {
  margin: 26px 0 0;
  color: #263241;
  white-space: pre-wrap;
}

.chart-window {
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 18px;
  padding: 32px;
}

.chart-window span {
  width: 42px;
  border-radius: 8px 8px 0 0;
  background: linear-gradient(180deg, var(--orange), #ffb482);
}

.automation-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.automation-board article {
  padding: 24px;
  transition: 0.22s ease;
}

.automation-board i {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--orange);
}

.automation-board strong,
.automation-board span {
  display: block;
}

.automation-board strong {
  margin-bottom: 8px;
}

.portfolio-hero {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.portfolio-hero img {
  width: 100%;
  filter: saturate(0.75) brightness(1.08);
}

.project-card {
  position: relative;
  min-height: 205px;
  padding: 26px;
  transition: 0.22s ease;
}

.project-card span {
  color: var(--orange-dark);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.testimonial-card {
  max-width: 760px;
  min-height: 306px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  padding: 40px 72px;
  text-align: center;
}

.avatar {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--orange);
  font-weight: 900;
}

.stars {
  color: var(--orange);
  letter-spacing: 2px;
}

.testimonial-card p {
  color: #333b48;
  font-size: 1.12rem;
  line-height: 1.68;
}

.testimonial-card span {
  color: var(--muted);
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(1) grayscale(1);
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.timeline-item {
  padding: 24px;
  transition: 0.22s ease;
}

.final-cta-box {
  padding: clamp(42px, 8vw, 84px);
  text-align: center;
  background:
    linear-gradient(135deg, #fff4ec, #ffffff 48%, #f6f7f9);
}

.final-cta-box h2 {
  margin: 18px auto;
  max-width: 820px;
  font-size: clamp(2.1rem, 4.6vw, 4.4rem);
  font-weight: 900;
}

.final-cta-box p {
  color: var(--muted);
  font-size: 1.12rem;
  margin-bottom: 26px;
}

.contact-points {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
  margin-top: 24px;
  color: #333b48;
}

.contact-points span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.contact-points i {
  color: var(--orange);
}

.site-footer {
  padding: 62px 0 28px;
  border-top: 1px solid var(--line);
  background: #111827;
  color: #fff;
}

.site-footer .brand-text,
.site-footer h3 {
  color: #fff;
}

.site-footer p,
.site-footer span,
.site-footer a {
  color: #c8ced8;
}

.site-footer h3 {
  margin-bottom: 16px;
  font-size: 1rem;
}

.site-footer a,
.site-footer span {
  display: block;
  margin-bottom: 10px;
}

.footer-brand {
  margin-bottom: 18px;
}

.social-links {
  display: flex;
  gap: 12px;
}

.social-links a {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.social-links a:hover {
  color: #fff;
  background: var(--orange);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 44px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.whatsapp-float,
.back-to-top {
  position: fixed;
  z-index: 20;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 0;
  color: #fff;
  box-shadow: 0 16px 32px rgba(28, 42, 58, 0.22);
}

.whatsapp-float {
  right: 22px;
  bottom: 22px;
  background: #25d366;
  font-size: 1.65rem;
}

.back-to-top {
  right: 22px;
  bottom: 88px;
  background: var(--navy);
  opacity: 0;
  visibility: hidden;
  transition: 0.25s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.reveal {
  opacity: 1;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@media (max-width: 1199px) {
  .timeline-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .navbar-collapse {
    margin-top: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
  }

  .hero-section {
    min-height: auto;
    padding-top: 132px;
  }

  .hero-banner {
    margin: 0 auto;
  }

  .metric-top {
    left: 8px;
  }

  .metric-bottom {
    right: 8px;
  }

  .mobility-board,
  .dashboard-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  html {
    scroll-padding-top: 74px;
  }

  .section-pad {
    padding: 78px 0;
  }

  .section-pad-sm {
    padding: 34px 0;
  }

  .hero-section {
    padding: 118px 0 58px;
  }

  .hero-title {
    font-size: clamp(2.1rem, 11vw, 3.35rem);
  }

  .hero-actions .btn {
    width: 100%;
  }

  .trust-row {
    grid-template-columns: 1fr;
  }

  .hero-banner {
    padding: 12px;
    border-radius: 18px;
  }

  .hero-image-wrap {
    border-radius: 14px;
  }

  .hero-image-wrap img {
    min-height: 320px;
  }

  .hero-metric,
  .hero-card {
    position: static;
    max-width: none;
    margin-top: 10px;
  }

  .automation-board,
  .timeline-grid {
    grid-template-columns: 1fr;
  }

  .testimonial-card {
    min-height: 300px;
    padding: 32px 24px;
  }

  .carousel-control-prev,
  .carousel-control-next {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .container {
    padding-left: 18px;
    padding-right: 18px;
  }

  .stat-card {
    padding: 22px 12px;
  }

  .solution-panel,
  .tech-card,
  .project-card,
  .timeline-item,
  .automation-board article {
    padding: 21px;
  }

  .tech-card {
    min-height: 168px;
  }

  .contact-points {
    align-items: center;
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .col-6 {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
