:root {
  --bg: #070812;
  --text: #f8f7ff;
  --muted: rgba(241, 239, 255, 0.76);
  --line: rgba(255, 255, 255, 0.12);
  --glass: rgba(12, 13, 28, 0.42);
  --violet: #9b83ff;
  --violet-light: #e3dbff;
  --cyan: #8ddcff;
  --gold: #d8a764;
  --error: #ffb8c5;
  --radius: 28px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }

.hero {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hero__video,
.hero__shade,
.hero__glow,
.hero__grain {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__video {
  z-index: -5;
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.hero__video--mobile {
  display: none;
}

.hero__shade {
  z-index: -4;
  background:
    linear-gradient(90deg, rgba(5, 6, 16, 0.86) 0%, rgba(7, 8, 20, 0.58) 36%, rgba(6, 7, 18, 0.3) 64%, rgba(6, 7, 18, 0.54) 100%),
    linear-gradient(180deg, rgba(4, 5, 14, 0.2) 0%, rgba(4, 5, 14, 0.12) 50%, rgba(4, 5, 14, 0.78) 100%);
}

.hero__glow {
  z-index: -3;
  background:
    radial-gradient(circle at 12% 14%, rgba(151, 118, 255, 0.22), transparent 28%),
    radial-gradient(circle at 88% 28%, rgba(133, 216, 255, 0.14), transparent 24%),
    radial-gradient(circle at 55% 100%, rgba(133, 91, 235, 0.12), transparent 32%);
  pointer-events: none;
}

.hero__grain {
  z-index: -2;
  opacity: 0.06;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.55'/%3E%3C/svg%3E");
}

.page-width {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 14px;
  color: var(--text);
  text-decoration: none;
  flex-wrap: wrap;
}

.brand__name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(32px, 2.2vw, 40px);
  letter-spacing: 0.03em;
  font-weight: 600;
  color: #fbfaff;
}

.brand__descriptor {
  color: rgba(255,255,255,.62);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transform: translateY(-1px);
}

.header__note {
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(12, 13, 27, 0.24);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__content {
  position: relative;
  z-index: 2;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(420px, 0.92fr);
  align-items: start;
  gap: clamp(32px, 4.2vw, 60px);
  padding-block: clamp(52px, 8vh, 92px) 48px;
}

.intro {
  max-width: 700px;
  padding-top: clamp(10px, 4vh, 46px);
  animation: intro-in 0.9s cubic-bezier(.2,.75,.2,1) both;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--violet-light);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 680px;
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(52px, 4.9vw, 74px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  font-weight: 500;
  text-wrap: balance;
  text-shadow: 0 20px 60px rgba(0,0,0,.28);
}

.headline-primary {
  display: block;
  max-width: 560px;
}

h1 em {
  display: block;
  max-width: 640px;
  margin-top: 10px;
  font-style: normal;
  font-weight: 500;
  background: linear-gradient(110deg, #ffffff 5%, #ddd2ff 42%, #9de7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.intro__lead {
  max-width: 620px;
  margin: 24px 0 0;
  color: rgba(255,255,255,.92);
  font-size: clamp(18px, 1.55vw, 24px);
  line-height: 1.5;
}

.intro__copy {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(16px, 1.1vw, 18px);
  line-height: 1.82;
}

.intro__details {
  margin-top: 28px;
}

.intro__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.intro__pills span {
  padding: 11px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(8, 9, 20, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: rgba(255,255,255,.86);
  font-size: 12px;
}

.intro__mobile-cta {
  display: none;
}

.contact-card {
  position: relative;
  padding: clamp(24px, 2.6vw, 36px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.02)),
    var(--glass);
  box-shadow:
    0 34px 100px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255,255,255,.1);
  backdrop-filter: blur(24px) saturate(120%);
  -webkit-backdrop-filter: blur(24px) saturate(120%);
  animation: card-in 0.9s 0.12s cubic-bezier(.2,.75,.2,1) both;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(130deg, rgba(211,200,255,.28), transparent 26%, transparent 74%, rgba(119,213,255,.16));
  opacity: .38;
}

.contact-card__topline {
  display: flex;
  align-items: center;
  gap: 9px;
  color: rgba(255,255,255,.76);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9dffcc;
  box-shadow: 0 0 0 5px rgba(157,255,204,.09), 0 0 18px rgba(157,255,204,.75);
}

.contact-card h2 {
  margin: 18px 0 9px;
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  font-size: clamp(28px, 2.8vw, 42px);
  line-height: 1.08;
  letter-spacing: -.035em;
}

.contact-card__intro {
  margin: 0 0 24px;
  color: rgba(245,243,255,.72);
  font-size: 13px;
  line-height: 1.68;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field--wide { grid-column: 1 / -1; }

.field > span {
  color: rgba(255,255,255,.8);
  font-size: 11px;
  font-weight: 600;
}

.field i {
  color: rgba(255,255,255,.42);
  font-style: normal;
  font-weight: 400;
}

input, select, textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 13px;
  outline: none;
  background: rgba(4,5,15,.34);
  color: #fff;
  padding: 13px 14px;
  font-size: 13px;
  transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

textarea { resize: vertical; min-height: 84px; }

select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,.66) 50%),
    linear-gradient(135deg, rgba(255,255,255,.66) 50%, transparent 50%);
  background-position: calc(100% - 17px) 52%, calc(100% - 12px) 52%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
  padding-right: 38px;
}

select option { color: #111322; }
input::placeholder, textarea::placeholder { color: rgba(238,236,255,.36); }

input:focus, select:focus, textarea:focus {
  border-color: rgba(185,167,255,.7);
  background: rgba(11,12,28,.62);
  box-shadow: 0 0 0 4px rgba(155,131,255,.1);
}

.field__error { display: none; color: var(--error); font-size: 10px; line-height: 1.2; }
.field.is-invalid .field__error { display: block; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: rgba(255,155,175,.72); }

.consent-field {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 16px;
  color: rgba(255,255,255,.62);
  font-size: 10px;
  line-height: 1.55;
  cursor: pointer;
}
.consent-field input {
  width: 16px;
  height: 16px;
  margin: 1px 0 0;
  accent-color: #bdaeff;
}
.consent-field.is-invalid { color: var(--error); }
.hp-field {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.submit-button {
  width: 100%;
  margin-top: 17px;
  min-height: 54px;
  border: 0;
  border-radius: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  cursor: pointer;
  color: #100e1e;
  font-weight: 800;
  background: linear-gradient(110deg, #f5f1ff 0%, #c9bbff 48%, #8ee2ff 100%);
  box-shadow: 0 15px 40px rgba(145,115,255,.27);
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}

.submit-button:hover {
  transform: translateY(-2px);
  filter: saturate(112%);
  box-shadow: 0 20px 52px rgba(145,115,255,.34);
}

.submit-button:active { transform: translateY(0); }
.submit-button:disabled { cursor: wait; opacity: .72; transform: none; }
.submit-button svg { width: 20px; height: 20px; fill: currentColor; }

.privacy-note {
  margin: 12px auto 0;
  max-width: 340px;
  color: rgba(255,255,255,.42);
  text-align: center;
  font-size: 9px;
  line-height: 1.5;
}

.footer {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 20px 24px;
  color: rgba(255,255,255,.48);
  font-size: 10px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 14px);
  padding: 12px 16px;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 12px;
  background: rgba(9,10,23,.88);
  box-shadow: 0 15px 50px rgba(0,0,0,.34);
  backdrop-filter: blur(16px);
  color: #fff;
  font-size: 12px;
  transition: opacity .25s ease, transform .25s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@keyframes intro-in {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes card-in {
  from { opacity: 0; transform: translateY(26px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 1180px) {
  .hero__content {
    grid-template-columns: minmax(0, 1fr) minmax(400px, .92fr);
    gap: 34px;
  }
  h1 { font-size: clamp(48px, 4.7vw, 68px); }
}

@media (max-width: 980px) {
  .hero__video,
  .hero__shade,
  .hero__glow,
  .hero__grain {
    position: absolute;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(4,5,15,.18) 0%, rgba(4,5,15,.32) 30%, rgba(4,5,15,.62) 56%, rgba(4,5,15,.86) 80%, #070812 100%),
      linear-gradient(90deg, rgba(5,6,17,.34), rgba(5,6,17,.14));
  }

  .hero__content {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 34px;
    padding-top: clamp(40px, 7vh, 84px);
  }

  .intro {
    max-width: 760px;
    padding-top: 0;
  }

  h1 {
    max-width: 760px;
    font-size: clamp(44px, 8vw, 62px);
  }

  .headline-primary,
  h1 em {
    max-width: none;
  }

  .contact-card {
    max-width: 720px;
    width: 100%;
  }
}

@media (max-width: 640px) {
  html, body { overflow-x: hidden; }

  .hero__video--desktop { display: none; }
  .hero__video--mobile {
    display: block;
    object-position: center center;
    transform: scale(1.01);
    filter: saturate(1.02) contrast(1.02) brightness(.92);
  }

  .hero {
    min-height: 100svh;
    background: #071224;
  }

  .hero__shade {
    background:
      linear-gradient(180deg,
        rgba(3, 10, 24, .12) 0%,
        rgba(3, 10, 24, .22) 24%,
        rgba(3, 10, 24, .42) 48%,
        rgba(3, 10, 24, .64) 72%,
        rgba(3, 10, 24, .86) 88%,
        #071224 100%),
      linear-gradient(90deg, rgba(3, 9, 21, .22), rgba(6, 26, 53, .08));
  }

  .hero__glow {
    background:
      radial-gradient(circle at 82% 18%, rgba(35, 96, 159, .16), transparent 28%),
      radial-gradient(circle at 18% 80%, rgba(216, 165, 90, .08), transparent 22%);
  }

  .page-width { width: calc(100% - 32px); }

  .header {
    min-height: 72px;
    padding-top: 16px;
    padding-bottom: 14px;
    align-items: center;
    gap: 10px;
    flex-direction: row;
  }

  .brand {
    gap: 10px;
    align-items: center;
    flex-wrap: nowrap;
  }

  .brand__name {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: 31px;
    line-height: .92;
    letter-spacing: -.02em;
    color: var(--gold);
  }

  .brand__descriptor {
    max-width: 110px;
    padding-left: 11px;
    border-left: 1px solid rgba(225, 181, 107, .72);
    color: rgba(244, 211, 155, .87);
    font-size: 7px;
    line-height: 1.38;
    letter-spacing: .16em;
  }

  .header__note,
  .intro__mobile-cta { display: none; }

  .hero__content {
    gap: 22px;
    padding-top: 30px;
    padding-bottom: 28px;
  }

  .eyebrow {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 0 0 18px;
    padding: 8px 12px;
    border: 1px solid rgba(222, 176, 100, .56);
    border-radius: 999px;
    background: rgba(5, 15, 34, .18);
    color: rgba(249, 245, 237, .88);
    font-size: 8px;
    line-height: 1.2;
    letter-spacing: .11em;
    white-space: nowrap;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
  }

  h1 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
    letter-spacing: -.04em;
    max-width: 100%;
    font-size: 0;
    text-shadow: 0 10px 32px rgba(0,0,0,.2);
  }

  h1 .headline-primary {
    display: block;
    max-width: 285px;
    font-size: clamp(31px, 11vw, 40px);
    line-height: .98;
    color: #f6f2ea;
  }

  h1 em {
    display: block;
    max-width: 320px;
    margin-top: 10px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(29px, 9.7vw, 38px);
    line-height: 1.0;
    letter-spacing: -.035em;
    font-style: normal;
    background: linear-gradient(105deg, #f5f1e9 5%, #f5f1e9 58%, #d9a65e 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  .intro__lead {
    max-width: 330px;
    margin-top: 18px;
    color: rgba(250, 248, 244, .92);
    font-size: 15px;
    line-height: 1.55;
  }

  .intro__details {
    margin-top: 24px;
    padding: 18px 16px 16px;
    border: 1px solid rgba(218, 230, 246, .36);
    border-radius: 20px;
    background:
      linear-gradient(145deg, rgba(255,255,255,.05), rgba(255,255,255,.015)),
      rgba(5, 18, 40, .34);
    box-shadow: 0 16px 46px rgba(0,0,0,.16), inset 0 1px 0 rgba(255,255,255,.06);
    backdrop-filter: blur(12px) saturate(110%);
    -webkit-backdrop-filter: blur(12px) saturate(110%);
  }

  .intro__copy {
    color: rgba(248, 247, 244, .84);
    font-size: 14px;
    line-height: 1.72;
  }

  .intro__pills {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 18px;
  }

  .intro__pills span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 8px 10px;
    text-align: center;
    border-radius: 13px;
    background: rgba(255,255,255,.04);
    font-size: 10px;
    line-height: 1.3;
  }

  .intro__pills span:last-child {
    grid-column: 1 / -1;
  }

  .contact-card {
    margin-top: 2px;
    padding: 22px 16px 18px;
    border-radius: 22px;
    background:
      linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.018)),
      rgba(4, 13, 29, .68);
    box-shadow: 0 20px 56px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08);
  }

  .contact-card__topline {
    font-size: 8px;
    letter-spacing: .1em;
  }

  .contact-card h2 {
    margin-top: 14px;
    font-size: 26px;
  }

  .contact-card__intro {
    margin-bottom: 18px;
    font-size: 12px;
    line-height: 1.6;
  }

  .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .field--wide { grid-column: auto; }
  .field { gap: 7px; }

  input,
  select,
  textarea {
    min-height: 48px;
    padding: 12px 13px;
    font-size: 16px;
  }

  textarea { min-height: 104px; }

  .consent-field {
    font-size: 9px;
    line-height: 1.48;
  }

  .submit-button {
    min-height: 52px;
    padding-inline: 12px;
    font-size: 13px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding-top: 18px;
    padding-bottom: 24px;
    font-size: 9px;
    line-height: 1.6;
    background: rgba(3, 9, 21, .58);
  }
}

@media (max-width: 380px) {
  .page-width { width: calc(100% - 24px); }
  .brand__name { font-size: 28px; }
  .brand__descriptor { max-width: 98px; font-size: 6.5px; }
  h1 .headline-primary { max-width: 260px; font-size: 30px; }
  h1 em { max-width: 290px; font-size: 28px; }
  .intro__lead { font-size: 14px; }
  .intro__details { padding: 16px 14px 14px; }
  .intro__pills span { font-size: 9px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .hero__video { display: none; }
}

/* V6: vídeo mobile preservado na proporção original, sem esticar nem recortar */
@media (max-width: 640px) {
  .hero {
    min-height: 100svh;
    background: #071224;
  }

  .hero__video--desktop {
    display: none;
  }

  .hero__video--mobile {
    display: block;
    position: absolute;
    inset: auto;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 29 / 43;
    object-fit: contain;
    object-position: center top;
    transform: none;
    filter: saturate(1.02) contrast(1.02) brightness(.96);
    background: #071224;
  }

  .hero__shade {
    inset: 0 0 auto 0;
    width: 100%;
    height: calc(100vw * 43 / 29);
    max-height: 740px;
    background:
      linear-gradient(
        180deg,
        rgba(3, 10, 24, .08) 0%,
        rgba(3, 10, 24, .14) 24%,
        rgba(3, 10, 24, .26) 48%,
        rgba(3, 10, 24, .48) 72%,
        #071224 100%
      );
  }

  .hero__glow {
    inset: 0 0 auto 0;
    width: 100%;
    height: calc(100vw * 43 / 29);
    max-height: 740px;
    background:
      radial-gradient(circle at 82% 18%, rgba(35, 96, 159, .13), transparent 28%),
      radial-gradient(circle at 18% 80%, rgba(216, 165, 90, .06), transparent 22%);
  }

  .hero__grain {
    position: absolute;
  }
}
