/* ==========================================================================
   InTec / LX InSite — landing page
   Tokens from brandbook: Deep Site, InSite Blue, Technology Gray, Signal Cyan
   ========================================================================== */

:root {
  --ink:        #0A1E3C; /* Dark Blue · Deep Site */
  --blue:       #1B365D; /* Primary Blue · InSite Blue */
  --gray:       #63666A; /* Technology Gray */
  --gray-line:  #D9D9D6; /* Light Gray */
  --paper:      #FFFFFF; /* White · fundo claro padrão */
  --paper-dim:  #F2F3F4; /* alternate light surface, derived from Light Gray */
  --cyan:       #009CDE; /* Signal Cyan · acento funcional */
  --cyan-dim:   rgba(0, 156, 222, 0.14);

  --ink-soft:   rgba(255, 255, 255, 0.72);
  --ink-faint:  rgba(255, 255, 255, 0.46);
  --line-dark:  rgba(255, 255, 255, 0.14);

  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --container: 1180px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 8px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---- reset ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--gray);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
table { border-collapse: collapse; width: 100%; }
button { font: inherit; cursor: pointer; }

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  text-wrap: balance;
  color: var(--ink);
}

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

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 28px;
}

.skip-link-wrap { position: relative; }
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--cyan);
  color: var(--ink);
  padding: 10px 16px;
  z-index: 999;
  font-family: var(--font-body);
  font-weight: 600;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}

/* ---- eyebrow / labels ---- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.eyebrow-dark { color: var(--blue); }
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px var(--cyan-dim);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 30, 60, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-dark);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 98px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #fff;
}
.brand-mark { display: block; height: 60px; width: auto; flex-shrink: 0; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  color: var(--gray-line);
  letter-spacing: -0.01em;
}
.brand-word-strong { font-weight: 700; color: #fff; }

.main-nav { display: flex; align-items: center; gap: 32px; }
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: color 0.2s var(--ease);
}
.main-nav a:hover { color: #fff; }
.nav-cta {
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--cyan);
  color: #fff !important;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-cta:hover { background: var(--cyan-dim); }

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  background: none; border: none; padding: 0;
}
.nav-toggle span { width: 22px; height: 2px; background: #fff; margin: 0 auto; transition: transform 0.2s var(--ease), opacity 0.2s var(--ease); }

.header-right { display: flex; align-items: center; gap: 18px; }
.lang-switch {
  display: flex;
  align-items: center;
  gap: 3px;
  font-family: var(--font-mono);
  font-size: 12px;
}
.lang-switch a {
  color: var(--ink-faint);
  padding: 4px 7px;
  border-radius: 5px;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.lang-switch a:hover { color: #fff; }
.lang-switch a.is-active { color: #fff; background: rgba(255, 255, 255, 0.1); }
.lang-switch-footer { margin-top: 4px; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  background: var(--ink);
  overflow: hidden;
  padding: 84px 0 96px;
}
.hero-grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 70% 30%, #000 40%, transparent 85%);
  mask-image: radial-gradient(ellipse 80% 60% at 70% 30%, #000 40%, transparent 85%);
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.2vw, 4.4rem);
  color: #fff;
  line-height: 1.02;
  margin: 0 0 22px;
}
.accent-word { color: var(--cyan); }
.hero-lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--ink-soft);
  max-width: 34em;
  margin-bottom: 10px;
}
.hero-lede strong { color: #fff; font-weight: 600; }
.hero-tagline {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--cyan);
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--cyan); color: var(--ink); }
.btn-primary:hover { background: #33b3e6; }
.btn-ghost { border: 1px solid var(--line-dark); color: #fff; }
.btn-ghost:hover { border-color: var(--cyan); }
.btn-cyan { background: var(--cyan); color: var(--ink); margin-top: 24px; }
.btn-cyan:hover { background: #33b3e6; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 36px;
  padding-top: 34px;
  border-top: 1px solid var(--line-dark);
}
.stat dd, .stat-static {
  font-family: var(--font-mono);
  font-size: clamp(1.6rem, 2.6vw, 2.2rem);
  color: #fff;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.stat dt {
  font-size: 12.5px;
  color: var(--ink-faint);
  margin-top: 6px;
  max-width: 15em;
  line-height: 1.4;
}

/* ---- device illustration ---- */
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.device-panel {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(160deg, #16304f, #0d2340);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 22px 22px 16px;
  box-shadow: 0 30px 80px -30px rgba(0,0,0,0.6);
}
.device-panel-head { display: flex; justify-content: flex-end; gap: 34px; padding: 0 10px 18px; }
.device-antenna { width: 2px; height: 34px; background: var(--gray-line); border-radius: 2px; opacity: 0.5; }
.device-panel-body { display: flex; gap: 18px; align-items: flex-start; }
.device-leds {
  display: grid;
  grid-template-columns: repeat(4, 8px);
  gap: 7px;
  padding: 6px 0;
}
.device-leds span { width: 8px; height: 8px; border-radius: 2px; background: rgba(0, 156, 222, 0.35); }
.device-leds span:nth-child(3n+1) { background: var(--cyan); box-shadow: 0 0 6px 1px var(--cyan-dim); }
.device-screen {
  flex: 1;
  background: #05131f;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  padding: 16px;
  min-height: 108px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.device-screen-line { height: 6px; border-radius: 3px; background: rgba(255,255,255,0.12); }
.device-screen-line-1 { width: 70%; }
.device-screen-line-2 { width: 45%; }
.device-screen-line-3 { width: 58%; }
.device-screen-readout {
  margin-top: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--cyan);
  letter-spacing: 0.02em;
}
.device-caption {
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  text-transform: uppercase;
  text-align: center;
}
.pulse-readout {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--cyan);
  animation: pulse 1.8s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--cyan-dim); }
  50% { box-shadow: 0 0 0 7px transparent; }
}

