:root {
  color-scheme: light;
  --gray-50: #f9fafb;
  --gray-200: #e5e7eb;
  --gray-400: #9ca3af;
  --gray-600: #4b5563;
  --gray-900: #111827;
  --blue-100: #dbeafe;
  --blue-300: #93c5fd;
  --blue-600: #2563eb;
  --blue-700: #1d4ed8;
  --blue-900: #1e3a8a;
  --nav-height: 4rem;
  --max-width: 80rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--gray-600);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji", sans-serif;
  font-size: 1rem;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3 {
  color: var(--gray-900);
  font-weight: 700;
  margin: 0;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--blue-600);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: #fff;
  color: var(--gray-900);
  border-radius: 0.5rem;
}

.skip-link:focus {
  top: 0.75rem;
}

.wrap {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-height);
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
}

.nav-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 1.5rem;
}

.logo {
  display: block;
  height: 2.5rem;
  width: auto;
}

.nav-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 1.375rem;
  height: 2px;
  background: var(--gray-900);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-menu a {
  color: var(--gray-600);
  transition: color 0.2s ease;
}

.nav-menu a:hover {
  color: var(--gray-900);
}

.hero {
  position: relative;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  left: 0;
  width: 100%;
  top: -30%;
  height: 160%;
  will-change: transform;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    to right,
    rgb(30 58 138 / 0.9) 0%,
    rgb(30 58 138 / 0.7) 50%,
    transparent 100%
  );
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  height: 100%;
  padding-top: var(--nav-height);
}

.hero-copy {
  max-width: 42rem;
}

.hero-copy h1 {
  color: #fff;
  font-size: 2.5rem;
  line-height: 1.15;
  font-weight: 700;
}

.hero-fade p {
  margin-top: 1.5rem;
  color: var(--blue-100);
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.button {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 1rem 2rem;
  background: var(--blue-600);
  color: #fff;
  border-radius: 0.5rem;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  background: var(--blue-700);
  transform: scale(1.05);
}

.button:active {
  transform: scale(0.95);
}

.hero-copy {
  animation: hero-in 0.8s ease 0.2s both;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.section {
  padding-block: 8rem;
}

#solutions,
#contact,
#home {
  scroll-margin-top: var(--nav-height);
}

.intro {
  max-width: 48rem;
  margin-inline: auto;
  text-align: center;
}

.intro h2,
.section-header h2 {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.intro p,
.section-header p {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.intro p {
  margin-top: 1.5rem;
  line-height: 1.625;
}

.section-header {
  text-align: center;
}

.section-header p {
  margin-top: 1rem;
}

.solutions {
  background: var(--gray-50);
}

.solutions .section-header {
  margin-bottom: 5rem;
}

.solutions-grid,
.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-grid {
  max-width: 64rem;
  margin-inline: auto;
}

.solution-card,
.contact-card {
  border-radius: 0.75rem;
  padding: 2rem;
}

.solution-card {
  background: #fff;
  border: 1px solid var(--gray-200);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.solution-card:hover {
  transform: translateY(-8px);
  border-color: var(--blue-300);
}

.solution-card h3 {
  margin: 0 0 0.75rem;
  font-size: 1.5rem;
  line-height: 2rem;
  font-weight: 600;
}

.solution-card p,
.contact-card p {
  line-height: 1.625;
}

.contact .section-header {
  margin-bottom: 4rem;
}

.contact-card {
  background: var(--gray-50);
  text-align: center;
}

.contact-card > * + * {
  margin-top: 1rem;
}

.contact-card h3 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
}

.contact-card a {
  overflow-wrap: anywhere;
  transition: color 0.2s ease;
}

.contact-card a:hover {
  color: var(--blue-600);
}

.icon {
  display: block;
  width: 3rem;
  height: 3rem;
  color: var(--blue-600);
}

.solution-card .icon {
  margin-bottom: 1rem;
}

.contact-card .icon {
  margin-inline: auto;
}

.footer {
  padding-block: 3rem;
  background: var(--gray-900);
  color: var(--gray-400);
  text-align: center;
}

.motion .reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.motion .solutions-grid .reveal:nth-child(2),
.motion .contact-grid .reveal:nth-child(2) {
  transition-delay: 0.1s;
}

.motion .solutions-grid .reveal:nth-child(3),
.motion .contact-grid .reveal:nth-child(3) {
  transition-delay: 0.2s;
}

.motion .contact-grid .reveal:nth-child(1) {
  transition-delay: 0.1s;
}

.motion .contact-grid .reveal:nth-child(2) {
  transition-delay: 0.2s;
}

.motion .contact-grid .reveal:nth-child(3) {
  transition-delay: 0.3s;
}

.motion .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.motion .solution-card.is-visible:hover {
  transform: translateY(-8px);
}

@media (max-width: 767px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1.5rem 1rem;
    background: #fff;
    border-bottom: 1px solid var(--gray-200);
    box-shadow: 0 10px 20px rgb(17 24 39 / 0.06);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding-block: 0.85rem;
  }
}

@media (max-width: 380px) {
  .logo {
    height: 2rem;
  }
}

@media (min-width: 480px) {
  .hero-copy h1 {
    font-size: 3.75rem;
    line-height: 1.1;
  }
}

@media (min-width: 768px) {
  .hero-copy h1 {
    font-size: 4.5rem;
  }

  .hero-fade p {
    font-size: 1.5rem;
    line-height: 2rem;
  }

  .intro h2,
  .section-header h2 {
    font-size: 3rem;
    line-height: 1;
  }

  .solutions-grid,
  .contact-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .hero-copy,
  .nav-toggle span,
  .button,
  .solution-card,
  .nav-menu a,
  .contact-card a {
    animation: none;
    transition: none;
  }

  .button:hover,
  .button:active,
  .solution-card:hover,
  .motion .solution-card.is-visible:hover {
    transform: none;
  }

  .hero-media {
    transform: none !important;
  }
}
