/* ============================================
   INOVYIA — Estilo Apple
   Reset, variáveis, tipografia
   ============================================ */

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

:root {
  /* Cores — paleta Inovyia híbrida (Apple + roxo/azul exatos da logo) */
  --color-bg: #ffffff;
  --color-bg-secondary: #fafafa;
  --color-bg-tertiary: #f5f5f7;
  --color-bg-dark: #08081e;
  --color-bg-dark-secondary: #10102a;

  --color-text-primary: #1a1a2e;
  --color-text-secondary: #5a5a7a;
  --color-text-tertiary: #8888aa;
  --color-text-on-dark: #f0f0ff;
  --color-text-on-dark-secondary: #9898c0;

  /* Cores extraídas diretamente da logo */
  --color-blue: #1a1d8f;              /* Azul escuro logo */
  --color-purple: #7c16c3;            /* Roxo vibrante logo */
  --color-purple-mid: #4220a3;        /* Roxo médio logo */
  --color-diamond: #ba38f4;           /* Losango da logo */

  --color-accent: #2e38ab;            /* Cor principal de ação */
  --color-accent-hover: #3d48c4;
  --color-accent-light: #eef0ff;

  /* Gradiente exato da logo (azul → roxo) */
  --color-gradient: linear-gradient(135deg, #1a1d8f 0%, #4220a3 45%, #7c16c3 100%);
  --color-gradient-hover: linear-gradient(135deg, #2228aa 0%, #5030bb 45%, #8e22d4 100%);
  --color-gradient-text: linear-gradient(90deg, #2e38ab 0%, #7c16c3 100%);

  --color-border: rgba(42, 32, 163, 0.1);
  --color-border-strong: rgba(42, 32, 163, 0.2);

  /* Tipografia */
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter",
    "Helvetica Neue", Helvetica, Arial, sans-serif;

  /* Espaçamento */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;
  --space-2xl: 120px;

  /* Largura máxima de conteúdo */
  --max-width: 1200px;
  --max-width-narrow: 980px;
  --max-width-text: 720px;

  /* Bordas e raios */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 28px;
  --radius-pill: 980px;

  /* Transições */
  --transition-fast: 0.2s ease;
  --transition: 0.3s ease;
  --transition-slow: 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.47;
  color: var(--color-text-primary);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-accent);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-accent-hover);
  text-decoration: underline;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* ============================================
   TIPOGRAFIA
   ============================================ */

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: -0.025em;
  color: var(--color-text-primary);
}

h1 {
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h2 {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

h3 {
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 600;
}

h4 {
  font-size: 21px;
  font-weight: 600;
}

p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-text-secondary);
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-purple-mid);
  margin-bottom: 16px;
  display: block;
}

.lead {
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.5;
  color: var(--color-text-secondary);
  max-width: var(--max-width-text);
}

/* ============================================
   LAYOUT
   ============================================ */

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

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

.section {
  padding: var(--space-2xl) 0;
}

.section-sm {
  padding: var(--space-xl) 0;
}

.section-dark {
  background: linear-gradient(160deg, #08081e 0%, #10102a 60%, #180a2e 100%);
  color: #ffffff;
}

.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: #ffffff !important;
}

