/* 
  Forte Sistemas - Modern Redesign 
  Theme: Tech Corporate Clean
*/

/* --- Variables & Design Tokens --- */
:root {
  /* Colors */
  --primary: #0F172A;
  /* Slate 900 */
  --primary-light: #1E293B;
  /* Slate 800 */
  --secondary: #3B82F6;
  /* Blue 500 */
  --secondary-dark: #2563EB;
  /* Blue 600 */
  --accent: #10B981;
  /* Emerald 500 */
  --accent-dark: #059669;
  /* Emerald 600 */

  --bg-body: #F8FAFC;
  /* Slate 50 */
  --bg-white: #FFFFFF;
  --bg-light: #F1F5F9;
  /* Slate 100 */

  --text-main: #334155;
  /* Slate 700 */
  --text-light: #64748B;
  /* Slate 500 */
  --text-dark: #0F172A;
  /* Slate 900 */
  --text-white: #FFFFFF;

  /* Utility Colors */
  --red: #EF4444;
  --red-light: #FEE2E2;
  --blue-light: #DBEAFE;
  --emerald-light: #D1FAE5;
  --purple: #8B5CF6;
  --purple-light: #EDE9FE;
  --orange: #F97316;
  --orange-light: #FFEDD5;
  --slate-light: #E2E8F0;

  /* Spacing & Layout */
  --container-width: 1200px;
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 24px;

  /* Effects */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-dark);
  font-weight: 700;
  line-height: 1.2;
}

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

ul {
  list-style: none;
}

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

/* --- Utilities --- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 5rem 0;
}

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

.text-white {
  color: var(--text-white) !important;
}

.text-emerald {
  color: var(--accent);
}

.text-red {
  color: var(--red);
}

.text-blue {
  color: var(--secondary);
}

.text-purple {
  color: var(--purple);
}

.text-orange {
  color: var(--orange);
}

.text-slate {
  color: var(--text-light);
}

.bg-light {
  background-color: var(--bg-light);
}

.bg-dark {
  background-color: var(--primary);
}

.bg-blue-light {
  background-color: var(--blue-light);
}

.bg-emerald-light {
  background-color: var(--emerald-light);
}

.bg-purple-light {
  background-color: var(--purple-light);
}

.bg-orange-light {
  background-color: var(--orange-light);
}

.bg-green-light {
  background-color: #DCFCE7;
}

/* WhatsApp green light */
.bg-slate-light {
  background-color: var(--slate-light);
}

.grid-2-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
}

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

.gradient-text {
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-effect {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.glass-effect-dark {
  background: rgba(30, 41, 59, 0.7);
  /* Slate 800 with opacity */
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  gap: 0.5rem;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 1rem 2.5rem;
  font-size: 1.125rem;
}

.btn-primary {
  background: var(--secondary);
  color: white;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-primary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.23);
}

.btn-secondary {
  background: transparent;
  color: var(--text-dark);
}

.btn-secondary:hover {
  color: var(--secondary);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--secondary);
}

.btn-outline:hover {
  background: var(--secondary);
  color: white;
}

.btn-full {
  width: 100%;
}

.btn-icon i {
  font-size: 1.25rem;
}

/* --- Header --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  z-index: 1000;
  border-bottom: 1px solid var(--slate-light);
  display: flex;
  align-items: center;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-dark);
  margin-right: 3rem;
  /* Added spacing to separate from menu */
}

.logo img {
  height: 32px;
  width: auto;
}

.desktop-nav ul {
  display: flex;
  gap: 2rem;
}

.desktop-nav a {
  font-weight: 500;
  color: var(--text-main);
}

.desktop-nav a:hover {
  color: var(--secondary);
}

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--text-dark);
  cursor: pointer;
}

.mobile-nav {
  display: none;
  /* Hidden by default */
  position: absolute;
  top: var(--header-height);
  left: 0;
  width: 100%;
  background: white;
  padding: 1rem;
  box-shadow: var(--shadow-md);
  border-top: 1px solid var(--slate-light);
}

.mobile-nav.active {
  display: block;
}

.mobile-nav ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-nav-link {
  display: block;
  padding: 0.75rem;
  border-radius: var(--radius-sm);
}

.mobile-nav-link:hover {
  background-color: var(--bg-light);
}

