:root {
  --green-dark: #0b3d2e;
  --green: #1e7a53;
  --green-bright: #58b832;
  --ink: #17211d;
  --muted: #5d6b64;
  --surface: #ffffff;
  --surface-soft: #f4f8f5;
  --border: #dfe9e2;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(calc(100% - 40px), var(--max-width));
  margin-inline: auto;
}

.narrow {
  max-width: 760px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(223, 233, 226, 0.9);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand img {
  width: 300px;
  max-height: 90px;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  gap: 34px;
  font-size: 0.95rem;
  font-weight: 600;
}

.site-nav a {
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--green);
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 740px;
  display: flex;
  align-items: center;
  padding: 82px 0 86px;
  background:
    linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.98) 0%,
      rgba(255, 255, 255, 0.92) 30%,
      rgba(255, 255, 255, 0.56) 54%,
      rgba(255, 255, 255, 0.08) 78%,
      rgba(255, 255, 255, 0) 100%
    ),
    url("assets/forewin-hero-wide.png") center / cover no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, rgba(246, 250, 247, 0.92));
  pointer-events: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  gap: 56px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 24px;
  font-size: clamp(3rem, 6.6vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h1 span {
  color: var(--green-bright);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

h3 {
  margin-bottom: 8px;
  font-size: 1.18rem;
}

.hero-text,
.section p {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-text {
  max-width: 585px;
}

.hero-small {
  margin: 17px 0 0;
  color: #6b7280;
  font-size: 0.92rem;
  font-weight: 650;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0 16px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: white;
  background: var(--green-dark);
}

.button.primary:hover {
  background: var(--green);
}

.button.secondary {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.9);
}

.coming-soon {
  color: var(--muted);
  font-size: 0.92rem;
}

.coming-soon strong {
  color: var(--green-dark);
}

/* The phone is now part of the full-width hero background. */
.phone-showcase {
  min-height: 580px;
}

.phone-showcase > * {
  display: none;
}

.section {
  padding: 92px 0;
}

.section-soft {
  background: var(--surface-soft);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 38px;
}

.feature-card {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: white;
}

.feature-card p {
  margin-bottom: 0;
  font-size: 0.98rem;
}

.calvin-panel {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  align-items: center;
  gap: 56px;
}

.calvin-quote {
  padding: 36px;
  border-left: 6px solid var(--green-bright);
  border-radius: 0 22px 22px 0;
  background: var(--surface-soft);
  color: var(--green-dark);
  font-size: 1.25rem;
  font-weight: 800;
}

.site-footer {
  padding: 30px 0;
  color: #d8e8de;
  background: var(--green-dark);
}

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

.footer-inner p {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .hero {
    min-height: auto;
    background-position: 63% center;
  }

  .hero-grid,
  .calvin-panel {
    grid-template-columns: 1fr;
  }

  .phone-showcase {
    min-height: 340px;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .header-inner {
    min-height: auto;
    padding: 14px 0;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .brand img {
    width: 215px;
  }

  .site-nav {
    gap: 18px;
    font-size: 0.92rem;
  }

  .hero {
    padding: 64px 0 50px;
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(255, 255, 255, 0.92) 54%,
        rgba(255, 255, 255, 0.28) 76%,
        rgba(255, 255, 255, 0) 100%
      ),
      url("assets/forewin-hero-wide.png") 64% center / cover no-repeat;
  }

  .phone-showcase {
    min-height: 380px;
  }

  .section {
    padding: 64px 0;
  }

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

  .footer-inner {
    flex-direction: column;
    gap: 4px;
  }
}
