/* ============================================================
   China Connect — sistema de design da Arka (reuso 1:1)
   Cores, fontes e gestos puxados do site arkaeduc.com
   ============================================================ */

/* ---------- Fontes (self-hosted, mesmas do site) ---------- */
@font-face {
  font-family: "Sora";
  src: url("fonts/sora.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Montserrat";
  src: url("fonts/Montserrat-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens (travados, iguais ao site) ---------- */
:root {
  --ink: #0c121e;
  --surface: #1d2635;
  --gold: #cea98d;
  --golddeep: #a37650;
  --cream: #f0efe3;

  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Montserrat", system-ui, "Helvetica Neue", Arial, sans-serif;

  --hairline: color-mix(in srgb, var(--gold) 14%, transparent);
  --hairline-strong: color-mix(in srgb, var(--gold) 28%, transparent);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
}

::selection { background: var(--golddeep); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Grão sutil por cima de tudo (profundidade) ---------- */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  pointer-events: none;
  opacity: 0.05;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Palco ---------- */
.stage {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 22px calc(30px + env(safe-area-inset-bottom));
  overflow: hidden;
}

/* aurora dourada por trás (igual ao hero do site) */
.aurora {
  position: absolute;
  inset-inline: 0;
  top: -12%;
  z-index: 0;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.aurora::before {
  content: "";
  width: 820px;
  max-width: 150vw;
  height: 520px;
  border-radius: 50%;
  filter: blur(120px);
  background: radial-gradient(circle, rgba(206, 169, 141, 0.26), rgba(163, 118, 80, 0.09) 45%, transparent 70%);
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  text-align: center;
}

/* ---------- Marca ---------- */
.brand {
  height: 66px;
  width: auto;
  margin: 0 auto 24px;
  opacity: 0.95;
  display: block;
}

/* ---------- Eyebrow / pill ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--surface) 50%, transparent);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--gold) 90%, white);
}
.eyebrow .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--gold);
}

/* ---------- Títulos ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.05;
}
h1.display { margin-top: 22px; }
.gold { color: var(--gold); }
.gold-italic { color: var(--gold); font-style: italic; }

.sub {
  margin-top: 20px;
  font-size: 0.95rem;
  line-height: 1.64;
  color: color-mix(in srgb, var(--cream) 74%, transparent);
  max-width: 40ch;
  margin-inline: auto;
}

/* ---------- Faixa de números (sem caixa, hairline divisor) ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 40px auto 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
}
.stat { padding: 18px 6px; position: relative; }
.stat + .stat::before {
  content: "";
  position: absolute;
  left: 0; top: 22%; bottom: 22%;
  width: 1px;
  background: var(--hairline);
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--gold);
  font-size: 1.22rem;
  line-height: 1;
  white-space: nowrap;
}
.stat .num .sm { font-size: 0.6em; letter-spacing: 0; }
@media (max-width: 359px) { .stat .num { font-size: 1.05rem; } }
.stat .lbl {
  margin-top: 8px;
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cream) 50%, transparent);
  line-height: 1.4;
}

/* ---------- Assinatura: janela de datas com corner brackets ---------- */
.window {
  position: relative;
  margin: 38px auto 0;
  padding: 18px 22px;
  max-width: 330px;
}
.window::before,
.window::after,
.window .c3,
.window .c4 {
  content: "";
  position: absolute;
  width: 12px; height: 12px;
  border: 1.5px solid var(--hairline-strong);
}
.window::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.window::after { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.window .c3 { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.window .c4 { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.window .date {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  letter-spacing: 0.01em;
  color: var(--cream);
}
.window .win-lbl {
  margin-top: 6px;
  font-size: 0.5625rem;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--golddeep);
}

/* ---------- CTA ---------- */
.cta {
  position: relative;
  display: block;
  width: 100%;
  margin-top: 28px;
  padding: 18px 24px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--gold), var(--golddeep));
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  box-shadow: 0 14px 34px rgba(206, 169, 141, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cta:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(206, 169, 141, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3); }
.cta:active { transform: scale(0.985); }
.cta::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-160%);
  animation: sheen 5.5s ease-in-out infinite;
}
@keyframes sheen {
  0% { transform: translateX(-160%); }
  38%, 100% { transform: translateX(260%); }
}

.note {
  margin-top: 16px;
  font-size: 0.75rem;
  line-height: 1.55;
  color: color-mix(in srgb, var(--cream) 58%, transparent);
}

/* ---------- Rodapé ---------- */
.foot {
  margin-top: 34px;
  font-size: 0.625rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 600;
  color: color-mix(in srgb, var(--cream) 40%, transparent);
}

/* ============================================================
   Formulário (página de candidatura)
   ============================================================ */
.form { display: flex; flex-direction: column; gap: 16px; margin-top: 26px; text-align: left; }
.field { display: flex; flex-direction: column; }
.field label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin-bottom: 7px;
  color: color-mix(in srgb, var(--cream) 85%, transparent);
}
.field input,
.field select {
  width: 100%;
  padding: 14px 15px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--cream);
  background: color-mix(in srgb, white 5%, transparent);
  border: 1px solid var(--hairline-strong);
  border-radius: 12px;
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
  -webkit-appearance: none;
  appearance: none;
}
.field input::placeholder { color: color-mix(in srgb, var(--cream) 38%, transparent); }
.field input:focus,
.field select:focus {
  border-color: var(--gold);
  background: color-mix(in srgb, white 8%, transparent);
}
.field select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23CEA98D' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
}
.field select option { background: var(--surface); color: var(--cream); }

.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: color-mix(in srgb, var(--cream) 60%, transparent);
}
.consent input { margin-top: 2px; width: 15px; height: 15px; accent-color: var(--gold); flex: none; }

