/* =========================================================
   TH MEDIA — Design System
   ========================================================= */

:root {
  /* Brand palette — extraída da identidade visual oficial */
  --th-black: #06070c;
  --th-black-soft: #0a0c16;
  --th-surface: #0d1020;
  --th-surface-2: #10142a;
  --th-border: rgba(255, 255, 255, 0.08);
  --th-border-strong: rgba(255, 255, 255, 0.14);

  --th-blue-900: #001b4d;
  --th-blue-800: #002163;
  --th-blue-700: #003296;
  --th-blue-600: #0444bf;
  --th-blue-500: #1461e4;
  --th-blue-400: #1278e8;
  --th-cyan-400: #38bdf8;
  --th-cyan-300: #7dd3fc;

  --th-gradient: linear-gradient(135deg, var(--th-blue-400) 0%, var(--th-blue-500) 45%, var(--th-cyan-400) 100%);
  --th-gradient-text: linear-gradient(90deg, #4d8dff 0%, #38bdf8 100%);

  --th-white: #ffffff;
  --th-ink: #eef1fb;
  --th-muted: #a6acc4;
  --th-muted-2: #767d9c;

  --container: 1180px;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 999px;

  --shadow-glow: 0 20px 60px -20px rgba(20, 97, 228, 0.45);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--th-black);
  color: var(--th-ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font: inherit; cursor: pointer; }
input, textarea { font: inherit; }
::selection { background: var(--th-blue-500); color: #fff; }

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--th-white);
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.text-gradient {
  background: var(--th-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--th-cyan-300);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--th-gradient);
  border-radius: 2px;
}

.section {
  position: relative;
  padding: 120px 0;
}
.section--tight { padding: 90px 0; }
.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); line-height: 1.15; }
.section-head p { margin-top: 16px; color: var(--th-muted); font-size: 1.05rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), border-color 0.25s var(--ease);
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-primary {
  background: var(--th-gradient);
  color: #fff;
  box-shadow: var(--shadow-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 24px 70px -18px rgba(56, 189, 248, 0.55); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03);
  color: var(--th-white);
  border-color: var(--th-border-strong);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255,255,255,0.3); }
.btn-block { width: 100%; }

/* ---------- Background FX ---------- */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(10px);
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(circle at 30% 30%, var(--th-cyan-400), var(--th-blue-600) 55%, transparent 75%);
  opacity: 0.55;
}

.noise-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
  pointer-events: none;
}

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background 0.35s var(--ease), border-color 0.35s var(--ease), padding 0.35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(6, 7, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--th-border);
  padding: 12px 0;
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 30px; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
}
.nav-links a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--th-muted);
  transition: color 0.2s var(--ease);
  position: relative;
}
.nav-links a:hover { color: var(--th-white); }

.header-actions { display: flex; align-items: center; gap: 14px; }
.header-actions .btn { padding: 11px 22px; font-size: 0.9rem; }

.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--th-border-strong);
  border-radius: var(--radius-sm);
  color: #fff;
}
.nav-toggle svg { width: 20px; height: 20px; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 190px 0 130px;
  overflow: hidden;
  isolation: isolate;
}
.hero .glow-orb.orb-1 { width: 560px; height: 560px; top: -220px; right: -160px; }
.hero .glow-orb.orb-2 { width: 380px; height: 380px; bottom: -160px; left: -120px; opacity: 0.35; }

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.6rem);
  line-height: 1.12;
}
.hero-lead {
  margin-top: 22px;
  font-size: 1.12rem;
  color: var(--th-muted);
  max-width: 540px;
}
.hero-actions {
  margin-top: 38px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-trust {
  margin-top: 52px;
  display: flex;
  gap: 34px;
  flex-wrap: wrap;
}
.hero-trust .stat b {
  display: block;
  font-family: "Poppins", sans-serif;
  font-size: 1.7rem;
  color: var(--th-white);
}
.hero-trust .stat span {
  font-size: 0.85rem;
  color: var(--th-muted-2);
}

.hero-visual {
  position: relative;
  z-index: 1;
}
.hero-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: var(--th-gradient);
  box-shadow: var(--shadow-glow);
}
.hero-card-inner {
  border-radius: calc(var(--radius-lg) - 2px);
  background: linear-gradient(180deg, var(--th-surface-2), var(--th-black-soft));
  padding: 34px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hero-card-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--th-border);
}
.hero-card-row .ico {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--th-gradient);
  flex-shrink: 0;
}
.hero-card-row .ico svg { width: 20px; height: 20px; color: #fff; }
.hero-card-row strong { display: block; font-size: 0.95rem; color: var(--th-white); }
.hero-card-row span { font-size: 0.82rem; color: var(--th-muted-2); }

/* =========================================================
   LOGO MARQUEE
   ========================================================= */
.marquee-section { padding: 56px 0; border-top: 1px solid var(--th-border); border-bottom: 1px solid var(--th-border); }
.marquee-label {
  text-align: center;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--th-muted-2);
  margin-bottom: 26px;
}
.marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-pill {
  padding: 10px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--th-border);
  background: rgba(255,255,255,0.02);
  font-size: 0.88rem;
  color: var(--th-muted);
  white-space: nowrap;
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* =========================================================
   ABOUT
   ========================================================= */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-copy p { color: var(--th-muted); font-size: 1.06rem; }
