/* ============ TOKENS · Brand Kit Máquina de Vendas ============ */
:root {
  --bg-deep: #020203;
  --bg-base: #050506;
  --bg-elevated: #0A0A0C;

  --surface: rgba(255,255,255,0.03);
  --surface-hover: rgba(255,255,255,0.06);

  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.14);

  --fg: #EDEDEF;
  --fg-muted: #8A8F98;
  --fg-dim: #5A5F68;

  --accent: #FF8A00;
  --accent-soft: #FFB800;
  --accent-glow: rgba(255,138,0,0.2);
  --accent-ring: rgba(255,138,0,0.35);

  --red: #FF4D4D;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --sidebar-w: 296px;
  --content-max: 820px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--bg-base);
  color: var(--fg);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }

/* ============ AMBIENT BLOBS ============ */
.blobs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.14;
}
.blob--1 { width: 400px; height: 400px; background: var(--accent); top: 8%; left: -8%; }
.blob--2 { width: 500px; height: 500px; background: var(--accent-soft); top: 38%; right: -14%; opacity: 0.08; }
.blob--3 { width: 350px; height: 350px; background: var(--accent); bottom: 6%; left: 32%; opacity: 0.10; }

/* ============ SIDEBAR ============ */
.sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  background: var(--bg-deep);
  border-right: 1px solid var(--border);
  padding: 24px 18px 22px 18px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 22px 8px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.brand img { width: 36px; height: 36px; border-radius: 8px; }
.brand-name { font-weight: 700; font-size: 13px; line-height: 1.2; letter-spacing: -0.01em; }
.brand-sub { font-size: 11px; color: var(--fg-muted); margin-top: 3px; }

nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }

.nav-section {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  padding: 16px 12px 8px 12px;
}

nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--fg-muted);
  transition: background .25s var(--ease), color .25s var(--ease);
}
nav a:hover { background: var(--surface); color: var(--fg); }
nav a.active {
  background: rgba(255,138,0,0.10);
  color: var(--accent);
  font-weight: 600;
}
nav a .num {
  font-size: 11px;
  color: var(--fg-dim);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  min-width: 16px;
}
nav a.active .num { color: var(--accent); }

.sidebar-footer {
  margin-top: 18px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.55;
}
.sidebar-footer strong { color: var(--accent); font-weight: 600; }

/* ============ MAIN ============ */
main {
  position: relative;
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  padding: 64px 72px 120px 72px;
  z-index: 1;
}

.content { max-width: var(--content-max); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 22px; height: 1px;
  background: var(--accent);
}

h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  letter-spacing: -0.035em;
  font-weight: 800;
  margin-bottom: 18px;
}
h1 .accent {
  background: linear-gradient(180deg, #FFFFFF, #FFB257);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-size: 17px;
  color: var(--fg-muted);
  margin-bottom: 44px;
  max-width: 680px;
  line-height: 1.6;
}

h2 {
  font-size: clamp(22px, 2.6vw, 28px);
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 56px 0 16px 0;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: 28px 0 10px 0;
}

p { margin-bottom: 14px; color: #d0d2d6; }

ul, ol { margin: 8px 0 18px 0; padding-left: 22px; }
li { margin-bottom: 8px; color: #d0d2d6; }

strong { color: var(--fg); font-weight: 600; }
em { color: var(--accent); font-style: normal; font-weight: 500; }

/* ============ COMPONENTS ============ */

.video-block {
  background: var(--bg-elevated);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 64px 28px;
  text-align: center;
  margin: 0 0 44px 0;
  position: relative;
  overflow: hidden;
}
.video-block::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 50% 40%, rgba(255,138,0,0.08), transparent 75%);
  pointer-events: none;
}
.video-block svg {
  margin: 0 auto 12px auto;
  color: var(--fg-dim);
}
.video-block .video-label {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 700;
  margin-bottom: 6px;
}
.video-block .video-title {
  font-size: 15px;
  color: var(--fg-muted);
  position: relative;
}

.callout {
  display: flex;
  gap: 14px;
  background: rgba(255,138,0,0.06);
  border: 1px solid var(--accent-ring);
  padding: 18px 22px;
  border-radius: var(--radius);
  margin: 24px 0;
}
.callout svg { flex-shrink: 0; color: var(--accent); margin-top: 2px; }
.callout .callout-body { flex: 1; }
.callout .callout-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.callout p { margin-bottom: 8px; color: var(--fg); }
.callout p:last-child { margin-bottom: 0; }

.callout--alert {
  background: rgba(255,77,77,0.06);
  border-color: rgba(255,77,77,0.35);
}
.callout--alert svg { color: var(--red); }
.callout--alert .callout-title { color: var(--red); }

.note {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 16px 20px;
  border-radius: var(--radius);
  margin: 22px 0;
  font-size: 14px;
  color: var(--fg-muted);
}

.figure {
  margin: 32px 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  transition: border-color .35s var(--ease);
  text-align: center;
}
.figure:hover { border-color: var(--accent-ring); }
.figure img {
  border-radius: var(--radius-sm);
  width: auto;
  max-width: 100%;
  max-height: 480px;
  margin: 0 auto;
  display: block;
  object-fit: contain;
}
.figure--wide img { max-height: 380px; width: 100%; object-fit: cover; object-position: top; }
.figure--tall img { max-height: 520px; }
.figure--small img { max-height: 320px; }
.figure figcaption {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--fg-muted);
  padding: 0 6px 4px 6px;
  line-height: 1.5;
  text-align: left;
}

