:root {
  --hipt-ink: #102033;
  --hipt-navy: #143a5a;
  --hipt-blue: #1769aa;
  --hipt-teal: #11a79f;
  --hipt-green: #48b75b;
  --hipt-amber: #f6b642;
  --hipt-coral: #ee6b5f;
  --hipt-sky: #eaf6fb;
  --hipt-mint: #eaf8ef;
  --hipt-cream: #fff8ea;
  --hipt-paper: #ffffff;
  --hipt-soft: #f5f8fb;
  --hipt-line: #dce8ef;
  --hipt-muted: #5d6f7f;
  --hipt-shadow: 0 18px 50px rgba(16, 32, 51, 0.12);
  --hipt-shadow-soft: 0 12px 30px rgba(16, 32, 51, 0.08);
  --hipt-radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--hipt-ink);
  background: var(--hipt-paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  overflow-x: hidden;
}

a {
  color: var(--hipt-blue);
  text-decoration: none;
}

a:hover {
  color: var(--hipt-teal);
}

img {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -5rem;
  z-index: 1100;
  padding: .75rem 1rem;
  background: var(--hipt-ink);
  color: #fff;
  border-radius: var(--hipt-radius);
}

.skip-link:focus {
  top: 1rem;
}

.site-navbar {
  min-height: 76px;
  transition: background-color .25s ease, box-shadow .25s ease, min-height .25s ease;
}

.site-navbar.navbar-scrolled {
  min-height: 66px;
  box-shadow: 0 12px 28px rgba(16, 32, 51, .08);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: var(--hipt-ink);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  display: block;
  width: min(235px, 52vw);
  height: 54px;
  object-fit: contain;
  object-position: left center;
  border-radius: 6px;
  background: #fff;
}

.footer .brand-logo {
  width: min(250px, 70vw);
  height: 58px;
  padding: .25rem .4rem;
}

.brand-mark {
  display: inline-grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--hipt-blue), var(--hipt-teal) 60%, var(--hipt-green));
  box-shadow: 0 10px 22px rgba(17, 167, 159, .25);
}

.brand-name {
  display: block;
  font-size: 1.05rem;
  line-height: 1;
}

.brand-subline {
  display: block;
  margin-top: .2rem;
  color: var(--hipt-muted);
  font-size: .72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.navbar-nav .nav-link {
  color: var(--hipt-ink);
  font-weight: 650;
  padding-inline: .8rem !important;
}

.navbar-nav .nav-link.active,
.navbar-nav .nav-link.show {
  color: var(--hipt-teal);
}

.btn {
  border-radius: 7px;
  font-weight: 750;
  letter-spacing: 0;
}

.btn-brand {
  --bs-btn-color: #fff;
  --bs-btn-bg: var(--hipt-blue);
  --bs-btn-border-color: var(--hipt-blue);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: #0f5a93;
  --bs-btn-hover-border-color: #0f5a93;
  --bs-btn-focus-shadow-rgb: 23, 105, 170;
}

.btn-accent {
  --bs-btn-color: #102033;
  --bs-btn-bg: var(--hipt-amber);
  --bs-btn-border-color: var(--hipt-amber);
  --bs-btn-hover-color: #102033;
  --bs-btn-hover-bg: #e7a62b;
  --bs-btn-hover-border-color: #e7a62b;
}

.btn-outline-brand {
  --bs-btn-color: var(--hipt-blue);
  --bs-btn-border-color: rgba(23, 105, 170, .35);
  --bs-btn-hover-color: #fff;
  --bs-btn-hover-bg: var(--hipt-blue);
  --bs-btn-hover-border-color: var(--hipt-blue);
}

.section-padding {
  padding: 96px 0;
}

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

.section-sky {
  background: var(--hipt-sky);
}

.section-mint {
  background: var(--hipt-mint);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  margin-bottom: .8rem;
  color: var(--hipt-blue);
  font-size: .78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  background: var(--hipt-amber);
}

.section-title {
  max-width: 780px;
  margin-bottom: 1rem;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: 0;
}

.section-copy {
  max-width: 760px;
  color: var(--hipt-muted);
  font-size: 1.05rem;
}

.page-hero,
.home-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 62vh;
  padding: 136px 0 72px;
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}

