/* ==============================
   SENSOR.LOG — DESIGN SYSTEM
   "Precisão Industrial + Água"
   ============================== */

/* --- Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* --- CSS Custom Properties --- */
:root {
  /* Colors — Water + Industrial palette */
  --color-bg: #faf9f6;
  --color-surface: #ffffff;
  --color-dark: #0c1222;
  --color-dark-surface: #151d2e;
  --color-text: #334155;
  --color-text-muted: #64748b;
  --color-heading: #0f172a;
  --color-primary: #2563eb;
  --color-primary-light: #60a5fa;
  --color-primary-dark: #1e3a8a;
  --color-accent: #e63946;
  --color-accent-light: #f87171;
  --color-success: #059669;
  --color-danger: #dc2626;
  --color-danger-light: #fef2f2;
  --color-border: #e2e8f0;
  --color-border-light: #f1f5f9;

  /* Typography */
  --font-display: 'DM Serif Display', Georgia, 'Times New Roman', serif;
  --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-section: 120px;

  /* Sizing */
  --container-max: 1140px;
  --container-narrow: 820px;
  --header-height: 76px;

  /* Shadows */
  --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 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-xl: 0 24px 60px rgba(0, 0, 0, 0.12);
  --shadow-glow: 0 0 40px rgba(37, 99, 235, 0.15);

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-spring: 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
  color: var(--color-primary-dark);
}

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

/* --- Blueprint Grid Background --- */
.bg-blueprint {
  background-color: var(--color-bg);
  background-image:
    radial-gradient(circle, #cbd5e1 1px, transparent 1px);
  background-size: 24px 24px;
}

/* --- Water Texture Overlay --- */
.bg-water {
  position: relative;
  background-color: var(--color-dark-surface);
}

.bg-water::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background:
    radial-gradient(ellipse at 20% 50%, var(--color-primary-light) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, var(--color-primary) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, var(--color-accent-light) 0%, transparent 50%);
  pointer-events: none;
}

/* --- Noise Texture --- */
.noise-overlay {
  position: relative;
}

.noise-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.015;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  background-size: 256px 256px;
  pointer-events: none;
  z-index: 0;
}

/* ==============================
   SKIP LINK (A11y)
   ============================== */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--color-primary);
  color: #fff;
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-family: var(--font-body);
  z-index: 10000;
  transition: top var(--transition-fast);
}

.skip-link:focus {
  top: var(--space-md);
}

/* ==============================
   LAYOUT
   ============================== */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding: var(--space-section) 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-3xl);
}

.section-label {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: var(--space-md);
  padding: 4px 12px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.04);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 400;
  color: var(--color-heading);
  line-height: 1.18;
  letter-spacing: -0.3px;
  margin-bottom: var(--space-md);
}

.section-title em {
  font-style: italic;
  color: var(--color-primary);
}

.section-title .wave-underline {
  display: block;
  width: 64px;
  height: 6px;
  margin: var(--space-md) auto 0;
  background: url("data:image/svg+xml,%3Csvg width='64' height='6' viewBox='0 0 64 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 3 Q8 0 16 3 Q24 6 32 3 Q40 0 48 3 Q56 6 64 3' fill='none' stroke='%232563eb' stroke-width='2'/%3E%3C/svg%3E") no-repeat center;
}

.section-subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-text-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.65;
  font-weight: 400;
}

/* --- Grid --- */
.grid {
  display: grid;
  gap: var(--space-xl);
}

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

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

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

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

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

/* ==============================
   HEADER / NAVBAR
   ============================== */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1000;
  transition: box-shadow var(--transition-base), background var(--transition-base), border-color var(--transition-base);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

.header.scrolled {
  box-shadow: 0 1px 20px rgba(37,99,235,0.08), 0 1px 4px rgba(0,0,0,0.06);
  border-bottom-color: var(--color-border);
  background: rgba(255, 255, 255, 0.97);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 21px;
  font-weight: 700;
  color: var(--color-heading);
  letter-spacing: -0.3px;
  text-decoration: none;
}

.logo:hover {
  text-decoration: none;
  color: var(--color-heading);
}

.logo .dot {
  color: var(--color-danger);
}

.logo-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
}

