:root {
  --navy: #062f6f;
  --navy-dark: #031a3d;
  --orange: #e44600;
  --black: #050505;
  --white: #ffffff;
  --steel: #d8dde3;
  --gray: #6f7782;
  --dark-gray: #171b20;
  --light-gray: #f3f5f7;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Inter", Arial, Helvetica, sans-serif;
  color: var(--dark-gray);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(3, 26, 61, 0.96), rgba(5, 5, 5, 0.90)),
    radial-gradient(circle at 82% 18%, rgba(228, 70, 0, 0.28), transparent 34%),
    var(--navy);
  color: var(--white);
  padding: 34px 6vw 72px;
  border-bottom: none;
}
.accent-period {
  color: var(--orange) !important;
}
/* Animated orange measurement bar */
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 5px;
  background:
    linear-gradient(
      90deg,
      var(--orange) 0%,
      var(--orange) 34%,
      #ff7a2f 47%,
      #ffffff 50%,
      #ff7a2f 53%,
      var(--orange) 66%,
      var(--orange) 100%
    );
  background-size: 220% 100%;
  animation: heroGaugeBar 5.5s ease-in-out infinite;
  z-index: 3;
  pointer-events: none;
}

/* Subtle background grid */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  opacity: 0.22;
  pointer-events: none;
  z-index: 0;
}

@keyframes heroGaugeBar {
  0% {
    background-position: 120% 0;
  }

  50% {
    background-position: 0% 0;
  }

  100% {
    background-position: -120% 0;
  }
}

.nav,
.hero-content {
  position: relative;
  z-index: 2;
}

.nav {
  max-width: 900px;
  margin: 0 auto 46px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.logo {
  width: clamp(220px, 22vw, 315px);
  height: auto;
  display: block;
}

.referral-tag {
  border: 1px solid rgba(255,255,255,0.28);
  padding: 8px 14px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 10px;
  font-weight: 700;
  color: var(--steel);
  white-space: nowrap;
  transform: translateY(2px);
  background: rgba(255,255,255,0.035);
}

.hero-content {
  max-width: 900px;
  margin: 0 auto;
}

.eyebrow,
.section-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 11px;
  font-weight: 800;
}

.eyebrow {
  color: var(--steel);
  margin-bottom: 16px;
}

.orange {
  color: var(--orange);
}

h1,
h2,
h3 {
  font-weight: 850;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 850px;
  font-size: clamp(42px, 5.8vw, 74px);
  line-height: 0.96;
  margin-bottom: 22px;
}

.subheadline {
  max-width: 720px;
  font-size: clamp(17px, 1.8vw, 21px);
  line-height: 1.55;
  font-weight: 450;
  color: #e6ebf0;
}

/* GENERAL SECTIONS */
.section {
  max-width: 1100px;
  margin: 0 auto;
  padding: 82px 6vw;
}

.section-label {
  color: var(--orange);
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.04;
  margin-bottom: 20px;
}

.intro p,
.dark-band p {
  max-width: 800px;
  font-size: 18px;
  font-weight: 450;
  color: var(--gray);
}

/* CARDS */
.grid-section {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 10px;
}

.card {
  background: var(--light-gray);
  border-top: 4px solid var(--orange);
  padding: 30px;
  min-height: 290px;
  box-shadow: 0 18px 40px rgba(5, 5, 5, 0.06);
}

.card span {
  color: var(--orange);
  font-weight: 900;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.card h3 {
  font-size: 24px;
  line-height: 1.1;
  margin: 18px 0 12px;
}

.card p {
  color: var(--gray);
  font-weight: 450;
}

/* DARK BAND */
.dark-band {
  background:
    linear-gradient(135deg, var(--black), #121820);
  color: var(--white);
}

.dark-band .section {
  padding-top: 88px;
  padding-bottom: 88px;
}

.dark-band h2 {
  max-width: 820px;
}

.dark-band p {
  color: var(--steel);
}

/* PREMIUM WHY SECTION */
.why {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 70px;
  align-items: start;
}

.why ul {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #f7f8fa;
  border-left: 5px solid var(--orange);
  box-shadow: 0 18px 40px rgba(5, 5, 5, 0.06);
}

.why li {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 16px;
  align-items: start;
  padding: 22px 28px;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.42;
  border-bottom: 1px solid #d9dde2;
}

.why li:last-child {
  border-bottom: none;
}

.why li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--orange);
  margin-top: 9px;
}

