/* ═══════════════════════════════════════════
   WEUNY — COMUNICAÇÃO INTERNA & CHAT
   Página de Recurso — Light Theme
   ═══════════════════════════════════════════ */

/* ── Reset & Tokens ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --blue:    #00B7FF;
  --cyan:    #00E5FF;
  --teal:    #00E8BB;
  --bg:      #ffffff;
  --surface: #f8fafc;
  --border:  #e2e8f0;
  --fg:      #0f172a;
  --fg-mid:  #334155;
  --fg-muted:#64748b;

  --gradient-primary:   linear-gradient(135deg, var(--blue), var(--teal));
  --gradient-secondary: linear-gradient(135deg, var(--blue), var(--cyan));

  --shadow-card:  0 1px 3px rgba(15,23,42,.06), 0 4px 16px rgba(15,23,42,.06);
  --shadow-hover: 0 4px 24px rgba(15,23,42,.10), 0 1px 4px rgba(15,23,42,.06);
  --shadow-img:   0 0 0 1px rgba(15,23,42,.06), 0 24px 64px rgba(15,23,42,.12), 0 8px 24px rgba(0,183,255,.06);

  --font-heading: "Manrope", system-ui, sans-serif;
  --font-body:    "Plus Jakarta Sans", system-ui, sans-serif;
  --radius:       1rem;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5,h6 {
  font-family: var(--font-heading);
  letter-spacing: -.02em;
  line-height: 1.1;
  color: var(--fg);
}

a { color: inherit; text-decoration: none; transition: all .3s ease; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ── Layout ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

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

/* ── Reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .75s cubic-bezier(.4,0,.2,1), transform .75s cubic-bezier(.4,0,.2,1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(15,23,42,.06);
  transition: all .4s cubic-bezier(.4,0,.2,1);
}

#site-header.scrolled {
  background: rgba(255,255,255,.96);
  box-shadow: 0 1px 12px rgba(15,23,42,.06);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 5rem;
  transition: height .3s ease;
}

#site-header.scrolled .header-inner { height: 4.5rem; }

.logo { display: flex; align-items: center; }
.logo-image { height: 1.7rem; width: auto; }

.desktop-nav {
  display: none;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) { .desktop-nav { display: flex; } }

.desktop-nav a {
  font-size: .85rem;
  font-weight: 600;
  color: var(--fg-muted);
  position: relative;
  transition: color .3s;
}
.desktop-nav a:hover { color: var(--fg); }

.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gradient-primary);
  border-radius: 9999px;
  transition: width .3s;
}
.desktop-nav a:hover::after { width: 100%; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .8rem 1.75rem;
  border-radius: 9999px;
  font-weight: 700;
  font-size: .875rem;
  cursor: pointer;
  transition: all .3s ease;
  border: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--gradient-secondary);
  color: #00141C !important;
  box-shadow: 0 4px 14px rgba(0,119,182,.22);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(0,119,182,.32);
}

.btn-ghost {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--fg-mid);
}
.btn-ghost:hover {
  border-color: rgba(0,183,255,.4);
  color: var(--fg);
  transform: translateY(-1px);
}

.header-cta { display: none; }
@media (min-width: 768px) { .header-cta { display: inline-flex; } }

/* Mobile toggle */
.mobile-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  padding: .5rem;
}
@media (min-width: 1024px) { .mobile-toggle { display: none; } }

.mobile-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: all .3s;
}
.mobile-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.mobile-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(255,255,255,.98);
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: all .4s ease;
}
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu nav { display: flex; flex-direction: column; width: 100%; gap: .5rem; }
.mobile-menu a {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--fg);
  padding: 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

/* ─────────────────────────────────────────
   DOBRA 1 — HERO
───────────────────────────────────────── */
.hero {
  position: relative;
  padding-top: 7.5rem;
  padding-bottom: 0;
  background: #fff;
  overflow: hidden;
}

/* Orbs de fundo suaves */
.hero-glow {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
}
.hero-glow--1 {
  width: 720px; height: 720px;
  top: -30%; left: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(0,183,255,.10) 0%, transparent 65%);
  animation: orb-pulse 9s ease-in-out infinite;
}
.hero-glow--2 {
  width: 480px; height: 480px;
  bottom: 10%; right: -10%;
  background: radial-gradient(circle, rgba(0,232,187,.08) 0%, transparent 65%);
  animation: orb-pulse 12s ease-in-out infinite reverse;
}

@keyframes orb-pulse {
  0%,100% { transform: translateX(-50%) scale(1);   opacity: .5; }
  50%      { transform: translateX(-50%) scale(1.15); opacity: .85; }
}
.hero-glow--2 { animation-name: orb-pulse-2; }
@keyframes orb-pulse-2 {
  0%,100% { transform: scale(1);    opacity: .5; }
  50%      { transform: scale(1.18); opacity: .85; }
}