/* --- Nav --- */
.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav-link {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  padding: 6px 0;
  transition: color var(--transition-fast);
  letter-spacing: -0.1px;
}

.nav-link:hover {
  color: var(--color-primary);
  text-decoration: none;
}

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

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* --- Mobile Menu Toggle --- */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-sm);
  z-index: 1001;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-heading);
  border-radius: 2px;
  transition: all var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* ==============================
   BUTTONS
   ============================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 13px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition-base);
  white-space: nowrap;
  cursor: pointer;
  border: none;
  line-height: 1.4;
  letter-spacing: -0.1px;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--color-primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--color-primary-dark);
  color: #fff;
}

.btn-whatsapp {
  background: var(--color-success);
  color: #fff;
}

.btn-whatsapp:hover {
  background: #047857;
  color: #fff;
}

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

.btn-outline:hover {
  background: var(--color-primary);
  color: #fff;
}

.btn-accent {
  background: var(--color-accent);
  color: #fff;
}

.btn-accent:hover {
  background: #c0392b;
  color: #fff;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
  border-radius: var(--radius-lg);
}

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
}

/* ==============================
   HERO
   ============================== */
.hero {
  padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-4xl);
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #f0f6ff 0%, #ffffff 55%, #fff5f5 100%);
}

/* --- Hero Video (Envato style) --- */
.hero.hero-video {
  background: #0f172a;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-height) + var(--space-4xl)) 0 var(--space-4xl);
}

.hero.hero-video::before,
.hero.hero-video::after { display: none; }

.hero-bg-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.7;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15,23,42,0.65) 0%, rgba(15,23,42,0.45) 100%);
  z-index: 1;
}

.hero-content-centered {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge-light {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
}

.pulse-white { background: #fff; }

.hero-title-white {
  color: #ffffff;
}

.hero-title-white .highlight-white {
  color: #93c5fd;
  font-style: italic;
  position: relative;
}

.hero-text-white {
  color: rgba(255,255,255,0.82);
}

.hero-actions-centered {
  justify-content: center;
}

.btn-outline-white {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  color: #ffffff;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background var(--transition-fast), border-color var(--transition-fast);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.9);
  color: #ffffff;
  text-decoration: none;
}

.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -15%;
  width: 65%;
  height: 140%;
  background:
    radial-gradient(ellipse at center, rgba(37, 99, 235, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse at 25% 70%, rgba(230, 57, 70, 0.07) 0%, transparent 55%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(37,99,235,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 70% 80% at 75% 40%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 75% 40%, black 30%, transparent 100%);
}

.hero .grid {
  align-items: center;
  position: relative;
  z-index: 1;
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--color-primary-dark);
  letter-spacing: 0.5px;
  margin-bottom: var(--space-lg);
  padding: 6px 14px;
  border: 1px solid rgba(37, 99, 235, 0.25);
  border-radius: var(--radius-full);
  background: rgba(37, 99, 235, 0.05);
}

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

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.8); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 56px);
  font-weight: 400;
  color: var(--color-heading);
  line-height: 1.1;
  letter-spacing: -0.8px;
  margin-bottom: var(--space-lg);
}

.hero-title .highlight {
  color: var(--color-primary);
  font-style: italic;
  position: relative;
}

.hero-title .highlight::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--color-primary);
  opacity: 0.2;
  border-radius: 2px;
}

.hero-text {
  font-family: var(--font-body);
  font-size: 18px;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-xl);
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero-image::before {
  content: '';
  position: absolute;
  inset: -20px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

/* ==============================
   CARDS
   ============================== */
.card {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border: 1px solid var(--color-border);
  transition: transform var(--transition-base), box-shadow var(--transition-base), border-color var(--transition-base);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent));
  opacity: 0;
  transition: opacity var(--transition-base);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(37,99,235,0.12), 0 2px 8px rgba(0,0,0,0.06);
  border-color: rgba(37,99,235,0.15);
}

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

.card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  font-size: 26px;
  font-weight: 700;
  font-family: var(--font-mono);
}

