/* A2Helper — site. Mesmas cores e fonte do app (src/renderer/src/styles.css): grafite azulado + lavanda. */
:root {
  --bg: #121419;
  --raised: #171a21;
  --line: #242833;
  --text: #e8eaf0;
  --text-2: #a3a9b8;
  --text-3: #6b7182;
  --aether: #a99cff;
  --aether-hi: #c0b6ff;
  --aether-rgb: 169, 156, 255;
  --sky: #5cc8ff;
  --ok: #5fd4a0;
  --wrap: 1120px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 'Onest', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--aether-hi); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--aether); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; text-wrap: balance; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* cabeçalho */
.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(18, 20, 25, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 32px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.top nav { display: flex; gap: 24px; margin-right: auto; }
.top nav a { color: var(--text-2); font-size: 15px; }
.top nav a:hover { color: var(--text); text-decoration: none; }

/* botões */
.btn {
  white-space: nowrap;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 22px; height: 52px; border-radius: 12px;
  background: var(--aether); color: #15121f;
  font-weight: 650; font-size: 17px;
  box-shadow: 0 8px 30px -8px rgba(var(--aether-rgb), 0.55);
  transition: background 0.15s, transform 0.15s;
}
.btn:hover { background: var(--aether-hi); text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.small { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 10px; box-shadow: none; }
.btn-ghost { color: var(--text-2); font-weight: 500; }
.btn-ghost:hover { color: var(--text); }

/* topo: banner de ponta a ponta (o download em destaque); o app ao vivo sobe por cima do fim dele */
.hero { padding: 0; }
.banner {
  position: relative; isolation: isolate; text-align: center; padding: 64px 0 150px;
}
.banner::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: url(assets/backdrop.webp) center 38% / cover no-repeat;
}
.banner::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 75% at 50% 42%, rgba(18, 20, 25, 0.35), rgba(18, 20, 25, 0.8)),
    linear-gradient(rgba(18, 20, 25, 0.55), transparent 22%, transparent 55%, var(--bg));
}
.banner-logo { width: min(280px, 60vw); height: auto; margin: 0 auto 8px; filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.55)); }
.banner h1 { font-size: clamp(28px, 4vw, 46px); font-weight: 700; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.6); }
.banner .lead { margin: 12px auto 0; color: #d3d6df; font-size: clamp(16px, 1.8vw, 19px); max-width: 620px; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.8); }
.banner .cta { justify-content: center; margin-top: 28px; }
.banner .meta { justify-content: center; color: #a7adbb; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8); }
.hero-shot .trust { justify-content: center; margin-top: 14px; }
.badge {
  display: inline-block; margin-bottom: 14px; padding: 4px 12px; border-radius: 99px;
  background: rgba(var(--aether-rgb), 0.12); color: var(--aether-hi); font-size: 14px; font-weight: 500;
}
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 26px; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 12px; color: var(--text-3); font-size: 14px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 18px 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: 15px; }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; color: var(--ok); flex: none; }

.hero-shot {
  position: relative; margin: -110px auto 0; max-width: 1400px; padding: 0 24px;
}
.hero-shot img {
  width: 100%; border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 120px -30px rgba(var(--aether-rgb), 0.35), 0 20px 60px -20px #000;
}
.hero-shot figcaption { margin-top: 12px; color: var(--text-3); font-size: 13px; text-align: center; }

/* o widget de verdade sobre um pedaço do cenário */
.stage {
  position: relative; display: grid; place-items: center; min-height: 200px; padding: 28px 20px;
  border-radius: 14px; overflow: hidden; isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.07);
}
.stage::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: var(--bg) url(assets/backdrop.webp) var(--pos, 50% 50%) / 260% no-repeat;
  filter: saturate(0.9) brightness(0.62);
}
.stage::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(120% 90% at 50% 50%, transparent 30%, rgba(18, 20, 25, 0.75));
}
.stage img { width: auto; max-width: min(100%, 440px); }

/* overlays: mosaico (o medidor alto à esquerda, dois largos à direita, três embaixo) */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile { grid-column: span 2; display: flex; flex-direction: column; padding: 8px; border-radius: 20px; background: var(--raised); border: 1px solid var(--line); }
.tile.tall { grid-column: span 3; grid-row: span 2; }
.tile.wide { grid-column: span 3; }
.tile .stage { flex: 1; }
.tile-text { padding: 16px 12px 12px; }
.tile h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.01em; }
.tile p { margin-top: 4px; color: var(--text-2); font-size: 15px; }

/* telas do app: carrossel */
.gallery { margin-bottom: 56px; }
.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tabs button {
  font: inherit; font-size: 15px; font-weight: 550; color: var(--text-2); cursor: pointer;
  padding: 8px 16px; border-radius: 99px; background: none; border: 1px solid var(--line);
  transition: color 0.15s, background 0.15s, border-color 0.15s;
}
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected='true'] { color: #15121f; background: var(--aether); border-color: var(--aether); }
.track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  border-radius: 20px; border: 1px solid var(--line); background: #13151b;
}
.track::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; display: flex; flex-direction: column; }
.screen { aspect-ratio: 1600 / 945; display: flex; justify-content: center; align-items: center; gap: 12px; padding: 0; overflow: hidden; }
.screen a { display: contents; cursor: zoom-in; }
.screen img { max-height: 100%; width: auto; object-fit: contain; min-width: 0; }
.screen.pair { padding: 0 24px; }
.screen.pair img { max-width: calc(50% - 6px); }
.slide figcaption { padding: 18px 24px 22px; border-top: 1px solid var(--line); font-size: 15px; color: var(--text-2); }
.slide figcaption strong { color: var(--text); font-weight: 600; margin-right: 4px; }
.gallery-nav { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 16px; }
.arrow {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 99px; cursor: pointer;
  background: var(--raised); border: 1px solid var(--line); color: var(--text-2);
}
.arrow:hover { color: var(--text); border-color: var(--text-3); }
.arrow svg { width: 18px; height: 18px; }
.dots { display: flex; gap: 6px; }
.dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 99px; background: var(--line); cursor: pointer; transition: width 0.2s, background 0.2s; }
.dots button[aria-current='true'] { width: 24px; background: var(--aether); }

