:root {
  --bg: #0b0f18;
  --bg-alt: #0e1320;
  --surface: #131a2a;
  --surface-2: #182135;
  --line: #222c42;
  --text: #e8ebf2;
  --muted: #9aa3b6;
  --amber: #f5a623;
  --amber-soft: rgba(245, 166, 35, .12);
  --maroon: #7a1f2e;
  --green: #4ade80;
  --radius: 14px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Space Grotesk", var(--font);
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 16px/1.65 var(--font); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
strong, b { font-weight: 600; color: var(--text); }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }

.skip { position: absolute; left: -999px; top: 8px; background: var(--amber); color: #000; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 6px; }

.eyebrow { font: 600 .82rem/1.4 var(--mono); color: var(--amber); letter-spacing: .02em; margin-bottom: 14px; }
.hl { color: var(--amber); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--amber); color: #141004; font-weight: 600; text-decoration: none;
  padding: 13px 22px; border-radius: 10px; border: 1px solid var(--amber);
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 24px -8px rgba(245, 166, 35, .55); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--amber); box-shadow: none; }
.btn-sm { padding: 8px 16px; font-size: .92rem; }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn svg { width: 22px; height: 22px; fill: currentColor; }
.link { color: var(--amber); text-decoration: none; font-weight: 600; font-size: .95rem; }
.link:hover { text-decoration: underline; }

/* Top bar */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 15, 24, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand img, .foot-brand img { flex-shrink: 0; align-self: center; width: 40px; height: 40px; object-fit: contain; border-radius: 50%; }
.foot-brand img { width: 44px; height: 44px; }
.wordmark { font: 700 1.2rem/1 var(--display); letter-spacing: .02em; white-space: nowrap; }
.wordmark b { color: var(--amber); }
.wordmark small { font: 500 .7rem var(--display); letter-spacing: .35em; color: var(--muted); margin-left: 4px; }
.menu { display: flex; align-items: center; gap: 28px; }
.menu a:not(.btn) { text-decoration: none; color: var(--muted); font-size: .95rem; font-weight: 500; }
.menu a:not(.btn):hover { color: var(--text); }
.menu-btn { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.menu-btn span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; transition: .2s; }

