/* AlienSMM — landing
   Mesma estrutura da landing do BrazilAPI, com identidade própria: fundo de
   espaço profundo, verde "ectoplasma" como cor de ação e violeta de apoio. */
:root {
  --void: #07090F;
  --deep: #0D1120;
  --deep-2: #131A2E;
  --glow: #9BFF4F;
  --glow-2: #7EEB2E;
  --violet: #A78BFA;
  --ink: #EEF2FF;
  --muted: #9AA3BD;
  --line: #222A42;
  --line-2: #2E3858;

  --f-display: "Unbounded", "Arial Black", sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, Menlo, monospace;

  --r: 16px;
  --wrap: 1180px;
  --gutter: clamp(16px, 4vw, 32px);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font: 400 17px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.05; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--glow); color: var(--void); padding: 8px 14px; z-index: 100; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 0 24px; border-radius: 999px;
  font: 700 16px/1 var(--f-body); text-decoration: none; white-space: nowrap;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn--glow { background: var(--glow); color: var(--void); box-shadow: 0 0 0 0 rgba(155,255,79,0); }
.btn--glow:hover { background: var(--glow-2); box-shadow: 0 0 28px -4px rgba(155,255,79,.55); }
.btn--line { border-color: var(--line-2); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn--ghost { color: var(--ink); }
.btn--ghost:hover { background: var(--deep-2); }
.btn--onDark { border-color: rgba(255,255,255,.3); color: var(--ink); }
.btn--onDark:hover { border-color: var(--ink); background: rgba(255,255,255,.06); }

/* ---------- Header ---------- */
.top {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 9, 15, .82);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.top__in { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand__mark { width: 36px; height: 36px; }
.brand__name { font: 800 21px/1 var(--f-display); letter-spacing: -.01em; color: var(--ink); }
.brand__name b { color: var(--glow); font-weight: 800; }

.nav { display: flex; gap: 28px; margin-left: 12px; }
.nav a { text-decoration: none; font-weight: 500; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--ink); }
.nav .nav__lang { font: 500 13px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; }

.top__actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.burger { display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .2s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Hero ---------- */
/* O brilho e as estrelas são só CSS: nenhuma imagem para baixar na primeira dobra. */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(40px, 7vw, 88px) 0 clamp(56px, 8vw, 104px);
  background:
    radial-gradient(600px 400px at 85% 20%, rgba(167,139,250,.18), transparent 70%),
    radial-gradient(500px 360px at 10% 90%, rgba(155,255,79,.10), transparent 70%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 32% 72%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 48% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 63% 48%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 78% 82%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 92% 34%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 44%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 55% 92%, #fff 50%, transparent 51%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 13px/1 var(--f-mono); color: var(--glow); text-transform: uppercase; letter-spacing: .06em;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 10px var(--glow); }
.hero__title {
  margin-top: 20px;
  font: 800 clamp(32px, 3.9vw, 54px)/1.04 var(--f-display);
  letter-spacing: -.02em;
}
.hero__title em {
  font-style: normal; display: block; color: var(--glow);
  text-shadow: 0 0 32px rgba(155,255,79,.35);
}
.hero__lead { margin-top: 24px; max-width: 34em; font-size: clamp(17px, 1.6vw, 19px); color: var(--muted); }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__facts {
  list-style: none; padding: 0; margin: 40px 0 0;
  display: flex; flex-wrap: wrap; gap: 12px 28px;
  font-size: 14px; color: var(--muted);
}
.hero__facts strong { font: 600 14px/1 var(--f-mono); color: var(--ink); margin-right: 4px; }

/* ---------- Rate board (assinatura) ---------- */
.board {
  margin: 0; background: linear-gradient(180deg, var(--deep-2), var(--deep));
  color: #DCE2F5; border: 1px solid var(--line-2);
  border-radius: 20px; padding: 22px 22px 18px;
  box-shadow: 0 30px 80px -30px rgba(167,139,250,.35), 0 0 0 1px rgba(155,255,79,.04);
  position: relative;
}
.board::after { /* feixe de luz no topo, como o de um disco voador */
  content: ""; position: absolute; left: 22px; right: 22px; top: -1px; height: 3px;
  background: linear-gradient(90deg, transparent, var(--glow) 30%, var(--violet) 70%, transparent);
  border-radius: 0 0 4px 4px;
}
.board__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 2px 14px; }
.board__title { font: 800 17px/1 var(--f-display); text-transform: uppercase; letter-spacing: .04em; color: var(--ink); }
.board__live { display: inline-flex; align-items: center; gap: 8px; font: 400 12px/1 var(--f-mono); color: var(--muted); }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 0 0 rgba(155,255,79,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(155,255,79,0); } 100% { box-shadow: 0 0 0 0 rgba(155,255,79,0); } }

.board__table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.board__table th {
  font: 500 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: #7C86A6;
  text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line-2);
}
.board__table td { padding: 11px 8px; white-space: nowrap; border-bottom: 1px dashed var(--line); }
.board__table tbody tr:last-child td { border-bottom: 0; }
.board__table tbody tr { transition: background-color .2s; }
.board__table tbody tr:hover { background: rgba(155,255,79,.04); }
.num { text-align: right !important; font-family: var(--f-mono); white-space: nowrap; }
td.num { color: #A9B2CC; font-size: 13px; }
td.rate { color: var(--glow); font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.tag {
  display: inline-block; font: 600 11px/1 var(--f-mono); text-transform: uppercase; letter-spacing: .04em;
  padding: 5px 7px; border-radius: 5px; margin-right: 6px; vertical-align: 1px;
  background: rgba(255,255,255,.07); color: var(--ink);
}
.flag, .refill {
  display: inline-block; font: 600 10px/1 var(--f-mono); padding: 3px 5px; border-radius: 4px; margin-left: 4px; vertical-align: 2px;
}
.flag { background: var(--violet); color: var(--void); }
.refill { border: 1px solid var(--glow); color: var(--glow); }
.board__cap { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: #7C86A6; }

/* chegada linha a linha — só no desktop, onde o quadro aparece na primeira dobra */
@media (min-width: 901px) {
  .js .board__table tbody tr { animation: rowIn .45s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 70ms + 150ms); }
}
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section--tint { background: var(--deep); border-block: 1px solid var(--line); }
.sec-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.sec-title { font: 800 clamp(30px, 4vw, 48px)/1.05 var(--f-display); letter-spacing: -.02em; }
.sec-lead { margin-top: 18px; color: var(--muted); font-size: clamp(16px, 1.5vw, 18px); max-width: 38em; }

/* Platforms */
.plats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.plat {
  background: var(--deep); border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 20px 20px; display: flex; flex-direction: column; gap: 12px;
  position: relative; overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.plat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--c, var(--glow)); }
.plat:hover { border-color: var(--line-2); transform: translateY(-2px); }
.plat--tt { --c: #25F4EE; }
.plat--kw { --c: #FF7A00; }
.plat h3 { font: 800 19px/1.1 var(--f-display); }
.plat p { color: var(--muted); font-size: 15px; flex: 1; }
.plat__rates { margin: 8px 0 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.plat__rates div { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.plat__rates dt { font-size: 14px; color: var(--muted); }
.plat__rates dd { margin: 0; font: 600 15px/1 var(--f-mono); color: var(--glow); }
.plat__rates dd span { font: 400 12px/1 var(--f-body); color: var(--muted); margin-right: 4px; }
.plat__rates dd b { font-weight: 600; }
.faq details p b { color: var(--glow); font-weight: 600; white-space: nowrap; }
.note { margin-top: 24px; }
.note a { font-weight: 700; color: var(--glow); text-underline-offset: 4px; }

/* Why */
.why { display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.why__title { position: sticky; top: 110px; }
.why__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.why__list li { padding: 28px 28px 28px 0; border-top: 2px solid var(--line-2); }
.why__list li:nth-child(odd) { padding-right: 32px; }
.why__list h3 { font: 700 20px/1.25 var(--f-body); }
.why__list p { margin-top: 10px; color: var(--muted); font-size: 15.5px; }

/* API */
.api { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.ticks { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--glow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.4 6.8 11 12 5.4' stroke='%2307090F' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.code { background: #05070C; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); min-width: 0; }
.code__bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: var(--deep); }
.code__bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); }
.code__bar em { margin-left: auto; font: 400 12px/1 var(--f-mono); font-style: normal; color: #7C86A6; }
.code pre { margin: 0; padding: 22px 20px; overflow-x: auto; font: 400 13.5px/1.75 var(--f-mono); color: #DCE2F5; }
.c-k { color: var(--violet); }
.c-s { color: var(--glow); }
.c-n { color: #7DD3FC; }
.c-c { color: #5F6987; }

/* Steps */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.steps li { counter-increment: s; background: var(--void); border-radius: var(--r); padding: 28px 24px; border: 1px solid var(--line); }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--glow); color: var(--void); font: 800 18px/1 var(--f-display); margin-bottom: 20px;
  box-shadow: 0 0 24px -4px rgba(155,255,79,.5);
}
.steps h3 { font: 700 20px/1.25 var(--f-body); }
.steps p { margin-top: 8px; color: var(--muted); font-size: 15.5px; }

/* FAQ */
.faq { display: grid; grid-template-columns: 1fr 2fr; gap: clamp(24px, 5vw, 72px); }
.faq__list { border-top: 2px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative;
  font: 600 18px/1.35 var(--f-body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--glow); border-bottom: 2px solid var(--glow); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 24px; color: var(--muted); max-width: 40em; }

/* Final CTA */
.final {
  padding: clamp(64px, 9vw, 112px) 0; position: relative; overflow: hidden;
  background: radial-gradient(700px 380px at 90% 50%, rgba(155,255,79,.14), transparent 70%), var(--deep);
  border-top: 1px solid var(--line);
}
.final::before { /* o feixe de abdução */
  content: ""; position: absolute; right: 6%; top: -40px; bottom: -40px; width: 320px;
  background: linear-gradient(180deg, rgba(155,255,79,.18), transparent);
  clip-path: polygon(40% 0, 60% 0, 100% 100%, 0 100%);
  pointer-events: none;
}
.final__in { position: relative; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 32px; }
.final__title { font: 800 clamp(30px, 4.6vw, 56px)/1.05 var(--f-display); letter-spacing: -.02em; max-width: 13em; }
.final__cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.foot { background: #04060A; color: var(--muted); padding: 40px 0; font-size: 14.5px; border-top: 1px solid var(--line); }
.foot__in { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; justify-content: space-between; }
.foot .brand__name { font-size: 19px; }
.foot__brand p { margin-top: 6px; }
.foot__links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot__links a { text-decoration: none; }
.foot__links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 1040px) {
  .why { grid-template-columns: 1fr; }
  .why__title { position: static; }
}
@media (min-width: 901px) and (max-width: 1140px) {
  .board__table th:nth-child(2), .board__table td:nth-child(2) { display: none; }
}
@media (max-width: 900px) {
  .hero__grid, .api, .faq { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .burger { display: block; }
  .nav {
    position: absolute; left: 0; right: 0; top: 72px; margin: 0;
    flex-direction: column; gap: 0; background: var(--void); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 16px; display: none;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 0; font-size: 17px; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .hide-sm { display: none; }
  .top__in { gap: 12px; }
  .brand__name { font-size: 18px; }
  .brand__mark { width: 32px; height: 32px; }
  .top__actions .btn--glow { padding: 0 12px; font-size: 14px; }
  .plats { grid-template-columns: 1fr; }
  .why__list { grid-template-columns: 1fr; }
  .why__list li, .why__list li:nth-child(odd) { padding-right: 0; }
  .board { padding: 18px 12px 14px; border-radius: 16px; }
  .board::after { left: 12px; right: 12px; }
  .board__table { font-size: 13.5px; }
  .board__table th:nth-child(2), .board__table td:nth-child(2) { display: none; }
  .board__table td, .board__table th { padding-left: 4px; padding-right: 4px; }
  .hero__cta .btn, .final__cta .btn { flex: 1 1 100%; }
  .code pre { font-size: 12px; padding: 18px 14px; }
  .final::before { right: -80px; }
  .hero__grid > * { min-width: 0; }
  .hero__title { font-size: clamp(30px, 9vw, 40px); }
}
/* Celulares de 320px: o nome da marca e o botão não cabem lado a lado. */
@media (max-width: 350px) {
  .brand__name { display: none; }
}

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