:root {
  --c4f-teal: #43ac90;
  --c4f-teal-dark: #1a6b55;
  --c4f-blue: #118cac;
  --c4f-ink: #0f2430;
  --c4f-muted: #5a7380;
  --c4f-paper: #f4faf8;
  --c4f-white: #ffffff;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--c4f-ink);
  background: var(--c4f-paper);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--c4f-blue);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--c4f-teal-dark);
}

.site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
}

.site-header img {
  height: 2.75rem;
  width: auto;
  max-width: min(200px, 50vw);
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav-links a:hover {
  color: #fff;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: var(--c4f-white);
  background:
    radial-gradient(ellipse 80% 60% at 15% 20%, rgba(67, 172, 144, 0.55), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 10%, rgba(17, 140, 172, 0.45), transparent 50%),
    linear-gradient(155deg, #0b2a32 0%, #146075 42%, #1f8a74 78%, #43ac90 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 75%);
  pointer-events: none;
  animation: grid-drift 28s linear infinite;
}

.hero::after {
  content: "";
  position: absolute;
  width: min(70vw, 540px);
  aspect-ratio: 1;
  right: -8%;
  bottom: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 68%);
  animation: bloom 9s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes grid-drift {
  from { transform: translateY(0); }
  to { transform: translateY(48px); }
}

@keyframes bloom {
  from { transform: scale(1) translate(0, 0); opacity: 0.7; }
  to { transform: scale(1.12) translate(-4%, -3%); opacity: 1; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  padding: clamp(7rem, 18vh, 11rem) clamp(1.25rem, 4vw, 3rem) clamp(3.5rem, 8vh, 5.5rem);
}

.brand-mark {
  display: block;
  height: clamp(3.25rem, 8vw, 4.5rem);
  width: auto;
  max-width: min(280px, 70vw);
  object-fit: contain;
  margin-bottom: 1.75rem;
  animation: rise 0.9s ease-out both;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.15rem, 5.2vw, 3.6rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 14ch;
  animation: rise 0.9s ease-out 0.12s both;
}

.hero p {
  margin: 0 0 2rem;
  max-width: 36ch;
  font-size: clamp(1.05rem, 2.1vw, 1.25rem);
  color: rgba(255, 255, 255, 0.9);
  animation: rise 0.9s ease-out 0.22s both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  animation: rise 0.9s ease-out 0.32s both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.7rem 1.35rem;
  border-radius: 0.55rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

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

.btn-primary {
  background: var(--c4f-white);
  color: var(--c4f-teal-dark);
}

.btn-primary:hover {
  background: #e8f7f2;
  color: var(--c4f-teal-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--c4f-white);
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost:hover {
  border-color: #fff;
  color: #fff;
}

.site-footer {
  padding: 1.5rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  align-items: center;
  background: #0c2128;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
}

.site-footer a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 1.1rem;
}

/* Legal pages */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.page-top {
  background: linear-gradient(135deg, #0b2a32, #1a6b55 70%);
  color: #fff;
  padding: 1.25rem clamp(1.25rem, 4vw, 3rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.page-logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.page-top img {
  height: 2.75rem;
  width: auto;
  max-width: min(220px, 55vw);
  object-fit: contain;
  object-position: left center;
}

.legal ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: #243843;
}

.legal li {
  margin-bottom: 0.45rem;
}

.page-top a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
}

.page-top a:hover {
  color: #fff;
}

.legal {
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 2.5rem clamp(1.25rem, 4vw, 2rem) 4rem;
  flex: 1;
}

.legal h1 {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.4rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.legal .meta {
  color: var(--c4f-muted);
  font-size: 0.92rem;
  margin: 0 0 1.75rem;
}

.legal p {
  margin: 0 0 1rem;
  color: #243843;
}

.legal h2 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  margin: 1.75rem 0 0.6rem;
}

@media (max-width: 640px) {
  .nav-links {
    display: none;
  }

  .hero-inner {
    align-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
