:root {
  --savanna: #fff8e7;
  --ivory: #ffffff;
  --dune: #f4e8d1;

  --bark: #3d2c1e;
  --earth: #5c3d26;
  --clay: #8b5e3c;
  --sand: #b8956a;

  --mane-gold: #f5a623;
  --paw-amber: #e8941a;
  --mane-pale: #fff0d4;

  --croc: #2d6a4f;
  --croc-pale: #d4edda;
  --flamingo: #d64545;

  --shadow-sm: 0 1px 3px rgba(92, 61, 38, 0.08);
  --shadow-md: 0 4px 12px rgba(92, 61, 38, 0.1);
  --shadow-lg: 0 8px 24px rgba(92, 61, 38, 0.12);
  --shadow-gold: 0 4px 14px rgba(245, 166, 35, 0.4);
  --shadow-gold-hover: 0 10px 24px rgba(245, 166, 35, 0.45);

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;

  --font-display: "Bricolage Grotesque", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, Segoe UI, sans-serif;

  --ease-spring: cubic-bezier(0.22, 1.2, 0.36, 1);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--savanna);
  color: var(--bark);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

@media (min-width: 640px) {
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 160ms ease;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--mane-gold);
  outline-offset: 2px;
  border-radius: var(--radius-sm);
}

input:focus-visible {
  outline-offset: 0;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  background: rgba(255, 248, 231, 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 34px;
  color: var(--mane-gold);
  letter-spacing: -0.6px;
  line-height: 1;
}

.socials {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--clay);
}

.socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.socials a:hover {
  color: var(--mane-gold);
  background: var(--mane-pale);
}

/* ---------- Hero ---------- */
.hero {
  padding-top: 48px;
  padding-bottom: 64px;
}

@media (min-width: 640px) {
  .hero {
    padding-top: 64px;
    padding-bottom: 80px;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: 96px;
    padding-bottom: 96px;
  }
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.leo {
  width: 220px;
  height: 220px;
  object-fit: contain;
  margin-bottom: 12px;
  filter: drop-shadow(0 20px 24px rgba(92, 61, 38, 0.18));
  animation: leoIn 800ms var(--ease-spring) 100ms both;
}

@media (min-width: 640px) {
  .leo {
    width: 280px;
    height: 280px;
  }
}

@media (min-width: 1024px) {
  .leo {
    width: 320px;
    height: 320px;
    margin-bottom: 16px;
  }
}

.eyebrow {
  display: inline-block;
  background: var(--mane-pale);
  color: var(--earth);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.4px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  animation: riseIn 700ms var(--ease-spring) 200ms both;
}

.headline {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--bark);
  margin: 0 0 18px;
  max-width: 14ch;
  animation: riseIn 700ms var(--ease-spring) 300ms both;
}

.headline-accent {
  display: block;
  color: var(--mane-gold);
}

@media (min-width: 640px) {
  .headline {
    font-size: 56px;
    letter-spacing: -1.5px;
  }
}

@media (min-width: 1024px) {
  .headline {
    font-size: 72px;
    letter-spacing: -2px;
  }
}

.sub {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  color: var(--clay);
  max-width: 52ch;
  margin: 0 0 22px;
  animation: riseIn 700ms var(--ease-spring) 400ms both;
}

@media (min-width: 640px) {
  .sub {
    font-size: 19px;
    margin-bottom: 26px;
  }
}

/* ---------- Pills marquee ---------- */
.pills-marquee {
  width: 100%;
  max-width: 640px;
  margin: 0 auto 28px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0,
    black 10%,
    black 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0,
    black 10%,
    black 90%,
    transparent 100%
  );
  animation: riseIn 700ms var(--ease-spring) 450ms both;
}

.pills-track {
  display: flex;
  gap: 10px;
  width: max-content;
  animation: marquee 50s linear infinite;
}

.pills-marquee:hover .pills-track {
  animation-play-state: paused;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid var(--dune);
  border-radius: var(--radius-full);
  background: transparent;
  color: var(--bark);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 14px;
  line-height: 1.1;
  white-space: nowrap;
  flex-shrink: 0;
}

.pill-emoji {
  font-size: 16px;
  line-height: 1;
}

