html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

:root {
  --navy: #060E2A;
  --navy-light: #0a1540;
  --blue: #5B8DEF;
  --fico: #7c5cff;
  --ink: #e8ecf4;
  --mute: #7a8bb0;
  --line: #1e2a54;
  --green: #33d39a;
}

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

/* Base styles */
body {
  background-color: var(--navy);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
}

/* Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Section vertical padding */
section {
  padding: 64px 0;
}

/* Typography scale */
h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
}

h2 {
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
}

/* Eyebrow labels */
.eyebrow {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Secondary/supporting text */
.text-mute {
  color: var(--mute);
}

/* Borders and dividers */
.border-line {
  border-color: var(--line);
}

/* Navigation Bar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  background-color: rgba(6, 14, 42, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(39, 53, 122, 0.6);
  height: 64px;
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.navbar__logo-img {
  width: 32px;
  height: 32px;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.navbar__link {
  color: var(--ink);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
}

.navbar__link:hover {
  color: var(--blue);
}

/* Body offset for fixed navbar */
body {
  padding-top: 64px;
}

/* Hero Section */
.hero {
  position: relative;
  background-color: var(--navy);
  padding: 72px 0 64px;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(61, 169, 255, 0.15) 0%, rgba(124, 92, 255, 0.1) 40%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero h1 {
  max-width: 700px;
  margin-bottom: 24px;
  color: var(--ink);
}

.hero-sub {
  font-size: 18px;
  color: var(--mute);
  max-width: 560px;
  margin-bottom: 0;
  line-height: 1.6;
}

.btn-cta {
  display: inline-block;
  padding: 14px 32px;
  background: linear-gradient(to right, var(--blue), var(--fico));
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: filter 0.2s ease;
}

.btn-cta:hover {
  filter: brightness(1.15);
}

/* Pillar Cards Section */
.pillars {
  padding: 64px 0;
}

.pillars__grid {
  display: flex;
  flex-direction: row;
  gap: 24px;
}

.pillar-card {
  flex: 1;
  background-color: var(--navy-light);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  transition: transform 250ms ease, box-shadow 250ms ease;
}

.pillar-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(61, 169, 255, 0.1);
}

.pillar-card__icon {
  width: 40px;
  height: 40px;
  color: var(--blue);
  margin-bottom: 16px;
}

.pillar-card h3 {
  margin-bottom: 12px;
  color: var(--ink);
}

.pillar-card p {
  font-size: 16px;
  line-height: 1.6;
}

/* About Section */
.about {
  padding: 64px 0;
}

.about .eyebrow {
  display: inline-block;
  color: var(--blue);
  margin-bottom: 12px;
}

.about h2 {
  margin-bottom: 24px;
}

.about__body {
  font-size: 17px;
  color: var(--mute);
  line-height: 1.6;
  max-width: 680px;
  margin-bottom: 32px;
}

.about__callout {
  border-left: 3px solid var(--blue);
  padding: 16px 24px;
  background-color: var(--navy-light);
  border-radius: 0 8px 8px 0;
}

.about__callout p {
  font-size: 16px;
  color: var(--ink);
  font-weight: 500;
  line-height: 1.6;
}

/* Footer */
.footer {
  background-color: rgba(6, 14, 42, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid rgba(39, 53, 122, 0.6);
  padding: 20px 0;
}

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

.footer__copyright {
  font-size: 15px;
  color: var(--mute);
}

.footer__location {
  font-size: 15px;
  color: var(--mute);
}

/* Contact Section */
.contact {
  padding: 64px 0;
}

.contact h2 {
  margin-bottom: 32px;
}

.contact__form {
  max-width: 560px;
}

.contact__field {
  display: flex;
  flex-direction: column;
  margin-bottom: 20px;
}

.contact__field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}

.contact__field input,
.contact__field textarea {
  background-color: var(--navy-light);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 16px;
  color: var(--ink);
  font-family: inherit;
  line-height: 1.5;
  transition: border-color 0.2s ease;
}

.contact__field input:focus,
.contact__field textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.contact__field textarea {
  resize: vertical;
}

.field-error {
  display: none;
  font-size: 13px;
  color: #ff5c5c;
  margin-top: 4px;
}

.field-error.visible {
  display: block;
}

.contact__submit {
  margin-top: 8px;
}

.contact__email {
  margin-top: 24px;
  color: var(--mute);
  font-size: 15px;
}

.contact__success {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(51, 211, 154, 0.12);
  border: 1px solid var(--green);
  border-radius: 8px;
  color: var(--green);
  font-size: 15px;
}

.contact__error-msg {
  margin-top: 16px;
  padding: 12px 16px;
  background: rgba(255, 92, 92, 0.12);
  border: 1px solid #ff5c5c;
  border-radius: 8px;
  color: #ff5c5c;
  font-size: 15px;
}

/* ===========================
   Mobile Breakpoint (< 768px)
   =========================== */
@media (max-width: 767px) {
  /* Hero section */
  .hero {
    padding: 72px 0 56px;
  }

  .hero h1 {
    font-size: 30px;
  }

  .hero-sub {
    font-size: 16px;
  }

  /* Section headlines */
  h2 {
    font-size: 26px;
  }

  /* Section vertical padding */
  section {
    padding: 56px 0;
  }

  .pillars {
    padding: 56px 0;
  }

  .about {
    padding: 56px 0;
  }

  .contact {
    padding: 56px 0;
  }

  /* Pillar cards stack vertically */
  .pillars__grid {
    flex-direction: column;
  }

  /* Footer stacks vertically, centered */
  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 8px;
  }

  /* Ensure body text minimum 14px */
  body {
    font-size: 16px;
  }

  .pillar-card p,
  .about__body,
  .about__callout p,
  .contact__field input,
  .contact__field textarea {
    font-size: 16px;
  }

  .footer__copyright,
  .footer__location {
    font-size: 14px;
  }
}
