/* Cirandi — página temporária (em breve)
   Tokens: @patio/design-tokens (tokens.css) */

/* Tokens — @patio/design-tokens (tokens.css) */
:root {
  color-scheme: light;
  --color-brand: #E2673A;
  --color-brand-strong: #BF4A22;
  --color-success: #2F7D63;
  --color-accent: #F6C445;
  --color-text: #1F2A44;
  --color-text-muted: #5B6478;
  --color-info: #8EC5E8;
  --color-bg: #FFF7EC;
  --color-surface: #FFFFFF;
  --color-border: #EADFCF;
  --font-heading: "Nunito", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius-md: 16px;
  --radius-full: 999px;
  --shadow: 0 4px 16px rgba(31, 42, 68, 0.08);
  --ring-cream: #FFF7EC;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --color-brand: #E9805A;
    --color-brand-strong: #E9805A;
    --color-success: #71C3A6;
    --color-text: #FFF7EC;
    --color-text-muted: #B9C0CF;
    --color-bg: #141B2D;
    --color-surface: #1F2A44;
    --color-border: #2E3A56;
    --shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Fundo: arcos da roda, bem suaves */
.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.backdrop svg { position: absolute; }
.arc-tl { top: -220px; left: -220px; width: 520px; opacity: .55; }
.arc-br { bottom: -260px; right: -240px; width: 600px; opacity: .5; }
.arc-tl, .arc-br { animation: drift 60s linear infinite; }
.arc-br { animation-direction: reverse; animation-duration: 80s; }

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100% - 32px, 1120px);
  margin-inline: auto;
  padding-block: 32px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -0.01em;
  color: var(--color-text);
  text-decoration: none;
}
.wordmark svg { width: 34px; height: 34px; }
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
}
.pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--color-success);
  box-shadow: 0 0 0 0 rgba(47,125,99,.5);
  animation: pulse 2.4s ease-out infinite;
}

main {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 48px;
  padding-block: 48px;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 16px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--color-brand-strong);
}
h1 {
  margin: 0 0 20px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(40px, 6.2vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 .hl {
  position: relative;
  white-space: nowrap;
  color: var(--color-brand-strong);
}
h1 .hl::after {
  content: "";
  position: absolute;
  left: -2%;
  right: -2%;
  bottom: .06em;
  height: .22em;
  border-radius: var(--radius-full);
  background: var(--color-accent);
  opacity: .55;
  z-index: -1;
}
.lead {
  margin: 0 0 32px;
  max-width: 34ch;
  font-size: clamp(17px, 1.6vw, 20px);
  color: var(--color-text-muted);
}

.joiners {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.hands { display: flex; }
.hands span {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 3px solid var(--color-bg);
  margin-left: -10px;
}
.hands span:first-child { margin-left: 0; }
.hands .h1 { background: var(--color-info); }
.hands .h2 { background: var(--color-success); }
.hands .h3 { background: var(--color-brand); }
.hands .h4 {
  background: transparent;
  border: 2px dashed var(--color-text-muted);
  display: grid; place-items: center;
  font-family: var(--font-heading);
  font-size: 18px;
  color: var(--color-text-muted);
  animation: invite 3.2s ease-in-out infinite;
}
.joiners p { margin: 0; font-size: 15px; color: var(--color-text-muted); }
.joiners strong { color: var(--color-text); font-weight: 600; }

/* Roda principal */
.stage {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  width: min(100%, 460px);
  justify-self: center;
}
.halo {
  position: absolute;
  inset: 6%;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--color-surface) 0 58%, transparent 59%);
  box-shadow: var(--shadow);
}
.orbit {
  position: absolute;
  inset: 0;
  animation: spin 90s linear infinite;
}
.symbol {
  position: relative;
  width: 62%;
  overflow: visible;
}
.symbol .arc {
  fill: none;
  stroke-width: 22;
  stroke-linecap: round;
  stroke-dasharray: 0 360;
  animation: draw 1.1s cubic-bezier(.6,.1,.2,1) forwards;
}
.symbol .a2 { animation-delay: .25s; }
.symbol .a3 { animation-delay: .5s; }
.symbol .sun {
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
  animation: rise .7s cubic-bezier(.3,1.6,.5,1) 1.1s forwards, glow 4s ease-in-out 2s infinite;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--color-text-muted);
}
footer .en { font-style: italic; }

/* Entrada */
.reveal { opacity: 0; transform: translateY(12px); animation: up .8s ease forwards; }
.d1 { animation-delay: .15s; } .d2 { animation-delay: .3s; }
.d3 { animation-delay: .45s; } .d4 { animation-delay: .6s; }

@keyframes draw { to { stroke-dasharray: 80 280; } }
@keyframes rise { to { transform: scale(1); } }
@keyframes glow { 0%,100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: rotate(360deg); } }
@keyframes up { to { opacity: 1; transform: none; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(47,125,99,.45); }
  70%,100% { box-shadow: 0 0 0 8px rgba(47,125,99,0); }
}
@keyframes invite {
  0%,100% { transform: translateX(0); }
  50% { transform: translateX(4px); }
}

@media (max-width: 860px) {
  main { grid-template-columns: 1fr; gap: 24px; padding-block: 24px 40px; text-align: center; }
  .stage { order: -1; width: min(78%, 340px); }
  .lead { margin-inline: auto; }
  .joiners { justify-content: center; }
  .arc-tl { width: 300px; top: -170px; left: -170px; opacity: .35; }
  .arc-br { width: 340px; bottom: -200px; right: -190px; opacity: .3; }
}
@media (max-width: 420px) {
  .page { padding-block: 20px; }
  footer { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  .reveal { opacity: 1; transform: none; }
  .symbol .arc { stroke-dasharray: 80 280; }
  .symbol .sun { transform: none; }
}