.note.legal { margin-top: 6px; text-align: center; }

/* ---------- Telas de retorno ---------- */
.screen { display: none; }
.screen.on { display: block; animation: rise 0.5s cubic-bezier(0.22, 1, 0.36, 1) both; }
.hide { display: none !important; }

.check {
  width: 72px; height: 72px;
  margin: 0 auto 22px;
  border-radius: 50%;
  border: 1.5px solid var(--hairline-strong);
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--gold) 8%, transparent);
}
.check svg { width: 32px; height: 32px; }
.screen h2 { font-size: 1.4rem; margin-bottom: 12px; }
.screen p { font-size: 0.95rem; line-height: 1.6; color: color-mix(in srgb, var(--cream) 76%, transparent); }

.wa-link {
  display: inline-block;
  margin-top: 22px;
  padding: 13px 22px;
  border-radius: 12px;
  border: 1px solid var(--hairline-strong);
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.wa-link:hover { background: color-mix(in srgb, var(--gold) 10%, transparent); border-color: var(--gold); }

/* ---------- Entrada suave no load ---------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.rise > * { animation: rise 0.7s cubic-bezier(0.22, 1, 0.36, 1) both; }
.rise > *:nth-child(1) { animation-delay: 0.02s; }
.rise > *:nth-child(2) { animation-delay: 0.10s; }
.rise > *:nth-child(3) { animation-delay: 0.18s; }
.rise > *:nth-child(4) { animation-delay: 0.26s; }
.rise > *:nth-child(5) { animation-delay: 0.34s; }
.rise > *:nth-child(6) { animation-delay: 0.42s; }
.rise > *:nth-child(7) { animation-delay: 0.50s; }
.rise > *:nth-child(8) { animation-delay: 0.58s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cta::after { animation: none; }
  .rise > *, .screen.on { animation: none; }
}

/* ---------- Escala tipográfica compartilhada (bio + form) ---------- */
.h1-bio { font-size: 2rem; }
.h1-form { font-size: 1.6rem; }
@media (min-width: 480px) {
  .h1-bio { font-size: 2.35rem; }
  .card { max-width: 468px; }
}
