:root {
  --bg:           #2F324D;
  --bg-deep:      #1E2038;
  --surface:      #3D4166;
  --surface-high: #424566;
  --border:       #525680;
  --accent:       #EF6603;
  --accent-soft:  #FF8533;
  --accent-light: #FFF0E7;
  --text:         #E8E9F0;
  --text-strong:  #FFFFFF;
  --muted:        #9A9CB8;
  --muted-2:      #6B6D88;
  --paper:        #FCFCFE;
  --paper-2:      #F4F5FA;
  --ink:          #252840;
  --success:      #3A9E62;
  --warning:      #EF8C03;
  --shadow:       0 24px 70px rgba(19, 21, 39, .22);
  --radius:       24px;
  --max:          1180px;
}


/* ── Reset e base ── */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }


/* ── Navbar ── */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 99;
  height: 76px;
  display: flex;
  align-items: center;
  background: rgba(30, 32, 56, .78);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-logo {
  height: 44px;
  width: auto;
  display: block;
  object-fit: contain;
}

.brand strong { display: block; color: #fff; font-size: 1.05rem; letter-spacing: -.03em; }
.brand small  { color: var(--muted); font-size: .72rem; display: block; margin-top: 1px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: #C8CAE0;
  font-size: .84rem;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 999px;
  transition: .2s ease;
}

.nav-links a:hover { color: #fff; background: rgba(239,102,3,.14); }
.nav-cta { background: var(--accent) !important; color: #fff !important; box-shadow: 0 10px 24px rgba(239,102,3,.32); }
.menu-toggle { display: none; border: 0; background: transparent; color: #fff; font-size: 1.8rem; }


/* ── Hero ── */
.hero {
  min-height: 100vh;
  padding: 135px 0 90px;
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 85% 15%, rgba(239,102,3,.22), transparent 28%),
    radial-gradient(circle at 12% 8%, rgba(255,133,51,.13), transparent 25%),
    linear-gradient(135deg, #252840 0%, #2F324D 48%, #1E2038 100%);
  color: var(--text);
  overflow: hidden;
}

/* Grade de fundo */
.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), transparent 82%);
  z-index: -2;
}

/* Curva de transição para o conteúdo abaixo */
.hero:after {
  content: "";
  position: absolute;
  left: -10vw; right: -10vw; bottom: -85px;
  height: 190px;
  background: var(--paper);
  transform: rotate(-2deg);
  border-radius: 50% 50% 0 0;
  z-index: -1;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 54px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-soft);
  background: rgba(239,102,3,.12);
  border: 1px solid rgba(239,102,3,.32);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 22px 0 18px;
  font-size: clamp(2.7rem, 6vw, 5.35rem);
  line-height: .94;
  letter-spacing: -.07em;
  color: var(--text-strong);
}

.hero h1 span { color: var(--accent-soft); }

.hero-lead {
  color: #D2D4E6;
  font-size: clamp(1.04rem, 1.8vw, 1.28rem);
  line-height: 1.75;
  max-width: 700px;
  margin: 0 0 30px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-top: 28px;
}

/* Card visual do hero */
.hero-visual {
  position: relative;
  min-height: 560px;
  display: grid;
  place-items: center;
  overflow: visible;
}

.device-card {
  width: min(560px, 100%);
  border-radius: 34px;
  padding: 14px;
  background: linear-gradient(145deg, rgba(255,255,255,.18), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.screen {
  border-radius: 26px;
  background: linear-gradient(180deg, #3D4166, #252840);
  border: 1px solid rgba(255,255,255,.12);
  padding: 20px;
  min-height: 520px;
  overflow: hidden;
  position: relative;
}

.screen-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 700;
  margin-bottom: 18px;
}

/* GIF de demonstração */
.demo-gif-wrap {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
}

.demo-gif {
  width: 100%;
  display: block;
  border-radius: 18px;
  max-height: 260px;
  object-fit: cover;
  object-position: center;
}

.demo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(30,32,56,.5), transparent 60%);
  border-radius: 18px;
  pointer-events: none;
}

.demo-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(58,158,98,.9);
  color: #fff;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: .75rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Chat de exemplo */
.chat-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  padding: 14px;
  margin-top: 28px;
}