.card-icon.teal { background: #eff6ff; color: var(--color-primary); }
.card-icon.amber { background: #fffbeb; color: var(--color-accent); }
.card-icon.green { background: #f0fdf4; color: var(--color-success); }
.card-icon.red { background: #fef2f2; color: var(--color-danger); }
.card-icon.blue { background: #eff6ff; color: #2563eb; }
.card-icon.purple { background: #f5f3ff; color: #7c3aed; }

.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 400;
  color: var(--color-heading);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.2px;
}

.card-text {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* --- Glass Card --- */
.card-glass {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.6);
}

/* ==============================
   PROBLEM / SOLUTION BLOCKS
   ============================== */
.problem-block {
  background: var(--color-dark);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-3xl);
  border-left: 4px solid var(--color-accent);
  position: relative;
  color: #e2e8f0;
}

.problem-block h2 {
  color: #ffffff !important;
}

.problem-block p {
  color: rgba(255,255,255,0.85) !important;
}

.problem-block .card-title {
  margin-bottom: var(--space-md);
}

.solution-block {
  background: #eff6ff;
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  border-left: 4px solid var(--color-primary);
}

/* ==============================
   STEPS (HOW IT WORKS)
   ============================== */
.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.step {
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-heading);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 12px;
  border: 2px solid var(--color-primary);
  opacity: 0.3;
}

.step-content h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  color: var(--color-heading);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.2px;
}

.step-content p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-muted);
  line-height: 1.65;
}

/* ==============================
   METRICS / STATS
   ============================== */
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-lg);
}

.metric-card {
  text-align: center;
  padding: var(--space-2xl) var(--space-lg);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

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

.metric-value {
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 400;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
  line-height: 1;
  letter-spacing: -1px;
}

.metric-label {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--color-text-muted);
  font-weight: 500;
  letter-spacing: -0.1px;
}

/* ==============================
   CTA BLOCK
   ============================== */
.cta-block {
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 60%, #3b82f6 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl);
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(37,99,235,0.3);
}

.cta-block::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.1) 0%, transparent 65%);
  pointer-events: none;
}

.cta-block::after {
  content: '';
  position: absolute;
  bottom: -40%;
  right: -20%;
  width: 60%;
  height: 180%;
  background: radial-gradient(ellipse at center, rgba(230, 57, 70, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.cta-block > * {
  position: relative;
  z-index: 1;
}

.cta-block .section-title {
  color: #fff;
}

.cta-block .section-subtitle {
  color: rgba(255,255,255,0.88);
}

.cta-block .btn {
  margin-top: var(--space-lg);
}

.cta-block a:not(.btn),
.cta-block p:not(.section-subtitle),
.cta-block small {
  color: rgba(255,255,255,0.75);
}

/* --- Floating WhatsApp --- */
.float-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 60px;
  height: 60px;
  background: var(--color-success);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 8px 24px rgba(5, 150, 105, 0.35);
  z-index: 999;
  transition: transform var(--transition-spring), box-shadow var(--transition-base);
  text-decoration: none;
  animation: float-pulse 3s ease-in-out infinite;
}

@keyframes float-pulse {
  0%, 100% { box-shadow: 0 8px 24px rgba(5, 150, 105, 0.35); }
  50% { box-shadow: 0 12px 32px rgba(5, 150, 105, 0.5); }
}

.float-whatsapp:hover {
  transform: scale(1.12);
  box-shadow: 0 14px 36px rgba(5, 150, 105, 0.5);
  text-decoration: none;
  color: #fff;
  animation: none;
}

/* ==============================
   FAQ ACCORDION
   ============================== */
.faq-list {
  max-width: var(--container-narrow);
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding: var(--space-lg) 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 600;
  color: var(--color-heading);
  text-align: left;
  transition: color var(--transition-fast);
}

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

.faq-icon {
  font-family: var(--font-mono);
  font-size: 20px;
  font-weight: 500;
  transition: transform var(--transition-base);
  flex-shrink: 0;
  margin-left: var(--space-md);
  color: var(--color-text-muted);
}

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

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

.faq-item.active .faq-answer {
  max-height: 500px;
  padding-bottom: var(--space-lg);
}

.faq-answer p {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.7;
}

/* ==============================
   CONTACT FORM
   ============================== */
.form-group {
  margin-bottom: var(--space-lg);
}

.form-label {
  display: block;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--color-heading);
  margin-bottom: var(--space-xs);
}

.form-label .required {
  color: var(--color-danger);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  font-family: var(--font-body);
  font-size: 16px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  color: var(--color-heading);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.10);
}

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

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-muted);
}