/* ==========================================================================
   Sections — shared
   ========================================================================== */
.section { padding: 96px 0; }
.section-light { background: var(--paper); }
.section-dark { background: var(--blue); }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p:not(.eyebrow) { color: var(--ink-soft); }

.section-head { max-width: 44em; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.12; }
.section-intro { margin-top: 16px; font-size: 1.05rem; }

/* ==========================================================================
   Lineup (plataforma)
   ========================================================================== */
.lineup {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.lineup-card {
  background: var(--paper-dim);
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-md);
  padding: 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.lineup-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.lineup-card h3 { font-size: 1.05rem; }
.lineup-card p { font-size: 14px; line-height: 1.55; }
.tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
  border: 1px solid var(--gray-line);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
  flex-shrink: 0;
}
.lineup-card-featured {
  background: var(--ink);
  border-color: var(--ink);
}
.lineup-card-featured h3 { color: #fff; }
.lineup-card-featured p { color: var(--ink-soft); }
.tag-premium { border-color: var(--cyan); color: var(--cyan); }

/* ==========================================================================
   Feature grid (o que ele faz)
   ========================================================================== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line-dark);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature {
  background: var(--blue);
  padding: 34px 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.feature-icon {
  width: 34px; height: 34px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 6px;
}
.feature h3 { font-size: 1.02rem; }
.feature p { font-size: 14px; line-height: 1.6; }
.feature-note { justify-content: center; background: #16304f; }
.feature-note p { color: #fff; font-size: 14.5px; }
.feature-note strong { color: var(--cyan); }

/* ==========================================================================
   Tecnologia (por que a nova geração)
   ========================================================================== */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  margin-bottom: 64px;
}
.tech-index {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--cyan);
  margin-bottom: 14px;
}
.tech-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.tech-item p { font-size: 14px; line-height: 1.55; }

.split-panel {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2px;
  background: var(--gray-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.split-panel-stat, .split-panel-browser { background: var(--paper); padding: 36px; }
.split-panel-stat { display: flex; flex-direction: column; justify-content: center; background: var(--ink); }
.mono-big {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 4vw, 3.2rem);
  color: var(--cyan);
  font-weight: 500;
  line-height: 1;
  margin-bottom: 16px;
}
.mono-big small { font-size: 0.4em; color: var(--ink-soft); margin-left: 4px; }
.split-panel-stat p { color: var(--ink-soft); font-size: 14.5px; max-width: 26em; }
.split-panel-stat p strong { color: #fff; }

.browser-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  background: var(--paper-dim);
  border: 1px solid var(--gray-line);
  border-radius: 8px 8px 0 0;
  padding: 10px 14px;
  margin: -36px -36px 24px;
}
.browser-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--gray-line); }
.browser-url {
  margin-left: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--gray);
  background: var(--paper);
  padding: 4px 10px;
  border-radius: 5px;
  border: 1px solid var(--gray-line);
}
.split-panel-browser h3 { margin-bottom: 10px; }
.split-panel-browser p { font-size: 14.5px; }

