:root {
  --ink: #0b0907;
  --paper: #f3ebe1;
  --muted: #b7a898;
  --accent: #e07a3d;
  --line: rgba(243, 235, 225, 0.12);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
html { background: var(--ink); }
body {
  min-height: 100dvh;
  color: var(--paper);
  font-family: "Outfit", system-ui, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
.sr {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0 0 0 0);
}

.stage {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  isolation: isolate;
}

.grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 20%, transparent 72%);
  animation: gridShift 28s linear infinite;
  pointer-events: none;
}
@keyframes gridShift {
  to { background-position: 56px 56px; }
}

.glow {
  position: absolute;
  width: min(70vw, 520px);
  height: min(70vw, 520px);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(224, 122, 61, 0.28), transparent 62%);
  filter: blur(8px);
  animation: glowPulse 7s ease-in-out infinite;
  pointer-events: none;
}
@keyframes glowPulse {
  0%, 100% { transform: scale(0.92); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

canvas#orbits {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.noise {
  position: absolute;
  inset: 0;
  opacity: 0.07;
  pointer-events: none;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.lang {
  position: absolute;
  top: max(1rem, env(safe-area-inset-top));
  right: max(1rem, env(safe-area-inset-right));
  z-index: 4;
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}
.lang a {
  min-width: 44px;
  min-height: 36px;
  display: grid;
  place-items: center;
  color: var(--muted);
}
.lang a.is-on { background: var(--paper); color: var(--ink); }

.card {
  position: relative;
  z-index: 2;
  width: min(40rem, 100%);
  text-align: center;
  padding: 0.5rem 0 1.5rem;
}

.mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.4rem;
  border-radius: 16px;
  display: grid;
  place-items: center;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: var(--paper);
  color: var(--ink);
  animation: markIn 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes markIn {
  from { transform: scale(0.6) rotate(-12deg); opacity: 0; }
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 1rem;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  animation: fadeUp 0.9s 0.15s both;
}
.badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(224, 122, 61, 0.7);
  animation: ping 1.8s ease-out infinite;
}
@keyframes ping {
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

h1 {
  margin: 0;
  display: flex;
  justify-content: center;
  flex-wrap: nowrap;
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(1.85rem, 7vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}
h1 span {
  display: inline-block;
  animation: letter 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
@keyframes letter {
  from { transform: translateY(1.1em) rotate(8deg); opacity: 0; }
}

.lede {
  margin: 1.15rem auto 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
  animation: fadeUp 1s 0.45s both;
}
.meta {
  margin: 0.55rem 0 0;
  color: rgba(243, 235, 225, 0.45);
  font-size: 0.88rem;
  animation: fadeUp 1s 0.55s both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

.acts {
  display: grid;
  gap: 10px;
  margin-top: 1.8rem;
  animation: fadeUp 1s 0.7s both;
}
.btn {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.2s, background 0.2s;
}
.btn:active { transform: scale(0.98); }
.btn--wa { background: #128c7e; color: #fff; }
.btn--wa:hover { background: #0e7368; }
.btn--ghost {
  border: 1px solid var(--line);
  color: var(--paper);
}
.btn--ghost:hover { background: rgba(243, 235, 225, 0.06); }

.bar {
  position: relative;
  height: 3px;
  margin: 2rem auto 0;
  width: min(16rem, 70%);
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
  animation: fadeUp 1s 0.85s both;
}
.bar b {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  animation: load 2.4s ease-in-out infinite;
}
@keyframes load {
  0% { transform: translateX(-120%); }
  100% { transform: translateX(280%); }
}

@media (max-width: 380px) {
  h1 { white-space: normal; font-size: 2.05rem; }
}
@media (min-width: 520px) {
  .acts { grid-template-columns: 1fr 1fr; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; }
  h1 span { opacity: 1; transform: none; }
}