.form-checkbox input[type="checkbox"] {
  margin-top: 3px;
  accent-color: var(--color-primary);
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

.contact-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.contact-item-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: #eff6ff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  color: var(--color-primary);
}

.contact-item h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 400;
  color: var(--color-heading);
  margin-bottom: var(--space-xs);
}

.contact-item p,
.contact-item a {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-muted);
}

/* ==============================
   FOOTER
   ============================== */
.footer {
  background: var(--color-dark);
  color: #94a3b8;
  padding: var(--space-4xl) 0 var(--space-xl);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.08), transparent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-3xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand p {
  margin-top: var(--space-md);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.7;
}

.footer h4 {
  font-family: var(--font-display);
  color: #fff;
  font-size: 17px;
  font-weight: 400;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-links a {
  font-family: var(--font-body);
  font-size: 14px;
  color: #94a3b8;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #fff;
  text-decoration: none;
}

.footer-links span {
  font-family: var(--font-body);
  font-size: 14px;
  color: #64748b;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
  margin-top: var(--space-md);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 18px;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-base);
}

.footer-social a:hover {
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  transform: translateY(-3px);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: var(--space-lg);
  text-align: center;
  font-family: var(--font-body);
  font-size: 13px;
  color: #64748b;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: #fff;
}

/* ==============================
   COOKIE BANNER (LGPD)
   ============================== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--color-dark);
  color: #fff;
  z-index: 9999;
  padding: var(--space-md) 0;
  transform: translateY(100%);
  transition: transform var(--transition-slow);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.cookie-banner p {
  font-family: var(--font-body);
  font-size: 14px;
  flex: 1;
  min-width: 260px;
  color: #94a3b8;
}

.cookie-banner a {
  color: #fff;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: var(--space-sm);
}

/* ==============================
   PAGE HEADER (internal pages)
   ============================== */
.page-header {
  padding: calc(var(--header-height) + var(--space-3xl)) 0 var(--space-2xl);
  text-align: center;
  position: relative;
  background: var(--color-bg);
}

.page-header::after {
  content: '';
  display: block;
  width: 48px;
  height: 4px;
  margin: var(--space-lg) auto 0;
  background: url("data:image/svg+xml,%3Csvg width='48' height='4' viewBox='0 0 48 4' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 2 Q8 0 16 2 Q24 4 32 2 Q40 0 48 2' fill='none' stroke='%232563eb' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center;
}

.page-header .section-label {
  margin-bottom: var(--space-md);
}

.page-header .section-title {
  margin-bottom: var(--space-sm);
}

/* ==============================
   PRODUCT CARDS
   ============================== */
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  transition: transform var(--transition-base), box-shadow var(--transition-base);
  position: relative;
  overflow: hidden;
}

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

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

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

.product-card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--space-lg);
  background: #eff6ff;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  transition: transform var(--transition-spring);
}

.product-card:hover .product-card-icon {
  transform: scale(1.08);
}

.product-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 400;
  color: var(--color-heading);
  margin-bottom: var(--space-sm);
}

.product-card p {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.65;
}

/* ==============================
   TECH SPECS TABLE
   ============================== */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: var(--space-xl);
}

.specs-table th,
.specs-table td {
  padding: 16px 20px;
  text-align: left;
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-body);
  font-size: 15px;
}

