/* =========================================================
   Henrique Effects — stylesheet
   ========================================================= */

/* ---------- tokens ---------- */
:root{
  --bg: #06070c;
  --bg-soft: #0b0d16;
  --panel: rgba(255,255,255,0.04);
  --panel-border: rgba(255,255,255,0.09);
  --text: #f2f4fa;
  --text-dim: #8c93a8;
  --text-dimmer: #5b6172;
  --blue: #3b6bff;
  --blue-bright: #6d93ff;
  --blue-glow: #7dd3ff;
  --blue-deep: #1c2f7a;
  --radius: 18px;
  --display: 'Space Grotesk', sans-serif;
  --body: 'Inter', sans-serif;
  --mono: 'JetBrains Mono', monospace;
}

/* ---------- base ---------- */
*{ box-sizing: border-box; margin:0; padding:0; }
html{ scroll-behavior: smooth; }
body{
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a{ color:inherit; text-decoration:none; }
ul{ list-style:none; }
img{ max-width:100%; display:block; }

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

.wrap{ max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- background atmosphere ---------- */
.atmosphere{
  position: fixed; inset: 0; z-index: -1; overflow: hidden;
  background: var(--bg);
}
.aurora{
  position: absolute; width: 130vw; height: 130vw; max-width: 1400px; max-height: 1400px;
  border-radius: 50%;
  top: -55vw; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle at 50% 50%, rgba(59,107,255,0.35), rgba(59,107,255,0.08) 40%, transparent 70%);
  filter: blur(10px);
  animation: drift 18s ease-in-out infinite alternate;
}
.aurora.two{
  top: auto; bottom: -70vw; left: 30%;
  background: radial-gradient(circle at 50% 50%, rgba(125,211,255,0.16), transparent 65%);
  animation-duration: 24s;
  animation-delay: -6s;
}
@keyframes drift{
  0%{ transform: translateX(-52%) translateY(0) scale(1); }
  100%{ transform: translateX(-46%) translateY(3%) scale(1.06); }
}
.grain{
  position:absolute; inset:0;
  background-image: radial-gradient(rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity:.5;
}

/* ---------- nav ---------- */
header{
  position: sticky; top:0; z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  background: rgba(6,7,12,0.6);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
nav{
  display:flex; align-items:center; justify-content:space-between;
  padding: 16px 28px; max-width: 1180px; margin: 0 auto; gap: 18px;
}
.logo{
  display:flex; align-items:center; gap:10px;
  font-family: var(--display); font-weight:600; font-size: 16px; letter-spacing: 0.3px;
}
.logo-mark{
  width: 30px; height: 30px; border-radius: 8px;
  background: linear-gradient(145deg, var(--blue-bright), var(--blue-deep));
  display:flex; align-items:center; justify-content:center;
  font-family: var(--display); font-weight:700; font-size: 13px; color: #fff;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12) inset, 0 4px 18px rgba(59,107,255,0.45);
}
.nav-links{ display:flex; gap: 34px; }
.nav-links a{
  font-size: 13.5px; color: var(--text-dim); font-weight:500;
  transition: color .2s ease;
}
.nav-links a:hover{ color: var(--text); }
.nav-right{ display:flex; align-items:center; gap: 14px; }
.nav-cta{
  font-size: 13px; font-weight: 600; padding: 9px 18px; border-radius: 100px;
  background: var(--text); color: #06070c;
  transition: transform .2s ease, box-shadow .2s ease;
}
.nav-cta:hover{ transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,255,255,0.15); }

/* ---------- language switch ----------
   Escondido por enquanto. Para mostrar de novo, troque
   "display: none" por "display: flex" na regra abaixo.      */
.lang-switch{
  display: none;
  align-items:center;
  border: 1px solid var(--panel-border); border-radius: 100px;
  overflow: hidden; background: var(--panel);
  font-family: var(--mono); font-size: 11.5px;
}
.lang-switch a{
  padding: 7px 11px; color: var(--text-dimmer);
  transition: color .2s ease, background .2s ease;
}
.lang-switch a:hover{ color: var(--text); }
.lang-switch a.active{ color: #fff; background: rgba(59,107,255,0.35); }

/* ---------- hero ---------- */
.hero{
  padding: 108px 28px 90px;
  max-width: 1180px; margin: 0 auto;
  text-align:center;
  position: relative;
}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-family: var(--mono); font-size: 12px; color: var(--blue-glow);
  background: rgba(59,107,255,0.1); border: 1px solid rgba(59,107,255,0.28);
  padding: 6px 14px; border-radius: 100px; margin-bottom: 26px;
  letter-spacing: 0.4px;
}
.eyebrow .dot{
  width:6px; height:6px; border-radius:50%; background: var(--blue-glow);
  box-shadow: 0 0 8px var(--blue-glow);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse{ 0%,100%{ opacity: 1;} 50%{ opacity:.35; } }

h1.title{
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(44px, 8.4vw, 108px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #ffffff 30%, #b9c6f5 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.subtitle{
  max-width: 620px; margin: 26px auto 0;
  color: var(--text-dim); font-size: 17px; line-height: 1.6;
}
.hero-ctas{
  display:flex; gap:14px; justify-content:center; margin-top: 38px; flex-wrap: wrap;
}

/* ---------- buttons ---------- */
.btn{
  padding: 13px 26px; border-radius: 100px; font-size: 14.5px; font-weight:600;
  display:inline-flex; align-items:center; gap:8px;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
  cursor: pointer; border: none; font-family: var(--body);
}
.btn-primary{
  background: linear-gradient(140deg, var(--blue-bright), var(--blue));
  color: #fff;
  box-shadow: 0 8px 30px rgba(59,107,255,0.4), 0 0 0 1px rgba(255,255,255,0.08) inset;
}
.btn-primary:hover{ transform: translateY(-2px); box-shadow: 0 10px 36px rgba(59,107,255,0.55); }
.btn-ghost{
  background: var(--panel); color: var(--text);
  border: 1px solid var(--panel-border);
}
.btn-ghost:hover{ background: rgba(255,255,255,0.08); transform: translateY(-2px); }
.btn-social svg{ width:18px; height:18px; color: var(--blue-glow); transition: color .2s ease; }
.btn-social:hover{
  border-color: rgba(125,211,255,0.45);
  box-shadow: 0 0 24px rgba(125,211,255,0.18);
}
.btn-social:hover svg{ color: #fff; }

/* ---------- ticker ---------- */
.ticker-wrap{
  border-top: 1px solid rgba(255,255,255,0.07);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 18px 0;
  overflow: hidden;
  background: rgba(255,255,255,0.015);
}
.ticker{
  display:flex; gap: 60px; width: max-content;
  animation: scroll-left 22s linear infinite;
}
.ticker span{
  font-family: var(--mono); font-size: 13px; color: var(--text-dimmer);
  display:flex; align-items:center; gap: 10px; white-space:nowrap;
}
.ticker span b{ color: var(--text); font-weight:600; }
.ticker span::after{ content:'✦'; color: var(--blue-glow); margin-left: 50px; }
@keyframes scroll-left{
  from{ transform: translateX(0); }
  to{ transform: translateX(-50%); }
}

/* ---------- section shared ---------- */
section{ padding: 110px 0; }
.section-head{
  display:flex; align-items:flex-end; justify-content:space-between;
  margin-bottom: 46px; gap: 24px; flex-wrap: wrap;
}
.section-eyebrow{
  font-family: var(--mono); font-size: 12px; color: var(--blue-glow);
  letter-spacing: 0.5px; margin-bottom: 12px; display:block;
}
.section-title{
  font-family: var(--display); font-weight: 600;
  font-size: clamp(28px, 3.6vw, 42px); letter-spacing: -0.01em;
}
.section-desc{
  color: var(--text-dim); font-size: 15px; max-width: 380px; line-height: 1.6;
}

/* ---------- carousel ---------- */
.carousel-section{ padding-top: 90px; padding-bottom: 90px; position: relative; }
.carousel-viewport{
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  cursor: grab;
  touch-action: pan-y;      /* deixa o scroll vertical da página funcionar */
  user-select: none;
}
.carousel-viewport.dragging{ cursor: grabbing; }
.carousel-track{
  display:flex; gap: 22px; width: max-content;
  will-change: transform;   /* movido pelo main.js */
}
.video-card{
  width: 340px; flex-shrink: 0;
  border-radius: var(--radius);
  background: var(--panel);
  border: 1px solid var(--panel-border);
  overflow: hidden;
  cursor: pointer;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  position: relative;
}
.video-card:hover{
  transform: translateY(-6px);
  border-color: rgba(125,211,255,0.5);
  box-shadow: 0 18px 50px rgba(59,107,255,0.28);
}
.video-thumb{
  aspect-ratio: 16/9;
  position: relative;
  display:flex; align-items:center; justify-content:center;
  overflow:hidden;
  background: #0b0d16;
}
.video-thumb img{
  position:absolute; inset:0;
  width:100%; height:100%; object-fit: cover;
  transition: transform .45s ease;
}
.video-card:hover .video-thumb img{ transform: scale(1.05); }
.thumb-placeholder{ position:absolute; inset:0; }
.thumb-shade{
  position:absolute; inset:0;
  background: linear-gradient(180deg, rgba(6,7,12,0) 40%, rgba(6,7,12,0.55) 100%);
}
.play-btn{
  width: 54px; height: 54px; border-radius: 50%;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.35);
  display:flex; align-items:center; justify-content:center;
  z-index: 2;
  transition: transform .3s ease, background .3s ease;
}
.video-card:hover .play-btn{ transform: scale(1.12); background: rgba(255,255,255,0.22); }
.play-btn svg{ width: 18px; height:18px; margin-left: 3px; }
.video-meta{ padding: 14px 16px 16px; }
.video-cat{
  font-family: var(--mono); font-size: 10.5px; color: var(--blue-glow); letter-spacing: 0.4px;
  text-transform: uppercase;
}
.video-title{
  font-family: var(--display); font-weight: 600; font-size: 15px; margin-top: 6px;
  line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- services ---------- */
.services-grid{ display:grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.service-card{
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius);
  padding: 28px 22px; transition: border-color .3s ease, transform .3s ease, background .3s ease;
}
.service-card:hover{ border-color: rgba(125,211,255,0.4); transform: translateY(-4px); background: rgba(255,255,255,0.06); }
.service-icon{
  width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(140deg, rgba(59,107,255,0.35), rgba(125,211,255,0.12));
  border: 1px solid rgba(125,211,255,0.3);
  display:flex; align-items:center; justify-content:center; margin-bottom: 20px;
}
.service-icon svg{ width:20px; height:20px; stroke: var(--blue-glow); }
.service-title{ font-family: var(--display); font-weight:600; font-size: 16px; margin-bottom: 8px; }
.service-desc{ color: var(--text-dim); font-size: 13.5px; line-height: 1.55; }

/* ---------- process ---------- */
.process-list{ display:flex; flex-direction: column; }
.process-item{
  display:grid; grid-template-columns: 80px 1fr; gap: 24px;
  padding: 30px 0; border-top: 1px solid rgba(255,255,255,0.08);
  align-items: center;
}
.process-item:last-child{ border-bottom: 1px solid rgba(255,255,255,0.08); }
.process-num{ font-family: var(--mono); color: var(--blue-glow); font-size: 14px; }
.process-body h3{
  font-family: var(--display); font-weight: 600; font-size: 19px; margin-bottom: 6px;
}
.process-body p{ color: var(--text-dim); font-size: 14px; max-width: 520px; }

/* ---------- contact ---------- */
.contact{
  text-align:center; padding: 100px 28px;
  background: radial-gradient(ellipse at 50% 0%, rgba(59,107,255,0.14), transparent 60%);
}
.contact h2{
  font-family: var(--display); font-weight: 700;
  font-size: clamp(30px, 5vw, 54px); letter-spacing: -0.01em; max-width: 720px; margin: 0 auto;
}
.contact p{ color: var(--text-dim); margin: 18px auto 34px; max-width: 460px; font-size: 15.5px; }

/* ---------- footer ---------- */
footer{
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 34px 28px; display:flex; align-items:center; justify-content:center;
  max-width: 1180px; margin: 0 auto; flex-wrap: wrap; gap: 14px;
}
.footer-note{ color: var(--text-dimmer); font-size: 12.5px; font-family: var(--mono); }

/* ---------- modal ---------- */
.modal{
  position: fixed; inset:0; z-index: 100;
  background: rgba(4,5,9,0.86);
  backdrop-filter: blur(10px);
  display:flex; align-items:center; justify-content:center;
  opacity:0; pointer-events:none; transition: opacity .25s ease;
  padding: 24px;
}
.modal.open{ opacity:1; pointer-events:auto; }
.modal-inner{
  width: min(880px, 100%);
  background: #0b0d16; border: 1px solid var(--panel-border);
  border-radius: 20px; overflow:hidden;
  transform: scale(0.96); transition: transform .25s ease;
}
.modal.open .modal-inner{ transform: scale(1); }
.modal-frame{ aspect-ratio: 16/9; width:100%; background:#000; }
.modal-frame iframe{ width:100%; height:100%; border:0; }
.modal-info{ padding: 18px 22px; display:flex; align-items:center; justify-content:space-between; }
.modal-close{
  width: 34px; height: 34px; border-radius: 50%; background: var(--panel);
  border: 1px solid var(--panel-border); display:flex; align-items:center; justify-content:center;
  cursor:pointer; color: var(--text);
}

/* ---------- responsive ---------- */
@media (max-width: 860px){
  .nav-links{ display:none; }
  .services-grid{ grid-template-columns: repeat(2, 1fr); }
  .process-item{ grid-template-columns: 50px 1fr; }
}
@media (max-width: 540px){
  .services-grid{ grid-template-columns: 1fr; }
  .video-card{ width: 270px; }
  section{ padding: 76px 0; }
  .hero{ padding: 84px 20px 60px; }
  .nav-cta{ display:none; }
}

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