/* ============================================================
   Ascensão Digital — Design tokens
   8px grid · Cormorant (display) + Inter (ui) · realeza dourada
   ============================================================ */
:root {
  /* color */
  --bg-void: #0a090c;
  --bg-elevated: #14121a;
  --bg-elevated-2: #1a1720;
  --gold: #c9a227;
  --gold-bright: #e8cb6e;
  --gold-dim: #6e5a1c;
  --wine: #5c1830;
  --wine-bright: #7d2440;
  --violet-deep: #241333;
  --ink: #f3eee4;
  --ink-muted: #a79c86;
  --ink-faint: #6f6656;
  --line: #2a2630;
  --danger: #d9704f;

  /* type scale */
  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-32: 2rem;
  --fs-48: 3rem;
  --fs-64: 4rem;

  --font-display: "Cormorant", "Iowan Old Style", Georgia, serif;
  --font-ui: "Inter", -apple-system, "SF Pro Text", system-ui, sans-serif;

  /* spacing (8px grid, 4px for tight cases) */
  --sp-4: 0.25rem;
  --sp-8: 0.5rem;
  --sp-12: 0.75rem;
  --sp-16: 1rem;
  --sp-24: 1.5rem;
  --sp-32: 2rem;
  --sp-48: 3rem;
  --sp-64: 4rem;
  --sp-96: 6rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-panel: 0 24px 64px -24px rgba(0, 0, 0, 0.65), 0 1px 0 rgba(201, 162, 39, 0.08) inset;
  --shadow-cta: 0 8px 24px -8px rgba(201, 162, 39, 0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-void);
  color: var(--ink);
}

body {
  font-family: var(--font-ui);
  font-size: var(--fs-16);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 3px;
}

/* ============================================================
   Stage — full-bleed backdrop
   ============================================================ */
.stage {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(ellipse 900px 600px at 18% 8%, rgba(36, 19, 51, 0.55), transparent 60%),
    radial-gradient(ellipse 700px 500px at 85% 90%, rgba(92, 24, 48, 0.28), transparent 60%),
    var(--bg-void);
}

.stage__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.012) 0px,
    rgba(255, 255, 255, 0.012) 1px,
    transparent 1px,
    transparent 3px
  );
  mix-blend-mode: overlay;
}

.layout {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  min-height: 100vh;
  padding: var(--sp-16);
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "brand"
    "panel"
    "details";
  gap: var(--sp-16);
  align-items: center;
  justify-items: center;
}

/* Crown + name and the pitch copy are centered at every breakpoint. */
.brand,
.details {
  align-items: center;
  text-align: center;
  width: 100%;
}

.pillars {
  align-items: center;
}

/* Mobile: crown + name up top, form right under it (so the CTA sits in
   the first fold), full pitch copy below. */
@media (max-width: 959px) {
  .brand {
    gap: var(--sp-8);
  }

  .pitch__mark {
    margin-bottom: 0;
  }

  .brand-photo {
    width: 72px;
    height: 72px;
  }

  .panel {
    padding: var(--sp-16);
  }
}

@media (min-width: 960px) {
  .layout {
    grid-template-columns: 1.1fr 0.9fr;
    grid-template-areas:
      "brand  panel"
      "details panel";
    padding: var(--sp-64) var(--sp-48);
    gap: var(--sp-32) var(--sp-64);
    justify-items: stretch;
  }
}

.brand {
  grid-area: brand;
  min-width: 0;
}

.details {
  grid-area: details;
  min-width: 0;
}

/* ============================================================
   Pitch (left column)
   ============================================================ */
.brand,
.details {
  display: flex;
  flex-direction: column;
  gap: var(--sp-16);
}

.pitch__mark {
  margin-bottom: var(--sp-8);
  animation: rise 700ms ease-out both;
}

.brand-photo-ring {
  display: inline-flex;
  filter: drop-shadow(0 0 14px rgba(201, 162, 39, 0.35));
}

.brand-photo {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

@media (min-width: 960px) {
  .brand-photo {
    width: 132px;
    height: 132px;
  }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  font-family: var(--font-ui);
  font-size: var(--fs-14);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  animation: rise 700ms ease-out 60ms both;
}

.eyebrow__rule {
  width: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-dim));
}
.eyebrow__rule:last-child {
  background: linear-gradient(90deg, var(--gold-dim), transparent);
}

.badge {
  display: inline-block;
  padding: var(--sp-4) var(--sp-16);
  border: 1px solid var(--wine-bright);
  background: rgba(92, 24, 48, 0.18);
  color: var(--gold-bright);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 999px;
  animation: rise 700ms ease-out 120ms both;
}

