:root {
  --bg: #0b0b0f;
  --bg2: #101018;
  --panel: #15151c;
  --text: #ffffff;
  --muted: #a0a0b0;
  --border: rgba(255, 255, 255, .06);
  /* ~#ffffff10 */
  --shadow: 0 16px 40px rgba(0, 0, 0, .45);
  --radius: 10px;
  --grad: linear-gradient(135deg, #ff4d6d, #c84cff, #4f7cff, #00c2ff);
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  display: block
}

a {
  color: inherit;
  text-decoration: none
}

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px
}

.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 15, .62);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px
}

.brand img {
  width: 26px;
  height: 26px;
  border-radius: 9px
}

.nav .brand img {
  height: 20px;
  width: auto;
}

.brand-name {
  font-weight: 800;
  letter-spacing: -0.02em;
}

.hero-spacer {
  height: 32px;
}

.contact-item.contact-item--social {
  gap: 12px;
}

.footer-inner {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end
}

.nav-links a {
  color: rgba(255, 255, 255, .86);
  font-weight: 600;
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 10px
}

.nav-links a:hover {
  background: rgba(255, 255, 255, .07)
}

.lang-btn {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, .04);
  color: var(--text);
  font-weight: 600;
  font-size: 12.5px;
  padding: 8px 12px;
  border-radius: 12px;
  cursor: pointer;
}

.lang-btn:hover {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .06)
}

.hero {
  padding: 96px 0 34px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -140px -140px auto -140px;
  height: 440px;
  background: var(--grad);
  filter: blur(80px);
  opacity: .10;
  /* mais suave */
  transform: rotate(-3deg);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center
}

.logo-wrap {
  width: min(280px, 70vw);
  margin: 0 auto 18px;
  position: relative;
}

.logo-wrap::after {
  content: "";
  position: absolute;
  inset: -18px;
  background: var(--grad);
  filter: blur(40px);
  opacity: .08;
  /* menos glow */
  border-radius: 999px;
  z-index: -1;
}

@font-face {
  font-family: "BubaDEMO-Outline";
  src: url("./fonts/BubaDEMO-Outline.ttf");
}

.site-name {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -.03em;
  margin: 8px 0 10px;
  font-family: 'BubaDEMO-Outline';
}

.headline {
  font-size: 20px;
  font-weight: 800;
  margin: 0 auto 10px;
  max-width: 860px;
  color: rgba(255, 255, 255, .96);
  line-height: 1.4;
  font-family: 'Courier New', Courier, monospace;
}

.subheadline {
  font-size: 15.5px;
  margin: 0 auto 20px;
  max-width: 860px;
  color: var(--muted);
  line-height: 1.55
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 18px;
  border-radius: 14px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .25);
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
  font-weight: 850;
}

.cta:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .28);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .35)
}

.verse {
  padding: 22px 0 0;
}

.verse-card {
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 16px;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.verse-text {
  font-size: 15px;
  font-weight: 650;
  color: rgba(255, 255, 255, .92);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.verse-ref {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 8px
}

.fade {
  transition: opacity .5s ease
}

.fade.out {
  opacity: 0
}

.fade.in {
  opacity: 1
}

.section {
  padding: 74px 0
}

.section--alt {
  background: var(--bg2)
}

.section-title {
  font-size: 20px;
  font-weight: 900;
  margin: 0 0 12px;
  letter-spacing: -.02em;
  color: rgba(255, 255, 255, .98);
  white-space: pre-line;
}

.section-sub {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 14.8px;
  max-width: 860px;
  line-height: 1.6
}

.section-about-text p {
  margin: 0 0 1em;
}

.section-about-text p:last-child {
  margin-bottom: 0;
}

.grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.card {
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 10px 26px rgba(0, 0, 0, .22);
  position: relative;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .35);
  border-color: rgba(255, 255, 255, .14)
}

.card::before {
  content: "";
  position: absolute;
  inset: -1px;
  background: var(--grad);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}

.card::after {
  content: "";
  position: absolute;
  inset: 1px;
  background: var(--panel);
  border-radius: calc(var(--radius) - 1px);
  pointer-events: none;
}

.card:hover::before {
  opacity: .22
}

.card-inner {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 16px;
  align-items: center
}

.card-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0
}

.app-icon {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .10);
  flex: 0 0 auto;
}

.app-name {
  font-weight: 950;
  font-size: 17.5px;
  margin: 0;
  color: rgba(255, 255, 255, .98)
}

.app-desc {
  margin: 0;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55
}

.card-details-row {
  margin-top: 2px
}

.details-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  background: rgba(255, 255, 255, .03);
  color: rgba(255, 255, 255, .92);
  font-weight: 850;
  font-size: 13.5px;
  transition: background .16s ease, border-color .16s ease, transform .16s ease;
}

.card:hover .details-btn {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .22);
  transform: translateY(-1px);
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: rgba(231, 231, 239, .9)
}

.pill {
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .03);
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  color: rgba(255, 255, 255, .86)
}

.contact-row {
  display: flex;
  flex-direction: column;
  gap: 12px
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(231, 231, 239, .92)
}

.contact-item a {
  color: rgba(231, 231, 239, .92)
}

.contact-item a:hover {
  text-decoration: underline
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .04);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.icon-btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .07);
  border-color: rgba(255, 255, 255, .18)
}

.footer {
  padding: 22px 0 34px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px
}

.reveal {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .55s ease, transform .55s ease
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0)
}

.app-hero {
  padding: 44px 0 12px;
}

.app-hero-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center
}

.app-banner {
  border-radius: calc(var(--radius) + 8px);
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
  overflow: hidden;
}

.app-meta {
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .05);
  font-weight: 750;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .18)
}

.btn.primary {
  background: linear-gradient(135deg, rgba(255, 77, 109, .25), rgba(200, 76, 255, .2), rgba(79, 124, 255, .18), rgba(0, 194, 255, .18));
  border-color: rgba(255, 255, 255, .14);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px
}

.shot {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .08);
  overflow: hidden;
  background: rgba(255, 255, 255, .02);
}

.qr {
  display: grid;
  gap: 10px;
  place-items: center;
  padding: 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .03);
}

.qr-img {
  width: 164px;
  height: 164px;
  object-fit: contain;
}

.muted {
  color: var(--muted)
}

@media (min-width:720px) {
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr))
  }

  .hero {
    padding: 110px 0 40px
  }

  .site-name {
    font-size: 42px
  }

  .headline {
    font-size: 22px
  }

  .subheadline {
    font-size: 16.3px
  }

  .app-hero-inner {
    grid-template-columns: 1.2fr .8fr
  }

  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media (min-width:1024px) {
  .grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr))
  }
}

/* Digitação: conteúdo revelado pelo JS (caractere a caractere); quebra natural na largura da tela */
.typing-demo {
  max-width: 100%;
  margin-inline: auto;
  min-width: 0;
  font-family: monospace;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.typing-demo .typing-text {
  white-space: normal;
}

.typing-demo .typing-cursor {
  display: inline-block;
  width: 0.45ch;
  border-right: 3px solid currentColor;
  min-height: 1em;
  margin-left: 1px;
  vertical-align: text-bottom;
  animation: typing-cursor-blink 0.5s step-end infinite alternate;
}

@media (max-width: 719px) {
  .headline.typing-demo {
    font-size: clamp(12px, 3.8vw + 0.4rem, 20px);
  }
}

@keyframes typing-cursor-blink {
  50% {
    border-color: transparent;
  }
}

/* Ativa a rolagem suave na página inteira */
html {
  scroll-behavior: smooth;
}