@media (max-width: 639px) {
  .pill {
    font-size: 13px;
    padding: 8px 14px;
  }
  .pill-emoji {
    font-size: 15px;
  }
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- Form ---------- */
.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 520px;
  animation: riseIn 700ms var(--ease-spring) 500ms both;
}

@media (min-width: 640px) {
  .waitlist-form {
    flex-direction: row;
    gap: 10px;
  }
}

.waitlist-form input {
  flex: 1;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 16px;
  color: var(--bark);
  background: var(--ivory);
  border: 1.5px solid var(--dune);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  line-height: 1.2;
  box-shadow: var(--shadow-sm);
  transition: border-color 160ms ease, box-shadow 160ms ease;
  -webkit-appearance: none;
  appearance: none;
}

.waitlist-form input::placeholder {
  color: var(--sand);
}

.waitlist-form input:focus {
  outline: none;
  border-color: var(--mane-gold);
  box-shadow: 0 0 0 4px rgba(245, 166, 35, 0.18);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 15px;
  color: var(--ivory);
  background: var(--mane-gold);
  border: none;
  border-radius: var(--radius-md);
  padding: 17px 24px;
  cursor: pointer;
  box-shadow: var(--shadow-gold);
  transition: transform 180ms var(--ease-spring),
    box-shadow 180ms ease, background 180ms ease;
  min-height: 52px;
  white-space: nowrap;
}

.cta:hover:not(:disabled) {
  background: var(--paw-amber);
  transform: translateY(-2px);
  box-shadow: var(--shadow-gold-hover);
}

.cta:active:not(:disabled) {
  transform: scale(0.98);
  box-shadow: var(--shadow-gold);
}

.cta:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.cta-arrow {
  display: inline-block;
  transition: transform 200ms var(--ease-spring);
}

.cta:hover:not(:disabled) .cta-arrow {
  transform: translateX(3px);
}

/* ---------- Form meta ---------- */
.form-note {
  margin: 14px 0 0;
  font-size: 13px;
  color: var(--sand);
  max-width: 52ch;
  line-height: 1.5;
  animation: riseIn 700ms var(--ease-spring) 600ms both;
}

.form-note a {
  color: var(--clay);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form-note a:hover {
  color: var(--mane-gold);
}

.form-feedback {
  margin-top: 14px;
  font-size: 14px;
  font-weight: 500;
  min-height: 20px;
}

.form-feedback.success {
  color: var(--croc);
}

.form-feedback.error {
  color: var(--flamingo);
}

/* ---------- Legal pages ---------- */
.legal-page {
  padding: 48px 0 64px;
  max-width: 720px;
  margin: 0 auto;
}

.legal-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -1px;
  color: var(--bark);
  margin: 0 0 6px;
}

.legal-updated {
  font-size: 13px;
  color: var(--sand);
  margin: 0 0 36px;
}

.legal-page h2 {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 18px;
  color: var(--bark);
  margin: 32px 0 10px;
}

.legal-page p,
.legal-page ul {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  color: var(--clay);
  margin: 0 0 12px;
}

.legal-page ul {
  padding-left: 20px;
}

.legal-page a {
  color: var(--mane-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-page a:hover {
  color: var(--paw-amber);
}

.legal-page strong {
  color: var(--bark);
  font-weight: 600;
}

.legal-back {
  margin-top: 40px !important;
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--dune);
  padding-top: 24px;
  padding-bottom: 32px;
  background: var(--savanna);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}

@media (min-width: 640px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.copyright {
  margin: 0;
  font-size: 13px;
  color: var(--clay);
}

.legal {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--clay);
}

.legal a:hover {
  color: var(--mane-gold);
}

/* ---------- Language switcher ---------- */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.lang-link {
  color: var(--clay);
  text-decoration: none;
  font-weight: 500;
  letter-spacing: 0.5px;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 150ms ease, background 150ms ease;
}

.lang-link:hover {
  color: var(--mane-gold);
}

.lang-link.is-active {
  color: var(--bark);
  background: var(--dune);
}

.lang-sep {
  color: var(--sand);
  font-weight: 500;
}

/* ---------- Animations ---------- */
@keyframes leoIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.001ms !important;
  }
}