/* --- Hero Section --- */
.hero {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 5rem;
  background: radial-gradient(circle at top right, #F1F5F9 0%, #FFFFFF 100%);
  overflow: hidden;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-text .badge {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: var(--blue-light);
  color: var(--secondary-dark);
  border-radius: 50px;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.hero-text h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-text p {
  font-size: 1.25rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
  max-width: 540px;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
}

.hero-image-wrapper {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
  transition: var(--transition);
}

.hero-image-wrapper:hover {
  transform: perspective(1000px) rotateY(0) rotateX(0);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(15, 23, 42, 0.1) 100%);
  pointer-events: none;
}

/* --- Social Proof --- */
.social-proof {
  padding: 2rem 0;
  border-bottom: 1px solid var(--slate-light);
  background: white;
}

.social-proof-title {
  text-align: center;
  font-size: 0.875rem;
  color: var(--text-light);
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.logos-grid {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  opacity: 0.6;
}

.client-logo {
  font-size: 2rem;
  color: var(--text-light);
  transition: var(--transition);
}

.client-logo:hover {
  color: var(--text-dark);
  opacity: 1;
}

/* --- Problem / Solution --- */
.problem-solution {
  background-color: var(--bg-white);
}

.problem-content h2 {
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.problem-content p {
  font-size: 1.125rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  font-size: 1.125rem;
  color: var(--text-main);
}

.solution-card {
  padding: 3rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  text-align: center;
  background: white;
}

.solution-card .icon-box {
  width: 80px;
  height: 80px;
  background: var(--emerald-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

.solution-card h3 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

/* --- Features --- */
.features-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  background: white;
  padding: 2.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition);
  border: 1px solid var(--slate-light);
}

.feature-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--secondary);
}

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: var(--text-light);
}

/* --- Benefits --- */
.benefits-image img {
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
}

.benefits-content h2 {
  font-size: 2.5rem;
  margin-bottom: 3rem;
}

.benefit-row {
  display: flex;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.benefit-number {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--secondary);
  min-width: 100px;
}

.benefit-desc h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.benefit-desc p {
  color: var(--text-light);
}

/* --- How It Works --- */
.steps-timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 4rem;
  position: relative;
}

.steps-timeline::before {
  content: '';
  position: absolute;
  top: 25px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--slate-light);
  z-index: 0;
}

.step-item {
  position: relative;
  z-index: 1;
  text-align: center;
}

.step-number {
  width: 50px;
  height: 50px;
  background: var(--secondary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  margin: 0 auto 1.5rem;
  border: 4px solid white;
}

.step-item h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.step-item p {
  font-size: 0.875rem;
  color: var(--text-light);
}

/* --- Contact --- */
.contact-text h2 {
  color: white;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
}

.contact-text p {
  color: #94A3B8;
  /* Slate 400 */
  font-size: 1.125rem;
  margin-bottom: 2rem;
}

.contact-benefits-list {
  margin-bottom: 3rem;
}

.contact-benefits-list li {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  color: white;
}

.contact-direct p {
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
}

.contact-form-wrapper {
  padding: 2.5rem;
  border-radius: var(--radius-md);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #E2E8F0;
  /* Slate 200 */
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  color: white;
  font-family: inherit;
  transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--secondary);
  background: rgba(15, 23, 42, 0.8);
}

.error-message {
  color: var(--red);
  font-size: 0.75rem;
  margin-top: 0.25rem;
  display: none;
}

.error-message.visible {
  display: block;
}

/* --- Footer --- */
.footer {
  background: #020617;
  /* Slate 950 */
  color: #94A3B8;
  padding: 4rem 0 2rem;
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 4rem;
}

.footer-brand .logo {
  color: white;
  margin-bottom: 1rem;
}

.footer-links-group h3 {
  color: white;
  font-size: 1rem;
  margin-bottom: 1.5rem;
}

.footer-links-group ul {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links-group a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #1E293B;
  padding-top: 2rem;
  text-align: center;
  font-size: 0.875rem;
}

/* --- Floating CTA --- */
.floating-cta {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 900;
  opacity: 0;
  transform: translateY(20px);
  transition: var(--transition);
  visibility: hidden;
}

.floating-cta.visible {
  opacity: 1;
  transform: translateY(0);
  visibility: visible;
}

.floating-cta .btn {
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  box-shadow: var(--shadow-lg);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {

  .hero-content,
  .grid-2-col,
  .features-grid-3,
  .steps-timeline,
  .footer-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

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

  .hero-text h1 {
    font-size: 2.5rem;
  }

  .hero-image-wrapper {
    transform: none;
  }

  .hero-image-wrapper:hover {
    transform: none;
  }

  .steps-timeline::before {
    display: none;
  }

  .step-number {
    margin: 0 auto 1rem;
  }

  .step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

/* --- Modal --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.8);
  /* Slate 900 with opacity */
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: white;
  padding: 3rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  width: 90%;
  text-align: center;
  transform: translateY(20px);
  transition: var(--transition);
}

.modal-overlay.active .modal-content {
  transform: translateY(0);
}

.modal-icon {
  width: 80px;
  height: 80px;
  background: var(--emerald-light);
  color: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 1.5rem;
}

.modal-title {
  font-size: 1.5rem;
  color: var(--text-dark);
  margin-bottom: 1rem;
}

.modal-message {
  color: var(--text-light);
  margin-bottom: 2rem;
  white-space: pre-wrap;
}

.modal-button {
  display: inline-block;
  padding: 0.75rem 2rem;
  background: var(--secondary);
  color: white;
  border-radius: var(--radius-sm);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.modal-button:hover {
  background: var(--secondary-dark);
}

.modal-button.error {
  background: var(--red);
}

.modal-button.error:hover {
  background: #DC2626;
  /* Red 600 */
}

@media (max-width: 768px) {

  .desktop-nav,
  .desktop-only {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .features-grid-3 {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 6rem;
    text-align: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column-reverse;
  }

  .hero-buttons {
    justify-content: center;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}