:root {
  --ink: #0a1f24;
  --sea: #0d4f5c;
  --sea-deep: #08343c;
  --foam: #7ec8c8;
  --foam-soft: rgba(126, 200, 200, 0.22);
  --sand: #f3ebe0;
  --sand-muted: rgba(243, 235, 224, 0.72);
  --coral: #e07a5f;
  --coral-hover: #c9654c;
  --mist: rgba(10, 31, 36, 0.45);
  --line: rgba(243, 235, 224, 0.14);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Outfit', system-ui, -apple-system, sans-serif;
  --max: 68rem;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--sand);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a {
  color: inherit;
}

/* Atmosphere */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(
      ellipse 90% 70% at 15% 10%,
      rgba(13, 79, 92, 0.85),
      transparent 55%
    ),
    radial-gradient(
      ellipse 70% 60% at 90% 20%,
      rgba(126, 200, 200, 0.18),
      transparent 50%
    ),
    radial-gradient(
      ellipse 80% 50% at 50% 100%,
      rgba(224, 122, 95, 0.12),
      transparent 55%
    ),
    linear-gradient(165deg, #06262d 0%, var(--ink) 45%, #06181c 100%);
}

.atmosphere__wash {
  position: absolute;
  inset: -20%;
  background: radial-gradient(
      circle at 30% 40%,
      rgba(126, 200, 200, 0.12),
      transparent 40%
    ),
    radial-gradient(circle at 70% 60%, rgba(13, 79, 92, 0.35), transparent 45%);
  animation: drift 28s ease-in-out infinite alternate;
}

.atmosphere__wave {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: -8%;
  height: 42vh;
  background: radial-gradient(
    ellipse 100% 80% at 50% 100%,
    rgba(126, 200, 200, 0.1),
    transparent 70%
  );
  opacity: 0.9;
  animation: wave 18s ease-in-out infinite alternate;
}

.atmosphere__noise {
  position: absolute;
  inset: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

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

@keyframes wave {
  from {
    transform: translate3d(0, 0, 0) scaleX(1);
  }
  to {
    transform: translate3d(0, -3%, 0) scaleX(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere__wash,
  .atmosphere__wave {
    animation: none;
  }
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.1rem clamp(1.25rem, 4vw, 3rem);
  backdrop-filter: blur(14px);
  background: rgba(10, 31, 36, 0.55);
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--sand);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a {
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  color: var(--sand-muted);
  transition: color 0.2s ease;
}

.nav a:hover,
.nav a:focus-visible {
  color: var(--sand);
}

.nav__cta {
  padding: 0.45rem 0.9rem;
  border: 1px solid rgba(126, 200, 200, 0.45);
  border-radius: 999px;
  color: var(--foam) !important;
}

.nav__cta:hover,
.nav__cta:focus-visible {
  background: var(--foam-soft);
  color: var(--sand) !important;
}

/* Hero */

.hero {
  min-height: min(92vh, 56rem);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(4rem, 12vh, 8rem) clamp(1.25rem, 4vw, 3rem)
    clamp(3.5rem, 8vh, 5.5rem);
  max-width: var(--max);
}

.hero__brand {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 7vw, 4.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--sand);
}

.hero__headline {
  margin: 0 0 1.25rem;
  max-width: 16ch;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  font-weight: 500;
  line-height: 1.15;
  color: var(--foam);
}

.hero__support {
  margin: 0 0 2.25rem;
  max-width: 36rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--sand-muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

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

.btn--primary {
  background: var(--coral);
  color: #1a0f0c;
  border: 1px solid transparent;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--coral-hover);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: var(--sand);
  border: 1px solid rgba(243, 235, 224, 0.35);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  border-color: var(--foam);
  color: var(--foam);
  transform: translateY(-1px);
}

/* Sections */

.section {
  padding: clamp(4rem, 10vh, 7rem) clamp(1.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}

.section__inner {
  max-width: var(--max);
}

.eyebrow {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--foam);
}

.section h2 {
  margin: 0 0 1.25rem;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--sand);
}

.lead {
  margin: 0;
  max-width: 40rem;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 300;
  color: var(--sand-muted);
}

.section--build .lead {
  margin-bottom: 2.75rem;
}

.offerings {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2rem 3rem;
}

@media (min-width: 720px) {
  .offerings {
    grid-template-columns: repeat(3, 1fr);
  }
}

.offerings li {
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.offerings h3 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--sand);
}

.offerings p {
  margin: 0;
  font-weight: 300;
  color: var(--sand-muted);
}

.section--product {
  background: linear-gradient(
    180deg,
    rgba(13, 79, 92, 0.28) 0%,
    rgba(10, 31, 36, 0) 100%
  );
}

.product-name {
  color: var(--foam) !important;
}

.section--product .btn {
  margin-top: 2rem;
}

.section--contact {
  padding-bottom: clamp(5rem, 12vh, 8rem);
}

.contact-email {
  display: inline-block;
  margin-top: 1.75rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 2rem);
  font-weight: 500;
  color: var(--foam);
  text-decoration: none;
  border-bottom: 1px solid rgba(126, 200, 200, 0.35);
  transition:
    color 0.2s ease,
    border-color 0.2s ease;
}

.contact-email:hover,
.contact-email:focus-visible {
  color: var(--sand);
  border-color: var(--sand);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.5rem;
  background: rgba(6, 24, 28, 0.7);
}

.site-footer__inner {
  max-width: var(--max);
  display: grid;
  gap: 0.55rem;
}

.site-footer__legal {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--sand);
}

.site-footer__tagline {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 300;
  color: var(--sand-muted);
}

.site-footer__links {
  margin: 0.35rem 0 0;
  font-size: 0.92rem;
  color: var(--sand-muted);
}

.site-footer__links a {
  text-decoration: none;
  color: var(--foam);
}

.site-footer__links a:hover,
.site-footer__links a:focus-visible {
  color: var(--sand);
}

.site-footer__links span {
  margin: 0 0.4rem;
  opacity: 0.5;
}

/* Motion */

.reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  animation: fade-up 0.9s var(--ease) forwards;
}

.reveal--1 {
  animation-delay: 0.08s;
}

.reveal--2 {
  animation-delay: 0.22s;
}

.reveal--3 {
  animation-delay: 0.36s;
}

.reveal--4 {
  animation-delay: 0.5s;
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.reveal-on-scroll {
  opacity: 0;
  transform: translateY(1.5rem);
  transition:
    opacity 0.85s var(--ease),
    transform 0.85s var(--ease);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    animation: none;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .btn:focus-visible {
    transform: none;
  }
}

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

  .hero {
    justify-content: center;
    min-height: 88vh;
  }
}