.specs-table th {
  width: 200px;
  font-weight: 600;
  color: var(--color-heading);
  background: var(--color-bg);
  font-family: var(--font-mono);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.specs-table td {
  color: var(--color-text);
}

.specs-table tr:last-child th,
.specs-table tr:last-child td {
  border-bottom: none;
}

/* ==============================
   GALLERY
   ============================== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.gallery img {
  border-radius: var(--radius-md);
  width: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.gallery img:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-md);
}

/* ==============================
   ANIMATIONS
   ============================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered delays for grid children */
.stagger-children > *:nth-child(1) { transition-delay: 0ms; }
.stagger-children > *:nth-child(2) { transition-delay: 80ms; }
.stagger-children > *:nth-child(3) { transition-delay: 160ms; }
.stagger-children > *:nth-child(4) { transition-delay: 240ms; }
.stagger-children > *:nth-child(5) { transition-delay: 320ms; }
.stagger-children > *:nth-child(6) { transition-delay: 400ms; }

/* Wave divider between sections */
.wave-divider {
  width: 100%;
  height: 60px;
  margin: 0;
  display: block;
  background: url("data:image/svg+xml,%3Csvg width='1200' height='60' viewBox='0 0 1200 60' preserveAspectRatio='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 30 Q150 10 300 30 Q450 50 600 30 Q750 10 900 30 Q1050 50 1200 30 L1200 60 L0 60 Z' fill='%23faf9f6'/%3E%3C/svg%3E") repeat-x bottom;
}

.wave-divider.flip {
  transform: rotate(180deg);
}

/* ==============================
   UTILITIES
   ============================== */
.bg-light { background: var(--color-bg); }
.bg-dark { background: var(--color-dark); color: #fff; }
.bg-surface { background: var(--color-surface); }
.text-center { text-align: center; }
.text-left { text-align: left; }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-lg { margin-bottom: var(--space-lg); }

/* ==============================
   RESPONSIVE HELPERS
   ============================== */
svg {
  max-width: 100%;
  height: auto;
}

.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-top: var(--space-xl);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
}

/* ==============================
   SEGMENT CARDS (inline)
   ============================== */
.segment-card {
  padding: var(--space-xl);
  text-align: center;
  transition: transform var(--transition-base);
}

.segment-card:hover {
  transform: translateY(-4px);
}

.segment-card .segment-icon {
  font-size: 44px;
  margin-bottom: var(--space-md);
  display: block;
}

.segment-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  color: var(--color-heading);
  margin-bottom: var(--space-xs);
}

.segment-card p {
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text-muted);
}

/* ==============================
   SOLUTION CHECKLIST
   ============================== */
.checklist {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--color-text);
  line-height: 1.8;
}

.checklist li {
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
}

.checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #eff6ff;
  border: 2px solid var(--color-primary);
}

.checklist li::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 12px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
  transform: rotate(-45deg);
}


/* ==============================
   RESPONSIVE BREAKPOINTS
   ============================== */

