/* ============ IPdigital 2026 — base ============ */
:root {
  --bg: #000000;
  --surface: #0A0A0A;
  --primary: #3793C7;
  --primary-dark: #2A6E96;
  --accent: #EBC114;
  --text: #FAFAFA;
  --text-2: #A6A6A6;
  --radius: 12px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.loading { overflow: hidden; }
::selection { background: var(--primary); color: #fff; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.container { max-width: 1400px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 1000px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
@media (max-width: 1024px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.glass-card {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 5vw, 60px);
  letter-spacing: -.02em;
  line-height: 1.05;
  margin-bottom: 64px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; font-weight: 600; letter-spacing: .01em;
  padding: 12px 26px; transition: transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 26px rgba(55,147,199,.45); }
.btn-glass {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.12);
  backdrop-filter: blur(12px);
}
.btn-glass:hover { background: rgba(255,255,255,.07); }
.btn-lg { padding: 16px 32px; font-size: 17px; }
.btn-xl { padding: 20px 40px; font-size: 19px; font-weight: 700; }

[data-reveal] { opacity: 0; transform: translateY(44px); }
.no-motion [data-reveal] { opacity: 1; transform: none; }

/* ============ preloader ============ */
#preloader {
  position: fixed; inset: 0; z-index: 200;
  background: #000;
  display: flex; flex-direction: column; gap: 30px;
  align-items: center; justify-content: center;
}
#preloader #tagline { display: none; }
.pl-tagline {
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  color: var(--accent); text-transform: uppercase; letter-spacing: .42em;
  opacity: 0; transform: translateY(14px);
  animation: plTagIn 1s 2.35s ease forwards;
}
#preloader svg { width: min(70vw, 760px); height: auto; overflow: visible; }
.pl-glow {
  position: absolute; top: 50%; left: 50%; width: 70vw; height: 70vw;
  transform: translate(-50%,-50%);
  background: radial-gradient(ellipse at center, rgba(55,147,199,.14), transparent 62%);
  opacity: 0; transition: opacity 1.2s ease;
}
#preloader.lit .pl-glow { opacity: 1; }

#preloader #mark, #preloader #dot, #preloader .ltr, #preloader #tagline {
  transform-box: fill-box; transform-origin: center;
}
#preloader #mark {
  opacity: 0; filter: blur(16px); transform: scale(.94) translateY(10px);
  animation: plMarkIn 1.05s .2s cubic-bezier(.16,1,.3,1) forwards;
}
@keyframes plMarkIn { to { opacity: 1; filter: blur(0); transform: scale(1) translateY(0); } }
#preloader #dot {
  opacity: 0;
  animation: plDotDrop .75s 1.05s cubic-bezier(.34,1.56,.64,1) forwards;
}
@keyframes plDotDrop {
  0%   { opacity: 0; transform: translateY(-150px) scale(.7); }
  55%  { opacity: 1; transform: translateY(0) scale(1.12); }
  75%  { opacity: 1; transform: translateY(-22px) scale(.97); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
#preloader .ltr { opacity: 0; transform: translateY(52px); animation: plRise .6s cubic-bezier(.16,1,.3,1) forwards; }
@keyframes plRise { to { opacity: 1; transform: translateY(0); } }
#preloader #tagline { opacity: 0; transform: translateY(16px); animation: plTagIn 1s 2.35s ease forwards; }
@keyframes plTagIn { to { opacity: .95; transform: translateY(0); } }

/* ============ nav ============ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(0,0,0,.42);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transform: translateY(-100%);
  transition: transform .7s cubic-bezier(.16,1,.3,1);
}
body:not(.loading) #nav { transform: translateY(0); }
.nav-inner {
  max-width: 1400px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo img { height: 42px; width: auto; }
.nav-links { display: flex; gap: 8px; font-family: var(--font-display); font-size: 17px; }
.nav-links a {
  color: var(--text-2); padding: 6px 12px; border-radius: 8px;
  transition: color .3s, background .3s;
}
.nav-links a:hover { color: var(--text); background: rgba(255,255,255,.05); }
.nav-cta { font-size: 14px; padding: 10px 20px; }
.nav-burger { display: none; }
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: block; }
  .nav-links.open {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; background: rgba(0,0,0,.95); padding: 16px 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
}

/* ============ hero ============ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; padding-top: 90px;
}
.hero-bg { position: absolute; inset: 0; }
.hero-bg video { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.72), rgba(0,0,0,.55) 45%, #000 100%),
    linear-gradient(90deg, rgba(0,0,0,.5), transparent 30%, transparent 70%, rgba(0,0,0,.5));
}
.hero-glow {
  position: absolute; top: 50%; left: 50%; width: 80vw; height: 80vw;
  transform: translate(-50%,-50%);
  background: radial-gradient(circle, rgba(55,147,199,.16), transparent 70%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; text-align: center; max-width: 1060px; padding: 0 24px; }
.hero-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 7vw, 96px);
  line-height: 1.08; letter-spacing: -.03em; margin-bottom: 32px;
}
.hero-title .gold { color: var(--accent); }
.hero-title .w { display: inline-block; opacity: 0; transform: translateY(60px) rotate(2deg); }
.no-motion .hero-title .w { opacity: 1; transform: none; }
.hero-sub {
  font-size: clamp(17px, 2vw, 22px); color: var(--text-2);
  max-width: 720px; margin: 0 auto 44px; line-height: 1.6;
}
.hero-ctas { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
[data-hero-fade] { opacity: 0; transform: translateY(24px); }
.no-motion [data-hero-fade] { opacity: 1; transform: none; }
.hero-scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2;
  color: var(--text-2);
}
.hero-scroll .material-symbols-outlined { font-size: 32px; animation: bounce 2s infinite; }
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(10px); } }

/* ============ marquee ============ */
.marquee-band {
  padding: 22px 0;
  border-top: 1px solid rgba(255,255,255,.05);
  border-bottom: 1px solid rgba(255,255,255,.05);
  background: rgba(10,10,10,.5);
  overflow: hidden;
}
.marquee { display: flex; gap: 2rem; user-select: none; }
.marquee-content {
  flex-shrink: 0; display: flex; align-items: center; gap: 2rem;
  min-width: 100%; justify-content: space-around;
  font-family: var(--font-display); text-transform: uppercase;
  letter-spacing: .06em; font-size: 17px; color: var(--text-2);
  animation: marquee 26s linear infinite;
}
.marquee .dot { color: var(--accent); }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(calc(-100% - 2rem)); } }

