/* ===== Reset & Variáveis ===== */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0d0f1a;
  --bg-alt: #121524;
  --surface: #191d33;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f5f6fa;
  --text-muted: #9aa0b5;
  --primary: #6c5ce7;
  --primary-light: #a29bfe;
  --accent: #00cec9;
  --gradient: linear-gradient(135deg, #6c5ce7 0%, #00cec9 100%);
  --radius: 16px;
  --container: 1140px;
  --font-title: "Sora", sans-serif;
  --font-body: "Inter", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(var(--container), 92%);
  margin-inline: auto;
}

.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ===== Botões ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  font-family: var(--font-title);
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 8px 24px rgba(108, 92, 231, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(108, 92, 231, 0.5);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  border-color: var(--primary-light);
  color: var(--primary-light);
}

.btn--sm {
  padding: 0.55rem 1.3rem;
  font-size: 0.85rem;
}

.btn--lg {
  padding: 1rem 2.5rem;
  font-size: 1.05rem;
}

/* ===== Badge ===== */
.badge {
  display: inline-block;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--primary-light);
  background: rgba(108, 92, 231, 0.12);
  border: 1px solid rgba(108, 92, 231, 0.3);
  margin-bottom: 1rem;
}

/* ===== Header ===== */
.header {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 100;
  padding: 1rem 0;
  transition: background 0.3s ease, box-shadow 0.3s ease, padding 0.3s ease;
}

.header--scrolled {
  background: rgba(13, 15, 26, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
  padding: 0.6rem 0;
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.8rem;
}

.nav__link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

.nav__link:hover {
  color: var(--text);
}

.header__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}

.header__toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 11rem 0 6rem;
  text-align: center;
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.35;
  pointer-events: none;
}

.hero__glow--1 {
  width: 480px;
  height: 480px;
  background: var(--primary);
  top: -120px;
  left: -120px;
}

.hero__glow--2 {
  width: 420px;
  height: 420px;
  background: var(--accent);
  bottom: -140px;
  right: -100px;
  opacity: 0.2;
}

.hero__inner {
  position: relative;
  z-index: 1;
}

