/* ============================================================
   DAUTI — Estilos da página inicial
   Ficheiro: assets/css/home.css
   ============================================================ */

/* ================= THEME / TOKENS ================ */
:root {
  --bg-950:    #0A0F1C;
  --bg-900:    #0F1526;
  --bg-800:    #141C33;
  --ink-100:   #F8FAFF;
  --ink-300:   #E6ECFF;
  --ink-500:   #B7C2E6;
  --muted:     #9AA5C4;

  --brand:     #E6791C;
  --brand-600: #D86C12;
  --brand-700: #B85E0E;
  --brand-300: #F1B078;

  --glass:     rgba(255, 255, 255, .06);
  --glass-bd:  rgba(255, 255, 255, .12);
  --radius-xl: 18px;
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, .45);

  --hero-fade-h:   160px;
  --scroll-offset: 0px;
}

/* ================= BASE ================= */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  min-height: 100%;
  background: var(--bg-950);
  color: var(--ink-100);
  overflow-x: hidden;
}

a    { color: inherit; text-decoration: none; }
img  { max-width: 100%; height: auto; display: block; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* Offset para âncoras com header fixo */
[id] { scroll-margin-top: var(--scroll-offset); }


/* ============== LANG SWITCH (fixo) ============== */
.lang-switch {
  position: fixed; top: 14px; right: 14px; z-index: 9999;
  display: flex; gap: 6px; padding: 6px;
  border-radius: 999px;
  background: rgba(10, 15, 28, .55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, .18);
}

.lang-switch button {
  appearance: none; border: 0; background: transparent;
  color: #fff; font-weight: 800;
  padding: 8px 12px; border-radius: 999px;
  cursor: pointer; opacity: .9;
}

.lang-switch button.active { background: #fff; color: #101420; opacity: 1; }
.lang-sep { width: 1px; background: rgba(255, 255, 255, .18); }


/* ===================== HERO ====================== */
.hero {
  position: relative;
  min-height: 92dvh;
  display: flex; align-items: center; isolation: isolate;
  background:
    radial-gradient(1200px 600px at 80% 0%,   rgba(255, 130, 170, .16), rgba(255, 130, 170, 0) 60%),
    radial-gradient(900px 380px  at 15% -10%,  rgba(255, 210, 150, .16), rgba(255, 210, 150, 0) 60%),
    linear-gradient(180deg, #0B1120 0%, #0A0F1C 100%);
  z-index: 0;
}

@supports not (height: 1dvh) {
  .hero { min-height: 92svh; }
}

.hero-video {
  position: absolute; inset: 0; z-index: 0;
  overflow: hidden; pointer-events: none;
}

.hero-video video,
.hero-video img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.72) contrast(1.06) saturate(1.05);
}

.hero-overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg,
    rgba(7, 10, 20, .35) 0%,
    rgba(7, 10, 20, .78) 55%,
    rgba(10, 15, 28, .92) 100%
  );
}

.hero-inner {
  position: relative; z-index: 3;
  width: 100%; max-width: 1200px;
  margin: 0 auto; padding: 120px 16px 64px;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px;
}

/* fade inferior do hero */
.hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 180px; pointer-events: none; z-index: 2;
  background: linear-gradient(to bottom,
    rgba(10, 15, 28, 0)   0%,
    rgba(10, 15, 28, .55) 55%,
    var(--bg-950)         100%
  );
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  font-weight: 800; color: #fff;
}

.title {
  margin: 14px 0 10px;
  font-size: clamp(36px, 6.2vw, 68px);
  line-height: 1.3; font-weight: 1000; letter-spacing: -.3px;
}

.title .thin { font-weight: 300; color: var(--ink-300); }

.lead {
  max-width: 60ch;
  color: var(--ink-500);
  font-size: clamp(16px, 1.9vw, 18px);
}

.cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }

.btn {
  border: 1px solid transparent; background: transparent; color: #fff;
  padding: 12px 20px; border-radius: 999px; font-weight: 900;
  display: inline-flex; align-items: center; justify-content: center;
}

.btn-primary { background: #fff; color: #111; }
.btn-outline { border-color: rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .06); }
.btn-outline:hover { background: rgba(255, 255, 255, .12); }

.mock {
  align-self: end;
  background: var(--bg-900);
  border: 1px solid var(--glass-bd);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; gap: 28px; padding-top: 96px; }
  .hero-copy  { text-align: center; }
  .lead       { margin: 0 auto; }
  .cta        { justify-content: center; }
}


/* ================= PROVA SOCIAL ================= */
.trusted {
  position: relative; margin-top: 0;
  padding-top: 72px; background: transparent; z-index: 1;
}

/* Fade de sobreposição com o hero */
.trusted::before {
  content: "";
  position: absolute; left: 0; right: 0;
  top: calc(-1 * var(--hero-fade-h));
  height: var(--hero-fade-h);
  pointer-events: none; z-index: 3;
  background: linear-gradient(to bottom,
    rgba(10, 15, 28, 0)   0%,
    rgba(10, 15, 28, .55) 55%,
    var(--bg-950)         100%
  );
}

@media (max-width: 768px) {
  :root { --hero-fade-h: 120px; }
}

.trusted .title-sm {
  text-align: center; color: var(--ink-300);
  font-weight: 800; letter-spacing: .2px; margin: 0 0 16px;
  font-size: clamp(15px, 2vw, 18px);
}

.logos {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(28px, 6vw, 64px); flex-wrap: wrap;
}

.logos img {
  height: 40px;
  filter: brightness(0) invert(1) contrast(1.06);
  opacity: .95;
  transition: opacity .2s ease, transform .2s ease, filter .2s ease;
}

