/* ==========================================================================
   Control Tecnologia — Design System Tokens & Base Styles
   Padrão: Impeccable (Light & Clean, 4px grid, cores OKLCH, contraste AA/AAA)
   ========================================================================== */

:root {
  /* Escala Espacial (Grid de 4px) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --space-20: 80px;
  --space-24: 96px;

  /* Paleta de Cores OKLCH — Modo Claro / Clean */
  --bg-base: oklch(0.985 0.003 260);          /* Fundo suave e claro */
  --bg-surface: oklch(1 0 0);                 /* Branco puro para cards */
  --bg-subtle: oklch(0.96 0.005 260);         /* Superfície neutra suave */
  --bg-hover: oklch(0.95 0.008 260);

  --border-hairline: oklch(0.92 0.005 260);   /* Borda sutil */
  --border-strong: oklch(0.85 0.012 260);     /* Borda de foco / hover */

  --text-primary: oklch(0.18 0.018 260);      /* Grafite escuro de alto contraste (> 13:1) */
  --text-secondary: oklch(0.44 0.022 260);    /* Texto de apoio nítido (> 5:1 WCAG AA) */
  --text-muted: oklch(0.60 0.015 260);        /* Metadados e legendas */

  --accent-primary: oklch(0.42 0.16 260);     /* Azul safira técnico e elegante */
  --accent-subtle: oklch(0.96 0.02 260);      /* Fundo suave para tags */
  --accent-text: oklch(0.38 0.16 260);

  /* Tipografia Fluida */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --text-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --text-sm: clamp(0.8125rem, 0.78rem + 0.18vw, 0.875rem);
  --text-base: clamp(0.9375rem, 0.90rem + 0.22vw, 1.0625rem);
  --text-lg: clamp(1.125rem, 1.05rem + 0.35vw, 1.25rem);
  --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --text-2xl: clamp(1.75rem, 1.50rem + 1.0vw, 2.25rem);
  --text-3xl: clamp(2.25rem, 1.85rem + 1.8vw, 3.125rem);

  /* Sombras sutis e refinadas */
  --shadow-subtle: 0 1px 2px oklch(0.2 0.02 260 / 0.04), 0 4px 12px oklch(0.2 0.02 260 / 0.03);
  --shadow-hover: 0 4px 16px oklch(0.2 0.02 260 / 0.06), 0 1px 3px oklch(0.2 0.02 260 / 0.04);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;

  --max-width-content: 1040px;
  --transition-normal: 200ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Configuração Básica
   ========================================================================== */

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

html {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-base);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-base);
}

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

/* ==========================================================================
   Container & Header
   ========================================================================== */

.container {
  width: 100%;
  max-width: var(--max-width-content);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-6);
  padding-right: var(--space-6);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background-color: oklch(0.985 0.003 260 / 0.90);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border-hairline);
}

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

.brand-wrap {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background-color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.brand-mark svg {
  width: 16px;
  height: 16px;
}

.brand-name {
  font-size: var(--text-base);
  font-weight: 650;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.nav-contact {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  font-weight: 500;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  background-color: var(--bg-surface);
  transition: all var(--transition-normal);
}

.nav-contact:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

/* ==========================================================================
   Hero Section — Clean & Direto
   ========================================================================== */

.hero-section {
  padding-top: var(--space-16);
  padding-bottom: var(--space-12);
}

.hero-content {
  max-width: 680px;
}

.hero-tag {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-text);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
}

.hero-title {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--space-4);
}

.hero-description {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ==========================================================================
   Seção de Soluções — Cards Minimalistas
   ========================================================================== */

.solutions-section {
  padding-top: var(--space-4);
  padding-bottom: var(--space-20);
  flex-grow: 1;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-5);
  margin-top: var(--space-4);
}

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

.product-card {
  background-color: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-subtle);
  transition: all var(--transition-normal);
}

.product-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.product-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.product-tag {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background-color: var(--bg-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.product-icon svg {
  width: 16px;
  height: 16px;
}

.product-title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: var(--space-1);
}

.product-subtitle {
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-text);
  margin-bottom: var(--space-4);
}

.product-desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-hairline);
}

.pill {
  font-size: var(--text-xs);
  color: var(--text-secondary);
  background-color: var(--bg-subtle);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

/* ==========================================================================
   Rodapé Suprimido — Curto, Elegante e Direto
   ========================================================================== */

.site-footer {
  border-top: 1px solid var(--border-hairline);
  background-color: var(--bg-surface);
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
}

.footer-legal-line {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.footer-legal-meta {
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
  justify-content: center;
}

.footer-legal-meta a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal-meta a:hover {
  color: var(--text-primary);
}

.footer-divider {
  opacity: 0.3;
}