/* Breadcrumb */
.breadcrumb {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 600;
  color: var(--fg-muted);
  margin-bottom: 1.75rem;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
.breadcrumb a {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  color: var(--fg-muted);
  transition: color .3s;
}
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb svg {
  width: .9rem; height: .9rem;
  stroke: currentColor;
  stroke-width: 2.5;
  fill: none;
}
.breadcrumb > span:last-child { color: var(--fg); }

/* Body central */
.hero-body {
  position: relative;
  z-index: 2;
  text-align: center;
  /* Largura generosa para caber 2 linhas:
     "reduzir ruído e melhorar alinhamento" ~36 chars
     a ~52px (3.25rem) ≈ 970px — cabe dentro dos 1060px */
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--blue);
  background: rgba(0,183,255,.08);
  border: 1px solid rgba(0,183,255,.2);
  padding: .35rem .9rem;
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.hero-body h1 {
  /* 3.25rem max → linha 2 (~36 chars × 27px ≈ 972px)
     cabe nos 1060px sem quebrar */
  font-size: clamp(1.75rem, 3.75vw, 3.25rem);
  font-weight: 800;
  color: var(--fg);
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 1.25rem;
  overflow-wrap: break-word;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.75;
  max-width: 640px;
  margin-bottom: 2rem;
}

/* Screenshot */
.hero-screenshot {
  position: relative;
  z-index: 2;
  margin-top: 2.5rem;
  padding-bottom: 0;
}

.screenshot-glow {
  position: absolute;
  inset: 20% 5% -10%;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,183,255,.14) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  filter: blur(50px);
}

.screenshot-frame {
  position: relative;
  z-index: 1;
  border-radius: 1rem 1rem 0 0;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(15,23,42,.14);
  background: #0d1b2a;
}

/* Gradiente que faz a imagem sumir na parte inferior */
.screenshot-frame::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 45%;
  background: linear-gradient(to bottom, transparent, #ffffff);
  pointer-events: none;
  z-index: 2;
}

.screenshot-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.125rem;
  background: rgba(255,255,255,.04);
  border-bottom: 1px solid rgba(255,255,255,.06);
}

.bar-dot {
  width: .55rem; height: .55rem;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

.bar-label {
  font-size: .65rem;
  color: rgba(255,255,255,.28);
  font-family: var(--font-body);
  letter-spacing: .03em;
  margin-left: .5rem;
}

.screenshot-frame img {
  width: 100%;
  display: block;
}

@media (max-width: 768px) {
  .hero { padding-top: 7rem; }
  .hero-sub { font-size: 1rem; }
  .hero-screenshot { margin-top: 2rem; }
}

@media (max-width: 480px) {
  .hero-body h1 { font-size: 1.65rem; }
}

/* ─────────────────────────────────────────
   DOBRA 2 — O PROBLEMA
───────────────────────────────────────── */
.problem {
  padding: 7rem 0;
  background: var(--surface);
}

.problem-header {
  text-align: center;
  /* 960px garante que "Quando a comunicação se espalha,"
     (~34 chars × ~25px @ 2.75rem) = ~867px cabe numa linha */
  max-width: 960px;
  margin: 0 auto 4rem;
}

.problem-header h2 {
  font-size: clamp(1.75rem, 3.75vw, 2.75rem);
  font-weight: 800;
  color: var(--fg);
  line-height: 1.15;
  letter-spacing: -.025em;
  margin-bottom: 1.25rem;
}

.problem-header p {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.75;
}

/* Grid 2×2 */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .problem-grid { grid-template-columns: 1fr; }
}

.problem-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}

/* Faixa gradiente no topo — aparece no hover */
.problem-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity .25s ease;
}

.problem-card:hover {
  transform: scale(1.05);
  border-color: rgba(0,183,255,.2);
  box-shadow: var(--shadow-hover);
}

.problem-card:hover::before {
  opacity: 1;
}

.problem-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,183,255,.08);
  border-radius: .625rem;
  flex-shrink: 0;
}