/* gradient-text em fundo escuro: branco → roxo claro (legível) */
.section-dark .gradient-text {
  background: linear-gradient(90deg, #ffffff 0%, #d088f8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}


.section-dark p {
  color: rgba(255, 255, 255, 0.78);
}

/* Eyebrows nas seções escuras — visíveis com cor do losango */
.section-dark .eyebrow {
  color: #ba38f4 !important;
  opacity: 1 !important;
  letter-spacing: 0.18em;
}

.section-gray {
  background: var(--color-bg-tertiary);
}

.text-center {
  text-align: center;
}

/* ============================================
   BOTÕES
   ============================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  font-size: 17px;
  font-weight: 400;
  line-height: 1;
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-gradient);
  color: white;
  border: none;
}

.btn-primary:hover {
  background: var(--color-gradient-hover);
  text-decoration: none;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(102, 18, 178, 0.3);
}

.btn-secondary {
  background: transparent;
  color: var(--color-accent);
  padding: 12px 22px;
}

.btn-secondary::after {
  content: "›";
  font-size: 1.2em;
  margin-left: 4px;
  transition: transform var(--transition-fast);
}

.btn-secondary:hover {
  text-decoration: none;
}

.btn-secondary:hover::after {
  transform: translateX(4px);
}

.btn-light {
  background: white;
  color: var(--color-text-primary);
}

.btn-light:hover {
  background: #f5f5f7;
  color: var(--color-text-primary);
  text-decoration: none;
}

.btn-outline {
  background: transparent;
  color: var(--color-text-primary);
  border: 1px solid var(--color-border-strong);
}

.section-dark .btn-outline {
  color: var(--color-text-on-dark);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-cta-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 32px;
}

/* ============================================
   HEADER / NAV
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 0.5px solid var(--color-border);
  transition: background var(--transition);
}

.nav {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo:hover {
  color: var(--color-text-primary);
  text-decoration: none;
}

.logo-img {
  height: 32px;
  width: auto;
  display: block;
  /* Garante que funciona em fundo claro e escuro */
}

.logo-img-footer {
  height: 36px;
  margin-bottom: 16px;
}

/* Fallback: esconde elementos antigos de logo textual se existirem */
.logo-mark, .logo span {
  display: none;
}

.nav-menu {
  display: flex;
  gap: 36px;
  list-style: none;
  align-items: center;
}

.nav-menu a {
  font-size: 14px;
  font-weight: 400;
  color: var(--color-text-primary);
  opacity: 0.85;
  transition: opacity var(--transition-fast);
}

.nav-menu a:hover {
  opacity: 1;
  text-decoration: none;
}

.nav-cta {
  background: var(--color-gradient) !important;
  color: white !important;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  opacity: 1 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
}

.nav-cta:hover {
  background: var(--color-gradient-hover) !important;
  color: white !important;
  box-shadow: 0 4px 16px rgba(102, 18, 178, 0.3);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 22px;
  color: var(--color-text-primary);
  cursor: pointer;
  padding: 0;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  padding: 140px 0 80px;
  text-align: center;
  background: var(--color-bg);
  position: relative;
  overflow: hidden;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: white;
  margin-bottom: 20px;
  display: inline-block;
  padding: 6px 14px;
  background: var(--color-gradient);
  border-radius: var(--radius-pill);
}

.hero h1 {
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero .lead {
  margin: 0 auto 36px;
  text-align: center;
}

.hero-visual {
  margin-top: 80px;
  position: relative;
}

.hero-visual-circle {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  aspect-ratio: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.orbit {
  position: absolute;
  border: 1px solid var(--color-border);
  border-radius: 50%;
  animation: orbit-spin 30s linear infinite;
}

.orbit-1 {
  width: 80%;
  height: 80%;
  animation-duration: 30s;
}

.orbit-2 {
  width: 60%;
  height: 60%;
  animation-duration: 20s;
  animation-direction: reverse;
}

.orbit-3 {
  width: 40%;
  height: 40%;
  animation-duration: 15s;
}

.orbit-node {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--color-gradient);
  border-radius: 50%;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 0 20px rgba(102, 18, 178, 0.5);
}

.hero-core {
  width: 120px;
  height: 120px;
  background: var(--color-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.02em;
  z-index: 2;
  position: relative;
  box-shadow: 0 0 60px rgba(102, 18, 178, 0.4);
}

@keyframes orbit-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ============================================
   SEÇÃO: O CAOS / PROBLEMA
   ============================================ */

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.problem-card {
  background: var(--color-bg);
  padding: 40px 32px;
  border-radius: var(--radius-lg);
  text-align: left;
  border: 1px solid var(--color-border);
}

.problem-card .icon {
  font-size: 32px;
  margin-bottom: 20px;
  display: block;
}

.problem-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.problem-card p {
  font-size: 15px;
  line-height: 1.55;
}

/* ============================================
   SOLUÇÕES — Cards de produto
   ============================================ */

.solutions-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 64px;
}

.solution-card {
  background: var(--color-bg-tertiary);
  padding: 56px 48px;
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform var(--transition);
}

.solution-card:hover {
  transform: translateY(-4px);
}

.solution-card.dark {
  background: linear-gradient(145deg, #0d0d28 0%, #1a0f35 100%);
  color: #ffffff;
}

/* CORREÇÃO: nos cards escuros, títulos SEMPRE brancos — nunca gradiente */
.solution-card.dark h3,
.solution-card.dark h3 * {
  color: #ffffff !important;
  background: none !important;
  -webkit-text-fill-color: #ffffff !important;
}

.solution-card.dark p {
  color: rgba(255, 255, 255, 0.82) !important;
}

.solution-card .eyebrow {
  margin-bottom: 12px;
}

/* Eyebrow nos cards escuros: roxo claro legível */
.solution-card.dark .eyebrow {
  color: #d088f8 !important;
  -webkit-text-fill-color: #d088f8 !important;
  background: none !important;
  opacity: 1;
}

/* CORREÇÃO: eyebrows nas seções escuras (resultados, contato) */
.section-dark .eyebrow {
  color: #d088f8 !important;
  -webkit-text-fill-color: #d088f8 !important;
  background: none !important;
}

/* CORREÇÃO: eyebrows gerais não devem usar gradient-text */
.eyebrow {
  color: var(--color-purple-mid) !important;
  -webkit-text-fill-color: var(--color-purple-mid) !important;
  background: none !important;
}

.solution-card h3 {
  font-size: 28px;
  margin-bottom: 12px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.solution-card p {
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 24px;
}

.solution-card .card-footer {
  margin-top: auto;
}

/* ============================================
   ESTATÍSTICAS / NÚMEROS
   ============================================ */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 48px;
  margin-top: 80px;
  text-align: center;
}

.stat-number {
  font-size: clamp(48px, 6vw, 80px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
  color: var(--color-text-on-dark);
}

.section-dark .stat-number {
  background: linear-gradient(180deg, #fff 0%, var(--color-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 15px;
  color: var(--color-text-on-dark-secondary);
  line-height: 1.4;
}

/* ============================================
   PARCERIA CALLIDUS
   ============================================ */

.partnership {
  text-align: center;
  padding: var(--space-2xl) 0;
}

.partnership-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 48px;
  margin: 48px 0;
  flex-wrap: wrap;
}

.partner-logo {
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
  padding: 16px 24px;
}

.partnership-separator {
  font-size: 24px;
  color: var(--color-text-tertiary);
  font-weight: 300;
}

.partnership-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  margin-top: 64px;
  text-align: left;
}

.partnership-info-item h4 {
  font-size: 18px;
  margin-bottom: 8px;
}

.partnership-info-item p {
  font-size: 15px;
}

/* ============================================
   COMO FUNCIONA / PROCESSO
   ============================================ */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-top: 64px;
  position: relative;
}

.process-step {
  text-align: left;
}

.process-step-number {
  font-size: 14px;
  font-weight: 600;
  background: var(--color-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.process-step h3 {
  font-size: 21px;
  margin-bottom: 10px;
  font-weight: 600;
}

.process-step p {
  font-size: 15px;
}

/* ============================================
   CTA FINAL
   ============================================ */

.cta-final {
  text-align: center;
  padding: var(--space-2xl) 0;
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}

.cta-final h2 {
  margin-bottom: 24px;
}

.cta-final p {
  max-width: 600px;
  margin: 0 auto 36px;
  font-size: 19px;
  color: var(--color-text-on-dark-secondary);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--color-bg-tertiary);
  padding: 64px 0 32px;
  font-size: 13px;
  color: var(--color-text-secondary);
}

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

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 13px;
  max-width: 320px;
  line-height: 1.55;
}

.footer h5 {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}

.footer ul {
  list-style: none;
  padding: 0;
}

.footer ul li {
  margin-bottom: 8px;
}

.footer ul a {
  color: var(--color-text-secondary);
  font-size: 13px;
}

.footer ul a:hover {
  color: var(--color-text-primary);
  text-decoration: none;
}

.footer-social {
  margin-top: 16px;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text-primary);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 14px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  transition: all var(--transition-fast);
}

.footer-social a:hover {
  background: var(--color-gradient);
  color: white;
  text-decoration: none;
  border-color: transparent;
}

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-text-tertiary);
  flex-wrap: wrap;
  gap: 16px;
}

