/* Hoparoo coming soon — preview only. Palette is draft (reef teal, sunny orange, white). */

@font-face {
  font-family: Outfit;
  src: url("./fonts/Outfit-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --reef-ink: #041c20;
  --reef-deep: #05262b;
  --reef-dark: #08363c;
  --reef: #0b6b71;
  --reef-mid: #1a949b;
  --reef-light: #7ed4d8;
  --foam: #eefafa;
  --sand: #fff8f1;
  --white: #ffffff;
  --orange: #ff8a1a;
  --orange-deep: #f0780c;
  --orange-soft: #ffc07a;
  --text: rgba(255, 248, 241, 0.92);
  --text-muted: rgba(255, 248, 241, 0.74);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html,
body {
  margin: 0;
  padding: 0;
}

html {
  background: var(--reef-ink);
  color: var(--text);
  font-family: Outfit, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  min-height: 100svh;
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 88% 16%, rgba(255, 243, 214, 0.95) 0 2.2rem, rgba(255, 192, 122, 0.75) 3.2rem, rgba(255, 138, 26, 0.4) 7rem, rgba(255, 138, 26, 0.12) 14rem, transparent 22rem),
    radial-gradient(ellipse 60% 50% at 10% 0%, rgba(11, 107, 113, 0.45), transparent 50%),
    linear-gradient(180deg, #041c20 0%, #062e33 42%, #0a454c 72%, #08343a 100%);
}

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 4;
  opacity: 0.07;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%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)' opacity='0.9'/%3E%3C/svg%3E");
}

.hero-art {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: 58%;
  min-height: 280px;
  z-index: 1;
  pointer-events: none;
  overflow: visible;
}

.hero-art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.site {
  position: relative;
  z-index: 2;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1.25rem 2rem;
}

.wordmark {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--sand);
  line-height: 1;
}

.content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  max-width: 38rem;
  padding-top: 2.75rem;
}

.headline {
  margin: 0 0 0.7rem;
  font-size: clamp(2.6rem, 12vw, 3.4rem);
  font-weight: 750;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: var(--sand);
}

.tagline {
  margin: 0 0 1.35rem;
  font-size: clamp(1.35rem, 6vw, 1.85rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--orange);
}

.pitch {
  margin: 0 0 1.75rem;
  max-width: 32rem;
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
}

.cta {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 3rem;
  padding: 0.8rem 1.35rem;
  border: 0;
  border-radius: 999px;
  background: var(--orange);
  color: var(--reef-ink);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 650;
  letter-spacing: -0.01em;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(255, 138, 26, 0.28);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.cta:hover {
  background: #ff9a38;
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(255, 138, 26, 0.38);
}

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

.cta:active {
  transform: translateY(0);
}

/* Hop orb along the trail */
.hop-orb {
  offset-path: path("M 510 430 C 680 190 850 190 980 430 C 1090 250 1260 250 1360 430");
  offset-rotate: 0deg;
  animation: hop-along 6.5s var(--ease) infinite;
  filter: url(#orb-glow);
}

@keyframes hop-along {
  0% { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}

.ripple {
  transform-box: fill-box;
  transform-origin: center;
  animation: ripple 6.5s ease-out infinite;
}

.ripple-1 { animation-delay: 2.05s; }
.ripple-2 { animation-delay: 4.2s; }
.ripple-3 { animation-delay: 6.4s; }

@keyframes ripple {
  0%, 28% {
    opacity: 0;
    transform: scale(0.35);
  }
  36% {
    opacity: 0.85;
  }
  58%, 100% {
    opacity: 0;
    transform: scale(1.35);
  }
}

.wave-drift-a { animation: drift 28s linear infinite; }
.wave-drift-b { animation: drift 20s linear infinite; }
.wave-drift-c { animation: drift 14s linear infinite; }

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(-1440px); }
}

.dash-flow {
  stroke-dasharray: 3 10;
  animation: dashes 2.4s linear infinite;
}

@keyframes dashes {
  to { stroke-dashoffset: -26; }
}

.sun-pulse {
  animation: sun-pulse 8s ease-in-out infinite;
  transform-origin: 1220px 140px;
  transform-box: fill-box;
}

@keyframes sun-pulse {
  0%, 100% { opacity: 0.9; }
  50% { opacity: 1; }
}

.shimmer {
  animation: shimmer 7s ease-in-out infinite;
}

@keyframes shimmer {
  0%, 100% { opacity: 0.18; }
  50% { opacity: 0.38; }
}

@media (min-width: 768px) {
  .site {
    padding: 2rem 3.5rem 2.5rem;
  }

  .wordmark {
    font-size: 1.5rem;
  }

  .content {
    padding-top: 4.75rem;
    max-width: 36rem;
  }

  .headline {
    font-size: clamp(4.2rem, 7vw, 6rem);
    margin-bottom: 0.85rem;
  }

  .tagline {
    font-size: clamp(1.85rem, 3vw, 2.35rem);
    margin-bottom: 1.6rem;
  }

  .pitch {
    font-size: 1.2rem;
    line-height: 1.55;
    margin-bottom: 2.1rem;
  }

  .cta {
    min-height: 3.25rem;
    padding: 0.9rem 1.55rem;
    font-size: 1.05rem;
  }

  .hero-art {
    height: 54%;
  }
}

@media (min-width: 1200px) {
  .site {
    padding: 2.25rem 5rem 2.75rem;
  }

  .content {
    padding-top: 6.5rem;
  }
}

@media (max-height: 720px) and (min-width: 768px) {
  .content {
    padding-top: 3rem;
  }

  .headline {
    font-size: 3.6rem;
  }

  .tagline {
    font-size: 1.7rem;
    margin-bottom: 1.1rem;
  }

  .pitch {
    font-size: 1.05rem;
    margin-bottom: 1.35rem;
  }

  .hero-art {
    height: 50%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hop-orb,
  .ripple,
  .wave-drift-a,
  .wave-drift-b,
  .wave-drift-c,
  .dash-flow,
  .sun-pulse,
  .shimmer,
  .cta {
    animation: none !important;
    transition: none !important;
  }

  .hop-orb {
    offset-distance: 52%;
  }

  .ripple {
    opacity: 0.45;
    transform: scale(0.9);
  }
}
