/* ─── Tokens ─────────────────────────────────────────────── */
:root {
  --teal-deep: #085041;
  --teal-mid:  #1D9E75;
  --coral:     #E8401C;
  --ink:       #2C2C2A;
  --pale-teal: #E1F5EE;
  --white:     #fff;
  --sans: "Space Grotesk", system-ui, sans-serif;
  --mono: "Space Mono", "Courier New", monospace;
  --nav-h: 56px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65;
  color: var(--ink);
  background: #020D09;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ─── Logos following cursor ─────────────────────────────── */
.swim-logo {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  pointer-events: none;
  will-change: transform;
}

.swim-logo__img {
  display: block;
  height: auto;
  filter: drop-shadow(0 5px 14px rgba(8, 80, 65, 0.5));
}

@keyframes wobble {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50%       { transform: rotate(4deg)  translateY(-6px); }
}

/* ─── Nav ────────────────────────────────────────────────── */
.nav-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  height: var(--nav-h);
  padding: 0 clamp(1.25rem, 5vw, 3rem);
}

.brand {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.07em;
  color: rgba(225, 245, 238, 0.45);
}

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 100svh;
  padding: 5rem clamp(1.25rem, 5vw, 3rem);
  background: #020D09;
  color: var(--white);
  overflow: hidden;
}

.hero__canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero__inner {
  position: relative;
  z-index: 10;
  max-width: 560px;
}

.hero__title {
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 2.5rem;
  animation: fadeUp 0.85s cubic-bezier(0.2, 0, 0.2, 1) 0.3s both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

/* ─── Inline email form ───────────────────────────────────── */
.hero__form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  animation: fadeUp 0.85s cubic-bezier(0.2, 0, 0.2, 1) 0.55s both;
}

.hero__form input[type="email"] {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  padding: 0.72rem 1rem;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(225, 245, 238, 0.18);
  border-radius: 3px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.hero__form input[type="email"]:focus {
  border-color: rgba(29, 158, 117, 0.6);
  background: rgba(255, 255, 255, 0.09);
}
.hero__form input[type="email"]::placeholder {
  color: rgba(225, 245, 238, 0.22);
}

/* ─── Button ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 0.72rem 1.5rem;
  font-family: var(--sans);
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 3px;
  border: 2px solid transparent;
  cursor: pointer;
  letter-spacing: -0.01em;
  transition: background 0.15s, transform 0.12s;
}
.btn:hover { transform: translateY(-2px); }

.btn--coral       { background: var(--coral); color: var(--white); }
.btn--coral:hover { background: #c93415; }

/* ─── Footer ─────────────────────────────────────────────── */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 0.85rem clamp(1.25rem, 5vw, 3rem);
  background: linear-gradient(to top, rgba(1,7,4,0.85) 0%, transparent 100%);
}
.footer__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: rgba(225, 245, 238, 0.22);
}
.footer__tag {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.05em;
}

/* ─── Mobile ──────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hero__form { flex-direction: column; align-items: center; }
  .hero__form input[type="email"] { max-width: 100%; width: 100%; }
}

/* ─── Reduced motion ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