.about-copy p + p { margin-top: 16px; }
.about-stats {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.about-stats .stat b {
  font-family: "Poppins", sans-serif;
  font-size: 2.1rem;
  display: block;
}
.about-stats .stat span { color: var(--th-muted-2); font-size: 0.9rem; }

.about-visual { position: relative; }
.about-panel {
  border-radius: var(--radius-lg);
  border: 1px solid var(--th-border);
  background: linear-gradient(160deg, var(--th-surface), var(--th-black-soft));
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.about-panel .glow-orb { width: 260px; height: 260px; top: -100px; right: -100px; opacity: 0.4; }
.about-list { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 18px; }
.about-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--th-border);
}
.about-list li:last-child { border-bottom: none; padding-bottom: 0; }
.about-list .num {
  font-family: "Poppins", sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--th-cyan-300);
  border: 1px solid var(--th-border-strong);
  width: 30px; height: 30px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.about-list strong { display: block; color: var(--th-white); font-size: 0.98rem; margin-bottom: 3px; }
.about-list span { color: var(--th-muted-2); font-size: 0.88rem; }

/* =========================================================
   SERVICES
   ========================================================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  position: relative;
  padding: 32px 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, var(--th-surface), rgba(13,16,32,0.4));
  border: 1px solid var(--th-border);
  transition: transform 0.35s var(--ease), border-color 0.35s var(--ease), background 0.35s var(--ease);
  overflow: hidden;
}
.service-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--x, 50%) var(--y, 0%), rgba(56,189,248,0.12), transparent 60%);
  opacity: 0;
  transition: opacity 0.35s var(--ease);
  pointer-events: none;
}
.service-card:hover { transform: translateY(-6px); border-color: rgba(56,189,248,0.35); }
.service-card:hover::after { opacity: 1; }
.service-icon {
  width: 52px; height: 52px;
  border-radius: 15px;
  display: flex; align-items: center; justify-content: center;
  background: var(--th-gradient);
  margin-bottom: 22px;
  box-shadow: 0 12px 30px -10px rgba(20,97,228,0.55);
}
.service-icon svg { width: 26px; height: 26px; color: #fff; }
.service-card h3 { font-size: 1.18rem; margin-bottom: 10px; }
.service-card p { color: var(--th-muted); font-size: 0.96rem; }
.service-card .tag {
  display: inline-block;
  margin-top: 18px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--th-muted-2);
}

/* =========================================================
   CASES
   ========================================================= */
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  padding: 30px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--th-border);
  background: rgba(255,255,255,0.02);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.case-card .case-kicker {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--th-cyan-300);
}
.case-card h3 { font-size: 1.15rem; }
.case-card p { color: var(--th-muted); font-size: 0.94rem; flex: 1; }
.case-card .case-metric {
  font-family: "Poppins", sans-serif;
  font-size: 1.5rem;
  color: var(--th-white);
  border-top: 1px solid var(--th-border);
  padding-top: 14px;
}
.case-card .case-metric span {
  display: block;
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--th-muted-2);
  margin-top: 2px;
}