.home-hero {
  min-height: 92vh;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(9, 28, 48, .64);
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1rem;
  color: #dff8f3;
  font-size: .8rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero-kicker i {
  color: var(--hipt-amber);
}

.hero-title {
  max-width: 850px;
  margin-bottom: 1.15rem;
  color: #f8fbff;
  font-size: clamp(2.3rem, 5.2vw, 4.8rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow: 0 16px 38px rgba(0, 0, 0, .34);
}

.hero-title span {
  color: #ffc44f;
  white-space: nowrap;
}

.page-hero .hero-title {
  font-size: clamp(2.2rem, 4.4vw, 4rem);
}

.hero-copy {
  max-width: 720px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(1rem, 1.55vw, 1.18rem);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 2rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 3rem;
}

.hero-meta-item {
  min-width: 150px;
  padding: .9rem 1rem;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: var(--hipt-radius);
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(14px);
}

.hero-meta-value {
  display: block;
  font-size: 1.4rem;
  font-weight: 850;
}

.hero-meta-label {
  display: block;
  color: rgba(255, 255, 255, .72);
  font-size: .83rem;
}

.media-frame {
  overflow: hidden;
  border-radius: var(--hipt-radius);
  background: #dfeaf0;
  box-shadow: var(--hipt-shadow);
}

.media-frame img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.service-card,
.feature-card,
.stat-card,
.process-step,
.contact-tile,
.part-card,
.timeline-item,
.metric-tile {
  height: 100%;
  border: 1px solid var(--hipt-line);
  border-radius: var(--hipt-radius);
  background: var(--hipt-paper);
  box-shadow: 0 1px 0 rgba(16, 32, 51, .04);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.service-card:hover,
.feature-card:hover,
.contact-tile:hover,
.part-card:hover {
  transform: translateY(-4px);
  border-color: rgba(17, 167, 159, .38);
  box-shadow: var(--hipt-shadow-soft);
}

.icon-circle {
  display: inline-grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 8px;
  color: var(--hipt-blue);
  background: var(--hipt-sky);
  font-size: 1.35rem;
}

.icon-circle.teal {
  color: var(--hipt-teal);
  background: #e2f7f4;
}

.icon-circle.green {
  color: var(--hipt-green);
  background: var(--hipt-mint);
}

.icon-circle.amber {
  color: #9b6800;
  background: var(--hipt-cream);
}

.icon-circle.coral {
  color: var(--hipt-coral);
  background: #fff0ee;
}

.check-list {
  display: grid;
  gap: .7rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: .6rem;
  color: var(--hipt-muted);
}

.check-list i {
  flex: 0 0 auto;
  color: var(--hipt-green);
}

.metric-tile {
  padding: 1.2rem;
}

.metric-value {
  display: block;
  color: var(--hipt-blue);
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  font-weight: 900;
  line-height: 1;
}

.metric-label {
  color: var(--hipt-muted);
  font-weight: 650;
}

.cta-band {
  border-radius: var(--hipt-radius);
  color: #fff;
  background: #102033;
  box-shadow: var(--hipt-shadow);
}

.cta-band p {
  color: rgba(255, 255, 255, .78);
}

.app-visual {
  aspect-ratio: 16 / 10;
}

.app-visual img {
  min-height: 100%;
}

.badge-soft {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .45rem .65rem;
  border-radius: 999px;
  color: var(--hipt-blue);
  background: var(--hipt-sky);
  font-size: .8rem;
  font-weight: 800;
}

.footer {
  color: rgba(255, 255, 255, .76);
  background: #0d1d2c;
}

.footer a {
  color: rgba(255, 255, 255, .76);
}

.footer a:hover {
  color: #fff;
}

.footer-title {
  color: #fff;
  font-size: .95rem;
  font-weight: 850;
  text-transform: uppercase;
}

.footer-list {
  display: grid;
  gap: .45rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.social-link {
  display: inline-grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  color: #fff;
}

.social-link:hover {
  background: var(--hipt-teal);
  border-color: var(--hipt-teal);
}

.footer-credit {
  color: rgba(255, 255, 255, .84);
}

.footer-credit a {
  color: #fff;
  font-weight: 800;
}

.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1050;
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--hipt-blue);
  box-shadow: var(--hipt-shadow-soft);
}

.back-to-top.is-visible {
  display: inline-grid;
  place-items: center;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}

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

.hover-lift {
  transition: transform .22s ease, box-shadow .22s ease;
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--hipt-shadow-soft);
}

.form-control,
.form-select {
  border-color: var(--hipt-line);
  border-radius: 7px;
  min-height: 48px;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--hipt-teal);
  box-shadow: 0 0 0 .2rem rgba(17, 167, 159, .16);
}

.alert {
  border-radius: var(--hipt-radius);
}

@media (max-width: 991.98px) {
  .navbar-collapse {
    padding: 1rem 0;
  }

  .site-navbar {
    min-height: 68px;
  }

  .home-hero,
  .page-hero {
    min-height: auto;
    padding: 112px 0 64px;
  }

  .section-padding {
    padding: 72px 0;
  }
}

@media (min-width: 992px) {
  .footer .row.g-4 {
    align-items: flex-start;
    justify-content: space-between;
  }

  .footer .row.g-4 > .col-lg-4:first-child {
    flex: 0 0 34%;
    max-width: 34%;
  }

  .footer .row.g-4 > .col-6.col-lg-2 {
    flex: 0 0 22%;
    max-width: 22%;
    text-align: center;
  }

  .footer .row.g-4 > .col-lg-3:last-child {
    flex: 0 0 38%;
    max-width: 38%;
    margin-left: auto;
    text-align: right;
  }

  .footer .row.g-4 > .col-lg-3:last-child .footer-list {
    justify-items: end;
  }

  .footer .row.g-4 > .col-lg-3:last-child .footer-list li,
  .footer .row.g-4 > .col-lg-3:last-child .footer-list a {
    display: inline-flex;
    justify-content: flex-end;
    align-items: baseline;
    gap: .35rem;
    text-align: right;
  }
}

@media (max-width: 575.98px) {
  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .brand-name {
    font-size: .98rem;
  }

  .brand-subline {
    display: none;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .hero-meta-item {
    width: 100%;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}
