:root {
  --ink: #f8fbf1;
  --muted: #c6d5c8;
  --deep: #06171f;
  --panel: #10262a;
  --panel-soft: #163638;
  --emerald: #2bd4a0;
  --gold: #f4c95d;
  --coral: #ff7a68;
  --line: rgba(248, 251, 241, 0.16);
  --shadow: rgba(0, 0, 0, 0.35);
  font-family: Montserrat, Inter, "Segoe UI", Roboto, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: #06171f;
  color: var(--ink);
  line-height: 1.6;
}

a {
  color: inherit;
}

a:focus-visible,
.button:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.site-header {
  position: absolute;
  z-index: 5;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
}

.site-header.compact {
  position: static;
  padding: 18px 0;
}

.brand,
.nav-links,
.site-footer nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  min-width: max-content;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(244, 201, 93, 0.5);
  border-radius: 8px;
  background: #12372f;
  color: var(--gold);
  box-shadow: 0 10px 24px var(--shadow);
}

.nav-links,
.site-footer nav {
  gap: 16px;
  flex-wrap: wrap;
}

.nav-links a,
.site-footer a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.nav-links a:hover,
.site-footer a:hover,
.legal-document a:hover {
  color: var(--gold);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 0.85fr);
  align-items: center;
  gap: 32px;
  min-height: 82svh;
  padding: 112px max(24px, calc((100vw - 1160px) / 2)) 54px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(6, 23, 31, 0.98) 0%, rgba(6, 23, 31, 0.88) 48%, rgba(6, 23, 31, 0.58) 100%),
    url("/assets/images/wordify-logo.jpg") right 9% center / min(680px, 72vw) auto no-repeat;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: var(--line);
  content: "";
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 10px;
  font-size: 6.4rem;
  line-height: 0.9;
}

.hero-line {
  margin-bottom: 18px;
  color: var(--emerald);
  font-size: 2rem;
  font-weight: 800;
}

.hero-summary {
  max-width: 580px;
  color: var(--muted);
  font-size: 1.15rem;
}

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

.hero-logo {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center 42%;
  justify-self: end;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--gold);
  color: #1f1705;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(248, 251, 241, 0.08);
  color: var(--ink);
}

.section,
.support-band,
.legal-page {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.section {
  padding: 54px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 24px;
}

.section-heading h2,
.support-band h2,
.legal-document h1 {
  margin-bottom: 12px;
  font-size: 3rem;
  line-height: 1.05;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.feature-card {
  min-height: 220px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.feature-card:nth-child(2) {
  background: #172c34;
}

.feature-card:nth-child(3) {
  background: #1b302c;
}

.feature-card:nth-child(4) {
  background: #172832;
}

.feature-card h3 {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.25;
}

.feature-card p,
.support-band p,
.legal-document p,
.legal-document li {
  color: var(--muted);
}

.support-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 56px;
  padding: 30px;
  border: 1px solid rgba(244, 201, 93, 0.28);
  border-radius: 8px;
  background: #132d2b;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.site-footer p {
  margin: 0;
}

.legal-page {
  padding: 44px 0 64px;
}

.legal-document {
  max-width: 860px;
}

.legal-document section {
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.legal-document h2 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.25;
}

.legal-document a {
  color: var(--gold);
  font-weight: 800;
}

@media (max-width: 900px) {
  .site-header {
    position: static;
    padding: 18px 0;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 44px;
    background:
      linear-gradient(180deg, rgba(6, 23, 31, 0.94) 0%, rgba(6, 23, 31, 0.88) 100%),
      url("/assets/images/wordify-logo.jpg") center top 42px / min(540px, 112vw) auto no-repeat;
  }

  .hero-copy {
    padding-top: 140px;
  }

  h1 {
    font-size: 4.8rem;
  }

  .hero-line {
    font-size: 1.65rem;
  }

  .section-heading h2,
  .support-band h2,
  .legal-document h1 {
    font-size: 2.35rem;
  }

  .hero-logo {
    display: none;
  }

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

  .support-band,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .nav-links {
    justify-content: space-between;
    width: 100%;
    gap: 10px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .brand {
    min-width: 0;
  }

  .hero {
    padding-top: 24px;
    padding-bottom: 42px;
  }

  .hero-copy {
    padding-top: 88px;
  }

  h1 {
    font-size: 3.6rem;
  }

  .hero-line {
    font-size: 1.35rem;
  }

  .section-heading h2,
  .support-band h2,
  .legal-document h1 {
    font-size: 2rem;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

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

  .feature-card {
    min-height: 0;
  }

  .support-band {
    padding: 22px;
  }
}