.chat-row {
  display: flex;
  gap: 10px;
  margin: 12px 0;
  align-items: flex-start;
}

.avatar {
  width: 34px; height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(239,102,3,.14);
  color: var(--accent-soft);
  flex: 0 0 auto;
}

.bubble {
  color: #E8E9F0;
  font-size: .84rem;
  line-height: 1.55;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.09);
  padding: 10px 12px;
  border-radius: 14px;
}

.bubble strong { color: #fff; }


/* ── Botões ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 800;
  font-size: .92rem;
  transition: .2s ease;
  border: 1px solid transparent;
  cursor: pointer;
}

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 16px 40px rgba(239,102,3,.32); }
.btn-primary:hover { transform: translateY(-2px); background: var(--accent-soft); }

.btn-ghost { color: #fff; border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.06); }
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(239,102,3,.55); background: rgba(239,102,3,.12); }

.btn-dark { background: var(--bg-deep); color: #fff; }

.btn-outline { border-color: var(--border); color: var(--ink); background: #fff; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }


/* ── Seções ── */
section { padding: 92px 0; }

.section-head { margin-bottom: 44px; }

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .74rem;
  margin-bottom: 12px;
}

.section-title {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 3.35rem);
  letter-spacing: -.06em;
  line-height: 1.03;
}

.section-desc {
  color: #2E3150;
  font-size: 1.04rem;
  line-height: 1.75;
  max-width: 780px;
  margin: 17px 0 0;
}

.center { text-align: center; }
.center .section-desc { margin-left: auto; margin-right: auto; }


/* ── Stats ── */
.stats { margin-top: -48px; position: relative; z-index: 5; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  background: #fff;
  border: 1px solid #ECECF4;
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 18px 50px rgba(31,34,57,.08);
}

.stat-card strong { display: block; color: var(--accent); font-size: 2rem; font-family: "JetBrains Mono", monospace; letter-spacing: -.05em; }
.stat-card span   { color: #2E3150; font-weight: 700; font-size: .88rem; }


/* ── Grids ── */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: stretch; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }


/* ── Cards ── */
.card {
  background: #fff;
  border: 1px solid #ECECF4;
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 18px 50px rgba(31,34,57,.08);
  transition: .2s ease;
}

.card:hover { transform: translateY(-4px); box-shadow: 0 24px 70px rgba(31,34,57,.12); }

.iconbox {
  width: 54px; height: 54px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  box-shadow: 0 12px 24px rgba(239,102,3,.22);
  margin-bottom: 18px;
  font-size: 1.45rem;
}

