:root {
  --ink: #10243a;
  --ink-soft: #3a536b;
  --foam: #f3f7f9;
  --sky-top: #d7e6ef;
  --sky-mid: #b9d0de;
  --sea: #6f97a8;
  --sea-deep: #3f6d82;
  --accent: #c45c2a;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --font-body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--ink);
  font-family: var(--font-body);
  background: var(--sky-top);
  overflow-x: hidden;
}

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 80% at 50% -10%, #ffffffcc 0%, transparent 55%),
    linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 42%, var(--sea) 78%, var(--sea-deep) 100%);
}

.mist {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 40% at 20% 30%, #ffffff55 0%, transparent 60%),
    radial-gradient(ellipse 55% 35% at 80% 25%, #ffffff40 0%, transparent 55%);
  animation: mist-drift 14s ease-in-out infinite alternate;
}

.horizon {
  position: absolute;
  left: -10%;
  right: -10%;
  bottom: 28%;
  height: 1px;
  background: linear-gradient(90deg, transparent, #ffffff88, transparent);
  opacity: 0.55;
}

.wave {
  position: absolute;
  left: -20%;
  width: 140%;
  height: 38%;
  bottom: -8%;
  border-radius: 50% 50% 0 0;
  background: linear-gradient(180deg, #ffffff22, #2f5b6f55);
  filter: blur(0.5px);
}

.wave-a {
  opacity: 0.55;
  animation: swell 10s ease-in-out infinite;
}

.wave-b {
  bottom: -14%;
  height: 32%;
  opacity: 0.4;
  animation: swell 13s ease-in-out infinite reverse;
}

.hero {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: clamp(2rem, 6vw, 5rem);
}

.brand {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5.5rem);
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--ink);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.headline {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 3rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.lede {
  margin: 1.25rem 0 0;
  max-width: 28rem;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink-soft);
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.cta {
  margin-top: 2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 1.35rem;
  border-radius: 0.35rem;
  background: var(--ink);
  color: var(--foam);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 180ms ease, background-color 180ms ease;
  animation: rise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.36s both;
}

.cta::after {
  content: "→";
  transition: transform 180ms ease;
}

.cta:hover {
  background: #0a1a2b;
  transform: translateY(-1px);
}

.cta:hover::after {
  transform: translateX(3px);
}

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

.explore {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 5.5rem) clamp(1.5rem, 5vw, 3rem) clamp(4rem, 10vw, 6rem);
  background:
    linear-gradient(180deg, transparent 0%, rgba(243, 247, 249, 0.55) 18%, rgba(243, 247, 249, 0.92) 100%);
}

.explore-inner {
  width: min(720px, 100%);
  margin: 0 auto;
  text-align: center;
}

.explore-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.explore-lede {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.55;
}

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  text-align: left;
}

.feature-card {
  display: grid;
  gap: 0.45rem;
  padding: 1.4rem 1.5rem 1.35rem;
  border: 1px solid rgba(16, 36, 58, 0.12);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.72);
  color: inherit;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition:
    transform 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease;
}

.feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(16, 36, 58, 0.28);
  background: rgba(255, 255, 255, 0.9);
}

.feature-card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.feature-kicker {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sea-deep);
}

.feature-name {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 1.9rem);
  font-weight: 650;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.feature-desc {
  margin-top: 0.15rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.5;
}

.feature-go {
  margin-top: 0.7rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}

.feature-go::after {
  content: " →";
}

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

@keyframes mist-drift {
  from {
    transform: translate3d(-1.5%, 0, 0) scale(1);
  }
  to {
    transform: translate3d(1.5%, 1%, 0) scale(1.03);
  }
}

@keyframes swell {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scaleX(1);
  }
  50% {
    transform: translate3d(-2%, -1.5%, 0) scaleX(1.03);
  }
}

@media (max-width: 640px) {
  .brand {
    font-size: clamp(2.4rem, 14vw, 3.4rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mist,
  .wave,
  .brand,
  .headline,
  .lede,
  .cta {
    animation: none;
  }

  .cta,
  .cta::after {
    transition: none;
  }
}
