/* ===== Variables ===== */
:root {
  --blue-900: #1e3a5f;
  --blue-700: #2563eb;
  --blue-600: #3b82f6;
  --blue-500: #60a5fa;
  --grey-700: #475569;
  --grey-600: #64748b;
  --grey-500: #94a3b8;
  --grey-300: #cbd5e1;
  --grey-100: #f1f5f9;
  --white: #ffffff;
  --black: #0f172a;
  --gradient: linear-gradient(135deg, var(--blue-700) 0%, var(--blue-600) 50%, #6366f1 100%);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 4px 20px rgba(30, 58, 95, 0.12);
  --shadow-lg: 0 20px 40px rgba(30, 58, 95, 0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

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

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

ul {
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===== Header ===== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

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

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links a {
  font-weight: 500;
  color: var(--grey-700);
  transition: color var(--transition);
}

.nav-links a:hover {
  color: var(--blue-700);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--grey-700);
  border-radius: 2px;
  transition: var(--transition);
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8rem 0 4rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(59, 130, 246, 0.15), transparent),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(99, 102, 241, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 50%, rgba(59, 130, 246, 0.06), transparent);
  pointer-events: none;
}

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

.hero-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--blue-700);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
  color: var(--black);
}

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

.hero-desc {
  font-size: 1.15rem;
  color: var(--grey-600);
  max-width: 520px;
  margin-bottom: 2rem;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.75rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}

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

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.45);
}

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

.btn-outline:hover {
  background: rgba(59, 130, 246, 0.08);
}

.hero-scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--grey-500);
  font-size: 0.8rem;
}

.scroll-indicator {
  width: 24px;
  height: 40px;
  border: 2px solid var(--grey-300);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background: var(--blue-600);
  border-radius: 2px;
  animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
  0%, 100% { opacity: 1; transform: translateX(-50%) translateY(0); }
  50% { opacity: 0.5; transform: translateX(-50%) translateY(8px); }
}

/* ===== Sections ===== */
.section {
  padding: 5rem 0;
}

.section-header {
  margin-bottom: 3rem;
}

.section-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85rem;
  color: var(--blue-700);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--black);
  letter-spacing: -0.02em;
}

/* ===== Sobre ===== */
.sobre {
  background: var(--grey-100);
}

.sobre-grid {
  display: grid;
  gap: 3rem;
}

.sobre-text p {
  font-size: 1.1rem;
  color: var(--grey-700);
  margin-bottom: 1.25rem;
}

.sobre-text strong {
  color: var(--blue-900);
}

.sobre-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat {
  background: var(--white);
  padding: 1.5rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.stat-value {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-700);
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--grey-600);
}

/* ===== Produtos ===== */
.produtos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.produto-card {
  background: var(--white);
  border: 1px solid var(--grey-300);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: var(--transition);
}

.produto-card:hover {
  border-color: var(--blue-500);
  box-shadow: var(--shadow);
}

.produto-card.featured {
  background: var(--gradient);
  border: none;
  color: var(--white);
}

.produto-card.featured .produto-icon,
.produto-card.featured h3,
.produto-card.featured p,
.produto-card.featured .produto-link {
  color: inherit;
}

.produto-card.featured .produto-link:hover {
  opacity: 0.9;
}

.produto-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.produto-logo-claricash {
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
}

.produto-logo-claricash img {
  height: 48px;
  width: auto;
}

.produto-card-link {
  display: block;
  color: inherit;
}

.produto-card-link:hover {
  color: inherit;
}

.produto-card-link .produto-link {
  display: inline-block;
  margin-top: 0.5rem;
}

.produto-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
}

.produto-card p {
  color: var(--grey-600);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.produto-card.featured p {
  color: rgba(255, 255, 255, 0.9);
}

.produto-link {
  font-weight: 600;
  color: var(--blue-700);
  transition: var(--transition);
}

.produto-link:hover {
  color: var(--blue-600);
}

/* ===== Serviços ===== */
.servicos {
  background: var(--grey-100);
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.servico-item {
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.servico-item:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.servico-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 2rem;
  font-weight: 700;
  color: var(--blue-500);
  opacity: 0.6;
  margin-bottom: 1rem;
}

.servico-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.servico-item p {
  color: var(--grey-600);
  font-size: 0.95rem;
}

/* ===== Contato ===== */
.contato {
  background: var(--blue-900);
  color: var(--white);
}

.contato .section-label {
  color: var(--blue-500);
}

.contato .section-title {
  color: var(--white);
}

.contato-wrapper {
  max-width: 600px;
}

.contato p {
  color: var(--grey-300);
  margin-bottom: 2rem;
}

.contato-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.contato-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  color: var(--white);
  transition: var(--transition);
}

.contato-item:hover {
  background: rgba(255, 255, 255, 0.15);
}

.contato-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.contato-icon-whatsapp {
  width: 1.35rem;
  height: 1.35rem;
  color: #25D366;
}

/* ===== Footer ===== */
.footer {
  padding: 2rem 0;
  background: var(--black);
  color: var(--grey-500);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.logo-footer img {
  height: 40px;
  width: auto;
}

.footer-text {
  font-size: 0.9rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background: var(--white);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right var(--transition);
  }

  .nav-links.active {
    right: 0;
  }

  .sobre-stats {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 6rem;
  }
}
