/* ==========================================================
   TOKENS
   ========================================================== */
:root {
  --bg:            #081423;
  --bg-elevated:   #0F1F35;
  --bg-elevated-2: #142A45;
  --line:          rgba(102,230,255,0.14);

  --ink:           #EAF6FF;
  --ink-muted:     #93B4CB;
  --ink-faint:     #5E7C90;

  --primary:       #00D4FF;
  --secondary:     #0099FF;
  --accent-bright: #66E6FF;

  --font-display:  'Cinzel', serif;
  --font-body:     'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:     'IBM Plex Mono', 'SFMono-Regular', monospace;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;

  --wrap: 1120px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================
   RESET / BASE
   ========================================================== */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  padding: 0.1em 0.45em;
  border-radius: 5px;
  color: var(--accent-bright);
}

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* subtle grain so the near-black background doesn't feel flat/digital-banding */
.noise-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ==========================================================
   BUTTONS
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 24px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(180deg, var(--accent-bright), var(--primary));
  color: #05202D;
  box-shadow: 0 8px 24px -8px rgba(0,212,255,0.55);
}
.btn-primary:hover { box-shadow: 0 10px 28px -6px rgba(0,212,255,0.7); }

.btn-outline {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-outline:hover { border-color: var(--ink-muted); background: rgba(255,255,255,0.03); }

.btn-small { padding: 9px 18px; font-size: 0.85rem; }
.btn-large { padding: 17px 32px; font-size: 1.05rem; }
.btn-block { display: flex; justify-content: center; width: 100%; }

/* ==========================================================
   TOPBAR
   ========================================================== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8,20,35,0.78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-avatar {
  width: 36px;
  height: 36px;
  min-width: 36px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.12), 0 0 16px rgba(0,212,255,0.35);
}
.brand-avatar-sm { width: 30px; height: 30px; min-width: 30px; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.03em;
}

.topbar-actions { display: flex; align-items: center; gap: 16px; }

/* ==========================================================
   HAMBURGER + SIDEBAR
   ========================================================== */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  cursor: pointer;
  align-items: center;
}
.hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.2s ease;
}
.hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.sidebar-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3,9,17,0.6);
  backdrop-filter: blur(2px);
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.sidebar-overlay.open { opacity: 1; pointer-events: auto; }

.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 300px;
  max-width: 84vw;
  background: linear-gradient(180deg, var(--bg-elevated-2), var(--bg-elevated));
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 60px -20px rgba(0,0,0,0.6);
  z-index: 70;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.sidebar.open { transform: translateX(0); }

.sidebar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
}

.sidebar-brand { display: flex; align-items: center; gap: 10px; }

.sidebar-close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 0.95rem;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.sidebar-close:hover { color: var(--ink); border-color: var(--primary); }

.sidebar-nav {
  display: flex;
  flex-direction: column;
  padding: 12px;
  gap: 4px;
  overflow-y: auto;
}

.sidebar-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}
.sidebar-link:hover {
  background: rgba(0,212,255,0.08);
  color: var(--ink);
  transform: translateX(4px);
}
.sidebar-icon { font-size: 1.05rem; }

.sidebar-foot {
  margin-top: auto;
  padding: 18px 22px 24px;
  border-top: 1px solid var(--line);
}

body.no-scroll { overflow: hidden; }

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  padding: 88px 0 96px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(ellipse 900px 500px at 15% 0%, rgba(0,153,255,0.12), transparent 60%),
    radial-gradient(ellipse 700px 500px at 100% 20%, rgba(0,212,255,0.10), transparent 60%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin: 0 0 18px;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.8rem, 5.4vw, 4.4rem);
  line-height: 1.05;
  margin: 0 0 18px;
  letter-spacing: 0.01em;
  background: linear-gradient(120deg, var(--ink), var(--accent-bright));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub-lead {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 14px;
  max-width: 44ch;
}

.hero-sub {
  color: var(--ink-muted);
  font-size: 1.02rem;
  max-width: 46ch;
  margin: 0 0 22px;
}

.hero-status {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin: 0 0 28px;
  scroll-margin-top: 100px;
}
.hero-status-sep { color: var(--ink-faint); }

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }

.hero-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}

/* ---- reel signature element ---- */
.hero-visual { display: flex; justify-content: center; }

