/* ============================================================
   Central de Atendimento — CompanyGo
   Premium Landing Page Stylesheet
   ============================================================ */

/* --- Design Tokens --- */
:root {
  --color-white: #ffffff;
  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-400: #94a3b8;
  --color-gray-500: #64748b;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1e293b;
  --color-gray-900: #0f172a;
  --color-purple: #6A4CFF;
  --color-purple-light: #8B6FFF;
  --color-purple-dark: #5233CC;
  --color-blue: #3B82F6;
  --color-blue-light: #60A5FA;
  --color-blue-soft: rgba(59, 130, 246, 0.08);
  --color-success: #10B981;
  --gradient-primary: linear-gradient(135deg, #6A4CFF 0%, #3B82F6 100%);
  --gradient-soft: linear-gradient(135deg, rgba(106, 76, 255, 0.05) 0%, rgba(59, 130, 246, 0.05) 100%);
  --gradient-hero: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(106, 76, 255, 0.15);
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  color: var(--color-gray-800);
  background: var(--color-white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h4 { font-size: clamp(1rem, 1.5vw, 1.125rem); }

p { color: var(--color-gray-600); }

a {
  color: var(--color-purple);
  text-decoration: none;
  transition: color var(--transition-fast);
}
a:hover { color: var(--color-purple-dark); }

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

.section {
  padding: 80px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-header h2 {
  margin-bottom: 16px;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-header p {
  font-size: 1.125rem;
  max-width: 560px;
  margin: 0 auto;
}

/* --- Fade-in Animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

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

/* --- Hero --- */
.hero {
  padding: 100px 0 80px;
  background: var(--gradient-hero);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(106, 76, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

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

.hero-centered {
  display: flex;
  justify-content: center;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  margin: 0 auto;
}

/* --- Hero Logo --- */
.hero-logo {
  width: 240px;
  height: auto;
  margin-bottom: 24px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: var(--color-blue-soft);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-blue);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 6px;
  height: 6px;
  background: var(--color-success);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  color: var(--color-gray-900);
  margin-bottom: 20px;
}

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

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-gray-500);
  margin-bottom: 16px;
  font-weight: 500;
}

.hero-description {
  font-size: 1rem;
  color: var(--color-gray-500);
  margin-bottom: 40px;
  max-width: 480px;
  line-height: 1.7;
  margin-left: auto;
  margin-right: auto;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--gradient-primary);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 16px rgba(106, 76, 255, 0.3);
  font-family: var(--font-family);
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(106, 76, 255, 0.4);
}

.hero-cta:active {
  transform: translateY(0);
}

.hero-cta-icon {
  font-size: 1.1rem;
}

/* --- Steps Grid --- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 0 auto;
}

.steps-grid .step-card:last-child {
  grid-column: 1 / -1;
  max-width: 440px;
  margin: 0 auto;
  width: 100%;
}

.step-card {
  background: white;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

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

.step-number {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  background: var(--gradient-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
}

.step-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.step-card h3 {
  color: var(--color-gray-900);
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--color-gray-500);
  line-height: 1.6;
}

/* --- Tips Grid --- */
.how-it-works {
  background: var(--color-gray-50);
}

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

.tip-card {
  background: white;
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: all var(--transition-normal);
}

.tip-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-purple-light);
}

.tip-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.tip-card h3 {
  color: var(--color-gray-900);
  margin-bottom: 8px;
  font-size: 1rem;
}

.tip-card p {
  font-size: 0.85rem;
  color: var(--color-gray-500);
  line-height: 1.6;
}

/* --- FAQ --- */
.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--color-gray-200);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
  overflow: hidden;
  transition: all var(--transition-normal);
  background: white;
}

.faq-item:hover {
  border-color: var(--color-gray-300);
}

.faq-item.active {
  border-color: var(--color-purple-light);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: var(--font-family);
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-gray-800);
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--color-purple);
}

.faq-icon {
  font-size: 1.2rem;
  transition: transform var(--transition-normal);
  color: var(--color-gray-400);
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
  color: var(--color-purple);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
}

.faq-item.active .faq-answer {
  max-height: 200px;
}

.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 0.9rem;
  color: var(--color-gray-500);
  line-height: 1.7;
}

/* --- CTA Section --- */
.cta-section {
  background: var(--gradient-hero);
}

.cta-container {
  text-align: center;
  padding: 64px 32px;
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--color-gray-200);
  box-shadow: var(--shadow-lg);
}

.cta-container h2 {
  color: var(--color-gray-900);
  margin-bottom: 12px;
}

.cta-container > p {
  color: var(--color-gray-500);
  margin-bottom: 32px;
  font-size: 1.05rem;
}

.cta-hint {
  font-size: 0.8rem;
  color: var(--color-gray-400);
  margin-top: 16px;
}

/* --- Footer --- */
.footer {
  padding: 48px 0;
  border-top: 1px solid var(--color-gray-200);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--color-gray-700);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.85rem;
  color: var(--color-gray-500);
}

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

.footer-copy {
  width: 100%;
  text-align: center;
  padding-top: 24px;
  margin-top: 24px;
  border-top: 1px solid var(--color-gray-100);
  font-size: 0.8rem;
  color: var(--color-gray-400);
}

/* --- Footer Logo --- */
.footer-logo {
  width: 140px;
  height: auto;
}

/* --- Navbar Logo Icon --- */
.navbar-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .steps-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps-grid .step-card:last-child {
    grid-column: auto;
    max-width: none;
  }

  .tips-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .section {
    padding: 56px 0;
  }

  .hero {
    padding: 80px 0 56px;
  }

  .steps-grid {
    grid-template-columns: 1fr;
  }

  .tips-grid {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

/* --- Accessibility --- */
:focus-visible {
  outline: 2px solid var(--color-purple);
  outline-offset: 2px;
}

/* --- Hidden CompanyZap floating button --- */
.webchat-widget-button {
  display: none !important;
}