/* CONTACT PAGE */
.contact-hero {
  padding-bottom: 56px;
}

.contact-section {
  max-width: 820px;
}

.contact-form {
  max-width: 760px;
  margin: 0 auto;
  background: #f7f8fa;
  border-left: 5px solid var(--orange);
  box-shadow: 0 20px 50px rgba(5, 5, 5, 0.06);
  padding: 36px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-field {
  margin-bottom: 22px;
}

.form-field label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dark-gray);
  margin-bottom: 8px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid #cfd5dc;
  background: #ffffff;
  padding: 13px 14px;
  font: inherit;
  font-size: 15px;
  color: var(--dark-gray);
  transition: all 0.2s ease;
}

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(228, 70, 0, 0.12);
}

.hidden-field {
  display: none !important;
  position: absolute !important;
  left: -9999px !important;
  opacity: 0 !important;
  height: 0 !important;
  width: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

.submit-button {
  appearance: none;
  border: none;
  background: var(--orange);
  color: var(--white);
  padding: 14px 22px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-button:hover {
  transform: translateY(-1px);
  filter: brightness(0.95);
}

.field-error {
  border-color: var(--orange) !important;
  box-shadow: 0 0 0 3px rgba(228, 70, 0, 0.15) !important;
}

.error-message {
  display: block;
  color: var(--orange) !important;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-top: 6px;
  line-height: 1.4;
  opacity: 0;
  animation: fadeIn 0.25s ease forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

/* HIGH-END FOOTER */
footer {
  position: relative;
  background:
    linear-gradient(135deg, var(--navy-dark), #020b1a);
  color: var(--white);
  padding: 42px 6vw;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.09);
}

footer::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--orange);
}

.footer-brand {
  font-size: 13px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 650;
  color: rgba(255,255,255,0.86);
}

/* MOBILE */
@media (max-width: 850px) {
  .hero {
    padding: 24px 6vw 52px;
  }

  .nav {
    margin-bottom: 38px;
  }

  .nav-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
  }

  .logo {
    width: clamp(160px, 45vw, 210px);
  }

  .referral-tag {
    transform: translateY(1px);
    font-size: 9px;
    letter-spacing: 0.12em;
    padding: 6px 9px;
    white-space: nowrap;
  }

  .eyebrow,
  .section-label {
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  .eyebrow {
    margin-bottom: 14px;
  }

  h1 {
    font-size: clamp(32px, 9.5vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.02em;
    margin-bottom: 18px;
    max-width: 100%;
  }

  .hero-content {
    margin-top: 10px;
  }

  .subheadline {
    font-size: 16px;
    line-height: 1.5;
  }

  .section {
    padding: 68px 6vw;
  }

  .grid-section,
  .why {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .why ul {
    border-left: 4px solid var(--orange);
  }

  .why li {
    padding: 20px 22px;
    font-size: 16px;
  }

  .contact-section {
    max-width: 1100px;
  }

  .contact-form {
    max-width: none;
    padding: 28px 22px;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  footer {
    padding: 38px 6vw;
  }

  .footer-brand {
    font-size: 12px;
    letter-spacing: 0.18em;
  }
}

/* VERY SMALL PHONES */
@media (max-width: 390px) {
  .logo {
    width: 150px;
  }

  .referral-tag {
    font-size: 8px;
    padding: 5px 7px;
    letter-spacing: 0.1em;
  }

  h1 {
    font-size: 32px;
    line-height: 1.1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero::before,
  .error-message {
    animation: none;
  }
}
