:root {
  --mist: #e8f2f1;
  --foam: #f5faf9;
  --deep: #0c3340;
  --lagoon: #2a7a8c;
  --coral: #c96b45;
  --ink: #132028;
  --muted: #4a5c64;
  --line: rgba(12, 51, 64, 0.12);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --space: clamp(1.25rem, 3vw, 2.5rem);
  --max: 68rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--foam);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--lagoon);
  text-underline-offset: 0.15em;
}

a:hover {
  color: var(--deep);
}

a:focus-visible,
.cta:focus-visible {
  outline: 2px solid var(--coral);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--deep);
  color: var(--foam);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(100vh, 52rem);
  display: grid;
  align-items: end;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 70% 10%, rgba(42, 122, 140, 0.35), transparent 55%),
    linear-gradient(165deg, #0a2a35 0%, #0c3340 42%, #134556 100%);
  color: var(--foam);
}

.hero__atmosphere {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero__glow {
  position: absolute;
  width: 36rem;
  height: 28rem;
  right: -6rem;
  top: -4rem;
  background: radial-gradient(ellipse at center, rgba(42, 122, 140, 0.28), transparent 70%);
  animation: drift 18s ease-in-out infinite alternate;
}

.hero__tide {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: clamp(9rem, 28vh, 16rem);
}

.tide {
  fill: var(--deep);
}

.tide--back {
  fill: #164556;
  opacity: 0.55;
  animation: tide-shift 12s ease-in-out infinite alternate;
}

.tide--mid {
  fill: #1a5568;
  opacity: 0.75;
  animation: tide-shift 9s ease-in-out infinite alternate-reverse;
}

.tide--front {
  fill: var(--mist);
  animation: tide-shift 7s ease-in-out infinite alternate;
}

.hero__inner {
  position: relative;
  z-index: 1;
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  padding: clamp(4rem, 12vh, 7rem) 0 clamp(8rem, 22vh, 12rem);
}

.brand {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(245, 250, 249, 0.92);
  animation: rise 0.9s ease both;
}

.headline {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.6rem, 7vw, 4.75rem);
  line-height: 1.02;
  letter-spacing: -0.03em;
  max-width: 14ch;
  animation: rise 0.9s ease 0.08s both;
}

.lede {
  margin: 0 0 2rem;
  max-width: 36rem;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: rgba(232, 242, 241, 0.88);
  animation: rise 0.9s ease 0.16s both;
}

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

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.35rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 0.4rem;
  border: 1px solid transparent;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

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

.cta--primary {
  background: var(--coral);
  color: #fff;
}

.cta--primary:hover {
  background: #b55a38;
  color: #fff;
}

.cta--ghost {
  background: transparent;
  color: var(--foam);
  border-color: rgba(245, 250, 249, 0.45);
}

.cta--ghost:hover {
  border-color: var(--foam);
  color: var(--foam);
  background: rgba(245, 250, 249, 0.08);
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  background: var(--foam);
}

.section--tint {
  background: var(--mist);
}

.section__inner {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
}

.section h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  letter-spacing: -0.02em;
  color: var(--deep);
}

.section__lede {
  margin: 0 0 2.5rem;
  max-width: 36rem;
  color: var(--muted);
}

.build-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.build-list li {
  padding: 0;
  border-top: 2px solid var(--deep);
  padding-top: 1.25rem;
}

.build-list h3 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--deep);
}

.build-list p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.how-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

.how-list li {
  display: grid;
  gap: 0.35rem 1.5rem;
  grid-template-columns: minmax(5rem, 7rem) 1fr;
  align-items: start;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.how-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.how-list__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--lagoon);
  letter-spacing: 0.02em;
}

.how-list p {
  margin: 0;
  color: var(--muted);
  max-width: 40rem;
}

.contact-band {
  display: grid;
  gap: 1.25rem;
  justify-items: start;
}

.contact-band p {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
}

.contact-band .cta--primary {
  margin-top: 0.25rem;
}

/* —— Footer —— */
.site-footer {
  background: var(--deep);
  color: rgba(232, 242, 241, 0.78);
  padding: 2.5rem 0 2rem;
  font-size: 0.95rem;
}

.site-footer__inner {
  width: min(100% - 2.5rem, var(--max));
  margin: 0 auto;
  display: grid;
  gap: 1rem;
}

.site-footer__brand {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--foam);
  letter-spacing: 0.03em;
}

.site-footer__meta {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.5rem;
}

.site-footer__meta a {
  color: rgba(232, 242, 241, 0.9);
  text-decoration: none;
}

.site-footer__meta a:hover {
  color: var(--foam);
  text-decoration: underline;
}

.site-footer__copy {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: rgba(232, 242, 241, 0.5);
}

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

@keyframes drift {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-3rem, 2rem) scale(1.06);
  }
}

@keyframes tide-shift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-2%);
  }
}

@media (max-width: 640px) {
  .how-list li {
    grid-template-columns: 1fr;
  }

  .hero__inner {
    padding-bottom: clamp(7rem, 28vh, 10rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .brand,
  .headline,
  .lede,
  .cta-row,
  .hero__glow,
  .tide--back,
  .tide--mid,
  .tide--front {
    animation: none;
  }

  .cta:hover {
    transform: none;
  }
}