.hero__title {
  font-family: var(--font-title);
  font-size: clamp(2rem, 5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.4rem;
}

.hero__subtitle {
  max-width: 620px;
  margin: 0 auto 2.4rem;
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero__actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero__stats {
  display: flex;
  justify-content: center;
  gap: 4rem;
  margin-top: 4.5rem;
  flex-wrap: wrap;
}

.stat__number {
  font-family: var(--font-title);
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat__label {
  display: block;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ===== Seções ===== */
.section {
  padding: 6rem 0;
}

.section--alt {
  background: var(--bg-alt);
}

.section__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3.5rem;
}

.section__title {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.section__subtitle {
  color: var(--text-muted);
}

/* ===== Grid & Cards ===== */
.grid {
  display: grid;
  gap: 1.5rem;
}

.grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(108, 92, 231, 0.5);
}

.card__icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(108, 92, 231, 0.14);
  color: var(--primary-light);
  margin-bottom: 1.3rem;
}

.card__icon svg {
  width: 26px;
  height: 26px;
}

.card__title {
  font-family: var(--font-title);
  font-size: 1.15rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.card__text {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ===== Sobre ===== */
.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__content p {
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.about__content .section__title {
  margin-bottom: 1.2rem;
}

.about__list {
  list-style: none;
  margin-bottom: 2rem;
  display: grid;
  gap: 0.7rem;
}

.about__list li {
  padding-left: 1.8rem;
  position: relative;
  color: var(--text);
}

.about__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

/* Code window decorativo */
.code-window {
  background: #0a0c16;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.code-window__bar {
  display: flex;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.code-window__bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
}

.code-window__bar span:nth-child(2) {
  background: #febc2e;
}

.code-window__bar span:nth-child(3) {
  background: #28c840;
}

.code-window__body {
  padding: 1.5rem;
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 0.85rem;
  line-height: 1.8;
  overflow-x: auto;
  color: var(--text);
}

.c-key { color: #ff79c6; }
.c-var { color: #8be9fd; }
.c-fn  { color: #50fa7b; }
.c-str { color: #f1fa8c; }
.c-com { color: #6272a4; }

/* ===== Produto ===== */
.product {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
}

.product__content p {
  color: var(--text-muted);
  margin-bottom: 1.4rem;
}

.product__content .section__title {
  margin-bottom: 1.2rem;
}

.product__content .about__list {
  margin-bottom: 1.4rem;
}

.product__note {
  font-size: 0.92rem;
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--accent);
  background: rgba(0, 206, 201, 0.06);
  border-radius: 0 10px 10px 0;
  margin-bottom: 2rem !important;
}

/* Mockup de celular com chat */
.phone {
  width: min(300px, 100%);
  margin-inline: auto;
  background: #0a0c16;
  border: 1px solid var(--border);
  border-radius: 36px;
  padding: 12px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  position: relative;
}

.phone__notch {
  width: 90px;
  height: 20px;
  background: #0a0c16;
  border-radius: 0 0 14px 14px;
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
}

.phone__screen {
  background: #101423;
  border-radius: 26px;
  overflow: hidden;
  min-height: 380px;
}

.chat__header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 2rem 1rem 0.8rem;
  background: rgba(108, 92, 231, 0.12);
  border-bottom: 1px solid var(--border);
}

.chat__avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--gradient);
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 0.9rem;
}

.chat__header strong {
  display: block;
  font-size: 0.85rem;
}

.chat__header small {
  color: #25d366;
  font-size: 0.72rem;
}

.chat__body {
  padding: 1rem 0.9rem;
  display: grid;
  gap: 0.6rem;
}

.chat__msg {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px 12px 12px 4px;
  padding: 0.65rem 0.8rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text);
  max-width: 92%;
}

.chat__msg--time {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.68rem;
  padding: 0;
  justify-self: end;
}

/* ===== Steps ===== */
.step {
  text-align: left;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border);
}

.step__number {
  font-family: var(--font-title);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step__title {
  font-family: var(--font-title);
  font-size: 1.05rem;
  margin: 0.6rem 0 0.4rem;
}

.step__text {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* ===== CTA / Formulário ===== */
.section--cta {
  background:
    radial-gradient(600px 300px at 50% 0%, rgba(108, 92, 231, 0.18), transparent),
    var(--bg-alt);
}

.cta {
  text-align: center;
  max-width: 680px;
}

.cta__title {
  font-family: var(--font-title);
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.cta__subtitle {
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  display: grid;
  justify-items: center;
  gap: 0.4rem;
}

.contact-card__icon {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(108, 92, 231, 0.14);
  color: var(--primary-light);
  margin-bottom: 0.8rem;
}

.contact-card__icon svg {
  width: 28px;
  height: 28px;
}

.contact-card__label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-card__email {
  font-family: var(--font-title);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  word-break: break-all;
}

.contact-card__hint {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

.contact-card__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 1.6rem;
}

.contact-card__feedback {
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.6rem;
}

.footer__copy a {
  color: var(--primary-light);
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.footer__copy {
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer__links {
  display: flex;
  gap: 1.5rem;
}

.footer__links a {
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: color 0.2s ease;
}

.footer__links a:hover {
  color: var(--text);
}

/* ===== Animações de scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal--visible {
  opacity: 1;
  transform: none;
}

/* ===== Responsivo ===== */
@media (max-width: 900px) {
  .grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .about {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .product {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .product__visual {
    order: 2;
  }
}

@media (max-width: 640px) {
  .header__toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 64px;
    inset-inline: 0;
    flex-direction: column;
    align-items: center;
    padding: 2rem 0;
    gap: 1.4rem;
    background: rgba(13, 15, 26, 0.97);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transform: translateY(-140%);
    transition: transform 0.3s ease;
  }

  .nav--open {
    transform: translateY(0);
  }

  .grid--3,
  .grid--4 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 8.5rem;
  }

  .hero__stats {
    gap: 2.2rem;
  }
}