/* ============ stats ============ */
.stats { padding: 120px 0; }
.stat { padding: 36px 24px; text-align: center; border-top: 2px solid rgba(55,147,199,.5); }
.stat-num { font-family: var(--font-display); font-weight: 700; font-size: 52px; margin-bottom: 8px; }
.stat-label { color: var(--text-2); font-size: 12.5px; text-transform: uppercase; letter-spacing: .14em; }

/* ============ services ============ */
.services { padding: 120px 0; background: rgba(10,10,10,.35); position: relative; }
.service { padding: 40px; transition: background .4s, border-color .4s, transform .4s; }
.service:hover { background: rgba(255,255,255,.05); border-color: rgba(55,147,199,.35); transform: translateY(-4px); }
.service .icon { font-size: 40px; color: var(--primary); margin-bottom: 22px; transition: transform .4s; }
.service:hover .icon { transform: scale(1.12); }
.service h3 { font-family: var(--font-display); font-size: 23px; margin-bottom: 14px; }
.service p { color: var(--text-2); font-size: 14.5px; line-height: 1.65; }

/* ============ portfolio ============ */
.portfolio { padding: 120px 0; }
.portfolio-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.portfolio-head .section-title { margin-bottom: 40px; }
.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--primary); font-weight: 600; margin-bottom: 48px;
  transition: color .3s, gap .3s;
}
.link-arrow:hover { color: #fff; gap: 14px; }
.project { overflow: hidden; cursor: pointer; will-change: transform; }
.project-img { height: 300px; overflow: hidden; }
.project-img img { width: 100%; height: 100%; object-fit: cover; object-position: center top; transition: transform .8s cubic-bezier(.16,1,.3,1); }
.project:hover .project-img img { transform: scale(1.06); }
.project figcaption { padding: 26px 28px 30px; }
.project .tags { display: flex; gap: 8px; margin-bottom: 14px; }
.project .tags span {
  font-family: monospace; font-size: 11.5px; color: var(--text-2);
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  padding: 3px 9px; border-radius: 5px;
}
.project h3 { font-family: var(--font-display); font-size: 22px; }

/* ============ cinema ============ */
.cinema { padding: 120px 0; background: rgba(10,10,10,.35); position: relative; overflow: hidden; }
.cinema-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle, rgba(55,147,199,.13), transparent 70%);
  pointer-events: none;
}
.cinema-title { font-family: var(--font-display); font-size: clamp(24px,3vw,34px); text-align: center; margin-bottom: 48px; }
.player {
  position: relative; aspect-ratio: 16/9; overflow: hidden; border-radius: 18px;
  border-color: rgba(55,147,199,.25);
  box-shadow: 0 0 60px rgba(55,147,199,.18);
  transition: border-color .5s, box-shadow .5s;
}
.player:hover { border-color: rgba(55,147,199,.55); box-shadow: 0 0 80px rgba(55,147,199,.28); }
.player video { width: 100%; height: 100%; object-fit: cover; }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 92px; height: 92px; border-radius: 50%;
  background: rgba(55,147,199,.18); backdrop-filter: blur(10px);
  border: 1px solid rgba(55,147,199,.5);
  display: flex; align-items: center; justify-content: center;
  transition: transform .4s, background .4s;
  animation: pulse 2.4s ease-in-out infinite;
}
.play-btn:hover { transform: translate(-50%,-50%) scale(1.1); background: rgba(55,147,199,.3); }
.play-btn .material-symbols-outlined {
  font-size: 46px; color: var(--accent);
  font-variation-settings: 'FILL' 1;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(235,193,20,.25); }
  50% { box-shadow: 0 0 0 22px rgba(235,193,20,0); }
}
.player.playing .play-btn { display: none; }

