:root{
  --bg:#0b1220; /* dark base */
  --card:#0f172a;
  --ink:#e2e8f0;
  --muted:#94a3b8;
  --accent:#0ea5e9;
  --accent-2:#38bdf8;
  --success:#22c55e;
  --warn:#f59e0b;
  --ring: rgba(14,165,233,.35);
  --radius: 16px;
  --shadow: 0 20px 60px rgba(2,6,23,.35);
  --green:#22c55e;   /* emerald-500 */
  --green-2:#16a34a; /* emerald-600 */
}

@media (prefers-color-scheme: light){
  :root{
    --bg:#f8fafc;
    --card:#ffffff;
    --ink:#0b1220;
    --muted:#475569;
    --shadow: 0 10px 30px rgba(2,6,23,.08);
  }
}

*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  padding:0;
  background:var(--bg);
  color:var(--ink);
  font:16px/1.5 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

a{
  color:var(--accent-2);
  text-decoration:none;
}
a:hover{
  text-decoration:underline;
}

img{
  max-width:100%;
  height:auto;
  display:block;
}

.container{
  max-width:1000px;
  margin:0 auto;
  padding:24px;
}

/* ================== HEADER ================== */

.header{
  display:flex;
  align-items:center;
  gap:16px;
  padding:16px 0 8px;
  flex-wrap:wrap;
}

.logo{
  width:120px;
  height:120px;
  border-radius:12px;
  overflow:hidden;            /* recorta nas bordas arredondadas */
  box-shadow:var(--shadow);
  background:transparent;
  display:block;
}

.logo img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

h1{
  margin:0;
  font-size:clamp(22px,4vw,34px);
  letter-spacing:.3px;
}

.subtitle{
  color:var(--muted);
  margin:4px 0 0;
  font-size:14px;
}

/* ================== LAYOUT PRINCIPAL ================== */

.hero{
  margin-top:12px;
  display:grid;
  gap:24px;
  grid-template-columns: 1fr; /* mobile first */
}

.card{
  background:var(--card);
  border:1px solid rgba(148,163,184,.15);
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:20px;
  margin-top:15px;
}

h2{
  margin:26px 0 10px;
  font-size:22px;
}

/* ================== BOTÕES ================== */

.btn{
  appearance:none;
  border:none;
  padding:12px 16px;
  border-radius:12px;
  cursor:pointer;
  font-weight:700;
  transition:.15s cubic-bezier(.2,.8,.2,1);
  color:#0b1220;
  text-align:center;

  display:inline-flex;
  align-items:center;
  gap:10px; /* ícone + texto */
}

.btn-primary{
  background:linear-gradient(135deg,var(--green),var(--green-2));
  color:white;
}
.btn-primary:hover{
  filter:brightness(1.05);
}
.btn-ghost{
  background:transparent;
  border:1px solid rgba(148,163,184,.3);
  color:var(--ink);
}

.cta{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:12px;
}

.icon{
  width:18px;
  height:18px;
  flex:0 0 auto;
  transition: transform .18s cubic-bezier(.2,.8,.2,1), opacity .18s;
  opacity:.95;
}

/* micro animação “descendo” no hover/focus */
.btn-primary:hover .icon,
.btn-primary:focus-visible .icon{
  transform: translateY(2px);
  opacity:1;
}

/* ================== META INFO ================== */

.tag{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 10px;
  border-radius:999px;
  background:rgba(14,165,233,.1);
  color:var(--accent-2);
  font-weight:700;
  font-size:12px;
}

.kvs{
  display:grid;
  grid-template-columns: 1fr;
  gap:16px;
  margin-top:16px;
}
.kv b{
  display:block;
  font-size:13px;
}
.kv span{
  color:var(--muted);
  font-size:12px;
}

/* ================== LISTAS, CÓDIGO, GRID ================== */

ol.steps{
  margin:10px 0;
  padding-left:22px;
}

.code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  background:rgba(148,163,184,.12);
  padding:2px 6px;
  border-radius:6px;
}

.grid{
  display:grid;
  gap:20px;
  margin-top:20px;
  grid-template-columns: 1fr; /* mobile */
}

/* ================== FAQ ================== */

.faq dt{
  font-weight:800;
  margin-top:10px;
}
.faq dd{
  margin:6px 0 12px;
  color:var(--muted);
}

/* ================== FOOTER ================== */

.footer{
  color:var(--muted);
  font-size:13px;
  padding:24px 0 40px;
}

.footer-nav{
  margin-top:8px;
}

/* ================== TEXTOS AUXILIARES ================== */

.muted{
  color:var(--muted);
}
.mono{
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.ok{
  color:var(--success);
}
.warn{
  color:var(--warn);
}

.notice{
  border-left:4px solid var(--accent);
  background:rgba(14,165,233,.08);
  padding:12px 14px;
  border-radius:10px;
  margin-top:14px;
}

/* ================== VÍDEO RESPONSIVO (YOUTUBE) ================== */

.video{
  margin-top:12px;
}

.video-inner{
  position:relative;
  padding-bottom:56.25%; /* 16:9 */
  height:0;
  overflow:hidden;
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  background:#000;
}

.video-inner iframe{
  position:absolute;
  top:0;
  left:0;
  width:100%;
  height:100%;
  border:0;
}

/* ================== RESPONSIVO ================== */

@media (min-width: 720px){
  .hero{
    grid-template-columns: 1.2fr .8fr;
  }
  .kvs{
    grid-template-columns: repeat(3, 1fr);
  }
  .grid{
    grid-template-columns: 1fr 1fr;
  }
}

/* ================== ACESSIBILIDADE ================== */

:focus-visible{
  outline: 3px solid var(--ring);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce){
  *{
    animation: none !important;
    transition: none !important;
  }
}
