:root {
  --primary-blue: #0544c7;
  --dark-text: #020f2b;
  --montserrat-text: #3e485d;
  --light-bg: #FAFAFA;
  --card-bg: #ffffff;
  --muted-border: #d3d9e5;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Montserrat", sans-serif;
  letter-spacing: -0.08em;
  background: var(--light-bg);
  color: var(--montserrat-text);
}

img {
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: var(--dark-text);
  font-weight: 800;
  letter-spacing: -0.05em;
}

.brand-logo {
  width: 180px;
  height: auto;
  display: block;
}

.display-title,
.value-title,
.contact-title,
h3 {
  font-family: "Bowlby One SC", sans-serif;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0;
}

.hero {
  padding-top: 32px;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.top-nav {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
}

.top-nav a {
  text-decoration: none;
  color: var(--montserrat-text);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: -0.03em;
}

.top-nav a:hover {
  color: var(--primary-blue);
}

.hero-content {
  text-align: center;
  margin-top: 40px;
}

.display-title {
  font-size: clamp(2rem, 5vw, 3.8rem);
  color: var(--primary-blue);
}

.hero-dark-phrase {
  color: var(--dark-text);
}

.hero-subtext {
  max-width: 700px;
  margin: 1rem auto 1.5rem;
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 0;
  border-radius: 3px;
  background: var(--primary-blue);
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  padding: 1.2rem 1rem;
  cursor: pointer;
  transition: transform 180ms ease;
}

.btn span {
  transition: transform 180ms ease;
}

.btn:hover {
  transform: scale(1.03);
}

.btn:hover span {
  transform: translateX(3px);
}

.hero-visual {
  width: min(620px, 100%);
  margin: 2.2rem auto 0;
}

.hero-visual img {
  width: 100%;
  display: block;
}

.value-title {
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3.5vw, 2.5rem);
}

.value-title .accent {
  color: var(--primary-blue);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}

.service-card {
  border-radius: 6px;
  border: 1px solid #eceff5;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 1.75rem;
  gap: 1.5rem;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(8, 25, 66, 0.08);
}

.service-card:nth-child(odd) {
  background: #f5f5f5;
}

.service-card:nth-child(even) {
  background: #edf1ff;
}

.service-card:nth-child(even) .service-copy {
  order: 2;
}

.service-card:nth-child(even) .service-visual {
  order: 1;
}

.service-copy h3 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 0.8rem;
  text-transform: uppercase;
  line-height: 1.2;
}

.service-copy p {
  margin: 0;
  letter-spacing: -0.03em;
  font-size: 1.06rem;
  line-height: 1.38;
  max-width: 470px;
}

.service-visual {
  border-radius: 2px;
  min-height: 220px;
  width: 100%;
  object-fit: contain;
  object-position: center;
  border: 0;
}

.platform-marquee {
  display: flex;
  overflow: hidden;
  gap: 0;
  width: 100%;
}

.platform-track {
  display: flex;
  gap: 0;
  width: max-content;
  flex-wrap: nowrap;
  animation: platform-marquee 16s linear infinite;
  will-change: transform;
}

.platform-marquee:hover .platform-track {
  animation-play-state: paused;
}

.platform-logo {
  flex: 0 0 auto;
  min-width: auto;
  display: grid;
  place-items: center;
  padding: 0;
  filter: grayscale(100%);
  transition: filter 200ms ease, transform 200ms ease;
}

.platform-logo:hover {
  filter: grayscale(0);
  transform: translateY(-2px);
}

.platform-logo img {
  width: 300px;
  height: 200px;
  object-fit: contain;
}

@keyframes platform-marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

.contact-title {
  font-size: clamp(1.35rem, 4vw, 2.2rem);
  margin-bottom: 1rem;
}

.contact-title-accent {
  color: var(--primary-blue);
}

.lead-form {
  display: grid;
  gap: 0.9rem;
  width: 100%;
  max-width: 100%;
}

.lead-form label {
  font-family: "Bowlby One SC", sans-serif;
  font-weight: 400;
  font-size: 1.82rem;
  color: #3e485d;
  letter-spacing: -0.02em;
}