.card h3    { margin: 0 0 10px; color: var(--ink); font-size: 1.25rem; letter-spacing: -.03em; }
.card p,
.card li    { color: #2E3150; line-height: 1.72; font-size: .96rem; }
.card p:last-child { margin-bottom: 0; }


/* ── Seções escuras ── */
.dark-section {
  background:
    radial-gradient(circle at 15% 10%, rgba(239,102,3,.16), transparent 28%),
    linear-gradient(135deg, var(--bg-deep), var(--bg));
  color: var(--text);
  position: relative;
  overflow: hidden;
}

.dark-section .section-title { color: #fff; }
.dark-section .section-desc  { color: #D8DAF0; }
.dark-section h2 { color: #fff; }
.dark-section h3 { color: #fff; }

.dark-card {
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: none;
  color: var(--text);
}

.dark-card p,
.dark-card li { color: #E0E2F0; }

.dark-card code,
code {
  font-family: "JetBrains Mono", monospace;
  background: rgba(239,102,3,.12);
  color: var(--accent-soft);
  padding: .15rem .35rem;
  border-radius: 6px;
}


/* ── Como funciona (architecture grid) ── */
.architecture {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}

.step-card { position: relative; padding-top: 34px; }

.step-card:before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 20px; right: 24px;
  font: 800 2.8rem/1 "JetBrains Mono", monospace;
  color: rgba(239,102,3,.20);
}

.modality { display: flex; gap: 18px; align-items: flex-start; }
.modality .iconbox { flex: 0 0 auto; margin: 0; }


/* ── Download ── */
.download-band {
  background: linear-gradient(135deg, #fff, #FFF6F0);
  border: 1px solid rgba(239,102,3,.18);
  border-radius: 34px;
  padding: 34px;
  box-shadow: 0 24px 70px rgba(239,102,3,.10);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
}

.download-band h2 { margin: 0 0 8px; font-size: clamp(1.7rem, 3vw, 2.55rem); letter-spacing: -.05em; color: #252840; }
.download-band p  { margin: 0; color: #2E3150; line-height: 1.7; }
.download-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }


/* ── Tutorial ── */
.tutorial-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }

.codeblock {
  background: #16182B;
  color: #E8E9F0;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 18px;
  overflow-x: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: .84rem;
  line-height: 1.68;
}

.code-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  font-weight: 800;
  margin-bottom: 12px;
}

.copy-btn {
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #DCDDEC;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: .74rem;
  font-weight: 800;
  cursor: pointer;
}

.copy-btn:hover { border-color: var(--accent); color: var(--accent-soft); }


/* ── Timeline ── */
.timeline { position: relative; display: grid; gap: 18px; }

.timeline:before {
  content: "";
  position: absolute;
  left: 27px; top: 18px; bottom: 18px;
  width: 2px;
  background: linear-gradient(var(--accent), transparent);
}

.timeline-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  position: relative;
}

.timeline-dot {
  width: 56px; height: 56px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 14px 34px rgba(239,102,3,.25);
  z-index: 1;
}

.timeline-content {
  background: #fff;
  border: 1px solid #ECECF4;
  border-radius: 22px;
  padding: 20px 22px;
  box-shadow: 0 14px 34px rgba(31,34,57,.07);
}

.timeline-content h3 { margin: 0 0 7px; font-size: 1.08rem; color: #252840; }
.timeline-content p  { margin: 0; color: #2E3150; line-height: 1.7; }


/* ── FAQ ── */
.faq details {
  background: #fff;
  border: 1px solid #ECECF4;
  border-radius: 18px;
  padding: 18px 20px;
  box-shadow: 0 12px 35px rgba(31,34,57,.06);
}

.faq details + details { margin-top: 12px; }
.faq summary { cursor: pointer; font-weight: 800; color: var(--ink); }
.faq p { color: #2E3150; line-height: 1.75; margin-bottom: 0; }


/* ── Autores ── */
.author-avatar {
  width: 72px; height: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(239,102,3,.18);
  color: var(--accent-soft);
  font-size: 2rem;
  margin: 0 auto 16px;
  border: 2px solid rgba(239,102,3,.28);
}

.author-photo {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  display: block;
  border: 2px solid rgba(239,102,3,.28);
}


/* ── Footer ── */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 28px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-copy { color: var(--muted-2); font-size: .82rem; font-weight: 600; }


/* ── Botão voltar ao topo ── */
.back-top {
  position: fixed;
  right: 18px; bottom: 18px;
  z-index: 80;
  width: 46px; height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 16px 34px rgba(239,102,3,.28);
}


/* ── Responsivo ── */
@media (max-width: 1020px) {
  .hero-grid,
  .grid-2,
  .tutorial-tabs,
  .download-band { grid-template-columns: 1fr; }

  .hero-visual { min-height: 440px; }
  .stats-grid, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .architecture { grid-template-columns: 1fr 1fr; }
  .download-actions { justify-content: flex-start; }

  .nav-links {
    position: fixed;
    top: 76px; left: 16px; right: 16px;
    background: rgba(30,32,56,.98);
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 22px;
    padding: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }

  .nav-links.show { display: flex; }
  .nav-links a { display: block; }
  .menu-toggle { display: block; }
}

@media (max-width: 680px) {
  .container { width: min(var(--max), calc(100% - 28px)); }
  section { padding: 70px 0; }
  .hero { padding-top: 112px; }
  .stats-grid, .grid-3, .grid-4, .architecture { grid-template-columns: 1fr; }
  .topbar { height: 70px; }
  .nav-links { top: 70px; }
  .brand small { display: none; }
  .device-card { padding: 10px; }
  .screen { min-height: 460px; padding: 16px; }
  .download-band { padding: 24px; border-radius: 24px; }
  .hero-actions .btn,
  .download-actions .btn { width: 100%; }
}