/* =========================================================
   Upto8 — landing page styles
   Tokens
   ========================================================= */
:root {
  --dark: #0A250A;
  --cream: #FFFBEA;
  --accent: #7FB77E;
  --accent-dark: #5f9a5e;

  --font-display: 'Poppins', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  --max-width: 1180px;
  --nav-height: 76px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--dark);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

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

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

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

/* =========================================================
   Nav
   ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--dark);
  color: var(--cream);
  height: var(--nav-height);
}

.nav__inner {
  max-width: var(--max-width);
  height: 100%;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.nav__waitlist-btn {
  justify-self: start;
  border: 1.5px solid var(--cream);
  color: var(--cream);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 14px;
  padding: 9px 18px;
  border-radius: 999px;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
  white-space: nowrap;
}

.nav__waitlist-btn:hover {
  background: var(--cream);
  color: var(--dark);
  transform: translateY(-1px);
}

.nav__logo {
  justify-self: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.02em;
  color: var(--cream);
}

.nav__socials {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--cream);
}

.nav__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.nav__socials a svg { display: block; }

.nav__socials a:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* =========================================================
   Buttons (shared)
   ========================================================= */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  padding: 14px 32px;
  border-radius: 999px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn--primary {
  background: var(--accent);
  color: var(--dark);
  box-shadow: 0 0 0 rgba(10, 37, 10, 0);
}

.btn--primary:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(10, 37, 10, 0.15);
}

.btn--primary:active {
  transform: translateY(0);
}

/* =========================================================
   Hero
   ========================================================= */
.hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 48px 24px;
  text-align: center;
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.hero__tagline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(34px, 6vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 56px;
  opacity: 0;
  animation: rise 0.7s ease forwards;
}

.hero__cta {
  margin-top: 72px;
  opacity: 0;
  animation: rise 0.7s ease forwards;
  animation-delay: 0.25s;
}

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

/* ---- rotating headline (ported from Squarespace) ---- */
.sp-intro {
  width: 100%;
  max-width: 100%;
  text-align: center;
  margin: 0 auto 16px;
  opacity: 0;
  animation: rise 0.7s ease forwards;
  animation-delay: 0.1s;
}

.sp-headline,
.sp-intro p {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 3.4vw, 34px);
  line-height: 1.3;
  color: var(--dark);
}

.sp-words-wrapper {
  display: inline-block;
  position: relative;
  text-align: left;
  color: var(--accent);
  font-weight: 600;
}

.sp-words-wrapper b {
  display: inline-block;
  position: absolute;
  white-space: nowrap;
  left: 0;
  top: 0;
  width: auto !important;
  font-weight: 600;
}

.sp-words-wrapper b.is-visible {
  position: relative;
}

.no-js .sp-words-wrapper b { opacity: 0; }
.no-js .sp-words-wrapper b.is-visible { opacity: 1; }

.sp-headline.slide span {
  display: inline-block;
  padding: 0;
}

.sp-headline.slide .sp-words-wrapper {
  overflow: hidden;
  vertical-align: bottom;
}

.sp-headline.slide b {
  opacity: 0;
  top: 0.2em;
}

.sp-headline.slide b.is-visible {
  top: 0;
  opacity: 1;
  animation: slide-in 0.6s;
}

.sp-headline.slide b.is-hidden {
  animation: slide-out 0.6s;
}

@keyframes slide-in {
  0%   { opacity: 0; transform: translateY(-100%); }
  60%  { opacity: 1; transform: translateY(20%); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes slide-out {
  0%   { opacity: 1; transform: translateY(0); }
  60%  { opacity: 0; transform: translateY(120%); }
  100% { opacity: 0; transform: translateY(100%); }
}

@media (min-width: 668px) and (max-width: 1024px) {
  .sp-headline, .sp-intro p { font-size: 32px; line-height: 42px; }
}

@media (max-width: 667px) {
  .sp-headline, .sp-intro p { font-size: 24px; line-height: 32px; }
}

/* =========================================================
   Activities section
   ========================================================= */
.activities {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 24px 120px;
  text-align: center;
}

.activities__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 42px);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.activities__subtext {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 56px;
  color: rgba(10, 37, 10, 0.78);
}

.activities__preview {
  border-radius: 28px;
  overflow: hidden;
}

.activities__preview img {
  width: 100%;
  height: auto;
}

/* =========================================================
   Waitlist
   ========================================================= */
.waitlist {
  background: var(--dark);
  color: var(--cream);
  text-align: center;
  padding: 110px 24px;
}

.waitlist__heading {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4.2vw, 44px);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}

.waitlist__subtext {
  font-family: var(--font-body);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto 40px;
  color: rgba(255, 251, 234, 0.82);
}

.waitlist .btn--primary {
  color: var(--dark);
}

/* =========================================================
   Footer
   ========================================================= */
.footer {
  background: var(--dark);
  color: var(--cream);
  font-size: 14px;
}

.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 28px 24px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer__logo {
  font-family: var(--font-display);
  font-weight: 700;
}

.footer__socials {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer__socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.footer__socials a svg { display: block; }

.footer__socials a:hover { opacity: 1; }

.footer__copy {
  color: rgba(255, 251, 234, 0.7);
}

/* =========================================================
   Mobile
   ========================================================= */
@media (max-width: 600px) {
  .nav__inner { padding: 0 14px; }
  .nav__waitlist-btn { font-size: 12.5px; padding: 8px 14px; }
  .nav__logo { font-size: 17px; }
  .nav__socials { gap: 10px; }
  .hero { padding: 40px 20px; }
  .activities { padding: 24px 18px 80px; }
  .activities__preview { border-radius: 18px; }
  .waitlist { padding: 72px 20px; }
  .footer { flex-direction: column; text-align: center; }
}