/* =========================================================
   PROCESS
   ========================================================= */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.process-card {
  padding: 26px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--th-border);
  background: var(--th-surface);
  position: relative;
}
.process-card .num {
  font-family: "Poppins", sans-serif;
  font-size: 2.1rem;
  font-weight: 700;
  background: var(--th-gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
  display: block;
}
.process-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.process-card p { color: var(--th-muted-2); font-size: 0.88rem; }

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 64px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--th-blue-800), var(--th-blue-900) 60%);
  border: 1px solid rgba(255,255,255,0.08);
  isolation: isolate;
}
.cta-band .glow-orb { width: 420px; height: 420px; top: -180px; left: 60%; }
.cta-band-content { position: relative; z-index: 1; max-width: 620px; }
.cta-band h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.cta-band p { margin-top: 14px; color: rgba(255,255,255,0.75); font-size: 1.03rem; }
.cta-band-actions { margin-top: 30px; display: flex; gap: 16px; flex-wrap: wrap; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info-list { display: flex; flex-direction: column; gap: 20px; margin-top: 30px; }
.contact-info-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--th-border);
  background: rgba(255,255,255,0.02);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease);
}
.contact-info-item:hover { border-color: rgba(56,189,248,0.35); background: rgba(255,255,255,0.04); }
.contact-info-item .ico {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(56,189,248,0.1);
  color: var(--th-cyan-300);
  flex-shrink: 0;
}
.contact-info-item .ico svg { width: 20px; height: 20px; }
.contact-info-item strong { display: block; font-size: 0.95rem; color: var(--th-white); }
.contact-info-item span { font-size: 0.86rem; color: var(--th-muted-2); }

.contact-form {
  padding: 34px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--th-border);
  background: linear-gradient(160deg, var(--th-surface), var(--th-black-soft));
}
.form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 8px; }
.form-row label { font-size: 0.85rem; color: var(--th-muted); font-weight: 500; }
.form-row input,
.form-row select,
.form-row textarea {
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--th-border-strong);
  background: rgba(255,255,255,0.03);
  color: var(--th-white);
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--th-muted-2); }
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  border-color: var(--th-cyan-400);
  background: rgba(56,189,248,0.06);
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-note { margin-top: 14px; font-size: 0.8rem; color: var(--th-muted-2); text-align: center; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  border-top: 1px solid var(--th-border);
  padding: 64px 0 28px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 44px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--th-muted-2); font-size: 0.92rem; max-width: 280px; }
.footer-social { display: flex; gap: 10px; margin-top: 20px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--th-border-strong);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.footer-social a:hover { border-color: var(--th-cyan-400); background: rgba(56,189,248,0.08); }
.footer-social svg { width: 16px; height: 16px; }

.footer-col h4 { font-size: 0.88rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--th-muted-2); margin-bottom: 18px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: var(--th-muted); font-size: 0.92rem; transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--th-white); }

.footer-bottom {
  padding-top: 26px;
  border-top: 1px solid var(--th-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.84rem;
  color: var(--th-muted-2);
}

/* =========================================================
   REVEAL ANIMATION
   ========================================================= */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
[data-reveal].is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   WHATSAPP FLOAT
   ========================================================= */
.wa-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  z-index: 90;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 34px -10px rgba(37,211,102,0.6);
  transition: transform 0.25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; color: #fff; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { order: -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .section { padding: 84px 0; }
  .nav-links, .header-actions .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 150px 0 90px; }
  .hero-trust { gap: 26px; }
  .services-grid, .cases-grid, .process-grid { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 26px; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ---------- Mobile nav drawer ---------- */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(6,7,12,0.6);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s var(--ease);
}
.mobile-nav.is-open { opacity: 1; pointer-events: auto; }
.mobile-nav-panel {
  position: absolute;
  top: 0; right: 0;
  height: 100%;
  width: min(320px, 84vw);
  background: var(--th-black-soft);
  border-left: 1px solid var(--th-border);
  padding: 26px 26px 40px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}
.mobile-nav.is-open .mobile-nav-panel { transform: translateX(0); }
.mobile-nav-head { display: flex; justify-content: space-between; align-items: center; }
.mobile-nav-close {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid var(--th-border-strong);
  background: rgba(255, 255, 255, 0.05);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
}
.mobile-nav-close svg { width: 18px; height: 18px; }
.mobile-nav-links { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav-links a {
  padding: 12px 4px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--th-ink);
  border-bottom: 1px solid var(--th-border);
}
