:root {
  --cream: #f7f3ee;
  --off-white: #faf8f5;
  --sand: #ede6db;
  --beige: #ddd0bd;
  --beige-deep: #c9b79c;
  --warm-grey-1: #8f867a;
  --warm-grey-2: #6b6259;
  --warm-grey-3: #4a443d;
  --ink: #1c1a17;
  --black: #100f0d;
  --white: #ffffff;
  --line: #e2d9cb;
  --line-strong: #c9b79c;
  --surface-page: var(--off-white);
  --text-primary: var(--ink);
  --text-secondary: var(--warm-grey-2);
  --text-muted: var(--warm-grey-1);
  --border-default: var(--line);
  --gold: #c9a96e;
  --gold-deep: #b18f52;
  --gold-soft: #e6d9bf;
  --error: #8c4a3c;
  --font-serif-display: 'Playfair Display', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --section-pad: 96px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--surface-page);
  color: var(--text-primary);
  font-family: var(--font-sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

.page {
  width: 100%;
  overflow-x: hidden;
}

/* —— Hero —— */
.hero {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  background: radial-gradient(circle at 50% 32%, var(--white), var(--off-white) 72%);
}

.hero h1 {
  font-family: var(--font-serif-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 8.5vw, 3.6rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 600px;
  margin: 0;
  color: var(--ink);
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.4s var(--ease-out) 0.02s forwards;
}

.hero .lede {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 320px;
  margin: 28px 0 0;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.4s var(--ease-out) 0.08s forwards;
}

.waitlist-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin-top: 40px;
  opacity: 0;
  transform: translateY(8px);
  animation: fadeUp 0.35s var(--ease-out) 0.12s forwards;
}

.waitlist-form input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border-default);
  border-radius: 4px;
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--ink);
  outline: none;
  transition: border-color 0.12s var(--ease-out);
}

.waitlist-form input:focus {
  border-color: var(--gold);
}

.waitlist-form input:disabled {
  opacity: 0.7;
}

.waitlist-form button {
  width: 100%;
  padding: 14px 16px;
  background: var(--ink);
  color: var(--off-white);
  border: 1px solid var(--gold);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.12s var(--ease-out), border-color 0.12s var(--ease-out),
    opacity 0.1s var(--ease-out);
}

.waitlist-form button:hover:not(:disabled) {
  background: var(--warm-grey-3);
  border-color: var(--gold-deep);
}

.waitlist-form button:active:not(:disabled) {
  opacity: 0.85;
}

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

.form-hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 8px 0 0;
  line-height: 1.5;
}

.form-error {
  font-size: 0.85rem;
  color: var(--error);
  margin: 0;
  line-height: 1.4;
  text-align: left;
}

.form-success {
  width: 100%;
  box-sizing: border-box;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.5;
  text-align: center;
  margin: 0;
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--border-default);
  border-radius: 4px;
}

.form-fields[hidden],
.form-success[hidden] {
  display: none !important;
}

/* —— Video (mobile-first, vertical, sem cortar) —— */
.video-block {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: stretch;
  padding: 0;
  background: var(--off-white);
}

.video-frame {
  /* Contentor sempre vertical (9:16), nunca estica em paisagem */
  width: min(100%, calc(100dvh * 9 / 16));
  max-width: 480px;
  aspect-ratio: 9 / 16;
  max-height: 100dvh;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  /* Moldura dourada — um pouco em cima, baixo e laterais */
  background: var(--gold-deep);
  border: 10px solid var(--gold-deep);
  box-shadow: inset 0 0 0 1px var(--gold);
}

.hero-video {
  width: 100%;
  height: 100%;
  /* Mostra o vídeo inteiro; não corta para encher */
  object-fit: contain;
  object-position: center center;
  display: block;
  background: var(--ink);
}

.video-play-overlay {
  display: none !important;
}

.video-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 12px 12px;
  background: linear-gradient(to top, rgba(16, 15, 13, 0.72), transparent);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out);
}

/* Só aparecem quando a pessoa toca no vídeo */
.video-frame.controls-visible .video-controls {
  opacity: 1;
  pointer-events: auto;
}

.video-btn {
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(201, 169, 110, 0.55);
  border-radius: 4px;
  background: rgba(250, 248, 245, 0.12);
  color: var(--off-white);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: background 0.2s var(--ease-out), opacity 0.15s var(--ease-out);
}