/* mais funções */
.section { padding: 100px 0 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; }
.section-head p { margin-top: 12px; color: var(--text-2); }
.extras { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 40px; }
.extra { padding: 24px 0 28px; border-top: 1px solid var(--line); }
.extra h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.extra p { margin-top: 6px; color: var(--text-2); font-size: 15px; }

/* como começar */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 18px;
  border-radius: 12px; background: rgba(var(--aether-rgb), 0.12); color: var(--aether-hi); font-weight: 700;
}
.steps h3 { font-size: 19px; font-weight: 600; }
.steps p { margin-top: 6px; color: var(--text-2); font-size: 15px; }

/* novidades */
.release { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 32px; border-radius: 20px; background: var(--raised); border: 1px solid var(--line); }
.release-head .ver { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.release-head time { display: block; color: var(--text-3); font-size: 14px; }
.release-head a { display: inline-block; margin-top: 16px; font-size: 15px; }
.log h3 { font-size: 14px; font-weight: 600; color: var(--text-3); margin: 0 0 8px; }
.log > div + div { margin-top: 20px; }
.log ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 15px; color: var(--text-2); }
.log li::marker { color: var(--aether); }
.log .added h3 { color: var(--ok); }
.log .changed h3 { color: var(--aether); }

/* perguntas */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; cursor: pointer; list-style: none;
  font-size: 18px; font-weight: 550;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--aether); font-size: 24px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--text-2); max-width: 680px; }

/* chamada final */
.final { margin-top: 120px; padding: 96px 0; text-align: center; position: relative; isolation: isolate; overflow: hidden; }
.final::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: url(assets/backdrop.webp) center 40% / cover no-repeat; filter: brightness(0.35) saturate(0.8);
  mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent);
}
.final h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; }
.final p { margin-top: 12px; color: var(--text-2); }
.final .cta { justify-content: center; }
.final .meta { justify-content: center; }

/* rodapé */
.foot { padding: 40px 0 56px; color: var(--text-3); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; }
.foot nav { display: flex; gap: 20px; margin-left: auto; }
.foot a { color: var(--text-2); }
.foot small { flex-basis: 100%; font-size: 13px; }

/* página de novidades */
.page { padding: 64px 0 40px; }
.page h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 700; }
.page > .wrap > p { margin-top: 12px; color: var(--text-2); }
.history { display: grid; gap: 24px; margin-top: 48px; }

@media (max-width: 900px) {
  .top nav { display: none; }
  .top .wrap { justify-content: space-between; }
  .bento { grid-template-columns: 1fr 1fr; }
  .tile, .tile.wide { grid-column: span 1; }
  .tile.tall { grid-column: span 2; grid-row: auto; }
  .extras, .steps { grid-template-columns: 1fr 1fr; }
  .release { grid-template-columns: 1fr; gap: 20px; padding: 24px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap, .hero-shot { padding: 0 16px; }
  .banner { padding: 36px 0 64px; }
  .hero-shot { margin-top: -40px; }
  .hero-shot img { border-radius: 10px; }
  .extras, .steps { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile.tall { grid-column: auto; }
  .slide figcaption { padding: 14px 16px 16px; }
  .screen.pair { padding: 0 8px; }
  .stage { min-height: 240px; padding: 32px 16px; }
  .btn { width: 100%; justify-content: center; }
  .top .btn { width: auto; }
  .foot nav { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* telas grandes: o carrossel sai um pouco da coluna, como o print do topo */
@media (min-width: 1320px) {
  .gallery { margin-inline: -80px; }
}

/* demonstração do app no topo: a janela (--w, 16:9) escalada para a largura (--k), com a imagem até carregar */
.demo-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px; background: #121419;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 40px 120px -30px rgba(var(--aether-rgb), 0.35), 0 20px 60px -20px #000;
}
.hero-shot .demo-frame img { border: 0; border-radius: 0; box-shadow: none; width: 100%; height: 100%; object-fit: cover; }
.demo-frame iframe {
  position: absolute; left: 0; top: 0; width: var(--w, 1440px); height: calc(var(--w, 1440px) * 9 / 16); border: 0;
  transform: scale(var(--k, 1)); transform-origin: 0 0; opacity: 0; transition: opacity 0.4s;
}
.demo-frame.live iframe { opacity: 1; }
.demo-frame.live .demo-still { visibility: hidden; }
.hero-shot figcaption strong { color: var(--text-2); font-weight: 600; }
.demo-small { display: none; }
@media (max-width: 859px) {
  .demo-frame iframe { display: none; }
  .demo-live { display: none; }
  .demo-small { display: inline; }
}

/* telas estreitas: botão numa linha só, abas do carrossel numa faixa que rola de lado, links fáceis de tocar */
@media (max-width: 900px) {
  .foot nav a, .release-head a { display: inline-block; padding: 10px 0; }
}
@media (max-width: 600px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 16px; padding: 0 16px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { flex: none; }
  .foot nav { gap: 4px 20px; flex-wrap: wrap; }
}
@media (max-width: 380px) {
  .btn { font-size: 15px; padding: 0 14px; gap: 8px; }
  .top .btn { padding: 0 12px; }
}
