/* =========================================================
   Save the Date · AI Agents & Cobranças Meta
   Direção editorial: serifa, preto/creme, laranja de destaque
   ========================================================= */
:root {
  --black: #0b0b0b;
  --black-2: #161514;
  --cream: #ece8e0;
  --paper: #ffffff;
  --orange: #e25e30;
  --orange-2: #f0703f;
  --ink: #111;
  --muted-l: rgba(236, 232, 224, .64);
  --muted-d: rgba(17, 17, 17, .6);
  --line-l: rgba(236, 232, 224, .16);
  --line-d: rgba(17, 17, 17, .14);
  --g: clamp(16px, 4vw, 60px);
  --serif: "DM Serif Display", Georgia, serif;
  --text: "IBM Plex Serif", Georgia, serif;
  --ui: "Poppins", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  margin: 0; background: var(--black); color: var(--cream);
  font-family: var(--text); font-weight: 300; font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
em { font-style: italic; }
::selection { background: var(--orange); color: #fff; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

/* ---------- Tipografia ---------- */
.h2 { margin: 0; font-family: var(--serif); font-weight: 400; color: var(--cream); font-size: clamp(38px, 5vw, 76px); line-height: 1.02; letter-spacing: -.01em; }
.h2--dark { color: var(--ink); }
.h2 em { color: var(--orange); }
.eyebrow { margin: 0 0 18px; font-family: var(--ui); font-size: 12px; font-weight: 500; letter-spacing: .02em; color: var(--muted-l); }
.eyebrow--dark { color: var(--muted-d); }
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: inline-block; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px;
  border-radius: 100px; font-family: var(--ui); font-size: 14px; font-weight: 500; white-space: nowrap;
  transition: background .3s, color .3s, border-color .3s, transform .4s var(--ease), box-shadow .4s;
}
.btn:active { transform: scale(.98); }
.btn--sm { height: 40px; padding: 0 20px; font-size: 13px; }
.btn--xl { height: 66px; padding: 0 40px; font-size: 17px; font-weight: 600; }
.btn--block { width: 100%; border-radius: 6px; }
.btn--orange { background: var(--orange); color: #fff; }
.btn--orange:hover { background: var(--orange-2); transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(226, 94, 48, .8); }
.btn--dark { background: var(--ink); color: var(--cream); }
.btn--dark:hover { background: var(--orange); }
.btn--line { border: 1px solid var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--cream); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.btn .arrow { transition: transform .4s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 18px var(--g); font-family: var(--ui); font-size: 13px; color: var(--cream);
  transition: color .5s, background .5s, backdrop-filter .5s;
}
.nav.is-scrolled { background: rgba(11, 11, 11, .6); backdrop-filter: blur(12px); }
.nav.is-light { color: var(--ink); }
.nav.is-light.is-scrolled { background: rgba(236, 232, 224, .75); }
.nav__brand { font-family: var(--serif); font-size: 20px; display: flex; gap: 8px; align-items: baseline; }
.nav__brand em { font-size: 13px; color: var(--orange); }
.nav__right { display: flex; align-items: center; gap: 20px; }
@media (max-width: 420px) { .nav__brand em { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden; background: var(--black);
  padding: clamp(96px, 13vh, 130px) var(--g) clamp(28px, 4vh, 44px);
  display: flex; flex-direction: column; justify-content: space-between; gap: 36px;
}
.hero__glow {
  position: absolute; width: 70vmax; height: 70vmax; right: -25vmax; top: -30vmax; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(226, 94, 48, .30), rgba(226, 94, 48, 0) 62%);
  filter: blur(20px); animation: glow 18s ease-in-out infinite alternate;
}
@keyframes glow { to { transform: translate(-12vmax, 14vmax) scale(1.1); } }
.hero > *:not(.hero__glow) { position: relative; z-index: 1; }

.hero__logos { display: flex; align-items: center; gap: clamp(14px, 2vw, 22px); flex-wrap: wrap; }
.logo-8cx { height: clamp(26px, 2.6vw, 34px); width: auto; }
.logo-zd { height: clamp(18px, 1.9vw, 25px); width: auto; }
.hero__divider { width: 1px; height: clamp(26px, 2.6vw, 34px); background: currentColor; opacity: .3; }
.hero__invite { font-family: var(--ui); font-size: 13px; color: var(--muted-l); margin-left: 6px; }

.hero__main { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; align-items: center; flex: 1; }
.hero__3d { position: relative; height: min(62svh, 46vw); min-height: 280px; touch-action: pan-y; }
.hero__3d::before {
  content: ""; position: absolute; inset: 12% 8%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(226, 94, 48, .28), rgba(226, 94, 48, 0)); filter: blur(10px);
}
.hero__3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; opacity: 0; transition: opacity 1.2s ease; }
.hero__3d.is-3d canvas { opacity: 1; }
/* logo plano só aparece se o aparelho não suportar 3D */
.hero__3d-fallback { position: absolute; inset: 0; margin: auto; width: 70%; height: auto; opacity: 0; transition: opacity .6s; }
.hero__3d.no-3d .hero__3d-fallback { opacity: 1; }
.hero__title { margin: 0; font-family: var(--serif); font-weight: 400; font-size: clamp(66px, 10.4vw, 190px); line-height: .9; letter-spacing: -.02em; }
.hero__title em { color: var(--orange); }
.hero__theme { margin: clamp(10px, 1.4vw, 20px) 0 0; font-family: var(--serif); font-size: clamp(28px, 3.4vw, 56px); line-height: 1.05; }
.hero__theme em { color: var(--orange); }
.hero__sub { margin: clamp(18px, 2.4vw, 30px) 0 0; max-width: 46ch; font-size: clamp(17px, 1.45vw, 21px); line-height: 1.5; color: var(--muted-l); }

