/* ==========================================================================
   Local Font Definitions (.ttf files in /fonts directory)
   ========================================================================== */
@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/IBMPlexSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/IBMPlexSans-Medium.ttf') format('truetype');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/IBMPlexSans-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'IBM Plex Sans';
  src: url('fonts/IBMPlexSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

/* ==========================================================================
   Base & Reset Styles
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #1a233a;
  background-color: #ffffff;
  font-size: 22px;
  line-height: 32px;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   Global Typography Scale
   ========================================================================== */
h1, .h1 {
  font-size: 48px;
  line-height: 56px;
  font-weight: 600;
}

h2, .h2 {
  font-size: 38px;
  line-height: 46px;
  font-weight: 600;
}

h3, .h3 {
  font-size: 38px;
  line-height: 38px;
  font-weight: 600;
}

p, .body-text {
  font-size: 22px;
  line-height: 32px;
  font-weight: 400;
}

.caption, .small-text {
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.button, .label, input, button {
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
}

/* ==========================================================================
   Responsive Grid Container Setup
   Total Canvas: 1440px
   Desktop Outer Padding: 160px (Left & Right)
   ========================================================================== */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding-left: clamp(24px, 10vw, 160px);
  padding-right: clamp(24px, 10vw, 160px);
}

/* ==========================================================================
   Header Section
   Top Padding: 48px above logo
   Bottom Padding: 40px below logo
   ========================================================================== */
.header {
  background-color: #ffffff;
  padding-top: 48px;
  padding-bottom: 40px;
}

.header-container {
  display: flex;
  align-items: center;
}

.logo-link {
  display: inline-block;
  line-height: 0;
}

.logo-img {
  width: 255px;
  height: 63px;
  max-width: 100%;
  object-fit: contain;
  display: block;
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
  position: relative;
  background-color: #0066ff;
  background-image: url('images/hero-bg.svg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  color: #ffffff;
  min-height: 580px;
  display: flex;
  align-items: center;
  padding: 80px 0;
}

.hero-content {
  max-width: 680px;
}

/* Hero Title: 72px Semi-Bold with 80px Line Height */
.hero-title {
  font-size: 72px;
  line-height: 80px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 28px;
  color: #ffffff;
}

/* Hero Paragraph: 22px Regular with 32px Line Height */
.hero-description {
  font-size: 22px;
  line-height: 32px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
}

/* ==========================================================================
   Features Section (6 Columns / 6 Columns Split)
   ========================================================================== */
.features {
  background-color: #ffffff;
  padding-top: 40px;
  padding-bottom: 90px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 20px; /* 20px gutter */
}

/* Feature Title (H2): 38px Semi-Bold with 46px Line Height, Color #003FD1 */
.feature-title {
  font-size: 38px;
  line-height: 46px;
  font-weight: 600;
  color: #003FD1;
  margin-bottom: 20px;
}

/* Feature Text: 22px Regular with 32px Line Height, Color #003FD1 */
.feature-text {
  font-size: 22px;
  line-height: 32px;
  font-weight: 400;
  color: #003FD1;
  max-width: 520px;
}

/* ==========================================================================
   Contact Section (6 Columns / 6 Columns Split)
   ========================================================================== */
.contact {
  background-color: #00a3ff;
  color: #ffffff;
  padding-top: 40px;
  padding-bottom: 80px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: 20px;
  align-items: start;
}

/* Contact Title (H2): 38px Semi-Bold with 46px Line Height */
.contact-title {
  font-size: 38px;
  line-height: 46px;
  font-weight: 600;
  margin-bottom: 20px;
}

/* Contact Paragraph: 22px Regular with 32px Line Height */
.contact-description {
  font-size: 22px;
  line-height: 32px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.95);
  max-width: 480px;
}

.contact-form-wrapper {
  /* Offset by -16px to align input placeholder text baseline with paragraph first-line baseline */
  margin-top: calc(38px + 20px - 16px);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
  width: 100%;
}

.form-group {
  width: 100%;
}

/* Form Inputs: 360px width, 18px Regular with 24px Line Height */
.form-group input {
  width: 360px;
  max-width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: 4px;
  background-color: rgba(255, 255, 255, 0.45);
  color: #002b80;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  outline: none;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.85);
}

.form-group input:focus {
  background-color: rgba(255, 255, 255, 0.65);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.9);
}

/* Button: Default state with invisible border matching hover border width */
.submit-btn {
  padding: 12px 56px;
  background-color: #ffffff;
  color: #0088ff;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 18px;
  line-height: 24px;
  font-weight: 400;
  border: 2px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

/* Button Hover: #00A6F9 background, white border, white text */
.submit-btn:hover {
  background-color: #00A6F9;
  color: #ffffff;
  border-color: #ffffff;
}

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

/* ==========================================================================
   Footer Section
   Background Color: #0032A8
   Captions/Footer: 16px Regular with 24px Line Height
   ========================================================================== */
.footer {
  background-color: #0032A8;
  color: #ffffff;
  padding: 24px 0;
  font-size: 16px;
  line-height: 24px;
  font-weight: 400;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-link {
  color: #ffffff;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.footer-link:hover {
  opacity: 0.8;
}

/* ==========================================================================
   Responsive Adaptations (Tablet & Mobile Scale)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 52px;
    line-height: 60px;
  }
}

/* Tablet Breakpoint (481px to 768px): Single column layout with fixed 360px left-aligned inputs/button */
@media (max-width: 768px) {
  .header {
    padding-top: 32px;
    padding-bottom: 24px;
  }

  .logo-img {
    width: 200px;
    height: auto;
  }

  .hero {
    padding: 60px 0;
    min-height: auto;
  }

  .hero-title {
    font-size: 40px;
    line-height: 48px;
    margin-bottom: 20px;
  }

  .hero-title br {
    display: inline;
  }

  .hero-description,
  .feature-text,
  .contact-description {
    font-size: 18px;
    line-height: 28px;
  }

  .feature-title,
  .contact-title {
    font-size: 30px;
    line-height: 38px;
  }

  .features {
    padding-top: 40px;
    padding-bottom: 60px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    row-gap: 40px;
  }

  .contact {
    padding-top: 40px;
    padding-bottom: 60px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
    row-gap: 30px;
  }

  .contact-form-wrapper {
    margin-top: 0;
  }

  .form-group input {
    width: 360px;
    max-width: 100%;
  }

  .submit-btn {
    width: auto;
    max-width: 100%;
  }
}

/* Mobile Breakpoint (480px and below): Stretches inputs/button full width */
@media (max-width: 480px) {
  .header {
    padding-top: 24px;
    padding-bottom: 20px;
  }

  .logo-img {
    width: 170px;
    height: auto;
  }

  .hero-title {
    font-size: 32px;
    line-height: 40px;
  }

  .footer-container {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .form-group input {
    width: 100%;
  }

  .submit-btn {
    width: 100%;
    text-align: center;
  }
}