/* Curso Escon — tema "Pulso" (dark: petróleo / ciano-pulso / coral) */

:root {
  --bg: #071A1C;
  --bg-soft: #0D2528;
  --bg-elev: #123033;
  --ink: #EAF6F5;
  --ink-soft: color-mix(in srgb, #EAF6F5 68%, transparent);
  --cyan: #28E4D0;
  --coral: #FF5A5F;
  --line: color-mix(in srgb, #28E4D0 16%, transparent);
  --shadow-lg: 0 24px 60px -20px rgba(0, 0, 0, 0.55);
  --radius: 18px;
  --font-head: "Darker Grotesque", sans-serif;
  --font-body: "Inter", sans-serif;
}

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { overflow-x: hidden; }

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
}
h1, h2, h3 {
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.08;
  margin: 0 0 .5rem;
  color: var(--ink);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1rem; color: var(--ink-soft); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  font-weight: 700; font-size: .98rem;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .15s ease, background .2s ease, border-color .2s ease;
}
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }
.btn-primary { background: var(--coral); color: #1A0A0A; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-secondary {
  background: color-mix(in srgb, var(--cyan) 14%, transparent);
  color: var(--cyan); border-color: color-mix(in srgb, var(--cyan) 35%, transparent);
}
.btn-secondary:hover { transform: translateY(-2px); }
.btn-ghost {
  background: transparent; color: var(--ink); border-color: var(--line);
}
.btn-ghost span { display: inline-flex; transition: transform .2s ease; }
.btn-ghost:hover span { transform: translateX(3px); }

/* Header */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  header.site-header {
    background: color-mix(in srgb, var(--bg) 90%, transparent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; position: relative; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 1.25rem; }
.brand img { border-radius: 10px; }
.main-nav ul { list-style: none; display: flex; gap: 26px; margin: 0; padding: 0; align-items: center; }
.main-nav { display: flex; align-items: center; gap: 22px; }
.main-nav a:not(.btn) { font-weight: 600; color: var(--ink-soft); }
.main-nav a:not(.btn):hover { color: var(--cyan); }
.main-nav a.btn-primary { color: #1A0A0A; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; }

@media (max-width: 880px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--bg-soft);
    border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; gap: 18px;
    padding: 22px 24px; max-height: 0; overflow: hidden;
    transition: max-height .25s ease;
  }
  .main-nav.open { max-height: 420px; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 16px; width: 100%; }
}

/* Live badge */
.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  padding: 7px 14px; border-radius: 999px;
  background: color-mix(in srgb, var(--coral) 16%, transparent);
  color: var(--coral); margin-bottom: 18px;
}
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); animation: liveBlink 1.4s infinite; }
@keyframes liveBlink { 0%,100% { opacity: 1; } 50% { opacity: .25; } }

/* Hero (asymmetric / imersivo) */
.hero { padding: 64px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero-copy .lead { font-size: 1.15rem; max-width: 480px; }
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.hero-visual { position: relative; }
.pulse-monitor {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 24px 54px;
  box-shadow: var(--shadow-lg);
  position: relative;
  transform: translateY(10px);
}
.pulse-line { width: 100%; height: 90px; overflow: visible; }
.pulse-line path {
  fill: none; stroke: var(--cyan); stroke-width: 3.5;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 420; stroke-dashoffset: 420;
  animation: pulseDraw 2.4s ease-in-out infinite;
}
@keyframes pulseDraw { 0% { stroke-dashoffset: 420; } 55% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; } }
.pulse-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; position: absolute; left: 24px; right: 24px; bottom: -22px; }
.pulse-chips span {
  background: var(--bg-elev); border: 1px solid var(--line);
  color: var(--ink-soft); font-size: .82rem; font-weight: 600;
  padding: 8px 14px; border-radius: 999px;
}

/* Cards grid */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 30px; }
.card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
}
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 14px; margin-bottom: 16px;
  background: color-mix(in srgb, var(--cyan) 14%, transparent); color: var(--cyan);
}
.section-lead { color: var(--ink-soft); max-width: 560px; }

/* Plans */
.plans-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 30px; }
.plan-card {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 24px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative;
}
.plan-card.featured { border-color: var(--coral); border-width: 2px; }
.pulse-tag {
  align-self: flex-start;
  background: var(--coral); color: #1A0A0A;
  font-size: .72rem; font-weight: 800; letter-spacing: .04em;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 4px;
}
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 4px 0 0; }
.plan-price strong { font-family: var(--font-head); font-size: 2.1rem; color: var(--ink); }
.plan-price span { color: var(--ink-soft); font-size: .9rem; }
.plan-permes { color: var(--cyan); font-weight: 700; font-size: .88rem; }
.plan-note { font-size: .86rem; color: var(--ink-soft); min-height: 38px; }
.plan-features { list-style: none; margin: 4px 0 10px; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: .92rem; color: var(--ink-soft); }
.plan-features li svg { color: var(--cyan); flex-shrink: 0; }
.plan-cta { margin-top: auto; justify-content: center; }

/* Steps */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.step { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.step-num { font-family: var(--font-head); font-size: 1.8rem; color: var(--cyan); font-weight: 800; }

/* Stat band */
.stat-band { background: var(--bg-elev); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.8rem; color: var(--ink); }
.stat span { color: var(--ink-soft); font-size: .88rem; }

/* Devices */
.device-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 26px; }
.device-tile {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px;
  padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--ink-soft); font-weight: 600; transition: border-color .2s ease;
}
.device-tile svg { color: var(--cyan); }
.device-tile:hover { border-color: var(--cyan); }

/* Blog */
.post-card, .blog-index .post-card {
  display: block; background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; max-width: 640px;
}
.post-tag { display: inline-flex; align-items: center; gap: 8px; color: var(--cyan); font-weight: 700; font-size: .85rem; margin-bottom: 10px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; margin: 26px 0; max-width: 760px; }
.faq-item {
  background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px;
}
.faq-item summary {
  cursor: pointer; font-weight: 700; display: flex; align-items: center; justify-content: space-between;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary svg { transition: transform .2s ease; color: var(--cyan); }
.faq-item[open] summary svg { transform: rotate(90deg); }
.faq-item p { margin-top: 12px; }

/* CTA final */
.cta-final { background: var(--bg-elev); }
.cta-box { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.cta-box .btn { margin-top: 6px; }

/* Page hero (satellite pages) */
.page-hero { padding-top: 64px; text-align: center; }
.page-icon-badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 60px; height: 60px; border-radius: 16px; margin-bottom: 18px;
  background: color-mix(in srgb, var(--cyan) 14%, transparent); color: var(--cyan);
}
.page-hero .lead { max-width: 620px; margin: 0 auto; }
.not-found .btn { margin-top: 10px; }

/* Legal / content pages */
.legal { max-width: 760px; margin: 0 auto; }
.legal h2 { margin-top: 2rem; }
.contato-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* Footer */
.site-footer { background: var(--bg-elev); border-top: 1px solid var(--line); padding: 56px 0 24px; }
.site-footer p { color: var(--ink-soft) !important; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-col h3 { font-size: .95rem; color: var(--ink); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 9px; }
.footer-col ul a { color: var(--ink-soft); font-size: .92rem; }
.footer-col ul a:hover { color: var(--cyan); }
.footer-brand p { max-width: 280px; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; }
.footer-bottom p { margin: 0; font-size: .82rem; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cards-grid, .plans-grid, .device-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contato-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .cards-grid, .plans-grid, .device-grid, .steps-grid, .stat-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 54px 0; }
}