/* ============ método ============ */
.method { padding: 120px 0; position: relative; }
.method-line {
  position: relative; height: 1px; background: rgba(255,255,255,.1);
  max-width: 1100px; margin: 0 auto 64px;
}
.method-line span { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--primary); }
.method-grid { max-width: 1200px; margin: 0 auto; }
.step { text-align: center; padding: 0 12px; }
.step-num {
  width: 64px; height: 64px; margin: 0 auto 24px;
  border-radius: 50%; background: var(--surface);
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; color: var(--primary);
  box-shadow: 0 8px 24px rgba(0,0,0,.8);
}
.step h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 12px; }
.step p { color: var(--text-2); font-size: 14px; line-height: 1.6; }
.gold-step .step-num { color: var(--accent); border-color: rgba(235,193,20,.5); box-shadow: 0 0 18px rgba(235,193,20,.2); }
.gold-step h3 { color: var(--accent); }

/* ============ CTA ============ */
.cta { padding: 140px 0; position: relative; overflow: hidden; background: rgba(55,147,199,.05); }
.cta-glow {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 80vw; height: 80vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(55,147,199,.18), transparent 70%);
  pointer-events: none;
}
.cta-title {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(40px, 6vw, 76px);
  letter-spacing: -.03em; line-height: 1.12; margin-bottom: 28px;
  position: relative; z-index: 1;
}
.cta-title em { color: var(--primary); }
.cta-sub { font-size: 20px; color: var(--text-2); margin-bottom: 44px; position: relative; z-index: 1; }
.cta-contacts { margin-top: 36px; color: var(--text-2); font-size: 15px; position: relative; z-index: 1; }
.cta-contacts a:hover { color: var(--accent); }
.cta-contacts .dot { margin: 0 12px; color: var(--accent); }

/* ============ badge NO AR + descrição do case ============ */
.project .tags .live {
  color: #000; background: linear-gradient(135deg, #F5CB31, var(--accent));
  border: 0; font-weight: 700; cursor: pointer;
}
.project figcaption p { color: var(--text-2); font-size: 13.5px; line-height: 1.55; margin-top: 10px; }

/* ============ formulário de diagnóstico ============ */
.diag-form {
  max-width: 640px; margin: 0 auto; padding: 36px;
  text-align: left; position: relative; z-index: 1;
  display: flex; flex-direction: column; gap: 18px;
}
.diag-form label {
  display: flex; flex-direction: column; gap: 8px; flex: 1;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  text-transform: uppercase; letter-spacing: .08em;
}
.form-row { display: flex; gap: 18px; }
@media (max-width: 640px) { .form-row { flex-direction: column; } }
.diag-form input, .diag-form textarea {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.12);
  border-radius: 10px; padding: 13px 16px; color: var(--text);
  font: 15px var(--font-body); resize: vertical; transition: border-color .3s, box-shadow .3s;
}
.diag-form input:focus, .diag-form textarea:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(55,147,199,.18);
}
.diag-form .btn { width: 100%; margin-top: 6px; }
.form-note { font-size: 13px; color: var(--text-2); text-align: center; }

/* ============ footer ============ */
footer { border-top: 1px solid rgba(255,255,255,.06); padding: 44px 0; }
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.footer-inner img { height: 34px; width: auto; }
.footer-copy { color: var(--text-2); font-size: 13.5px; }
.footer-links { display: flex; gap: 22px; font-size: 14px; color: var(--text-2); }
.footer-links a:hover { color: var(--accent); }

/* ============ lightbox ============ */
#lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,.92); backdrop-filter: blur(14px);
  display: flex; align-items: center; justify-content: center;
}
#lightbox[hidden] { display: none; }
#lbImg { max-width: min(86vw, 900px); max-height: 86vh; border-radius: 14px; box-shadow: 0 0 80px rgba(55,147,199,.25); }
.lb-close { position: absolute; top: 24px; right: 28px; }
.lb-prev { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); }
.lb-next { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); }
#lightbox button .material-symbols-outlined {
  font-size: 40px; color: var(--text-2); transition: color .3s;
}
#lightbox button:hover .material-symbols-outlined { color: #fff; }

/* ============ reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  #preloader { display: none; }
  body.loading { overflow: auto; }
  #nav { transform: none; transition: none; }
  [data-reveal], [data-hero-fade], .hero-title .w { opacity: 1 !important; transform: none !important; }
  .marquee-content { animation: none; }
  .play-btn { animation: none; }
}