/* ==========================================================================
   Legado / migração
   ========================================================================== */
.section-legacy {
  background: var(--ink);
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 48px 48px;
}
.legacy-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: start;
}
.legacy-grid h2 { color: #fff; font-size: clamp(1.9rem, 3.2vw, 2.5rem); }
.legacy-list { display: flex; flex-direction: column; gap: 26px; }
.legacy-list li { padding-left: 22px; border-left: 2px solid var(--cyan); }
.legacy-list h3 { color: #fff; font-size: 1.05rem; margin-bottom: 6px; }
.legacy-list p { color: var(--ink-soft); font-size: 14.5px; }

/* ==========================================================================
   Compatibilidade (bombas e medidores)
   ========================================================================== */
.compat-block { margin-bottom: 48px; }
.compat-block:last-child { margin-bottom: 0; }
.compat-title {
  font-size: 1.1rem;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--gray-line);
}
.compat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.compat-grid-narrow { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.compat-card {
  border: 1px solid var(--gray-line);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--paper);
  display: flex;
  flex-direction: column;
}
.compat-card-head {
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: 0.02em;
  padding: 12px 16px;
}
.compat-list { display: flex; flex-direction: column; }
.compat-list li {
  font-size: 13.5px;
  color: var(--gray);
  padding: 11px 16px;
  border-top: 1px solid var(--gray-line);
}
.compat-list li:first-child { border-top: none; }
.compat-note { margin-top: 18px; font-size: 12.5px; color: var(--gray); font-style: italic; }

/* ==========================================================================
   Ficha técnica
   ========================================================================== */
.spec-table-wrap { overflow-x: auto; border: 1px solid var(--gray-line); border-radius: var(--radius-md); }
.spec-table { min-width: 620px; }
.spec-table tr { border-bottom: 1px solid var(--gray-line); }
.spec-table tr:last-child { border-bottom: none; }
.spec-table th, .spec-table td { text-align: left; padding: 15px 22px; font-size: 14px; }
.spec-table th {
  width: 220px;
  color: var(--ink);
  font-weight: 600;
  background: var(--paper-dim);
}
.spec-table td { font-family: var(--font-mono); color: var(--gray); font-size: 13.5px; }
.spec-footnote { margin-top: 20px; font-size: 12px; color: var(--gray); opacity: 0.8; }

/* ==========================================================================
   CTA / contato
   ========================================================================== */
.cta-section { padding-bottom: 108px; }
.cta-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius-lg);
  padding: 8px 30px 30px;
}
.contact-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-dark);
  transition: opacity 0.2s var(--ease);
}
.contact-row:hover { opacity: 0.75; }
.contact-label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.contact-value { color: #fff; font-weight: 500; font-size: 15px; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { background: var(--ink); padding-top: 64px; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 44px;
  border-bottom: 1px solid var(--line-dark);
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: #fff; }
.footer-brand .brand-mark { height: 48px; width: auto; }
.footer-brand p { color: var(--ink-faint); font-size: 13.5px; margin-top: 4px; }
.footer-badges { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.badge {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 6px 12px;
}
.footer-nav { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-nav a { color: var(--ink-soft); font-size: 14px; }
.footer-nav a:hover { color: #fff; }
.footer-bottom { padding: 26px 0 34px; display: flex; flex-direction: column; gap: 8px; }
.footer-bottom p { color: var(--ink-faint); font-size: 12.5px; max-width: 46em; }

/* ==========================================================================
   Reveal-on-scroll
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 460px; margin: 0 auto; }
  .lineup { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .split-panel { grid-template-columns: 1fr; }
  .legacy-grid { grid-template-columns: 1fr; }
  .cta-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .main-nav {
    position: absolute;
    top: 98px; left: 0; right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 28px 20px;
    border-bottom: 1px solid var(--line-dark);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  }
  .main-nav.is-open { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .main-nav a { padding: 12px 0; width: 100%; }
  .nav-cta { margin-top: 8px; text-align: center; }
  .nav-toggle { display: flex; }
  .hero-stats { grid-template-columns: 1fr; gap: 20px; }
  .lineup { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; gap: 34px; }
  .section { padding: 68px 0; }
  .hero { padding: 56px 0 64px; }
}