.hero__foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; border-top: 1px solid var(--line-l); padding-top: 22px; }
.facts { margin: 0; display: flex; gap: clamp(20px, 4vw, 60px); flex-wrap: wrap; }
.facts dt { font-family: var(--ui); font-size: 12px; color: var(--muted-l); margin-bottom: 2px; }
.facts dd { margin: 0; font-family: var(--serif); font-size: clamp(19px, 1.6vw, 24px); }
.hero__cta { box-shadow: 0 20px 50px -18px rgba(226, 94, 48, .9); animation: breathe 3s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 20px 60px -10px rgba(226, 94, 48, 1); } }
@media (max-width: 860px) {
  .hero { gap: 18px; padding-top: 82px; }
  .hero__main { grid-template-columns: 1fr; gap: 0; }
  .hero__3d { order: -1; height: 25svh; min-height: 170px; margin: -10px -16px 0; }
  .hero__title { font-size: clamp(56px, 16vw, 110px); }
  .hero__sub { margin-top: 14px; font-size: 16px; }
}
@media (max-width: 760px) {
  .hero__cta { width: 100%; }
  .facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; width: 100%; }
  .facts dd { font-size: 17px; }
  .hero__foot { padding-top: 16px; gap: 16px; }
}

/* ---------- O que vai rolar ---------- */
.about { background: var(--cream); color: var(--ink); padding: clamp(90px, 11vw, 150px) var(--g); }
.about__head { margin-bottom: clamp(36px, 5vw, 64px); }
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.topic { background: var(--paper); border-radius: 16px; padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 12px; min-height: 250px; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .3); }
.topic__n { font-family: var(--ui); font-size: 12px; font-weight: 600; color: var(--orange); margin-bottom: auto; }
.topic h3 { margin: 18px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 36px); line-height: 1.05; }
.topic p { margin: 0; color: var(--muted-d); font-size: 16px; }
.topic--hl { background: var(--ink); color: var(--cream); }
.topic--hl p { color: var(--muted-l); }
@media (max-width: 860px) { .topics { grid-template-columns: 1fr; } .topic { min-height: 0; } }

.agenda { list-style: none; margin: clamp(40px, 5vw, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line-d); }
.agenda li { padding: 18px 16px 0 0; display: flex; flex-direction: column; gap: 4px; position: relative; }
.agenda li::before { content: ""; position: absolute; top: -4px; left: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
.agenda time { font-family: var(--serif); font-style: italic; font-size: clamp(22px, 2vw, 30px); color: var(--orange); line-height: 1; }
.agenda span { font-family: var(--ui); font-size: 13px; color: var(--muted-d); }
@media (max-width: 860px) {
  .agenda { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line-d); margin-left: 4px; }
  .agenda li { padding: 0 0 18px 20px; flex-direction: row; align-items: baseline; gap: 14px; }
  .agenda li::before { top: 8px; left: -4px; }
}

