@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;800&display=swap');

:root {
  /* Colors */
  --bg-color: #ebf1f6; /* Neomorphic friendly light gray, softer */
  --white: #ffffff;
  --text-dark: #1e293b; /* Navy dark */
  --text-muted: #64748b;
  --primary-light: #52c2ec; /* From logo */
  --primary: #0ea5e9;
  --primary-dark: #0284c7;
  --navy: #0f172a;
  --accent: #38bdf8;
  
  /* Neomorphic Shadows */
  --neo-shadow-flat: 12px 12px 28px #d4dee8, -12px -12px 28px #ffffff;
  --neo-shadow-hover: 16px 16px 36px #d4dee8, -16px -16px 36px #ffffff;
  --neo-shadow-pressed: inset 6px 6px 12px #d4dee8, inset -6px -6px 12px #ffffff;
  
  /* Layout */
  --container-width: 1200px;
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 8px;
  --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-dark);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-text {
  font-family: 'Outfit', sans-serif;
  color: var(--navy);
}

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

/* Container */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Utilities */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  color: white;
  box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 25px rgba(14, 165, 233, 0.5);
  background: linear-gradient(135deg, var(--primary-light), var(--primary));
}

.btn-neo {
  background: var(--bg-color);
  color: var(--primary);
  box-shadow: var(--neo-shadow-flat);
  border: 1px solid rgba(255,255,255,0.4);
}

.btn-neo:hover {
  box-shadow: var(--neo-shadow-hover);
  transform: translateY(-2px);
  color: var(--primary-dark);
}

.btn-neo:active {
  box-shadow: var(--neo-shadow-pressed);
  transform: translateY(0);
}

.text-gradient {
  background: linear-gradient(135deg, var(--navy), var(--primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Language Switcher */
.lang-switcher {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-right: 24px;
}

.flag-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  cursor: pointer;
  opacity: 0.5;
  transition: var(--transition);
  border: 1px solid rgba(255,255,255,0.6);
}

.flag-icon:hover {
  opacity: 0.8;
  transform: translateY(-2px);
  box-shadow: var(--neo-shadow-hover);
}

.flag-icon.active {
  opacity: 1;
  box-shadow: var(--neo-shadow-pressed);
  transform: translateY(0);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  background: rgba(235, 240, 245, 0.85); /* Matches bg-color but slightly transparent */
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.6);
  transition: all 0.3s ease;
}

.header.scrolled {
  padding: 12px 0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

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

.logo-container img {
  height: 48px; /* Ajuste para melhor visão do texto KRYZON FLOW TECH */
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--navy);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -4px;
  left: 0;
  background-color: var(--primary);
  transition: var(--transition);
  border-radius: 2px;
}

.nav-links a:hover::after {
  width: 100%;
}

/* Hero Section */
.hero {
  padding-top: 150px;
  padding-bottom: 80px;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 600px;
}

.hero h1 {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero p {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 500px;
}

/* Hero Graphic Area */
.hero-graphic {
  position: absolute;
  top: 50%;
  right: 5%;
  transform: translateY(-50%);
  width: 500px;
  height: 500px;
  z-index: 1;
}

.hub-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--bg-color);
  box-shadow: var(--neo-shadow-flat), 0 0 30px rgba(14, 165, 233, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-glow 3s infinite alternate;
  z-index: 10;
}

.hub-center img {
  width: 70px;
  height: auto;
}

@keyframes pulse-glow {
  0% { box-shadow: var(--neo-shadow-flat), 0 0 20px rgba(14, 165, 233, 0.3); }
  100% { box-shadow: var(--neo-shadow-flat), 0 0 50px rgba(14, 165, 233, 0.6); }
}

/* Data Flows & Connections */
.connection-line {
  position: absolute;
  background: linear-gradient(90deg, transparent, var(--primary), var(--accent), transparent);
  background-size: 200% 100%;
  animation: flow-gradient 2s linear infinite;
  opacity: 0.7;
}

.line-1 { width: 140px; height: 3px; top: 10%; left: 10%; transform: rotate(45deg); }
.line-2 { width: 180px; height: 3px; top: 80%; left: 20%; transform: rotate(-30deg); }
.line-3 { width: 150px; height: 3px; top: 30%; right: -10%; transform: rotate(160deg); }

@keyframes flow-gradient {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

/* Floating BI Cards */
.floating-card {
  position: absolute;
  background: var(--bg-color);
  border-radius: var(--radius-md);
  box-shadow: var(--neo-shadow-flat);
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 5;
  animation: float 6s ease-in-out infinite;
  border: 1px solid rgba(255,255,255,0.6);
}

.fc-1 { top: 10%; left: 5%; animation-delay: 0s; }
.fc-2 { bottom: 15%; right: 5%; animation-delay: 2s; }
.fc-3 { top: 20%; right: 0; animation-delay: 4s; }

.mock-chart-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--primary);
}

@keyframes float {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

/* Section Common */
.section {
  padding: 80px 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

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

.section-title {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Pilares Grid */
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.pillar-card {
  background: var(--bg-color);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  box-shadow: var(--neo-shadow-flat);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: default;
}

.pillar-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--neo-shadow-hover);
}

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.pillar-card:hover::before {
  transform: scaleX(1);
}

.pillar-icon-wrapper {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bg-color);
  box-shadow: var(--neo-shadow-pressed);
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
  color: var(--primary);
  position: relative;
}