.problem-icon svg {
  width: 1.125rem;
  height: 1.125rem;
  stroke: var(--blue);
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.problem-card h3 {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
}

.problem-card p {
  font-size: .875rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

@media (max-width: 640px) {
  .problem { padding: 5rem 0; }
}

/* ─────────────────────────────────────────
   DOBRA 4 — BENEFÍCIOS
───────────────────────────────────────── */
.benefits {
  padding: 7rem 0;
  background: var(--bg);
}

.benefits-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 4rem;
}

.benefits-header h2 {
  font-size: clamp(1.75rem, 3.75vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (max-width: 900px) {
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 580px) {
  .benefits-grid { grid-template-columns: 1fr; }
}

.benefit-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: .75rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  overflow: hidden;
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity .25s ease;
}

.benefit-card:hover {
  transform: scale(1.05);
  border-color: rgba(0,232,187,.25);
  box-shadow: 0 4px 24px rgba(0,232,187,.1), 0 1px 4px rgba(15,23,42,.06);
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,232,187,.1);
  border-radius: .625rem;
  flex-shrink: 0;
}

.benefit-icon svg {
  width: 1.125rem;
  height: 1.125rem;
  stroke: var(--teal);
  stroke-width: 1.75;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.benefit-card h3 {
  font-size: .9375rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.3;
}

.benefit-card p {
  font-size: .875rem;
  color: var(--fg-muted);
  line-height: 1.65;
}

.benefits-cta {
  text-align: center;
  margin-top: 3.5rem;
}

@media (max-width: 640px) {
  .benefits { padding: 5rem 0; }
}

/* ─────────────────────────────────────────
   DOBRA 5 — REFORÇO DO OCC
───────────────────────────────────────── */
.occ-reinforcement {
  padding: 8rem 0;
  background: #000c12;
  position: relative;
  overflow: hidden;
}

.occ-reinforcement::before {
  content: "";
  position: absolute;
  top: -30%; left: 50%;
  transform: translateX(-50%);
  width: 800px; height: 600px;
  background: radial-gradient(ellipse at 50% 0%, rgba(0,183,255,.12) 0%, transparent 65%);
  pointer-events: none;
}

.occ-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.occ-tag {
  background: rgba(0,183,255,.1);
  border-color: rgba(0,183,255,.25);
  color: var(--blue);
  margin-bottom: 2rem;
}

.occ-reinforcement h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  color: #fff;
  margin-bottom: 1.5rem;
}

.occ-lead {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  color: rgba(255,255,255,.7);
  line-height: 1.6;
  margin-bottom: 2.5rem;
  font-weight: 500;
}

.occ-body {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-bottom: 3rem;
  text-align: left;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--radius);
  padding: 2.5rem;
}

.occ-body p {
  font-size: .975rem;
  color: rgba(255,255,255,.55);
  line-height: 1.75;
}

.occ-highlight {
  color: #fff;
  font-weight: 600;
}

.occ-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-ghost-light {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.2);
  color: rgba(255,255,255,.8);
}

.btn-ghost-light:hover {
  border-color: rgba(255,255,255,.5);
  color: #fff;
  transform: translateY(-1px);
}

@media (max-width: 640px) {
  .occ-reinforcement { padding: 5rem 0; }
  .occ-body { padding: 1.75rem; }
}

/* ─────────────────────────────────────────
   DOBRA 6 — CTA FINAL
───────────────────────────────────────── */
.cta-final {
  padding: 8rem 0;
  background: linear-gradient(135deg, #00B7FF 0%, #00E8BB 100%);
  position: relative;
  overflow: hidden;
}

.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='1'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.cta-final-inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.cta-final h2 {
  font-size: clamp(1.75rem, 3.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: #00141C;
}

.cta-final p {
  font-size: 1.05rem;
  color: rgba(0,20,28,.7);
  line-height: 1.75;
  max-width: 580px;
}

.btn-lg {
  padding: 1rem 2.25rem;
  font-size: 1rem;
  background: #00141C;
  color: #fff !important;
  box-shadow: 0 8px 28px rgba(0,20,28,.25);
}

.btn-lg:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,20,28,.35);
}

@media (max-width: 640px) {
  .cta-final { padding: 5rem 0; }
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
.site-footer {
  background: #000c12;
  color: rgba(255,255,255,.5);
  padding: 6rem 0 3rem;
  border-top: 1px solid rgba(255,255,255,.05);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  margin-bottom: 5rem;
}
@media (min-width: 640px)  { .footer-grid { grid-template-columns: repeat(2,1fr); } }
@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2.5fr 1fr 1.5fr 1.2fr;
    gap: 3rem;
  }
}

.footer-brand .logo { margin-bottom: 1.5rem; }
.footer-brand p {
  font-size: .95rem;
  line-height: 1.6;
  max-width: 20rem;
  margin-bottom: 2rem;
}

.footer-legal { display: flex; flex-direction: column; gap: .75rem; }
.footer-legal a { font-size: .8rem; color: rgba(255,255,255,.4); }
.footer-legal a:hover { color: var(--blue); }

.footer-col h4 {
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #fff;
  margin-bottom: 1.75rem;
}
.footer-col ul { display: flex; flex-direction: column; gap: 1rem; }
.footer-col a { font-size: .9rem; color: rgba(255,255,255,.5); }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-col a.footer-active { color: #fff; font-weight: 600; }

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,.05);
  text-align: center;
}
.footer-bottom p { font-size: .75rem; color: rgba(255,255,255,.3); }

@media (max-width: 640px) {
  .site-footer { padding: 4rem 0 2rem; }
  .footer-grid { gap: 3rem; }
}