.headline {
  margin: var(--sp-8) 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5vw + 1rem, var(--fs-64));
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--ink);
  animation: rise 700ms ease-out 180ms both;
}

.headline em {
  font-style: italic;
  color: var(--gold-bright);
}

.subhead {
  max-width: 46ch;
  margin: 0;
  font-size: var(--fs-20);
  line-height: 1.6;
  color: var(--ink-muted);
  animation: rise 700ms ease-out 260ms both;
}

.pillars {
  list-style: none;
  margin: var(--sp-16) 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-8);
  animation: rise 700ms ease-out 340ms both;
}

.pillars li {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  font-size: var(--fs-14);
  color: var(--ink-muted);
}

.pillars__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}

/* ============================================================
   Form panel (right column)
   ============================================================ */
.panel {
  grid-area: panel;
  width: 100%;
  min-width: 0;
  background: linear-gradient(180deg, var(--bg-elevated-2), var(--bg-elevated));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--sp-24);
  box-shadow: var(--shadow-panel);
  animation: rise 700ms ease-out 200ms both;
}

@media (min-width: 960px) {
  .panel {
    padding: var(--sp-32);
  }
}

.panel__title {
  margin: 0 0 var(--sp-4);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--fs-24);
  line-height: 1.2;
  color: var(--ink);
  text-align: center;
}

.panel__hint {
  margin: 0 0 var(--sp-16);
  font-size: var(--fs-14);
  color: var(--ink-muted);
  text-align: center;
}

@media (min-width: 960px) {
  .panel__hint {
    margin: 0 0 var(--sp-24);
  }
}

.field {
  margin-bottom: var(--sp-16);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

@media (min-width: 960px) {
  .field {
    margin-bottom: var(--sp-24);
  }
}

.field label {
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 0;
}

.field input[type="text"],
.field input[type="email"],
.field input[type="tel"] {
  font-family: var(--font-ui);
  font-size: var(--fs-16);
  color: var(--ink);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: var(--sp-8) var(--sp-16);
  height: 40px;
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out;
}

@media (min-width: 960px) {
  .field input[type="text"],
  .field input[type="email"],
  .field input[type="tel"] {
    height: 44px;
  }
}

.phone-group {
  display: flex;
  gap: var(--sp-8);
}

.phone-group input[type="tel"] {
  flex: 1;
  min-width: 0;
}

.ddi-select {
  flex: none;
  width: 92px;
  font-family: var(--font-ui);
  font-size: var(--fs-14);
  color: var(--ink);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0 var(--sp-8);
  height: 40px;
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out;
}

@media (min-width: 960px) {
  .ddi-select {
    height: 44px;
  }
}

.ddi-select:hover {
  border-color: var(--gold-dim);
}

.ddi-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.field input::placeholder {
  color: var(--ink-faint);
}

.field input:hover {
  border-color: var(--gold-dim);
}

.field input:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}

.field input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field__error {
  display: none;
  font-size: var(--fs-12);
  color: var(--danger);
  min-height: 1em;
}

.field__error:not(:empty) {
  display: block;
}

.field__error--form {
  margin: 0 0 var(--sp-24);
  text-align: center;
}

.cta {
  position: relative;
  width: 100%;
  height: 48px;
  border: none;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #1a1408;
  font-family: var(--font-ui);
  font-size: var(--fs-16);
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: var(--shadow-cta);
  transition: transform 160ms ease-out, box-shadow 160ms ease-out, filter 160ms ease-out;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
}

@media (min-width: 960px) {
  .cta {
    height: 52px;
  }
}

.cta:hover {
  filter: brightness(1.06);
  box-shadow: 0 10px 32px -8px rgba(201, 162, 39, 0.6);
  transform: translateY(-1px);
}

.cta:active {
  transform: translateY(0);
}

.cta:disabled {
  cursor: not-allowed;
  filter: grayscale(0.15) brightness(0.9);
  transform: none;
}

.cta__spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(26, 20, 8, 0.35);
  border-top-color: #1a1408;
  border-radius: 50%;
}

.cta.is-loading .cta__label { opacity: 0.75; }
.cta.is-loading .cta__spinner {
  display: inline-block;
  animation: spin 700ms linear infinite;
}

.privacy {
  margin: var(--sp-8) 0 0;
  font-size: var(--fs-12);
  line-height: 1.5;
  color: var(--ink-faint);
  text-align: center;
}

@media (min-width: 960px) {
  .privacy {
    margin: var(--sp-16) 0 0;
    line-height: 1.6;
  }
}

/* ============================================================
   Motion
   ============================================================ */
@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .pitch__mark, .eyebrow, .badge, .headline, .subhead, .pillars, .panel {
    animation: none !important;
  }
  .cta.is-loading .cta__spinner { animation: none !important; }
}