.video-btn:hover {
  background: rgba(250, 248, 245, 0.22);
}

.video-btn:active {
  opacity: 0.85;
}

.video-btn-end {
  margin-left: auto;
}

.video-volume {
  flex: 1 1 auto;
  max-width: 120px;
  height: 4px;
  accent-color: var(--gold);
  cursor: pointer;
}

.icon-pause,
.icon-play,
.icon-volume,
.icon-muted,
.icon-fs {
  display: block;
  width: 16px;
  height: 16px;
  background: currentColor;
  mask-size: contain;
  mask-repeat: no-repeat;
  mask-position: center;
  -webkit-mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-position: center;
}

.icon-pause {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='6' y='5' width='4' height='14'/%3E%3Crect x='14' y='5' width='4' height='14'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Crect x='6' y='5' width='4' height='14'/%3E%3Crect x='14' y='5' width='4' height='14'/%3E%3C/svg%3E");
}

.icon-play {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='black'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
}

.icon-volume {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M11 5L6 9H3v6h3l5 4V5z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7'/%3E%3Cpath d='M18 5a9 9 0 0 1 0 14'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M11 5L6 9H3v6h3l5 4V5z'/%3E%3Cpath d='M15.5 8.5a5 5 0 0 1 0 7'/%3E%3Cpath d='M18 5a9 9 0 0 1 0 14'/%3E%3C/svg%3E");
}

.icon-muted {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M11 5L6 9H3v6h3l5 4V5z'/%3E%3Cline x1='23' y1='9' x2='17' y2='15'/%3E%3Cline x1='17' y1='9' x2='23' y2='15'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M11 5L6 9H3v6h3l5 4V5z'/%3E%3Cline x1='23' y1='9' x2='17' y2='15'/%3E%3Cline x1='17' y1='9' x2='23' y2='15'/%3E%3C/svg%3E");
}

.icon-fs {
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M8 3H3v5M16 3h5v5M8 21H3v-5M16 21h5v-5'/%3E%3C/svg%3E");
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2'%3E%3Cpath d='M8 3H3v5M16 3h5v5M8 21H3v-5M16 21h5v-5'/%3E%3C/svg%3E");
}

.video-frame:fullscreen,
.video-frame:-webkit-full-screen {
  width: 100%;
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  border: none;
  box-shadow: none;
  background: #000;
}

.video-frame:fullscreen .hero-video,
.video-frame:-webkit-full-screen .hero-video {
  object-fit: contain;
}

/* —— Founding —— */
.founding {
  background: var(--beige);
  padding: var(--section-pad) 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 32px;
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}

.founding-badge {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.founding-badge-inner {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 1px solid var(--gold-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}

.founding-badge-inner span {
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  color: var(--gold-deep);
  text-transform: uppercase;
}

.founding-quote {
  font-family: var(--font-serif-display);
  font-style: italic;
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--ink);
  max-width: 360px;
  margin: 0;
  line-height: 1.5;
}

.founding-perks {
  font-weight: 300;
  font-size: 0.8rem;
  color: var(--warm-grey-2);
  max-width: 320px;
  margin: 0;
  line-height: 1.6;
}

.founding-note {
  font-weight: 300;
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  max-width: 280px;
  margin: 0;
}

/* —— Countdown —— */
.countdown {
  padding: var(--section-pad) 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 36px;
  content-visibility: auto;
  contain-intrinsic-size: auto 280px;
}

.countdown-label {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0;
}

.countdown-grid {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 64px;
}

.countdown-value {
  font-family: var(--font-serif-display);
  font-size: clamp(2.2rem, 8.5vw, 3.2rem);
  color: var(--gold);
  line-height: 1;
}

.countdown-unit-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

/* —— Repeat CTA —— */
.cta-repeat {
  padding: var(--section-pad) 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

.cta-repeat .invite {
  font-family: var(--font-serif-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--ink);
  margin: 0;
}

.cta-repeat .waitlist-form {
  margin-top: 8px;
  opacity: 1;
  transform: none;
  animation: none;
}

/* —— Footer —— */
.site-footer {
  padding: 56px 24px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.site-footer .wordmark {
  font-family: var(--font-serif-display);
  font-size: 1.1rem;
  color: var(--ink);
  letter-spacing: 0.01em;
}

/* —— Reveal —— */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s var(--ease-out), transform 0.4s var(--ease-out);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  :root {
    --section-pad: 64px;
  }
}