.lead-form input,
.lead-form select {
  border: 1px solid #9aa9c7;
  border-radius: 3px;
  font-family: "Bowlby One SC", sans-serif;
  font-size: 0.82rem;
  color: #3e485d;
  width: 100%;
  min-height: 100px;
  padding: 3rem 3rem;
  letter-spacing: -0.02em;
}

.lead-form input:focus,
.lead-form select:focus {
  outline: 2px solid rgba(5, 68, 199, 0.2);
  border-color: var(--primary-blue);
}

.lead-form .btn {
  justify-self: start;
  width: auto;
  padding: 1.45rem 1.45rem;
  font-size: 1.05rem;
}

.form-error {
  min-height: 1.1rem;
  color: #b10000;
  font-weight: 600;
  margin: 0;
  letter-spacing: -0.03em;
}

.footer {
  background: #001a52;
  color: #fff;
  padding: 40px 0 10px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: start;
}

.footer-brand {
  color: #fff;
}

.footer-left .brand-logo {
  width: 132px;
  filter: brightness(0) invert(1);
}

.footer-copy {
  max-width: 440px;
  margin: 0.8rem 0 0;
  font-size: 0.84rem;
  line-height: 1.2;
  color: #f5f7ff;
  letter-spacing: -0.03em;
}

.footer-right {
  display: grid;
  gap: 1rem;
  justify-items: start;
}

.footer-cta {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  font-family: "Bowlby One SC", sans-serif;
  letter-spacing: -0.03em;
  font-size: clamp(1.05rem, 2vw, 1.8rem);
  line-height: 1.2;
}

.footer-arrow {
  font-size: 1.9rem;
  line-height: 1;
}

.socials {
  display: inline-flex;
  gap: 0.8rem;
}

.socials a {
  width: auto;
  height: auto;
  display: grid;
  place-items: center;
  text-decoration: none;
}

.socials img {
  width: 1.12rem;
  height: 1.12rem;
  filter: brightness(0) invert(1);
}

.copyright {
  text-align: center;
  margin: 1.45rem 0 0;
  font-size: 0.68rem;
  letter-spacing: -0.03em;
  color: #e6ebff;
  opacity: 0.95;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.copyright-separator {
  opacity: 0.8;
}

.copyright-link {
  color: #ffffff;
  text-decoration: none;
  margin-left: 0.2rem;
}

.copyright-link:hover {
  text-decoration: underline;
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 500ms ease, transform 500ms ease;
}

[data-animate].in-view {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  body {
    font-size: 22px;
  }

  .display-title {
    font-size: clamp(2.6rem, 6vw, 3.3rem);
    line-height: 1.2;
  }

  .value-title {
    font-size: clamp(2.4rem, 5.5vw, 3.2rem);
    line-height: 1.2;
  }

  .section {
    padding: 64px 0;
  }

  .hero-visual {
    width: min(660px, 100%);
  }

  .service-copy h3 {
    font-size: clamp(1.8rem, 3vw, 2.2rem);
  }

  .service-copy p {
    font-size: 1rem;
  }

  .platform-logo {
    min-width: 100px;
  }

  .platform-logo img {
    width: 260px;
    height: 210px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .footer-cta {
    font-size: 1.2rem;
  }
}

@media (min-width: 1025px) {
  body {
    font-size: 24px;
  }

  .display-title,
  .value-title {
    font-size: 56px;
    line-height: 70px;
  }
}

@media (max-width: 767px) {
  .section {
    padding: 56px 0;
  }

  .display-title {
    font-size: clamp(2.3rem, 9vw, 2.9rem);
    line-height: 1.2;
  }

  .value-title {
    font-size: clamp(2rem, 7.5vw, 2.5rem);
    line-height: 1.2;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    grid-template-columns: 1fr;
    padding: 1.35rem;
    gap: 1.1rem;
  }

  .service-card:nth-child(even) .service-copy,
  .service-card:nth-child(even) .service-visual {
    order: initial;
  }

  .service-visual {
    min-height: 170px;
  }

  .service-copy h3 {
    font-size: 1.65rem;
  }

  .service-copy p {
    font-size: 1rem;
  }

  .platform-logo {
    min-width: 160px;
  }

  .platform-logo img {
    width: 180px;
    height: 150px;
  }

  .brand-logo {
    width: 140px;
  }

  .hero-top {
    flex-wrap: wrap;
  }

  .top-nav a {
    font-size: 0.9rem;
  }
}
