* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: #22303b;
  background: #f6f3ed;
  line-height: 1.6;
}

.container {
  width: min(1180px, 88%);
  margin: 0 auto;
}

.narrow { width: min(780px, 88%); }
.center { text-align: center; }

.hero {
  position: relative;
  min-height: 760px;
  height: 100svh;
  max-height: 920px;
  background: url("massoud-costa.jpeg") center 46% / cover no-repeat;
  color: #fff;
  overflow: hidden;
}

.overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      rgba(8, 26, 42, .88) 0%,
      rgba(8, 26, 42, .70) 34%,
      rgba(8, 26, 42, .30) 61%,
      rgba(8, 26, 42, .08) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 760px;
  max-height: 920px;
  padding: 34px 0 30px;
  display: grid;
  grid-template-rows: auto 1fr;
}

.brand-zone {
  justify-self: end;
  width: min(34vw, 470px);
  text-align: right;
  padding-top: 4px;
}

.wordmark {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,.24));
}

.powered-mark {
  display: block;
  width: 42%;
  max-width: 190px;
  min-width: 135px;
  margin: 8px 0 0 auto;
  height: auto;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.20));
}

.hero-copy {
  align-self: center;
  max-width: 620px;
  padding: 10px 0 20px;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.8rem, 5vw, 5.3rem);
  line-height: .98;
  letter-spacing: -.05em;
  font-weight: 800;
}

.lead {
  max-width: 610px;
  margin: 0 0 26px;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.55;
  color: rgba(255,255,255,.92);
}

.cta {
  display: inline-block;
  padding: 12px 20px;
  background: rgba(255,255,255,.96);
  color: #173149;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
}

.section { padding: 88px 0; }
.light { background: #f8f6f1; }
.sand { background: #d8c8b5; }
.dark { background: #173149; color: #fff; }

.eyebrow {
  margin: 0 0 12px;
  color: #8a6d57;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .18em;
}

.dark .eyebrow { color: #dcbf9d; }

h2 {
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -.04em;
}

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

.card {
  padding: 28px;
  background: rgba(248,246,241,.96);
  border: 1px solid rgba(40,55,65,.08);
  border-radius: 18px;
}

.card h3 {
  margin-top: 0;
  color: #173149;
}

footer {
  padding: 22px 0;
  background: #0f2232;
  color: #d6dde2;
  font-size: .9rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

@media (max-width: 960px) {
  .brand-zone { width: min(44vw, 400px); }
  .hero-copy h1 { font-size: clamp(3rem, 9vw, 5rem); }
}

@media (max-width: 680px) {
  .container { width: min(92%, 1180px); }

  .hero {
    min-height: 740px;
    height: auto;
    max-height: none;
    background-position: 60% center;
  }

  .hero-content {
    min-height: 740px;
    max-height: none;
    padding-top: 22px;
  }

  .brand-zone { width: min(76vw, 350px); }
  .powered-mark { width: 47%; min-width: 120px; }
  .hero-copy { max-width: 100%; }
  .hero-copy h1 { font-size: clamp(2.8rem, 14vw, 4.6rem); }
  .grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