.steps {
  list-style: none;
  padding-left: 0;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 18px 18px 18px 64px;
  margin-bottom: 10px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .35s var(--ease), transform .35s var(--ease);
}
.steps li:hover {
  border-color: var(--accent-ring);
  transform: translateY(-1px);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 18px; top: 18px;
  width: 30px; height: 30px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 800;
  font-size: 13px;
}
.steps li strong { color: var(--fg); }

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 22px 0 36px 0;
}
.card-tile {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: all 0.35s var(--ease);
  display: block;
}
.card-tile:hover {
  border-color: var(--accent-ring);
  transform: translateY(-2px);
  box-shadow: 0 18px 44px -18px rgba(255,138,0,0.4);
}
.card-tile .card-num {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 8px;
  text-transform: uppercase;
}
.card-tile .card-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.card-tile .card-sub {
  font-size: 13px;
  color: var(--fg-muted);
  line-height: 1.5;
}

.stage-flow {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  margin: 22px 0 36px 0;
}
.stage-flow .stage {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 8px;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  color: var(--fg-muted);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.stage-flow .stage .stage-num {
  font-size: 9.5px;
  letter-spacing: 0.16em;
  color: var(--fg-dim);
  display: block;
  margin-bottom: 4px;
}
.stage-flow .stage.current {
  background: rgba(255,138,0,0.10);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: 0 0 30px rgba(255,138,0,0.15);
}
.stage-flow .stage.current .stage-num { color: var(--accent); }

.next-page {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 64px;
  padding: 22px 26px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.35s var(--ease);
}
.next-page:hover {
  border-color: var(--accent-ring);
  transform: translateY(-1px);
  box-shadow: 0 18px 44px -18px rgba(255,138,0,0.4);
}
.next-page .np-label {
  font-size: 10.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-dim);
  font-weight: 700;
  margin-bottom: 4px;
}
.next-page .np-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--fg);
}
.next-page svg { color: var(--accent); }

.placeholder-box {
  background: repeating-linear-gradient(45deg, #0a0a0c 0 8px, #07070a 8px 16px);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  padding: 42px 26px;
  text-align: center;
  margin: 24px 0;
  color: var(--fg-dim);
  font-size: 13.5px;
}
.placeholder-box strong { color: var(--fg-muted); display: block; margin-bottom: 4px; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; }

.kbd {
  display: inline-block;
  padding: 2px 8px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  font-size: 12px;
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  color: var(--fg);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 960px) {
  .stage-flow { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 880px) {
  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--border);
  }
  main { margin-left: 0; padding: 36px 24px 72px 24px; }
  h1 { font-size: 30px; }
  .lede { font-size: 15.5px; }
  .next-page { flex-direction: column; align-items: flex-start; gap: 10px; }
}
