/* ==========================================================================
   FONTESOFT — site institucional
   Tema escuro, mobile-first, sem dependências externas além das fontes.
   ========================================================================== */

:root {
  --bg: #0a0e1a;
  --bg-alt: #0d1322;
  --surface: #131a2e;
  --surface-2: #182138;
  --border: rgba(148, 163, 199, 0.14);
  --text: #e8ecf4;
  --text-muted: #9aa6c0;
  --accent: #4c8dff;
  --accent-2: #34d9c3;
  --accent-grad: linear-gradient(135deg, #4c8dff 0%, #34d9c3 100%);
  --party-1: #ff5c8a;
  --party-2: #ffb86b;
  --party-grad: linear-gradient(135deg, #ff5c8a 0%, #ffb86b 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --header-h: 68px;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

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

/* Acessibilidade -------------------------------------------------------- */

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  background: var(--accent);
  color: #061020;
  border-radius: 0 0 10px 10px;
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 0;
}

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

/* Tipografia ------------------------------------------------------------ */

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.1rem, 5.4vw + 0.8rem, 3.9rem);
}

h2 {
  font-size: clamp(1.7rem, 3vw + 0.6rem, 2.6rem);
  margin-bottom: 14px;
}

h3 {
  font-size: 1.12rem;
  font-weight: 600;
}

.grad-text {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.eyebrow-party {
  color: var(--party-1);
}

.lead {
  font-size: 1.08rem;
  color: var(--text-muted);
}

.section-sub {
  color: var(--text-muted);
  max-width: 620px;
  font-size: 1.02rem;
}

/* Botões ----------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.98rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

.btn-primary {
  background: var(--accent-grad);
  color: #061020;
  box-shadow: 0 8px 24px rgba(76, 141, 255, 0.28);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(76, 141, 255, 0.4);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}

.btn-ghost:hover {
  border-color: rgba(148, 163, 199, 0.4);
  background: rgba(255, 255, 255, 0.06);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 0.88rem;
}

.btn-block {
  width: 100%;
}

/* Cabeçalho --------------------------------------------------------------- */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(10, 14, 26, 0.82);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.site-header.scrolled {
  border-bottom-color: var(--border);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.06rem;
  letter-spacing: 0.04em;
}

.brand-mark {
  flex-shrink: 0;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  gap: 28px;
}

.site-nav a {
  font-size: 0.94rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.18s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.header-cta {
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 10px;
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Hero -------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: calc(var(--header-h) + 72px) 0 88px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
}

.glow-1 {
  width: 480px;
  height: 480px;
  top: -160px;
  right: -120px;
  background: radial-gradient(circle, rgba(76, 141, 255, 0.5), transparent 65%);
}

.glow-2 {
  width: 420px;
  height: 420px;
  bottom: -180px;
  left: -140px;
  background: radial-gradient(circle, rgba(52, 217, 195, 0.35), transparent 65%);
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 199, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 199, 0.06) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000 30%, transparent 75%);
}

.hero-inner {
  position: relative;
  text-align: center;
  max-width: 820px;
}

.hero-sub {
  margin: 22px auto 32px;
  max-width: 600px;
  font-size: 1.1rem;
  color: var(--text-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 44px;
}

.hero-chips li {
  padding: 7px 16px;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.02);
}

/* Seções ------------------------------------------------------------------ */

.section {
  padding: 88px 0;
}

.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  margin-bottom: 48px;
}

/* Cards de serviços --------------------------------------------------------- */

.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.card {
  padding: 28px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(76, 141, 255, 0.4);
  background: var(--surface-2);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 14px;
  color: var(--accent-2);
  background: rgba(52, 217, 195, 0.08);
  border: 1px solid rgba(52, 217, 195, 0.18);
}

.card h3 {
  margin-bottom: 8px;
}

.card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* PartyPad ------------------------------------------------------------------ */

.partypad-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: center;
}

.partypad-copy .lead {
  margin-bottom: 22px;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-bottom: 30px;
}

.feature-list li {
  position: relative;
  padding-left: 30px;
  color: var(--text-muted);
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background:
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230a0e1a" stroke-width="3.4" stroke-linecap="round" stroke-linejoin="round"><path d="m5.5 12.5 4 4 9-9"/></svg>') center / 12px no-repeat,
    var(--party-grad);
}