/* Tablet: up to 1024px */
@media (max-width: 1024px) {
  :root {
    --space-section: 80px;
    --space-4xl: 64px;
    --space-3xl: 48px;
    --space-2xl: 36px;
  }

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

  .hero-title {
    font-size: clamp(28px, 4.5vw, 40px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* Mobile landscape / small tablet: up to 768px */
@media (max-width: 768px) {
  :root {
    --header-height: 62px;
    --space-section: 60px;
    --space-4xl: 48px;
    --space-3xl: 36px;
    --space-2xl: 28px;
    --space-xl: 20px;
    --space-lg: 16px;
    --space-md: 12px;
  }

  /* Grid stacking */
  .grid-2,
  .grid-3,
  .grid-4,
  .grid-2-1,
  .grid-1-2 {
    grid-template-columns: 1fr;
  }

  .container {
    padding: 0 16px;
  }

  .section-title {
    font-size: 26px;
  }

  .section-subtitle {
    font-size: 16px;
  }

  /* Header */
  .logo {
    font-size: 18px;
  }

  .logo-icon {
    width: 32px;
    height: 32px;
  }

  /* Mobile Navigation */
  .menu-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 300px;
    height: 100vh;
    height: 100dvh;
    background: var(--color-surface);
    flex-direction: column;
    padding: calc(var(--header-height) + 24px) 24px 24px;
    gap: 4px;
    box-shadow: var(--shadow-xl);
    transition: right var(--transition-slow);
    overflow-y: auto;
    z-index: 1000;
  }

  .nav.active {
    right: 0;
  }

  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    backdrop-filter: blur(4px);
  }

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

  .nav-link {
    font-size: 16px;
    padding: 12px 0;
    display: block;
  }

  .nav .btn {
    margin-left: 0 !important;
    margin-top: 8px;
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  /* Hero */
  .hero {
    padding: calc(var(--header-height) + 40px) 0 40px;
  }

  .hero-content {
    max-width: 100%;
  }

  .hero-title {
    font-size: 30px;
  }

  .hero-text {
    font-size: 16px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero-image {
    order: -1;
    margin-bottom: 24px;
  }

  /* Cards */
  .card {
    padding: 20px;
  }

  .card-icon {
    width: 44px;
    height: 44px;
    font-size: 22px;
    margin-bottom: 12px;
  }

  .card-title {
    font-size: 18px;
  }

  .card-text {
    font-size: 14px;
  }

  /* Steps */
  .step {
    gap: 12px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .step-content h3 {
    font-size: 17px;
  }

  .step-content p {
    font-size: 14px;
  }

  /* Metrics */
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .metric-card {
    padding: 20px 12px;
  }

  .metric-value {
    font-size: 32px;
  }

  .metric-label {
    font-size: 11px;
  }

  /* CTA block */
  .cta-block {
    padding: 36px 20px;
  }

  .cta-block .section-title {
    font-size: 24px;
  }

  .cta-block .section-subtitle {
    font-size: 15px;
  }

  /* Problem / Solution blocks */
  .problem-block,
  .solution-block {
    padding: 24px;
  }

  /* Product cards */
  .product-card {
    padding: 28px 20px;
    text-align: left;
  }

  .product-card-icon {
    margin: 0 0 16px 0;
    width: 60px;
    height: 60px;
  }

  /* Specs table */
  .specs-table th {
    width: 120px;
    font-size: 11px;
    padding: 10px 12px;
  }

  .specs-table td {
    font-size: 13px;
    padding: 10px 12px;
  }

  /* FAQ */
  .faq-question {
    font-size: 15px;
    padding: 14px 0;
  }

  .faq-answer p {
    font-size: 14px;
  }

  /* Contact */
  .contact-info {
    gap: 16px;
    margin-top: 8px;
  }

  .contact-item {
    gap: 12px;
  }

  .contact-item-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  /* Forms */
  .form-input,
  .form-textarea {
    font-size: 16px;
    padding: 12px 14px;
  }

  /* Footer */
  .footer {
    padding: 48px 0 24px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-brand p {
    font-size: 13px;
  }

  .footer h4 {
    margin-bottom: 10px;
  }

  /* Float WhatsApp */
  .float-whatsapp {
    width: 52px;
    height: 52px;
    bottom: 16px;
    right: 16px;
    font-size: 24px;
  }

  /* Cookie banner */
  .cookie-banner .container {
    flex-direction: column;
    text-align: center;
  }

  .cookie-banner p {
    font-size: 13px;
  }

  .cookie-actions {
    width: 100%;
  }

  .cookie-actions .btn {
    width: 100%;
  }

  /* Page header */
  .page-header {
    padding: calc(var(--header-height) + 36px) 0 32px;
  }

  .page-header .section-title {
    font-size: 28px;
  }

  /* Gallery */
  .gallery {
    grid-template-columns: 1fr;
  }

  /* Segment cards */
  .segment-card {
    padding: 16px;
  }
}

/* Phone: up to 480px */
@media (max-width: 480px) {
  :root {
    --header-height: 56px;
    --space-section: 48px;
    --space-4xl: 40px;
    --space-3xl: 32px;
  }

  .hero-title {
    font-size: 26px;
  }

  .hero-text {
    font-size: 15px;
  }

  .section-title {
    font-size: 22px;
  }

  .metrics {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .metric-card {
    padding: 14px 8px;
  }

  .metric-value {
    font-size: 28px;
  }

  .metric-label {
    font-size: 10px;
  }

  .btn-lg {
    padding: 14px 20px;
    font-size: 15px;
  }

  .btn {
    font-size: 14px;
    padding: 10px 20px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-bottom {
    font-size: 12px;
  }

  .specs-table th {
    width: 100px;
    font-size: 11px;
  }

  .specs-table td {
    font-size: 12px;
  }

  .float-whatsapp {
    width: 48px;
    height: 48px;
    bottom: 12px;
    right: 12px;
    font-size: 22px;
  }

  .nav {
    width: 100%;
    right: -100%;
  }

  .page-header .section-title {
    font-size: 24px;
  }
}