.logos img:hover {
  opacity: 1;
  transform: translateY(-1px);
  filter: brightness(0) invert(1) contrast(1.12);
}

.stats {
  margin-top: 24px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}

.stat {
  background: var(--bg-900);
  border: 1px solid var(--glass-bd);
  border-radius: var(--radius-xl);
  padding: 20px; text-align: center;
}

.stat .num {
  font-size: clamp(22px, 4.8vw, 36px);
  font-weight: 1000; letter-spacing: -.2px;
}

.stat .lbl { color: var(--muted); margin-top: 6px; font-weight: 700; }

@media (max-width: 768px) {
  .stats { grid-template-columns: 1fr; }
}


/* ============= PROBLEMA → SOLUÇÃO ============== */
.ps { padding: 84px 0; }

.ps .section-title {
  text-align: center; font-weight: 1000;
  font-size: clamp(30px, 5.2vw, 46px); margin: 0 0 10px;
}

.ps .section-sub {
  text-align: center; color: var(--muted);
  margin: 0 auto 36px; max-width: 760px;
  font-size: clamp(15px, 2vw, 18px);
}

.ps-row {
  display: grid; grid-template-columns: 1.08fr .92fr;
  gap: 0; align-items: stretch; overflow: hidden;
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-bd);
  background: linear-gradient(180deg,
    rgba(255, 255, 255, .04),
    rgba(255, 255, 255, .03)
  );
  margin-bottom: 22px;
}

.ps-row .media {
  position: relative; min-height: 280px; background: var(--bg-900);
}

.ps-row .media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}

.ps-row .copy {
  padding: 26px; display: flex; flex-direction: column; gap: 6px;
}

.ps-row .kicker { font-weight: 900; color: var(--brand-300); letter-spacing: .3px; }
.ps-row h3 { margin: 0; font-size: clamp(20px, 3.4vw, 28px); color: #fff; }
.ps-row p  { margin: 0; color: var(--ink-500); }

.ps-row .actions { margin-top: 14px; display: flex; gap: 10px; flex-wrap: wrap; }

.ps-row.rev { grid-template-columns: .92fr 1.08fr; }

@media (max-width: 992px) {
  .ps-row,
  .ps-row.rev { grid-template-columns: 1fr; }
}


/* =============== TESTEMUNHOS =============== */
.quotes { padding: 64px 0 24px; }

.q-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}

.q {
  background: var(--bg-900);
  border: 1px solid var(--glass-bd);
  border-radius: var(--radius-xl);
  padding: 20px; position: relative;
}

.q p    { color: var(--ink-500); margin: 0 0 12px; }
.q .who { font-weight: 900; color: #fff; }
.q .role { color: var(--muted); font-weight: 700; }

@media (max-width: 992px) {
  .q-grid { grid-template-columns: 1fr; }
}


/* ================= LEAD SECTION ================= */
.lead-sec {
  padding: 84px 0 64px;
  background: linear-gradient(180deg, #0C1324 0%, #0D1325 100%);
  border-top: 1px solid var(--bg-800);
}

.lead-card {
  max-width: 980px; margin: 0 auto;
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg,
    rgba(255, 255, 255, .05),
    rgba(255, 255, 255, .03)
  );
  border: 1px solid rgba(255, 255, 255, .22);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35);
  padding: 26px; text-align: center;
}

.lead-card h3 { font-size: clamp(24px, 4.4vw, 36px); margin: 0 0 8px; }
.lead-card p  { color: var(--ink-500); margin: 0 0 16px; }

.lead-form {
  margin: 10px auto 0;
  width: min(720px, 100%);
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}

.lead-form input,
.lead-form button {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .06);
  color: #fff; padding: 12px 14px;
  border-radius: 12px; font-weight: 700; width: 100%;
}

.lead-form input::placeholder { color: rgba(255, 255, 255, .7); }
.lead-form .full   { grid-column: 1 / -1; }
.lead-form button  { background: #fff; color: #111; border-color: #fff; cursor: pointer; font-weight: 900; }
.lead-form .hp     { position: absolute; left: -9999px; }

@media (max-width: 720px) {
  .lead-form { grid-template-columns: 1fr; }
}


/* =============== FOOTER =============== */
footer { padding: 32px 0; color: #d9e0ff; }

.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.footer-inner.footer-2col { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

.footer-2col .copyright { color: #d9e0ff; }
.footer-2col .madeby    { color: #d9e0ff; }

.footer-2col .madeby a {
  color: #fff; font-weight: 700; text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, .25);
}

.footer-2col .madeby a:hover { border-bottom-color: rgba(255, 255, 255, .5); }

@media (max-width: 640px) {
  .footer-inner.footer-2col { flex-direction: column; text-align: center; gap: 8px; }
}


/* ===== Toasts ===== */
#toast-stack {
  position: fixed; right: 16px; bottom: 16px; z-index: 9999;
  display: grid; gap: 10px; width: min(360px, 90vw);
}

.toast {
  padding: 12px 14px; border-radius: 12px; font-weight: 700;
  color: #0b1220; background: #e6ffed; border: 1px solid #b7f5c7;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  display: flex; align-items: flex-start; gap: 10px;
  transform: translateY(16px); opacity: 0; transition: .25s ease;
}

.toast.show   { transform: translateY(0); opacity: 1; }
.toast.error  { background: #ffe8e8; border-color: #ffd0d0; color: #1a0a0a; }
.toast.info   { background: #e8f1ff; border-color: #cfe0ff; color: #0a1020; }

.toast .close {
  margin-left: auto; background: transparent; border: 0;
  cursor: pointer; font-weight: 900; color: inherit; opacity: .7;
}

.toast .close:hover { opacity: 1; }