.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 16px;
  background: #05070d;
  border: 1px solid rgba(148, 163, 199, 0.3);
  border-radius: 12px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.store-badge:hover {
  transform: translateY(-2px);
  border-color: rgba(148, 163, 199, 0.6);
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.store-badge-text small {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.store-badge-text strong {
  font-size: 1.02rem;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

/* Mockup de celular (CSS puro) */

.partypad-visual {
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: 264px;
  height: 540px;
  padding: 14px;
  background: linear-gradient(160deg, #262f47, #10141f);
  border-radius: 42px;
  border: 1px solid rgba(148, 163, 199, 0.25);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 0 80px rgba(255, 92, 138, 0.12);
}

.phone-notch {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 22px;
  background: #05070d;
  border-radius: 999px;
  z-index: 2;
}

.phone-screen {
  height: 100%;
  border-radius: 30px;
  padding: 58px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background:
    radial-gradient(circle at 20% 12%, rgba(255, 92, 138, 0.28), transparent 45%),
    radial-gradient(circle at 85% 90%, rgba(255, 184, 107, 0.22), transparent 45%),
    #10141f;
  overflow: hidden;
}

.pp-logo {
  font-size: 2rem;
}

.pp-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  margin-top: 6px;
}

.pp-sub {
  font-size: 0.76rem;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.pp-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
}

.pp-tile {
  height: 78px;
  border-radius: 16px;
  opacity: 0.92;
}

.pp-tile-1 { background: linear-gradient(135deg, #ff5c8a, #c74fff); }
.pp-tile-2 { background: linear-gradient(135deg, #ffb86b, #ff5c8a); }
.pp-tile-3 { background: linear-gradient(135deg, #4c8dff, #34d9c3); }
.pp-tile-4 { background: linear-gradient(135deg, #34d9c3, #a3ff6b); }

.pp-cta {
  margin-top: auto;
  width: 100%;
  padding: 13px;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  color: #1a0a12;
  background: var(--party-grad);
  border-radius: 999px;
}

/* Pilares (Sobre) ------------------------------------------------------------ */

.pillars {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.pillar {
  padding: 28px 26px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.pillar-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 14px;
}

.pillar h3 {
  margin-bottom: 8px;
}

.pillar p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Contato --------------------------------------------------------------------- */

.contato-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--accent-2);
  transition: opacity 0.18s ease;
}

.contact-email:hover {
  opacity: 0.8;
}

.legal-box {
  margin-top: 34px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.legal-box h3 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.legal-box dl {
  display: grid;
  gap: 10px;
}

.legal-box dl > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 0.94rem;
}

.legal-box dt {
  font-weight: 600;
  min-width: 100px;
  color: var(--text-muted);
}

.legal-box dd a {
  color: var(--accent-2);
}

.legal-box dd a:hover {
  text-decoration: underline;
}

/* Formulário */

.contact-form {
  padding: 30px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  gap: 18px;
}

.form-field {
  display: grid;
  gap: 8px;
}

.form-field label {
  font-size: 0.88rem;
  font-weight: 600;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 1rem; /* >=16px evita o auto-zoom do Safari iOS ao focar o campo */
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.18s ease;
  resize: vertical;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(154, 166, 192, 0.75);
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}

.form-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.form-feedback {
  font-size: 0.88rem;
  color: var(--accent-2);
  min-height: 1.2em;
}

.form-feedback.error {
  color: #ff7a7a;
}

/* Rodapé ------------------------------------------------------------------------ */

.site-footer {
  padding: 56px 0 32px;
  background: #070a13;
  border-top: 1px solid var(--border);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  margin-bottom: 44px;
}

.footer-brand p {
  margin-top: 16px;
  color: var(--text-muted);
  font-size: 0.92rem;
  max-width: 300px;
}

.footer-nav h3 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer-nav ul {
  display: grid;
  gap: 10px;
}

.footer-nav a,
.footer-nav li {
  font-size: 0.94rem;
  color: var(--text-muted);
}

.footer-nav a:hover {
  color: var(--text);
}

.footer-legal {
  padding-top: 26px;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.footer-legal strong {
  color: var(--text);
}

/* Animações de entrada ------------------------------------------------------------
   Gate na classe .js (adicionada por script inline no <head>): sem JavaScript,
   o conteúdo permanece visível em vez de ficar preso em opacity: 0. */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* Breakpoints ----------------------------------------------------------------------- */

@media (max-width: 767px) {
  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    padding: 10px 20px 24px;
    background: rgba(10, 14, 26, 0.98);
    border-bottom: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s;
  }

  .site-nav.open {
    transform: none;
    opacity: 1;
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 4px;
  }

  .site-nav a {
    display: block;
    padding: 12px 4px;
    font-size: 1.05rem;
  }

  .header-cta {
    display: none;
  }

  /* Sem JS o botão não faz nada; melhor não exibi-lo (âncoras seguem no rodapé) */
  .js .nav-toggle {
    display: flex;
  }
}

@media (min-width: 640px) {
  .cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .container {
    padding-inline: 32px;
  }

  .section {
    padding: 112px 0;
  }

  .cards-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }

  .partypad-inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 64px;
  }

  .pillars {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .contato-inner {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 24px;
  }

  .footer-legal {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
  }
}