/* ============================================
   WHATSAPP FLOAT
   ============================================ */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform var(--transition-fast);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  text-decoration: none;
  color: white;
}

.whatsapp-float svg {
  width: 28px;
  height: 28px;
}

/* ============================================
   INOVYIA — Toques de identidade visual
   Gradiente de texto e refinamentos híbridos
   ============================================ */

/* Título com gradiente da logo (use na classe .gradient-text) */
.gradient-text {
  background: var(--color-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Cards claros com borda sutil roxa */
.problem-card {
  border-left: 3px solid transparent;
  border-image: var(--color-gradient) 1;
  transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}

.problem-card:hover {
  box-shadow: 0 8px 32px rgba(124, 22, 195, 0.1);
  transform: translateY(-2px);
}

/* Eyebrow com cor Inovyia */
.eyebrow {
  color: var(--color-purple-mid) !important;
}

/* Process step number com gradiente */
.process-step-number {
  background: var(--color-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Separador da parceria com gradiente */
.partnership-separator {
  background: var(--color-gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-size: 32px;
  font-weight: 700;
}

/* Stat numbers com gradiente sutil */
.section-dark .stat-number {
  background: linear-gradient(180deg, #ffffff 0%, #ba38f4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Botão WhatsApp flutuante — roxo Inovyia */
.whatsapp-float {
  background: var(--color-gradient);
  box-shadow: 0 4px 20px rgba(124, 22, 195, 0.45);
}

.whatsapp-float:hover {
  box-shadow: 0 6px 28px rgba(124, 22, 195, 0.6);
}

/* Link de acento roxo */
a {
  color: var(--color-purple-mid);
}

a:hover {
  color: var(--color-purple);
}


.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================
   FORMULÁRIO DE CONTATO
   ============================================ */

.contact-form {
  max-width: 560px;
  margin: 48px auto 0;
  text-align: left;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--color-text-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  background: white;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-accent);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 900px) {
  .nav-menu {
    display: none;
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--color-border);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-toggle {
    display: block;
  }

  .problem-grid,
  .solutions-grid,
  .stats,
  .partnership-info,
  .process,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding: 100px 0 48px;
  }

  .solution-card {
    padding: 36px 28px;
    min-height: auto;
  }

  .partnership-logos {
    gap: 24px;
  }

  .partner-logo {
    font-size: 24px;
  }

  .hero-core {
    width: 80px;
    height: 80px;
    font-size: 24px;
  }
}

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

  .btn-cta-actions {
    flex-direction: column;
    width: 100%;
  }

  .btn {
    width: 100%;
  }
}
