/* ==========================================================================
   DashPro — tokens
   ========================================================================== */
:root {
  --bg: #07111e;
  --surface: #0d1929;
  --surface-2: #12213a;
  --brand-blue: #0066FF;
  --accent-cyan: #0ea5e9;
  --brand-orange: #FF6A00;
  --text: #e2e8f0;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --line: rgba(148,163,184,.12);
  --ok: #4ade80;
  --danger: #f87171;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;

  --header-h: 64px;
  --radius: 14px;
  --radius-sm: 8px;
  --container-w: 1120px;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}
img { max-width: 100%; display: block; }
h1, h2, h3 { font-weight: 800; line-height: 1.2; margin: 0 0 .6em; color: #fff; }
p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
svg { flex-shrink: 0; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--brand-blue);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 1000;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

.container {
  width: 100%;
  max-width: var(--container-w);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section { padding: 4rem 0; }
.section-alt { background: var(--surface); }
.section-title {
  font-size: clamp(1.5rem, 4vw + .5rem, 2.25rem);
  text-align: center;
  margin-bottom: 2.5rem;
}
.section-lead {
  text-align: center;
  max-width: 640px;
  margin: 1.5rem auto 0;
  font-size: 1.05rem;
}

/* ==========================================================================
   Buttons / badges
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .9rem 1.6rem;
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .95rem;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
  cursor: pointer;
}
.btn-primary {
  background: var(--brand-orange);
  color: #fff;
}
.btn-primary:hover { background: #e65f00; }
.btn-ghost {
  background: transparent;
  border-color: rgba(0,102,255,.5);
  color: #cfe0ff;
}
.btn-ghost:hover { background: rgba(0,102,255,.1); border-color: var(--brand-blue); }
.btn-large { padding: 1.1rem 2.2rem; font-size: 1.05rem; }
.btn-small { padding: .6rem 1.1rem; font-size: .85rem; min-height: 40px; }

.badge {
  display: inline-block;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: #93c5fd;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .02em;
  padding: .45rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.badge-center { display: block; width: fit-content; margin: 0 auto 1.5rem; }

/* ==========================================================================
   Header / nav
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7,17,30,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand { display: flex; align-items: center; height: 100%; }
.brand-logo {
  height: 36px;
  width: auto;
  mix-blend-mode: screen;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.menu-toggle-bar {
  display: block;
  width: 20px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-nav {
  position: fixed;
  top: var(--header-h);
  right: 0;
  height: calc(100dvh - var(--header-h));
  width: min(80vw, 320px);
  background: var(--surface);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  gap: .5rem;
  transform: translateX(100%);
  transition: transform .25s ease;
  z-index: 100;
}
.site-nav.is-open { transform: translateX(0); }
.site-nav a {
  padding: .85rem 1rem;
  min-height: 44px;
  display: flex;
  align-items: center;
  border-radius: var(--radius-sm);
  color: var(--text);
  font-weight: 600;
}
.site-nav a:not(.btn):hover { background: var(--surface-2); color: #fff; }
.site-nav .btn { margin-top: .5rem; }

.nav-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 99;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}
.nav-backdrop.is-open { opacity: 1; pointer-events: auto; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 3rem 0 3.5rem;
}
.hero-watermark {
  position: absolute;
  top: -10%;
  right: -18%;
  width: 60%;
  max-width: 640px;
  opacity: .06;
  pointer-events: none;
  z-index: 0;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}
.hero-title {
  font-size: clamp(1.9rem, 6vw + .3rem, 3.25rem);
  letter-spacing: -.01em;
}
.hero-sub {
  font-size: 1.05rem;
  max-width: 46ch;
}
.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: .9rem;
}
.hero-ctas .btn { width: 100%; }

/* ==========================================================================
   TV mockup
   ========================================================================== */
.tv-mockup { margin: 0; }
.tv-bezel {
  background: linear-gradient(155deg, #1a2c47, #0a1626);
  border-radius: 20px;
  padding: 14px;
  box-shadow: 0 30px 60px -20px rgba(0,102,255,.35), 0 0 0 1px var(--line);
}
.tv-screen {
  background: #050c16;
  border-radius: 10px;
  padding: .9rem;
  font-family: var(--font-mono);
  overflow: hidden;
}
.tv-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: .6rem;
  margin-bottom: .6rem;
  border-bottom: 1px solid var(--line);
  font-size: .75rem;
}
.tv-brand { color: var(--brand-blue); font-weight: 600; }
.tv-clock { color: var(--accent-cyan); animation: blink 2s steps(1) infinite; }

.tv-grid { display: flex; flex-direction: column; gap: .4rem; }
.tv-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr .8fr;
  gap: .4rem;
  align-items: center;
  font-size: .65rem;
  padding: .5rem .4rem;
  border-radius: 6px;
  background: rgba(255,255,255,.02);
}
.tv-row-head {
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .04em;
  background: transparent;
  font-size: .58rem;
}
.tv-col-activity, .tv-col-time { display: none; }
.tv-col-op { color: #fff; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tv-col-code { color: var(--text-muted); }

.status {
  display: inline-block;
  padding: .2rem .5rem;
  border-radius: 999px;
  font-size: .58rem;
  font-weight: 600;
  white-space: nowrap;
}
.status-ativo { background: rgba(34,197,94,.15); color: #4ade80; animation: pulse 2s ease-in-out infinite; }
.status-pausa { background: rgba(245,158,11,.15); color: #fbbf24; }

@keyframes blink { 50% { opacity: .3; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ==========================================================================
   Cards / grids
   ========================================================================== */
.grid { display: grid; gap: 1.25rem; }
.grid-4 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.pain-card { display: flex; flex-direction: column; gap: 1rem; }
.pain-icon { width: 32px; height: 32px; color: var(--brand-blue); }
.pain-card p { color: var(--text); font-weight: 600; margin: 0; }

.feature-card {
  position: relative;
  border-top: none;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: linear-gradient(90deg, var(--brand-blue), var(--accent-cyan));
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.feature-card p { margin: 0; font-size: .92rem; }

/* ==========================================================================
   Steps
   ========================================================================== */
.steps {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-bottom: 3rem;
}
.step {
  position: relative;
  padding-left: 2.75rem;
}
.step-number {
  position: absolute;
  left: 0;
  top: 0;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: #fff;
  font-weight: 800;
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  z-index: 1;
}
.step-line {
  position: absolute;
  left: 1rem;
  top: 2rem;
  bottom: -2rem;
  width: 2px;
  background: linear-gradient(180deg, var(--brand-blue), #fff, var(--brand-orange));
  opacity: .5;
}
.step h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.step p { margin: 0; font-size: .92rem; }

/* ==========================================================================
   Tablet mockup
   ========================================================================== */
.tablet-mockup {
  margin: 0 auto;
  max-width: 300px;
}
.tablet-frame {
  background: linear-gradient(155deg, #1a2c47, #0a1626);
  border-radius: 26px;
  padding: 12px;
  box-shadow: 0 25px 50px -20px rgba(0,102,255,.3), 0 0 0 1px var(--line);
}
.tablet-screen {
  background: #050c16;
  border-radius: 14px;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}
.tablet-header {
  display: flex;
  align-items: center;
  gap: .6rem;
  width: 100%;
}
.tablet-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-blue), var(--accent-cyan));
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tablet-name { font-weight: 600; color: #fff; font-size: .95rem; }

.tablet-scan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .6rem;
}
.tablet-scan-frame {
  position: relative;
  width: 76px;
  height: 76px;
}
.scan-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  border: 2px solid var(--accent-cyan);
}
.scan-corner.tl { top: 0; left: 0; border-right: none; border-bottom: none; }
.scan-corner.tr { top: 0; right: 0; border-left: none; border-bottom: none; }
.scan-corner.bl { bottom: 0; left: 0; border-right: none; border-top: none; }
.scan-corner.br { bottom: 0; right: 0; border-left: none; border-top: none; }
.scan-line {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 10%;
  height: 2px;
  background: var(--accent-cyan);
  opacity: .8;
  animation: scanline 2.2s ease-in-out infinite;
}
@keyframes scanline { 0%, 100% { top: 10%; } 50% { top: 82%; } }
.tablet-face-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 38px;
  height: 38px;
  color: var(--accent-cyan);
}
.tablet-scan-label { font-size: .75rem; font-weight: 600; color: #4ade80; }

.tablet-backup {
  display: flex;
  align-items: center;
  gap: .4rem;
  color: var(--text-dim);
  font-size: .7rem;
}
.tablet-backup svg { width: 20px; height: 20px; flex-shrink: 0; }

.tablet-buttons {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  width: 100%;
}
.tablet-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: .78rem;
  letter-spacing: .02em;
}
.tablet-btn-start { background: rgba(34,197,94,.15); color: #4ade80; border: 1px solid rgba(74,222,128,.3); }
.tablet-btn-end { background: rgba(255,255,255,.06); color: var(--text-muted); border: 1px solid var(--line); }

/* ==========================================================================
   Dashboard mockup
   ========================================================================== */
.dash-mockup {
  margin: 3rem 0 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 1.5rem;
}
.kpi {
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: .9rem .5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  text-align: center;
}
.kpi-value {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  color: var(--accent-cyan);
}
.kpi-label {
  font-size: .68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.dash-chart {
  display: flex;
  align-items: flex-end;
  gap: .5rem;
  height: 100px;
}
.dash-chart .bar {
  flex: 1;
  height: var(--h);
  border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--accent-cyan), var(--brand-blue));
}

/* ==========================================================================
   Previsto x Realizado (mockup de horas)
   ========================================================================== */
.hours-mockup {
  max-width: 640px;
  margin: 2.5rem auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.hours-header {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}
.hours-op { font-weight: 700; color: #fff; font-size: .95rem; }
.hours-total { font-family: var(--font-mono); font-size: .8rem; color: var(--text-dim); }
.hours-row { margin-bottom: 1.25rem; }
.hours-row:last-child { margin-bottom: 0; }
.hours-label {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: .4rem;
}
.hours-label span:last-child {
  font-weight: 400;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-dim);
}
.hours-bar {
  position: relative;
  height: 10px;
  background: var(--surface-2);
  border-radius: 999px;
  overflow: hidden;
}
.hours-fill {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: var(--p);
  border-radius: 999px;
}
.hours-fill-ok { background: linear-gradient(90deg, var(--accent-cyan), var(--brand-blue)); }
.hours-fill-over { background: var(--danger); }
.hours-result {
  margin-top: .4rem;
  font-family: var(--font-mono);
  font-size: .75rem;
}
.hours-result-ok { color: var(--ok); }
.hours-result-over { color: var(--danger); }

/* ==========================================================================
   Módulos
   ========================================================================== */
.grid-2 { grid-template-columns: 1fr; }
.module-card {
  display: flex;
  flex-direction: column;
  gap: .6rem;
  align-items: flex-start;
}
.badge-module { margin: 0 0 .25rem; }
.badge-available { color: var(--ok); border-color: rgba(74,222,128,.3); background: rgba(74,222,128,.08); }
.badge-soon { color: var(--text-muted); border-color: var(--line); background: var(--surface-2); }

/* ==========================================================================
   Chips / testimonial
   ========================================================================== */
.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .75rem;
}
.chip {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  font-weight: 600;
  font-size: .9rem;
  padding: .65rem 1.2rem;
  border-radius: 999px;
}

.testimonial {
  max-width: 680px;
  margin: 2rem auto 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand-blue);
  border-radius: var(--radius);
  padding: 1.75rem;
}
.testimonial p {
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 1rem;
}
.testimonial footer {
  font-size: .9rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   CTA final
   ========================================================================== */
.cta-final {
  position: relative;
  overflow: hidden;
  background: var(--surface-2);
  padding: 4.5rem 0;
  text-align: center;
}
.cta-watermark {
  position: absolute;
  bottom: -15%;
  right: -15%;
  width: 55%;
  max-width: 560px;
  opacity: .07;
  pointer-events: none;
}
.cta-final .container { position: relative; z-index: 1; }
.cta-final h2 { font-size: clamp(1.6rem, 4vw + .5rem, 2.4rem); max-width: 22ch; margin: 0 auto 1.75rem; }
.cta-final .btn { width: 100%; max-width: 360px; margin: 0 auto; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0;
}
.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1.5rem;
}
.footer-logo { height: 28px; width: auto; mix-blend-mode: screen; }
.footer-brand p { font-size: .85rem; margin: .5rem 0 0; }
.footer-links {
  display: flex;
  gap: 1.5rem;
}
.footer-links a {
  min-height: 44px;
  display: flex;
  align-items: center;
  color: var(--text-muted);
  font-size: .85rem;
}
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: .78rem; color: var(--text-dim); margin: 0; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .tv-clock, .status-ativo, .scan-line { animation: none; }
}

/* ==========================================================================
   Breakpoint: tablet (>=768px)
   ========================================================================== */
@media (min-width: 768px) {
  .container { padding: 0 2rem; }

  .menu-toggle { display: none; }
  .site-nav {
    position: static;
    height: auto;
    width: auto;
    flex-direction: row;
    align-items: center;
    background: transparent;
    border-left: none;
    padding: 0;
    transform: none;
    transition: none;
  }
  .site-nav a { padding: .5rem .75rem; min-height: auto; }
  .site-nav .btn { margin-top: 0; }
  .nav-backdrop { display: none; }

  .hero-ctas { flex-direction: row; }
  .hero-ctas .btn { width: auto; }

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

  .tv-row { grid-template-columns: 1.1fr 1.3fr .8fr .7fr .9fr; }
  .tv-col-activity, .tv-col-time { display: block; }

  .cta-final .btn { width: auto; }
}

/* ==========================================================================
   Breakpoint: desktop (>=1120px)
   ========================================================================== */
@media (min-width: 1120px) {
  .hero { padding: 5rem 0 6rem; }
  .hero-grid {
    flex-direction: row;
    align-items: center;
  }
  .hero-content { flex: 1; }
  .hero-visual { flex: 1; transform: perspective(1200px) rotateY(-6deg) rotateX(2deg); }

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

  .steps {
    flex-direction: row;
    gap: 2.5rem;
  }
  .step { flex: 1; padding-left: 0; padding-top: 3rem; }
  .step-number { left: 50%; top: 0; transform: translateX(-50%); }
  .step-line {
    left: 2rem;
    right: -2.5rem;
    top: 1rem;
    bottom: auto;
    width: auto;
    height: 2px;
    background: linear-gradient(90deg, var(--brand-blue), #fff, var(--brand-orange));
  }
  .step h3, .step p { text-align: center; }

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