:root {
  --brand-10: #52200b;
  --brand-20: #8c3008;
  --brand-30: #b63e07;
  --brand-40: #e85006;
  --brand-60: #ff7a42;
  --brand-100: #ffede5;
  --neutral-99: #fdfbfa;
  --neutral-98: #f8f6f5;
  --neutral-95: #f0ecea;
  --neutral-40: #675b56;
  --neutral-20: #3a312d;
  --neutral-10: #201a17;
  --success: #256d3d;
  --error: #b3261e;
  --glow-color: rgba(255, 122, 66, 0.6);
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 var(--glow-color);
  }
  50% {
    box-shadow: 0 0 20px 4px var(--glow-color);
  }
}

@keyframes thunderGlow {
  0%, 100% {
    filter: drop-shadow(0 0 0 transparent);
  }
  50% {
    filter: drop-shadow(0 0 8px var(--brand-40));
  }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes gradientFlow {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.animate-fade-in-up {
  animation: fadeInUp 0.8s ease-out forwards;
  opacity: 0;
}

.animate-fade-in {
  animation: fadeIn 0.6s ease-out forwards;
  opacity: 0;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: 'DM Sans', sans-serif;
  background: linear-gradient(
    135deg,
    #fdfbfa 0%,
    #fff5f0 25%,
    #ffede5 50%,
    #fff8f5 75%,
    #fdfbfa 100%
  );
  background-size: 400% 400%;
  animation: gradientFlow 15s ease infinite;
  color: var(--neutral-10);
  overflow-x: hidden;
  min-height: 100vh;
}

.page-shell {
  min-height: 100vh;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 12px 24px 44px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding: 10px 0;
  background: transparent;
  backdrop-filter: none;
  transition: background 0.3s ease, backdrop-filter 0.3s ease;
}

.topbar.scrolled {
  background: rgba(253, 251, 250, 0.75);
  backdrop-filter: blur(12px);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  width: 28px;
  height: 44px;
  display: block;
  animation: thunderGlow 3s ease-in-out infinite;
}

.brand-name {
  color: var(--neutral-10);
  font-family: 'Funnel Display', sans-serif;
  font-size: 1.3rem;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
}

.language-select {
  min-height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(182, 62, 7, 0.16);
  background: #fff;
  color: var(--neutral-20);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0 34px 0 12px;
  cursor: pointer;
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--brand-30) 50%),
    linear-gradient(135deg, var(--brand-30) 50%, transparent 50%),
    linear-gradient(to right, transparent, transparent);
  background-position:
    calc(100% - 16px) 16px,
    calc(100% - 11px) 16px,
    100% 0;
  background-size: 5px 5px, 5px 5px, 2.5em 2.5em;
  background-repeat: no-repeat;
}

.language-select:focus {
  outline: none;
  border-color: rgba(232, 80, 6, 0.45);
  box-shadow: 0 0 0 3px rgba(232, 80, 6, 0.16);
}

.community-block {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(28px, 5vw, 72px);
  padding: clamp(8px, 2vw, 20px) 0;
  background: transparent;
  border: 0;
}

.community-media-wrap {
  position: relative;
  width: min(100%, 620px);
  margin: 0 auto;
  padding: 18px;
}

.community-media-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 46% 54% 52% 48% / 41% 52% 48% 59%;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 184, 153, 0.55), transparent 40%),
    radial-gradient(circle at 80% 75%, rgba(232, 80, 6, 0.2), transparent 50%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), rgba(255, 237, 229, 0.7));
  z-index: 0;
}

.community-media {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: left;
  transform: none;
  padding: 0;
  border-radius: 50%;
  border: 0;
  background: #fff;
  box-shadow:
    0 22px 48px rgba(32, 26, 23, 0.22),
    0 2px 10px rgba(32, 26, 23, 0.12);
  animation: float 6s ease-in-out infinite;
}

.community-content {
  width: 100%;
}

.eyebrow {
  margin: 0 0 14px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(232, 80, 6, 0.12) 0%,
    rgba(255, 122, 66, 0.25) 50%,
    rgba(232, 80, 6, 0.12) 100%
  );
  background-size: 200% 100%;
  animation: shimmer 3s ease-in-out infinite;
  color: var(--brand-30);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(232, 80, 6, 0.15);
}

.eyebrow::before {
  content: '⚡';
  font-size: 0.85em;
}