.pillar-icon-wrapper svg, .pillar-icon-wrapper i {
  width: 28px;
  height: 28px;
}

/* Mascot subtle integration */
.mascot-hint {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 20px;
  opacity: 0.8;
}

.pillar-letter {
  font-size: 8rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  color: var(--text-muted);
  position: absolute;
  top: -20px;
  right: 10px;
  opacity: 0.04;
  line-height: 1;
  text-shadow: none;
  z-index: 0;
  pointer-events: none;
}

.pillar-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--navy);
  z-index: 1;
}

.pillar-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
  z-index: 1;
}

/* Automation Flow Diagram Section */
.flow-diagram-wrapper {
  background: var(--bg-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--neo-shadow-pressed);
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 40px;
  position: relative;
  border: 1px solid rgba(255,255,255,0.4);
}

.flow-col {
  display: flex;
  flex-direction: column;
  gap: 20px;
  z-index: 2;
}

.flow-item {
  background: var(--bg-color);
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--neo-shadow-flat);
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 500;
  color: var(--navy);
  border: 1px solid rgba(255,255,255,0.5);
}

.flow-item i {
  color: var(--primary);
  font-size: 1.2rem;
}

.flow-center {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: var(--bg-color);
  box-shadow: var(--neo-shadow-flat);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  position: relative;
}

.flow-center img {
  width: 60px;
  margin-bottom: 8px;
}

.flow-center span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
}

.flow-line {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  z-index: 1;
  padding: 0 15%;
}

.flow-path {
  height: 2px;
  width: 30%;
  background: linear-gradient(90deg, var(--text-muted) 50%, transparent 50%);
  background-size: 10px 10px;
  position: relative;
}

.flow-path::after {
  content: '▶';
  position: absolute;
  right: -5px;
  top: -7px;
  color: var(--primary);
  font-size: 12px;
}

.flow-path.animated {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  background-size: 200% 100%;
  animation: flow-gradient 1.5s linear infinite;
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding: 80px 0;
  background: var(--navy);
  color: white;
  border-radius: var(--radius-lg);
  margin-bottom: 80px;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.2);
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(14,165,233,0.15) 0%, transparent 60%);
}

.final-cta-content {
  position: relative;
  z-index: 1;
}

.final-cta h2 {
  color: white;
  margin-bottom: 30px;
  font-size: 2.2rem;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Footer modernizado */
footer {
  padding: 60px 0 20px;
  background: white; /* Da imagem de referência, o footer tem fundo branco */
  border-top: 1px solid rgba(0,0,0,0.05);
  color: var(--text-muted);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  text-align: left;
}

.footer-col h4 {
  color: var(--navy);
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-list li, .footer-list a {
  color: var(--text-muted);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  transition: var(--transition);
}

.footer-list a:hover {
  color: var(--primary);
}

.footer-logo {
  height: 45px;
  margin-bottom: 20px;
  opacity: 0.9;
  transition: var(--transition);
}

/* Contact Section */

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: start;
  width: 100%;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.contact-info h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
  color: var(--navy);
}

.contact-card {
  background: var(--bg-color);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--neo-shadow-flat);
  display: flex;
  align-items: center;
  gap: 20px;
  border: 1px solid rgba(255,255,255,0.6);
  transition: var(--transition);
}

.contact-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--neo-shadow-hover);
}

.contact-icon-box {
  width: 48px;
  height: 48px;
  background: rgba(14, 165, 233, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary);
}

.contact-card-text span {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.contact-card-text strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
}

.contact-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--neo-shadow-flat);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--navy);
  font-weight: 600;
}

.form-control {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  transition: var(--transition);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.15);
}

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

@media (max-width: 992px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding-top: 120px;
  }
  .hero-content {
    margin-bottom: 60px;
  }
  .hero-graphic {
    position: relative;
    right: auto;
    transform: none;
    width: 300px;
    height: 300px;
  }
  .pilares-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .flow-diagram-wrapper {
    flex-direction: column;
    padding: 30px;
    gap: 40px;
  }
  .flow-line {
    display: none;
  }
  .contact-wrapper {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .pilares-grid {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none; /* Add mobile menu later if needed */
  }
  .hero h1 { font-size: 2.5rem; }
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .footer-list {
    align-items: center;
  }
}

/* Responsividade de Altura (Para encaixe perfeito em 100vh na seção Pilares) */
@media (max-height: 850px) {
  .section {
    padding: 60px 0;
  }
  .section-header {
    margin-bottom: 30px;
  }
  .section-title {
    font-size: 1.8rem;
    margin-bottom: 8px;
  }
  .section-subtitle {
    font-size: 1rem;
  }
  .pilares-grid {
    gap: 16px;
  }
  .pillar-card {
    padding: 16px;
  }
  .pillar-icon-wrapper {
    width: 50px;
    height: 50px;
    margin-bottom: 12px;
  }
  .pillar-icon-wrapper svg, .pillar-icon-wrapper i {
    width: 22px;
    height: 22px;
  }
  .pillar-letter {
    font-size: 6rem;
    top: -15px;
  }
  .pillar-title {
    font-size: 1rem;
    margin-bottom: 4px;
  }
  .pillar-desc {
    font-size: 0.8rem;
    line-height: 1.3;
  }
}