.slot-machine {
  background: linear-gradient(180deg, var(--bg-elevated-2), var(--bg-elevated));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.04);
  width: 100%;
  max-width: 340px;
}

.slot-window {
  display: flex;
  gap: 10px;
  background: #04101C;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: inset 0 4px 18px rgba(0,0,0,0.7);
}

.reel {
  flex: 1;
  height: 92px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  position: relative;
}
.reel::before, .reel::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 26px;
  z-index: 2;
  pointer-events: none;
}
.reel::before { top: 0; background: linear-gradient(180deg, #04101C, transparent); }
.reel::after { bottom: 0; background: linear-gradient(0deg, #04101C, transparent); }

.reel-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.reel-strip span {
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.1rem;
}

.slot-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  color: var(--primary);
  margin-top: 16px;
}

@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .slot-machine { max-width: 300px; margin: 0 auto; }
}

/* ==========================================================
   SECTIONS (shared)
   ========================================================== */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-elevated); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 14px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 14px;
  max-width: 24ch;
}

.section-lede {
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 0 0 48px;
}

/* ==========================================================
   FEATURE CARDS (Recursos)
   ========================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.feature-card {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 16px 32px -16px rgba(0,212,255,0.35);
}
.feature-icon { font-size: 1.6rem; display: block; margin-bottom: 14px; }
.feature-card h3 { margin: 0 0 8px; font-size: 1.02rem; }
.feature-card p { margin: 0; color: var(--ink-muted); font-size: 0.88rem; }

@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ==========================================================
   COMANDOS (accordion)
   ========================================================== */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.acc-item {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-md);
  overflow: hidden;
  scroll-margin-top: 90px;
  transition: border-color 0.2s ease;
}
.acc-item.open { border-color: var(--accent); }

.acc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--ink);
  font-family: var(--font-body);
  text-align: left;
}
.acc-header:hover { background: rgba(255,255,255,0.02); }

.acc-icon { font-size: 1.15rem; }
.acc-title { flex: 1; font-weight: 700; font-size: 1rem; }

.acc-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border-radius: 999px;
  padding: 3px 10px;
}

.acc-chevron {
  font-size: 1.1rem;
  color: var(--ink-faint);
  transition: transform 0.25s ease;
  line-height: 1;
}
.acc-item.open .acc-chevron { transform: rotate(180deg); color: var(--accent); }

.acc-panel {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel-inner { overflow: hidden; }

.acc-list {
  list-style: none;
  margin: 0;
  padding: 16px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid var(--line);
}
.acc-list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 10px; }
.acc-list code { color: var(--accent); border-color: transparent; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.acc-list span { font-size: 0.88rem; color: var(--ink-muted); }

@media (max-width: 560px) {
  .acc-header { padding: 16px; gap: 10px; }
  .acc-title { font-size: 0.92rem; }
}

/* ==========================================================
   FEATURE ROWS (Guia)
   ========================================================== */
.feature-list { display: flex; flex-direction: column; }

.feature-row {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: 1px solid var(--line); }

.feature-num {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  color: var(--accent);
  opacity: 0.9;
}

.feature-body h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 0 0 10px;
}
.feature-body p { color: var(--ink-muted); margin: 0; max-width: 68ch; }

@media (max-width: 600px) {
  .feature-row { grid-template-columns: 1fr; gap: 8px; }
}

/* ==========================================================
   STATUS (usado na linha inline do Hero)
   ========================================================== */
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 0 rgba(102,230,255,0.6);
  animation: statusPulse 2s infinite;
  flex-shrink: 0;
}
@keyframes statusPulse {
  0%   { box-shadow: 0 0 0 0 rgba(102,230,255,0.55); }
  70%  { box-shadow: 0 0 0 9px rgba(102,230,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(102,230,255,0); }
}

.cta-final { display: flex; justify-content: center; }

/* ==========================================================
   SCROLL REVEAL
   ========================================================== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================
   FOOTER
   ========================================================== */
.footer { padding: 48px 0; }
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
}
.brand-footer .brand-name { font-size: 0.95rem; }
.footer-note { color: var(--ink-faint); font-size: 0.85rem; margin: 0; }
.footer-copy { color: var(--ink-faint); font-size: 0.78rem; margin: 4px 0 0; font-family: var(--font-mono); }
