/* ArenaHub · landing page. Tokens alinhados ao app (src/index.css). */
:root {
  --bg: #151817;
  --bg-deep: #0f1210;
  --surface: #1d211f;
  --elevated: #252a27;
  --primary: #b8f36b;
  --primary-hover: #c7fa84;
  --primary-soft: rgba(184, 243, 107, 0.1);
  --fg: #f5f6f3;
  --muted: #a1a9a2;
  --subtle: #717a73;
  --border: #343a35;
  --border-strong: #495149;
  --sand: #e5b86b;
  --blue: #81b8ed;
  --on-primary: #131611;
  --radius: 0.75rem;
  --radius-lg: 1.25rem;
  --wrap: 72rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --display: "Archivo", "Inter", system-ui, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 1rem/1.6 "Inter", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
svg { width: 1.125em; height: 1.125em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -999px; top: 0.5rem; z-index: 100; padding: 0.5rem 1rem; background: var(--primary); color: var(--on-primary); border-radius: 0.5rem; font-weight: 600; }
.skip:focus { left: 0.5rem; }

/* Tipografia */
.display {
  font-family: var(--display);
  font-style: italic;
  font-weight: 900;
  font-size: clamp(2.75rem, 6vw, 4.75rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
}
.display em, .display-sm em { font-style: italic; color: var(--primary); }
.display-sm {
  font-family: var(--display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(2rem, 4.6vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.lead { color: var(--muted); font-size: clamp(1rem, 1.6vw, 1.125rem); max-width: 34rem; }
.kicker { color: var(--primary); font-weight: 600; font-size: 0.8125rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 0.875rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.875rem; margin-bottom: 1.5rem;
  border: 1px solid var(--border); border-radius: 999px;
  background: rgba(29, 33, 31, 0.7); backdrop-filter: blur(6px);
  color: var(--muted); font-size: 0.8125rem; font-weight: 500;
}
.dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 0 rgba(184, 243, 107, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(184, 243, 107, 0); } 100% { box-shadow: 0 0 0 0 rgba(184, 243, 107, 0); } }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.5rem; padding: 0.5rem 1rem;
  border: 1px solid transparent; border-radius: 0.625rem;
  font-weight: 600; font-size: 0.9375rem; white-space: nowrap; cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease), color 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn svg { transition: transform 0.2s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn-lg { min-height: 3.25rem; padding: 0.75rem 1.5rem; font-size: 1rem; border-radius: 0.75rem; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { border-color: var(--border-strong); color: var(--fg); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--fg); }
.btn-dark { background: var(--on-primary); color: var(--primary); }
.btn-dark:hover { background: #000; }
.btn-dark-outline { border-color: rgba(19, 22, 17, 0.35); color: var(--on-primary); }
.btn-dark-outline:hover { border-color: var(--on-primary); }

/* Navegação */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent; }
.nav.is-scrolled { background: rgba(21, 24, 23, 0.82); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); border-bottom-color: var(--border); }
.nav-inner { display: flex; align-items: center; gap: 1.5rem; height: 4.25rem; }
.brand img { width: 8rem; height: auto; }
.nav-links { display: flex; gap: 1.75rem; margin-left: auto; font-size: 0.9375rem; color: var(--muted); }
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; gap: 0.5rem; }

/* Hero */
.hero { position: relative; padding-top: 7.5rem; overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2;
  background:
    radial-gradient(40rem 28rem at 78% 30%, rgba(184, 243, 107, 0.16), transparent 70%),
    radial-gradient(30rem 24rem at 10% 0%, rgba(129, 184, 237, 0.07), transparent 70%);
}
.court-lines {
  position: absolute; inset: 0; z-index: -1; opacity: 0.5;
  background:
    linear-gradient(var(--border) 1px, transparent 1px) 0 0 / 100% 6rem,
    linear-gradient(90deg, var(--border) 1px, transparent 1px) 0 0 / 6rem 100%;
  mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 10%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 60% 35%, #000 10%, transparent 75%);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; align-items: center; gap: 3rem; padding-bottom: 5rem; }
.hero-copy .display { margin-bottom: 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.hero-actions.center { justify-content: center; }
.hero-points { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 2rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.875rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-points svg { color: var(--primary); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 36rem; }

/* Celular */
.phone {
  --pw: 18rem;
  position: relative; width: var(--pw); aspect-ratio: 390 / 844;
  padding: calc(var(--pw) * 0.035);
  border-radius: calc(var(--pw) * 0.16);
  background: linear-gradient(145deg, #3a403b, #161917 40%, #222723);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.08),
    0 0 0 1px #0b0d0c,
    0 40px 80px -20px rgba(0, 0, 0, 0.7),
    0 0 120px -30px rgba(184, 243, 107, 0.25);
}
.phone::after { /* dynamic island */
  content: ""; position: absolute; top: calc(var(--pw) * 0.055); left: 50%; translate: -50% 0;
  width: 28%; height: calc(var(--pw) * 0.07); border-radius: 999px; background: #050605; z-index: 2;
}
.phone-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: calc(var(--pw) * 0.125); background: var(--bg); }
.phone-screen img { position: absolute; left: 0; top: 8%; width: 100%; height: 92%; object-fit: cover; object-position: top; }
.phone-screen::before { /* barra de status */
  content: "9:41"; position: absolute; inset: 0 0 auto; height: 8%; z-index: 1;
  display: flex; align-items: center; padding-left: 13%;
  background: #111412; color: var(--fg); font-weight: 600; font-size: calc(var(--pw) * 0.042);
}
.phone-screen::after { /* bateria */
  content: ""; position: absolute; top: 3.2%; right: 11%; z-index: 1;
  width: calc(var(--pw) * 0.06); height: calc(var(--pw) * 0.03); border-radius: 3px;
  background: var(--fg); opacity: 0.9;
}

.phone-hero { --pw: min(19rem, 72vw); transform: rotate(-4deg); animation: floaty 7s ease-in-out infinite; }
@keyframes floaty { 50% { transform: rotate(-4deg) translateY(-12px); } }

.float-card {
  position: absolute; z-index: 3;
  padding: 0.75rem 0.875rem; border: 1px solid var(--border-strong); border-radius: 0.875rem;
  background: rgba(29, 33, 31, 0.86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.6);
  font-size: 0.8125rem;
}
.fc-slot { left: 0; top: 18%; animation: floaty2 6s ease-in-out infinite; }
.fc-label { display: block; color: var(--muted); font-size: 0.75rem; margin-bottom: 0.5rem; }
.fc-slots { display: flex; gap: 0.375rem; }
.fc-slots span { padding: 0.3rem 0.6rem; border: 1px solid var(--border-strong); border-radius: 0.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.fc-slots .off { color: var(--subtle); text-decoration: line-through; border-color: var(--border); }
.fc-slots .on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.fc-ok { right: 0; bottom: 16%; display: flex; align-items: center; gap: 0.625rem; animation: floaty2 6s ease-in-out -3s infinite; }
.fc-ok strong { display: block; font-size: 0.875rem; }
.fc-ok small { color: var(--muted); }
.fc-icon { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
@keyframes floaty2 { 50% { transform: translateY(-8px); } }

/* Ticker */
.ticker { position: relative; overflow: hidden; padding: 0.875rem 0; background: var(--primary); color: var(--on-primary); transform: rotate(-1.5deg) scale(1.03); margin-bottom: 1rem; }
.ticker-track { display: flex; align-items: center; gap: 2rem; width: max-content; animation: marquee 30s linear infinite; font-family: var(--display); font-style: italic; font-weight: 900; font-size: clamp(1.25rem, 2.5vw, 1.75rem); text-transform: uppercase; letter-spacing: -0.01em; }
.ticker-track i { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: currentColor; }
@keyframes marquee { to { transform: translateX(-33.333%); } }

/* Seções */
.section { padding-block: clamp(4.5rem, 10vw, 8rem); }
.section-tight { padding-block: 0 clamp(4.5rem, 10vw, 8rem); }
.section-alt { background: var(--bg-deep); border-block: 1px solid var(--border); }
.section-head { margin-bottom: clamp(2.5rem, 6vw, 4rem); }
.section-lead { margin-top: 1.25rem; color: var(--muted); max-width: 36rem; font-size: 1.0625rem; }

/* Storytelling */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.story-steps { list-style: none; margin: 0; padding: 0; }
.story-step { min-height: 70vh; display: flex; flex-direction: column; justify-content: center; padding-left: 1.5rem; border-left: 2px solid var(--border); opacity: 0.35; transition: opacity 0.4s, border-color 0.4s; }
.story-step:first-child { min-height: 55vh; justify-content: flex-start; padding-top: 3rem; }
.story-step.is-active { opacity: 1; border-left-color: var(--primary); }
.step-num { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 1rem; color: var(--primary); margin-bottom: 0.75rem; }
.story-step h3 { font-family: var(--display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.125rem); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 1rem; }
.story-step p { color: var(--muted); font-size: 1.0625rem; max-width: 28rem; }
.phone-inline { display: none; }
.story-visual { position: relative; }
.phone-sticky { --pw: 19rem; position: sticky; top: calc(50vh - 19rem * 844 / 390 / 2); margin-inline: auto; }
.phone-sticky .phone-screen img { opacity: 0; transform: scale(1.03); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease); }
.phone-sticky .phone-screen img.is-active { opacity: 1; transform: none; }
.story-dots { position: sticky; top: calc(50vh + 19rem * 844 / 390 / 2 + 1.5rem); display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.story-dots span { width: 0.5rem; height: 0.5rem; border-radius: 999px; background: var(--border-strong); transition: width 0.3s var(--ease), background 0.3s; }
.story-dots span.is-active { width: 1.5rem; background: var(--primary); }

/* Garantias */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.trust { padding: 1.75rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); }
.trust-icon, .tile-icon { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-bottom: 1.25rem; border-radius: 0.75rem; background: var(--primary-soft); color: var(--primary); font-size: 1.25rem; }
.trust h3, .tile h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; letter-spacing: -0.01em; }
.trust p, .tile p { color: var(--muted); font-size: 0.9375rem; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.tile { position: relative; padding: 1.75rem; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; transition: border-color 0.3s, transform 0.3s var(--ease); }
.tile:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.tile-wide { grid-column: span 2; grid-row: span 2; display: flex; flex-direction: column; gap: 2rem; background: linear-gradient(160deg, #222824, var(--surface) 60%); }
.tile-wide h3 { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 0.75rem; }
.tile-wide p { font-size: 1rem; max-width: 30rem; }
.tile-tag { display: inline-block; margin-bottom: 1rem; padding: 0.25rem 0.625rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary); font-size: 0.75rem; font-weight: 600; }
.tile-accent { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.tile-accent p { color: rgba(19, 22, 17, 0.75); }
.tile-accent .tile-icon { background: rgba(19, 22, 17, 0.1); color: var(--on-primary); }

.agenda { margin-top: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); padding: 0.75rem; font-size: 0.75rem; }
.agenda-head, .agenda-row { display: grid; grid-template-columns: 3.25rem repeat(3, 1fr); gap: 0.375rem; align-items: center; }
.agenda-head { color: var(--subtle); font-weight: 600; padding-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.6875rem; }
.agenda-row { padding-block: 0.25rem; }
.agenda-row span { color: var(--muted); font-variant-numeric: tabular-nums; }
.agenda-row b { height: 2rem; border-radius: 0.5rem; border: 1px dashed var(--border); font-weight: 600; display: grid; place-items: center; color: transparent; font-size: 0.6875rem; }
.agenda-row b.busy { border: 0; background: rgba(184, 243, 107, 0.16); color: var(--primary); }
.agenda-row b.busy.blue { background: rgba(129, 184, 237, 0.16); color: var(--blue); }
.agenda-row b.busy.sand { background: rgba(229, 184, 107, 0.16); color: var(--sand); }

.onboard { margin-top: clamp(3rem, 7vw, 5rem); padding: clamp(1.75rem, 4vw, 3rem); border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg); }
.onboard-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.375rem, 2.4vw, 1.75rem); letter-spacing: -0.02em; margin-bottom: 2rem; }
.onboard-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; margin: 0 0 2.25rem; padding: 0; list-style: none; counter-reset: s; }
.onboard-steps li { display: flex; gap: 1rem; }
.onboard-steps li > span { display: grid; place-items: center; flex: none; width: 2.25rem; height: 2.25rem; border-radius: 50%; border: 1px solid var(--primary); color: var(--primary); font-family: var(--display); font-weight: 800; font-style: italic; }
.onboard-steps strong { display: block; margin-bottom: 0.25rem; }
.onboard-steps p { color: var(--muted); font-size: 0.9375rem; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 4rem; align-items: start; }
.faq-grid .section-head { position: sticky; top: 7rem; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:first-child { border-top: 1px solid var(--border); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.375rem 0; cursor: pointer; list-style: none; font-weight: 600; font-size: 1.0625rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border: 1px solid var(--border-strong); border-radius: 50%; color: var(--primary); font-weight: 500; font-size: 1.25rem; transition: transform 0.3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--primary); }
.faq details p { padding: 0 3rem 1.5rem 0; color: var(--muted); }

/* CTA final */
.cta { position: relative; overflow: hidden; background: var(--primary); color: var(--on-primary); padding-block: clamp(4.5rem, 10vw, 7.5rem); text-align: center; }
.cta::before { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(19,22,17,.07) 1px, transparent 1px) 0 0 / 100% 4rem, linear-gradient(90deg, rgba(19,22,17,.07) 1px, transparent 1px) 0 0 / 4rem 100%; }
.cta-inner { position: relative; display: flex; flex-direction: column; align-items: center; }
.cta-mark { width: 5rem; margin-bottom: 1.5rem; filter: brightness(0) saturate(100%); opacity: 0.85; }
.cta .display em { color: var(--on-primary); text-decoration: underline; text-decoration-thickness: 0.08em; text-underline-offset: 0.12em; }
.cta .lead { color: rgba(19, 22, 17, 0.75); margin-top: 1rem; }

/* Rodapé */
.footer { padding-block: 2.5rem; border-top: 1px solid var(--border); color: var(--subtle); font-size: 0.875rem; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; }
.footer-inner img { width: 6.5rem; }
.footer nav { display: flex; gap: 1.25rem; margin-left: auto; }
.footer nav a:hover { color: var(--fg); }

/* Revelação ao rolar */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* Responsivo */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .hero { padding-top: 6rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 1rem; padding-bottom: 3.5rem; }
  .hero-visual { min-height: 0; padding-block: 1.5rem 1rem; }
  .fc-slot { left: max(0px, calc(50% - 13rem)); top: 12%; }
  .fc-ok { right: max(0px, calc(50% - 13rem)); bottom: 10%; }

  .story { grid-template-columns: 1fr; }
  .story-visual { display: none; }
  .story-step, .story-step:first-child { min-height: 0; opacity: 1; padding: 0 0 3.5rem 1.25rem; }
  .story-step:last-child { padding-bottom: 0; }
  .story-step .phone-inline { display: block; --pw: min(16rem, 70vw); margin-top: 2rem; }

  .trust-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: 1 / -1; grid-row: auto; }
  .onboard-steps { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 0; }
  .faq-grid .section-head { position: static; }
}
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .brand img { width: 7rem; }
  .bento { grid-template-columns: 1fr; }
  .hero-actions .btn { flex: 1 1 100%; }
  .float-card { font-size: 0.75rem; padding: 0.625rem 0.75rem; }
  .fc-slot { left: 0; top: 8%; }
  .fc-ok { right: 0; bottom: 6%; }
  .fc-slots span { padding: 0.25rem 0.45rem; }
  .agenda { font-size: 0.6875rem; padding: 0.5rem; }
  .agenda-head, .agenda-row { grid-template-columns: 2.75rem repeat(3, 1fr); gap: 0.25rem; }
  .agenda-row b { font-size: 0; }
  .faq details p { padding-right: 0; }
  .footer nav { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