.videos { margin-top: clamp(60px, 7vw, 100px); }
.videos__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.video { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 12px; text-align: left; background: #000; }
.video img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) brightness(.75); transition: filter .7s var(--ease), transform 1.2s var(--ease); }
.video:hover img { filter: none; transform: scale(1.04); }
.video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(0, 0, 0, .8)); }
.video__play { position: absolute; z-index: 1; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%; background: var(--orange); }
.video__play::before { content: ""; position: absolute; left: 16px; top: 13px; border-left: 12px solid #fff; border-top: 8px solid transparent; border-bottom: 8px solid transparent; }
.video__title { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; font-family: var(--serif); font-size: clamp(18px, 1.5vw, 22px); line-height: 1.1; color: #fff; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 2; }
@media (max-width: 860px) { .videos__row { grid-template-columns: 1fr; } }

/* ---------- Networking ---------- */
.network { background: var(--black-2); display: grid; grid-template-columns: 1fr 1fr; align-items: stretch; }
.network__img { margin: 0; overflow: hidden; min-height: 520px; }
.network__img img { width: 100%; height: 115%; object-fit: cover; will-change: transform; }
.network__text { padding: clamp(60px, 8vw, 120px) var(--g); align-self: center; }
.network__text > p:not(.eyebrow) { color: var(--muted-l); font-size: clamp(17px, 1.4vw, 20px); max-width: 44ch; margin: 22px 0 0; }
.network__label { margin-top: clamp(36px, 4vw, 54px); }
.guests { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; max-width: 560px; }
.guests li { height: 92px; border: 1px solid var(--line-l); border-radius: 12px; display: grid; place-items: center; padding: 0 18px; transition: background .4s, border-color .4s; }
.guests li:hover { background: rgba(255, 255, 255, .05); border-color: rgba(236, 232, 224, .35); }
.guests img { max-width: 100%; max-height: 22px; width: auto; opacity: .85; }
.guests--tall img { max-height: 40px; }
@media (max-width: 860px) {
  .network { grid-template-columns: 1fr; }
  .network__img { min-height: 0; height: 56vw; }
  .guests li { height: 74px; padding: 0 12px; }
}

/* ---------- Local + CTA ---------- */
.final { background: var(--cream); color: var(--ink); padding: clamp(90px, 11vw, 150px) var(--g); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.place address { font-style: normal; font-size: clamp(20px, 1.8vw, 26px); line-height: 1.45; margin: 26px 0 26px; }
.cta-card {
  background: var(--orange); color: #fff; border-radius: 22px; padding: clamp(30px, 4vw, 56px);
  box-shadow: 0 40px 80px -40px rgba(226, 94, 48, .9);
}
.cta-card__date { margin: 0 0 10px; font-family: var(--ui); font-size: 13px; font-weight: 500; opacity: .85; }
.cta-card__title { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5vw, 76px); line-height: 1; }
.cta-card > p:not(.cta-card__date) { margin: 0 0 28px; font-size: 18px; opacity: .92; }
@media (max-width: 860px) { .final { grid-template-columns: 1fr; } .cta-card .btn { width: 100%; } .place .btn { flex: 1; } }

/* ---------- Footer ---------- */
.footer { background: var(--cream); color: var(--ink); border-top: 1px solid var(--line-d); padding: 26px var(--g) 34px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer__logos { display: flex; align-items: center; gap: 18px; }
.footer p { margin: 0; font-family: var(--ui); font-size: 12px; color: var(--muted-d); }

/* ---------- Botão fixo ---------- */
.sticky-cta {
  position: fixed; left: 50%; bottom: 20px; z-index: 55; transform: translate(-50%, 160%);
  display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 30px; border-radius: 100px;
  background: var(--orange); color: #fff; font-family: var(--ui); font-weight: 600; font-size: 15px;
  box-shadow: 0 18px 40px -12px rgba(226, 94, 48, .8), 0 0 0 1px rgba(255, 255, 255, .1);
  transition: transform .7s var(--ease), background .3s;
}
.sticky-cta small { font-weight: 400; opacity: .85; font-size: 13px; }
.sticky-cta.is-on { transform: translate(-50%, 0); }
.sticky-cta:hover { background: var(--orange-2); }
@media (max-width: 520px) { .sticky-cta { width: calc(100% - 32px); justify-content: center; } }

/* ---------- Gaveta do formulário ---------- */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__bg { position: absolute; inset: 0; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .6s; }
.drawer.is-open .drawer__bg { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(600px, 100%); background: var(--cream); color: var(--ink);
  padding: 80px clamp(22px, 4vw, 54px) calc(50px + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; touch-action: pan-y; height: 100%; max-height: 100dvh;
  transform: translateX(100%); transition: transform .8s var(--ease);
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__close { position: absolute; top: 24px; right: clamp(22px, 4vw, 54px); font-family: var(--ui); font-size: 13px; font-weight: 500; }
.drawer__close:hover { color: var(--orange); }
.drawer__title { margin: 0 0 14px; font-family: var(--serif); font-weight: 400; font-size: clamp(44px, 5.4vw, 72px); line-height: 1; }
.drawer__title em { color: var(--orange); }
.drawer__lead { margin: 0 0 34px; color: var(--muted-d); font-size: 17px; }
.step { display: none; }
.step.is-active { display: block; animation: stepIn .8s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateY(20px); } }

.row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 520px) { .row { grid-template-columns: 1fr; gap: 0; } }
.field { display: block; margin-bottom: 18px; position: relative; }
.field > span { display: block; font-family: var(--ui); font-size: 12px; font-weight: 500; margin-bottom: 4px; color: var(--muted-d); transition: color .3s; }
.field:focus-within > span { color: var(--orange); }
.field input, .field select {
  width: 100%; height: 48px; border: 0; border-bottom: 1px solid var(--ink); background: transparent; border-radius: 0; color: var(--ink);
  font-family: var(--serif); font-size: 22px; outline: none; appearance: none; -webkit-appearance: none; padding: 0; transition: border-color .3s;
}
.field input::placeholder { color: rgba(17, 17, 17, .25); }
.field input:focus, .field select:focus { border-color: var(--orange); }
.field--select::after { content: "↓"; position: absolute; right: 2px; top: 34px; font-size: 16px; pointer-events: none; }
.field select { cursor: pointer; }
.field select.is-empty { color: rgba(17, 17, 17, .35); }
.field small { display: block; height: 0; overflow: hidden; color: #c13a12; font-family: var(--ui); font-size: 12px; transition: height .3s; }
.field.is-invalid input, .field.is-invalid select { border-color: #c13a12; }
.field.is-invalid small { height: 20px; margin-top: 6px; }
#regForm .btn { margin-top: 18px; height: 58px; font-size: 16px; }
.fine { margin: 14px 0 0; font-family: var(--ui); font-size: 11px; color: var(--muted-d); text-align: center; }
.spin { display: none; width: 18px; height: 18px; border: 2px solid rgba(255, 255, 255, .35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.is-loading .txt { display: none; } .is-loading .spin { display: block; }
@keyframes spin { to { transform: rotate(360deg); } }

.card { background: var(--paper); border-radius: 14px; padding: 22px 26px; margin-bottom: 14px; }
.card__label { margin: 0 0 8px; font-family: var(--ui); font-size: 13px; font-weight: 500; }
.card__big { display: block; font-family: var(--text); font-weight: 300; font-size: 72px; line-height: .95; letter-spacing: -.03em; }
.card__sub { margin: 10px 0 18px; font-family: var(--ui); font-size: 13px; color: var(--muted-d); }
.info { border-top: 1px solid var(--line-d); padding: 22px 0; }
.info p { margin: 0 0 14px; font-size: 16px; }
.info small { display: block; font-family: var(--ui); font-size: 11px; color: var(--muted-d); }
.wx { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.wx span { font-size: 40px; line-height: 1; }
.wx strong { font-family: var(--text); font-weight: 300; font-size: 56px; line-height: 1; letter-spacing: -.03em; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