/* Hero */
.hero {
  position: relative; padding: 72px 0 56px;
  background:
    radial-gradient(600px 400px at 80% 30%, rgba(245, 166, 35, .10), transparent 70%),
    radial-gradient(500px 400px at 10% 90%, rgba(122, 31, 46, .25), transparent 70%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 36em; }
.lead strong { color: var(--text); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { position: relative; justify-self: center; max-width: 440px; width: 100%; }
.hero-art img { margin-inline: auto;  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55)); }
.terminal {
  position: relative; z-index: 1; width: min(360px, 100%); margin: -18px auto 0;
  background: rgba(8, 11, 18, .94); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, .7); overflow: hidden;
}
.term-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--surface); border-bottom: 1px solid var(--line); }
.term-bar i { width: 10px; height: 10px; border-radius: 50%; background: #3a4358; }
.term-bar i:first-child { background: #e0564f; }
.term-bar i:nth-child(2) { background: var(--amber); }
.term-bar span { font: .72rem var(--mono); color: var(--muted); margin-left: 8px; }
.terminal pre { margin: 0; padding: 14px 16px; font: .76rem/1.7 var(--mono); color: #cfd5e2; white-space: pre; }
.terminal .p { color: var(--amber); }
.terminal .ok { color: var(--green); }
.cursor { animation: blink 1.1s steps(1) infinite; color: var(--amber); }
@keyframes blink { 50% { opacity: 0; } }

/* Proof */
.proof { border-block: 1px solid var(--line); background: var(--bg-alt); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-grid div { padding: 22px 20px; border-left: 1px solid var(--line); }
.proof-grid div:first-child { border-left: 0; padding-left: 0; }
.proof-grid strong { display: block; font-size: .95rem; margin-bottom: 2px; }
.proof-grid span { font-size: .85rem; color: var(--muted); }

/* Sections */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.sec-head { max-width: 680px; margin-bottom: 48px; }
.sec-head p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }

/* Cards */
.cards { display: grid; gap: 20px; }
.cards-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; display: flex; flex-direction: column; transition: border-color .2s, transform .2s;
}
.card:hover { border-color: #33405c; transform: translateY(-3px); }
.card p { color: var(--muted); }
.card ul { list-style: none; padding: 0; margin: 0 0 16px; font-size: .92rem; }
.card li { padding: 6px 0 6px 20px; position: relative; border-top: 1px dashed var(--line); }
.card li::before { content: "›"; position: absolute; left: 4px; color: var(--amber); font-weight: 700; }
.card .link { margin-top: auto; }
.card-accent { background: linear-gradient(160deg, rgba(122, 31, 46, .35), var(--surface) 60%); border-color: rgba(122, 31, 46, .7); }
.ico {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--amber-soft); margin-bottom: 18px;
}
.ico svg { width: 24px; height: 24px; fill: none; stroke: var(--amber); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Products */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.product {
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 36px 32px;
  display: flex; flex-direction: column; align-items: flex-start;
}
.product h3 { font-size: 1.7rem; }
.product-tag { font: 600 .75rem var(--mono); color: var(--amber); background: var(--amber-soft); padding: 5px 10px; border-radius: 6px; margin-bottom: 18px; }
.product-lead { color: var(--muted); font-size: 1.05rem; }
.product .btn { margin-top: auto; }
.product-book { background: linear-gradient(170deg, #1a1420, var(--surface) 55%); }
.checks { list-style: none; padding: 0; margin: 0 0 28px; }
.checks li { padding: 8px 0 8px 30px; position: relative; color: var(--muted); }
.checks li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--amber-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23f5a623' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.stats { display: flex; gap: 32px; margin: 4px 0 20px; }
.stats strong { display: block; font: 700 2rem/1 var(--display); color: var(--amber); }
.stats span { font-size: .85rem; color: var(--muted); }
.toc { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; margin-bottom: 18px; background: rgba(0, 0, 0, .2); }
.toc summary { cursor: pointer; padding: 12px 0; font-weight: 600; font-size: .95rem; }
.toc ol { margin: 0 0 14px; padding-left: 20px; color: var(--muted); font-size: .9rem; }
.toc li { padding: 3px 0; }
.toc li::marker { color: var(--amber); font-family: var(--mono); }
.note { font-size: .9rem; color: var(--muted); margin-bottom: 24px; }

/* Topics */
.topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.topic { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.topic p { color: var(--muted); font-size: .95rem; margin: 0; }
.num { display: block; font: 600 .8rem var(--mono); color: var(--amber); margin-bottom: 12px; }
.topic-cta { background: var(--amber-soft); border: 1px dashed var(--amber); display: flex; flex-direction: column; align-items: flex-start; }
.topic-cta p { margin-bottom: 18px; }
.formats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.formats dt { font: 600 .75rem var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.formats dd { margin: 4px 0 0; font-weight: 500; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { position: relative; padding: 26px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.steps li span {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  border: 1.5px solid var(--amber); color: var(--amber); font: 700 .95rem var(--mono); margin-bottom: 16px;
}
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }
.stack { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }
.stack span { font: .82rem var(--mono); color: var(--muted); border: 1px solid var(--line); padding: 6px 12px; border-radius: 999px; }

/* About */
.about { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.about p:not(.eyebrow) { color: var(--muted); font-size: 1.05rem; }
.about p strong { color: var(--text); }
.facts { margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 24px; }
.facts div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.facts div:first-child { border-top: 0; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; font-weight: 500; text-align: right; }

/* FAQ */
.faq { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 36px 20px 0; font-weight: 600; font-size: 1.05rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font: 400 1.5rem var(--mono); color: var(--amber); transition: transform .2s; }
.faq[open] summary::after { transform: rotate(45deg); }
.faq p { color: var(--muted); padding-bottom: 12px; }

/* Contact */
.contact { background: radial-gradient(700px 300px at 50% 100%, rgba(245, 166, 35, .12), transparent 70%); }
.contact-box {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
  background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 56px;
}
.contact-box p:not(.eyebrow) { color: var(--muted); font-size: 1.1rem; margin: 0; }
.contact-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.contact-line { font: 500 1rem var(--mono); text-decoration: none; }
a.contact-line:hover { color: var(--amber); }
.muted { color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0 28px; background: var(--bg-alt); }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 32px; flex-wrap: wrap; }
.foot-brand { display: flex; align-items: center; gap: 14px; }
.foot-brand p { color: var(--muted); font-size: .85rem; margin: 8px 0 0; }
.footer nav { display: flex; gap: 24px; flex-wrap: wrap; }
.footer nav a { color: var(--muted); text-decoration: none; font-size: .92rem; }
.footer nav a:hover { color: var(--text); }
.copy { color: var(--muted); font-size: .8rem; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }

/* WhatsApp flutuante */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 30px -6px rgba(0, 0, 0, .6);
  transition: transform .15s;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* Responsivo */
@media (max-width: 1024px) {
  .cards-4 { grid-template-columns: repeat(2, 1fr); }
  .topics { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .menu-btn { display: block; }
  .menu {
    position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 20px; display: none;
  }
  .menu.open { display: flex; }
  .menu a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .menu .btn { margin-top: 16px; }
  .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero { padding: 40px 0 48px; }
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-art { max-width: 360px; }
  .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .proof-grid div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .proof-grid div:nth-child(-n+2) { border-top: 0; }
  .products, .about, .contact-box { grid-template-columns: 1fr; }
  .contact-box { padding: 36px 24px; }
  .section { padding: 72px 0; }
}
@media (max-width: 600px) {
  .cards-4, .topics, .steps, .formats { grid-template-columns: 1fr; }
  .proof-grid { grid-template-columns: 1fr; }
  .proof-grid div:nth-child(2) { border-top: 1px solid var(--line); }
  .product { padding: 28px 22px; }
  .cta-row .btn { width: 100%; }
  .terminal pre { font-size: .66rem; padding: 12px; }
  .facts div { flex-direction: column; gap: 2px; }
  .facts dd { text-align: left; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Seletor de idioma */
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.lang a { padding: 6px 10px; font: 600 .78rem var(--mono); color: var(--muted) !important; text-decoration: none; border: 0 !important; }
.lang a[aria-current="true"] { background: var(--amber-soft); color: var(--amber) !important; }
.lang a:hover { color: var(--text) !important; }
@media (max-width: 900px) {
  .menu .lang { align-self: flex-start; margin-top: 16px; }
  .menu .lang a { padding: 8px 14px; font-size: .9rem; }
}
@media (max-width: 400px) {
  .contact-line { font-size: .88rem; overflow-wrap: anywhere; }
  .contact-box { padding: 32px 20px; }
}

/* Preço da apostila */
.buy { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: auto; }
.price { font: 700 2.4rem/1 var(--display); color: var(--text); display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.price small { font-size: 1rem; color: var(--amber); font-weight: 600; }
.price span { flex-basis: 100%; font: 400 .8rem var(--font); color: var(--muted); margin-top: 6px; }