h1 {
  margin: 0;
  color: var(--neutral-10);
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(2.2rem, 4.8vw, 3.8rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

h1 .highlight {
  position: relative;
  color: var(--brand-40);
  display: inline-block;
}

h1 .highlight::after {
  content: '';
  position: absolute;
  bottom: 0.05em;
  left: -2%;
  right: -2%;
  height: 0.3em;
  background: linear-gradient(90deg, rgba(255, 122, 66, 0.3), rgba(232, 80, 6, 0.2));
  border-radius: 4px;
  z-index: -1;
  transform: skewX(-3deg);
}

.hero-copy {
  margin: 18px 0 0;
  color: var(--neutral-20);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.55;
}

.interest-panel {
  margin-top: 24px;
}

.panel-copy {
  margin: 0 0 12px;
  color: var(--neutral-40);
  font-size: 0.95rem;
  font-weight: 500;
}

.waitlist-form {
  display: grid;
  gap: 10px;
}

.input-stack {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid rgba(58, 49, 45, 0.1);
  box-shadow: 0 10px 24px rgba(32, 26, 23, 0.08);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.input-stack:focus-within {
  border-color: rgba(232, 80, 6, 0.3);
  box-shadow: 0 14px 32px rgba(232, 80, 6, 0.12);
}

.input-stack.has-error {
  border-color: rgba(179, 38, 30, 0.32);
  box-shadow: 0 10px 24px rgba(179, 38, 30, 0.12);
}

.input-wrap {
  position: relative;
  width: 100%;
}

.input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(103, 91, 86, 0.74);
  font-size: 0.9rem;
}

.waitlist-form input[type='email'] {
  width: 100%;
  min-height: 50px;
  padding: 0 14px 0 36px;
  border: 1px solid rgba(58, 49, 45, 0.1);
  border-radius: 999px;
  background: #fff;
  color: var(--neutral-10);
  font: inherit;
  font-size: 0.98rem;
  outline: none;
}

.waitlist-form input[type='email']:focus {
  border-color: rgba(232, 80, 6, 0.45);
  box-shadow: 0 0 0 3px rgba(232, 80, 6, 0.16);
}

.waitlist-form input[type='email'][aria-invalid='true'] {
  border-color: rgba(179, 38, 30, 0.5);
  box-shadow: 0 0 0 3px rgba(179, 38, 30, 0.14);
}

.waitlist-form button {
  min-height: 50px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  background: linear-gradient(135deg, var(--brand-60), var(--brand-40));
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  animation: pulse 2.5s ease-in-out infinite;
  transition: transform 0.2s ease, background 0.3s ease;
}

.waitlist-form button:hover {
  background: linear-gradient(135deg, #ff9468, var(--brand-60));
  transform: scale(1.03);
  animation: none;
}

.waitlist-form button:disabled {
  opacity: 0.75;
  cursor: wait;
}

.waitlist-form button span {
  pointer-events: none;
}

.input-error-inline {
  margin: -2px 0 0;
  min-height: 1.35em;
  color: var(--error);
  font-size: 0.92rem;
  font-weight: 600;
  align-self: start;
}

.consent-row {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--neutral-40);
  font-size: 0.88rem;
  line-height: 1.45;
}

.consent-row input {
  margin-top: 2px;
  accent-color: var(--brand-40);
}

.consent-privacy-link {
  color: var(--brand-30);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.consent-privacy-link:hover {
  color: var(--brand-40);
}

.consent-privacy-link:focus-visible {
  outline: 2px solid rgba(232, 80, 6, 0.45);
  outline-offset: 2px;
  border-radius: 2px;
}

.secondary-action {
  margin: 0;
  color: var(--neutral-40);
  font-size: 0.84rem;
}

.feedback {
  margin: 0;
  min-height: 1.45em;
  color: var(--neutral-10);
  font-size: 0.92rem;
}

.feedback[data-state='success'] {
  color: var(--success);
}

.feedback[data-state='error'] {
  color: var(--error);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .community-block {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .community-media {
    width: min(100%, 420px);
  }
}

@media (max-width: 760px) {
  .page-shell {
    padding: 10px 12px 28px;
  }

  .topbar {
    position: sticky;
    top: 0;
    margin-bottom: 12px;
    padding: 8px 0;
  }

  .community-block {
    padding: 4px 0;
    gap: 16px;
  }

  .input-stack {
    grid-template-columns: 1fr;
    box-shadow: 0 6px 14px rgba(32, 26, 23, 0.06);
  }

  .waitlist-form button {
    width: 100%;
  }

  .community-media-wrap {
    padding: 8px;
  }

  .community-media {
    box-shadow: 0 10px 24px rgba(32, 26, 23, 0.12);
  }
}

/* ===== LEGAL / PRIVACY PAGE ===== */
.legal-page .legal-topbar {
  margin-bottom: clamp(16px, 4vw, 32px);
}

.brand-lockup--link {
  text-decoration: none;
  color: inherit;
}

.brand-lockup--link:hover .brand-name {
  color: var(--brand-30);
}

.legal-doc {
  max-width: 42rem;
  margin: 0 auto;
  padding-bottom: clamp(32px, 8vh, 64px);
}

.legal-doc h1 {
  margin: 0 0 12px;
  font-family: 'Funnel Display', sans-serif;
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--neutral-10);
}

.legal-meta {
  margin: 0 0 24px;
  font-size: 0.9rem;
  color: var(--neutral-40);
}

.legal-lead {
  margin: 0 0 28px;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--neutral-20);
}

.legal-section {
  margin-bottom: 28px;
}

.legal-section h2 {
  margin: 0 0 12px;
  font-family: 'Funnel Display', sans-serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--neutral-10);
}

.legal-section p {
  margin: 0 0 12px;
  font-size: 0.98rem;
  line-height: 1.6;
  color: var(--neutral-20);
}

.legal-section p:last-child {
  margin-bottom: 0;
}

.legal-section ul {
  margin: 0 0 12px;
  padding-left: 1.25rem;
  color: var(--neutral-20);
  font-size: 0.98rem;
  line-height: 1.55;
}

.legal-section li {
  margin-bottom: 8px;
}

.legal-section li:last-child {
  margin-bottom: 0;
}

.legal-doc a {
  color: var(--brand-30);
  font-weight: 600;
}

.legal-doc a:hover {
  color: var(--brand-40);
}

.legal-back-wrap {
  margin: 40px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(58, 49, 45, 0.12);
}

.legal-back-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brand-30);
  text-decoration: none;
}

.legal-back-link:hover {
  color: var(--brand-40);
  text-decoration: underline;
}
