:root {
  --sos-navy: #08265A;
  --sos-deep-blue: #0B3F91;
  --sos-blue: #1167D8;
  --sos-cyan: #1BA6D9;
  --sos-teal: #18B7B5;
  --sos-teal-light: #47D6CC;

  --sos-bg-light: #F6F9FC;
  --sos-surface-light: #FFFFFF;
  --sos-border-light: #D8E3F0;
  --sos-text-light: #0D1B2A;
  --sos-muted-light: #5B6B7C;

  --sos-bg-dark: #06111F;
  --sos-surface-dark: #0B1B2E;
  --sos-surface-dark-2: #102A44;
  --sos-border-dark: #1B3C5D;
  --sos-text-dark: #F4F8FB;
  --sos-muted-dark: #A7B8C9;

  --sos-gradient-primary: linear-gradient(135deg, #08265A 0%, #1167D8 50%, #18B7B5 100%);
  --sos-gradient-soft: linear-gradient(135deg, rgba(17, 103, 216, 0.12), rgba(24, 183, 181, 0.12));

  --bg-primary: var(--sos-bg-dark);
  --bg-secondary: var(--sos-surface-dark);
  --bg-tertiary: var(--sos-surface-dark-2);
  --surface: rgba(11, 27, 46, 0.78);
  --surface-hover: rgba(16, 42, 68, 0.92);
  --surface-light: rgba(21, 58, 92, 0.92);

  --text-primary: var(--sos-text-dark);
  --text-secondary: rgba(244, 248, 251, 0.78);
  --text-muted: rgba(167, 184, 201, 0.72);

  --brand: var(--sos-blue);
  --brand-hover: var(--sos-cyan);
  --brand-dark: var(--sos-navy);
  --brand-glow: rgba(27, 166, 217, 0.35);

  --accent-1: var(--sos-teal-light);
  --accent-2: var(--sos-cyan);
  --accent-3: var(--sos-teal);

  --border: rgba(216, 227, 240, 0.12);
  --border-hover: rgba(216, 227, 240, 0.22);

  --glass: blur(12px) saturate(180%);
  --glass-strong: blur(20px) saturate(200%);

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.3);
  --shadow-glow: 0 0 20px var(--brand-glow);

  --transition: all 400ms cubic-bezier(0.23, 1, 0.32, 1);
  --curve: cubic-bezier(0.23, 1, 0.32, 1);
}

/* Reset & Base Styles */
* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--text-primary);
  background:
    radial-gradient(circle at top left, rgba(17, 103, 216, 0.18), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(24, 183, 181, 0.12), transparent 22%),
    linear-gradient(180deg, #07111e 0%, var(--bg-primary) 100%);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Matrix Typography Override */
body.theme-matrix {
  font-family: 'JetBrains Mono', 'Roboto Mono', monospace;
  letter-spacing: -0.02em;
}

body.theme-matrix h1,
body.theme-matrix h2,
body.theme-matrix h3,
body.theme-matrix .brand {
  font-family: 'JetBrains Mono', monospace;
  text-transform: uppercase;
}

/* Background Grid */
.background-grid {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    linear-gradient(rgba(27, 166, 217, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 166, 217, 0.06) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: -10;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  filter: blur(120px);
  opacity: 0.3;
  will-change: transform;
}

.bg-shape-1 {
  width: 500px;
  height: 500px;
  background: rgba(17, 103, 216, 0.22);
  top: -100px;
  right: -150px;
  animation: float 6s ease-in-out infinite;
}

.bg-shape-2 {
  width: 400px;
  height: 400px;
  background: rgba(24, 183, 181, 0.18);
  bottom: -100px;
  left: -100px;
  animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {

  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  33% {
    transform: translate(30px, -50px) scale(1.1);
  }

  66% {
    transform: translate(-20px, 20px) scale(0.9);
  }
}

/* Matrix Background Canvas */
.matrix-bg {
  position: fixed;
  top: 0;
  left: 0;
  z-index: -10;
  opacity: 0.2;
  pointer-events: none;
  display: none;
}

body.theme-matrix .matrix-bg {
  display: block;
}

/* Scanlines overlay */
body.theme-matrix::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  z-index: 999;
  background-size: 100% 2px, 3px 100%;
  pointer-events: none;
}

.mesh-gradient {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(17, 103, 216, 0.1) 0%, transparent 38%),
    radial-gradient(circle at 80% 70%, rgba(24, 183, 181, 0.08) 0%, transparent 32%),
    radial-gradient(circle at 50% 50%, rgba(71, 214, 204, 0.04) 0%, transparent 52%);
  pointer-events: none;
  z-index: -5;
}

/* Navigation */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: var(--glass);
  -webkit-backdrop-filter: var(--glass);
  background: rgba(6, 17, 31, 0.78);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
  transition: var(--transition);
}

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

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  text-decoration: none;
  color: var(--text-primary);
  transition: var(--transition);
}

.brand:hover {
  transform: translateY(-2px);
}

.brand-logo {
  height: 46px;
  width: auto;
  display: block;
}

.brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--sos-gradient-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: "Montserrat", "Source Sans 3", sans-serif;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -0.06em;
  box-shadow: 0 12px 24px rgba(11, 63, 145, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.brand-wordmark {
  font-family: "Montserrat", "Source Sans 3", sans-serif;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--sos-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-tagline {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  gap: 2.5rem;
  flex: 1;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  transition: var(--transition);
  position: relative;
  padding-bottom: 0.25rem;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent-1));
  transition: width 300ms ease;
}

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

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

.portal-btn {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--accent-1);
  background: transparent;
  border: 1px solid rgba(71, 214, 204, 0.26);
  border-radius: 10px;
  padding: 0.5rem 1rem;
  transition: var(--transition);
  white-space: nowrap;
}

.portal-btn:hover {
  background: rgba(24, 183, 181, 0.1);
  border-color: var(--brand);
}

.admin-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.78rem;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  transition: var(--transition);
  white-space: nowrap;
  opacity: 0.6;
}

.admin-link:hover {
  opacity: 1;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--text-primary);
}

.contact-btn {
  text-decoration: none;
  font-weight: 700;
  color: #ffffff;
  background: var(--sos-gradient-primary);
  border: 1px solid rgba(71, 214, 204, 0.4);
  border-radius: 12px;
  padding: 0.6rem 1.4rem;
  transition: var(--transition);
  white-space: nowrap;
  backdrop-filter: var(--glass);
}

.contact-btn:hover {
  color: #ffffff;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(17, 103, 216, 0.26);
}

/* Hamburger button – visível apenas em mobile */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1.5px solid var(--brand);
  border-radius: 8px;
  cursor: pointer;
  padding: 8px 7px;
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: auto;
}

.nav-hamburger span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--brand);
  border-radius: 2px;
  transition: transform 300ms ease, opacity 300ms ease;
  transform-origin: center;
}

.nav-hamburger:hover {
  background: rgba(0, 212, 255, 0.1);
}

/* Animação X quando aberto */
.nav-hamburger[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Wrapper do menu colapsável */
.nav-menu {
  display: contents;
}

/* Theme Selector */
.theme-selector {
  position: relative;
  display: none;
}

body.development-mode .theme-selector {
  display: inline-flex;
  align-items: center;
}

.mode-toggle {
  background: rgba(0, 212, 255, 0.1);
  border: 1.5px solid var(--brand);
  color: var(--brand);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mode-toggle:hover {
  background: var(--brand);
  color: var(--bg-primary);
  transform: scale(1.05);
}

.theme-toggle {
  background: rgba(0, 212, 255, 0.1);
  border: 1.5px solid var(--brand);
  color: var(--brand);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle:hover {
  background: var(--brand);
  color: var(--bg-primary);
}

.theme-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.5rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 1000;
  min-width: 140px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.theme-dropdown.active {
  display: flex;
}

.theme-option {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 0.6rem 1rem;
  text-align: left;
  cursor: pointer;
  border-radius: 8px;
  transition: var(--transition);
  font-weight: 600;
  font-size: 0.9rem;
}

.theme-option:hover {
  background: rgba(0, 212, 255, 0.1);
  color: var(--brand);
}

.theme-option.active {
  background: rgba(0, 212, 255, 0.2);
  color: var(--brand);
  font-weight: 700;
}

@media (max-width: 820px) {
  .nav-hamburger {
    display: flex;
  }

  .navbar-container {
    flex-wrap: wrap;
    gap: 0;
    padding: 0.5rem 0;
    position: relative;
  }

  .brand {
    flex: 1;
  }

  /* Menu colapsável */
  .nav-menu {
    display: none;
    width: 100%;
    flex-direction: column;
    gap: 0;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 1rem 0 0.5rem;
    margin-top: 0.5rem;
  }

  .nav-menu.nav-open {
    display: flex;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    padding: 0 0.5rem;
  }

  .nav-links a {
    padding: 0.75rem 0.5rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-links a::after {
    display: none;
  }

  .nav-actions {
    flex-wrap: wrap;
    gap: 0.6rem;
    padding: 0.75rem 0.5rem 0.25rem;
  }

  .portal-btn,
  .contact-btn {
    flex: 1;
    text-align: center;
    justify-content: center;
  }
}

/* Hero Section */
.hero {
  padding: 6rem 0 4rem;
  background: linear-gradient(180deg, rgba(17, 103, 216, 0.08) 0%, transparent 100%);
  position: relative;
}

.hero-content {
  max-width: 1180px;
  animation: slideUp 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 2.5rem;
  align-items: start;
}

.hero-copy {
  max-width: 760px;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(17, 103, 216, 0.12);
  border: 1px solid var(--border);
  backdrop-filter: var(--glass);
  border-radius: 999px;
  padding: 0.5rem 1.25rem;
  color: var(--accent-1);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
  animation: slideUp 1000ms var(--curve) 100ms both;
}

.hero-badge svg {
  width: 16px;
  height: 16px;
  color: var(--brand);
}

h1 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.1;
  text-wrap: balance;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 1.5rem;
  animation: slideUp 800ms cubic-bezier(0.4, 0, 0.2, 1) 200ms both;
}

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

.hero h1 .gradient-text {
  background: linear-gradient(90deg, #2f7ff0 0%, #36a9ea 48%, #47d6cc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 10px 30px rgba(17, 103, 216, 0.22);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 2rem;
  max-width: 700px;
  animation: slideUp 800ms cubic-bezier(0.4, 0, 0.2, 1) 300ms both;
}

.hero-pillars {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.hero-pillars span {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(216, 227, 240, 0.1);
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 600;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  margin: 2.5rem 0;
  animation: slideUp 800ms cubic-bezier(0.4, 0, 0.2, 1) 400ms both;
  flex-wrap: wrap;
}

.primary-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  background: var(--sos-gradient-primary);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  padding: 1rem 1.8rem;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 14px 36px rgba(17, 103, 216, 0.26);
  position: relative;
  overflow: hidden;
}

.primary-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(130deg, var(--sos-deep-blue), var(--sos-teal));
  transition: left 300ms ease;
  z-index: -1;
}

.primary-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(17, 103, 216, 0.32);
}

.primary-btn:hover::before {
  left: 0;
}

.secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 2rem;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: var(--glass);
}

.secondary-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--brand);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.primary-btn svg,
.secondary-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2;
  flex-shrink: 0;
  transition: var(--transition);
}

.primary-btn:hover svg,
.secondary-btn:hover svg {
  transform: translateX(2px);
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
  animation: slideUp 800ms cubic-bezier(0.4, 0, 0.2, 1) 500ms both;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 800;
  background: var(--sos-gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-family: "Barlow Condensed", sans-serif;
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-panel {
  position: relative;
  padding: 1.6rem;
  border-radius: 28px;
  border: 1px solid rgba(216, 227, 240, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    linear-gradient(160deg, rgba(11, 39, 91, 0.94), rgba(11, 27, 46, 0.96));
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(71, 214, 204, 0.05);
  overflow: hidden;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(71, 214, 204, 0.18), transparent 34%);
  pointer-events: none;
}

.hero-panel-intro {
  position: relative;
  margin-bottom: 1.5rem;
}

.hero-panel-kicker {
  display: inline-flex;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-1);
}

.hero-panel h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  line-height: 1.15;
}

.hero-panel p {
  margin: 0;
  color: var(--text-secondary);
}

.hero-panel-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.hero-panel-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 1rem;
  min-height: 126px;
  border-radius: 18px;
  border: 1px solid rgba(216, 227, 240, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.hero-panel-card strong {
  color: var(--text-primary);
  font-size: 0.98rem;
}

.hero-panel-card span {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
}

/* Diferenciais Section */
.diferenciais-section {
  padding: 6rem 0;
  position: relative;
}

.diferenciais-section h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.diferenciais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.diferencial-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02));
  backdrop-filter: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  animation: slideUp 1000ms var(--curve) both;
}

.diferencial-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: var(--brand);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03));
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.diferencial-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0;
  transition: opacity 300ms ease;
}

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

.icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  color: var(--accent-1);
  transition: var(--transition);
}

.diferencial-card:hover .icon {
  transform: scale(1.1);
  color: var(--brand-hover);
  text-shadow: 0 0 16px rgba(17, 103, 216, 0.3);
}

.diferencial-card h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.8rem;
  color: var(--brand);
}

.diferencial-card p {
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

/* Systems Section */
.systems-section {
  padding: 6rem 0;
  position: relative;
}

.container h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin: 0.5rem 0 0;
}

.search-wrapper {
  display: flex;
  gap: 1rem;
  align-items: flex-end;
}

.search {
  position: relative;
  flex: 1;
  min-width: 250px;
}

.search input {
  width: 100%;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text-primary);
  font-size: 1rem;
  outline: none;
  transition: var(--transition);
}

.search input::placeholder {
  color: var(--text-muted);
}

.search input:focus {
  border-color: var(--brand);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-glow);
}

.search-icon {
  position: absolute;
  right: 1.2rem;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  opacity: 0.5;
}

.counter {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: var(--glass);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.5rem;
  color: var(--brand);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.systems-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 2rem;
}

.systems-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-secondary);
  text-align: center;
}

.system-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.025));
  backdrop-filter: var(--glass);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  animation: slideUp 1000ms var(--curve) both;
  display: flex;
  flex-direction: column;
}

.system-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  opacity: 0;
  transition: opacity 300ms ease;
}

.system-card:hover {
  transform: translateY(-8px);
  border-color: var(--brand);
  box-shadow: 0 24px 54px rgba(11, 63, 145, 0.24);
}

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

.card-logo-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface-light);
  border: 1px solid var(--border);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.card-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  display: block;
}

.card-logo-wrap--brandmark {
  width: min(180px, 100%);
  height: 64px;
  margin-bottom: 1.25rem;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.card-logo-wrap--brandmark .card-logo {
  width: 100%;
  height: 64px;
  object-position: left center;
}

.card-logo-wrap--brandmark .card-logo--dual {
  position: absolute;
  inset: 0;
}

.card-logo--light {
  display: none;
}

body.mode-light .card-logo--dark {
  display: none;
}

body.mode-light .card-logo--light {
  display: block;
}

.card-logo--theme {
  filter: brightness(0) invert(1);
}

body.mode-light .card-logo--theme {
  filter: brightness(0) saturate(100%) invert(21%) sepia(95%) saturate(1810%) hue-rotate(202deg) brightness(91%) contrast(97%);
}

.card-logo-band {
  margin: -2.5rem -2.5rem 1.5rem;
  min-height: 96px;
  padding: 1.35rem 2rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.card-logo-band .card-logo-wrap {
  margin-bottom: 0;
}

.card-logo-band--soft {
  background:
    radial-gradient(circle at 12% 10%, var(--brand-glow), transparent 34%),
    linear-gradient(135deg, rgba(5, 17, 38, 0.94), rgba(13, 42, 70, 0.82));
}

body.mode-light .card-logo-band--soft {
  background:
    radial-gradient(circle at 12% 10%, var(--brand-glow), transparent 34%),
    linear-gradient(135deg, var(--bg-secondary), var(--surface-light));
}

.card-logo-band--light {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 246, 255, 0.92));
}

.card-logo-band--dark {
  background:
    linear-gradient(135deg, rgba(8, 20, 34, 0.96), rgba(13, 42, 70, 0.92));
}

.card-logo-band--theme {
  background:
    linear-gradient(135deg, var(--brand-dark), var(--brand));
}

body.mode-light .card-logo-band--theme {
  background:
    linear-gradient(135deg, var(--bg-secondary), var(--surface-light));
}

body.mode-light .card-logo-band--theme .card-logo {
  filter: brightness(0) saturate(100%) invert(18%) sepia(78%) saturate(2182%) hue-rotate(204deg) brightness(86%) contrast(96%);
}

.card-logo-wrap--panel {
  width: min(190px, 100%);
  height: 64px;
  margin-bottom: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.card-logo-wrap--panel .card-logo {
  width: 100%;
  height: 64px;
  object-position: left center;
}

.card-logo-letter {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand);
  background: var(--surface-light);
  font-family: 'Montserrat', sans-serif;
}

.card-logo-wrap.no-logo .card-logo {
  display: none;
}

.card-logo-wrap.no-logo .card-logo-letter {
  display: flex;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1rem;
}

.card-badges {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.status {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  background: linear-gradient(130deg, var(--accent-1), var(--brand));
  color: var(--bg-primary);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: pulse 2s ease-in-out infinite;
}

.status.alt {
  background: linear-gradient(130deg, var(--accent-2), var(--accent-3));
}

.price-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.8rem;
  background: linear-gradient(130deg, var(--accent-2), var(--accent-1));
  color: var(--bg-primary);
  border-radius: 999px;
  box-shadow: var(--shadow-glow);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.7;
  }
}

.category-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  background: rgba(0, 212, 255, 0.1);
  border: 1px solid rgba(0, 212, 255, 0.3);
  border-radius: 999px;
  color: var(--brand);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.system-card h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  background: linear-gradient(130deg, var(--text-primary), var(--brand));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.card-meta {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.card-summary {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.card-highlights {
  background: rgba(0, 212, 255, 0.05);
  border: 1px solid rgba(0, 212, 255, 0.2);
  border-radius: 10px;
  padding: 1rem;
  margin-bottom: 1.5rem;
}

.card-highlights-title {
  font-weight: 700;
  color: var(--brand);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.card-highlights summary {
  cursor: pointer;
}

.card-highlights-title::marker {
  color: var(--accent-1);
}

.card-highlights-hint {
  display: none;
  margin-left: auto;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.card-highlights ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.card-highlights li {
  color: var(--text-secondary);
  font-size: 0.9rem;
  padding: 0.3rem 0;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.card-highlights li::before {
  content: "✓";
  color: var(--accent-1);
  font-weight: 800;
}

.card-highlights-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-style: italic;
}

.card-actions {
  display: flex;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.visit-btn {
  flex: 1;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  text-align: center;
  background: linear-gradient(130deg, var(--brand), var(--accent-1));
  color: var(--bg-primary);
  border: none;
  border-radius: 10px;
  padding: 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.visit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 212, 255, 0.3);
}

.domain-link {
  flex: 1;
  text-decoration: none;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.8rem;
  text-align: center;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.domain-link:hover {
  border-color: var(--brand);
  background: rgba(0, 212, 255, 0.1);
  color: var(--brand-hover);
}

/* Technology Section */
.technology-section {
  padding: 6rem 0;
  position: relative;
}

.technology-section h2 {
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  text-align: center;
  margin-bottom: 3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
}

.tech-item {
  background: linear-gradient(135deg, rgba(11, 27, 46, 0.92) 0%, rgba(16, 42, 68, 0.92) 100%);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  transition: var(--transition);
}

.tech-item:hover {
  border-color: var(--brand);
  box-shadow: 0 16px 40px rgba(11, 63, 145, 0.24);
  transform: translateY(-5px);
}

.tech-icon {
  width: 60px;
  height: 60px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  margin-bottom: 1rem;
  transition: var(--transition);
}

.tech-item:hover .tech-icon {
  transform: scale(1.1);
  color: var(--accent-1);
}

.tech-item h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0 0 0.8rem;
  color: var(--brand);
}

.tech-item p {
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.6;
}

/* Footer */
.footer {
  background: linear-gradient(180deg, transparent 0%, rgba(17, 103, 216, 0.08) 100%);
  border-top: 1px solid var(--border);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-section h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 1rem;
}

.footer-section p {
  color: var(--text-secondary);
  margin: 0.5rem 0;
  line-height: 1.6;
}

.footer-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-section ul li {
  margin: 0.5rem 0;
}

.footer-section a {
  color: var(--brand);
  text-decoration: none;
  transition: var(--transition);
}

.footer-section a:hover {
  color: var(--accent-1);
  text-decoration: underline;
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero {
    padding: 4rem 0 2rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-panel-grid {
    grid-template-columns: 1fr;
  }

  .section-header {
    flex-direction: column;
    align-items: stretch;
  }

  .search-wrapper {
    flex-direction: column;
  }

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

  .brand-tagline {
    display: none;
  }

  .primary-btn,
  .secondary-btn {
    width: 100%;
  }

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

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

  .hero-stats {
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
  }
}

/* Loading & Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.system-card {
  animation: slideUp 800ms cubic-bezier(0.4, 0, 0.2, 1) both;
}

.system-card:nth-child(1) {
  animation-delay: 0ms;
}

.system-card:nth-child(2) {
  animation-delay: 100ms;
}

.system-card:nth-child(3) {
  animation-delay: 200ms;
}

.system-card:nth-child(4) {
  animation-delay: 300ms;
}

.system-card:nth-child(5) {
  animation-delay: 400ms;
}

.system-card:nth-child(6) {
  animation-delay: 500ms;
}

.system-card:nth-child(7) {
  animation-delay: 600ms;
}

/* Contact Modal */
.contact-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 300ms ease;
}

.contact-modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.contact-modal {
  position: relative;
  background: var(--bg-secondary);
  border: 1px solid var(--border-hover);
  border-radius: 20px;
  padding: 2.5rem;
  width: 90%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), 0 0 40px rgba(17, 103, 216, 0.12);
  transform: translateY(20px) scale(0.97);
  transition: transform 300ms var(--curve);
}

.contact-modal-overlay.active .contact-modal {
  transform: translateY(0) scale(1);
}

.contact-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
  transition: var(--transition);
}

.contact-modal-close:hover {
  color: var(--brand);
  background: rgba(255, 255, 255, 0.05);
}

.contact-modal-title {
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--brand);
  margin: 0 0 0.3rem;
}

.contact-modal-subtitle {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0 0 1.5rem;
}

.contact-modal .form-group {
  margin-bottom: 1.2rem;
}

.contact-modal .form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.contact-modal .form-group input,
.contact-modal .form-group textarea {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
  outline: none;
}

.contact-modal .form-group input:focus,
.contact-modal .form-group textarea:focus {
  border-color: var(--brand);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(17, 103, 216, 0.12);
}

.contact-modal .form-group input::placeholder,
.contact-modal .form-group textarea::placeholder {
  color: var(--text-muted);
}

.contact-modal .form-group textarea {
  resize: vertical;
  min-height: 100px;
}

.captcha-group {
  background: rgba(17, 103, 216, 0.08);
  border: 1px solid rgba(17, 103, 216, 0.16);
  border-radius: 12px;
  padding: 1rem;
}

.captcha-group label {
  color: var(--brand) !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
}

.captcha-group input {
  max-width: 140px;
}

.contact-submit-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: var(--bg-primary);
  border: none;
  border-radius: 12px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 0.5rem;
}

.contact-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px var(--brand-glow);
}

.contact-feedback {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.95rem;
  text-align: center;
  animation: fadeInFeedback 0.3s ease;
}

.contact-feedback.success {
  background: rgba(0, 200, 100, 0.15);
  border: 1px solid rgba(0, 200, 100, 0.4);
  color: #00e676;
}

.contact-feedback.error {
  background: rgba(255, 80, 80, 0.15);
  border: 1px solid rgba(255, 80, 80, 0.4);
  color: #ff5252;
}

@keyframes fadeInFeedback {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 600px) {
  .contact-modal {
    padding: 1.5rem;
    border-radius: 16px;
    width: 95%;
  }
  .contact-modal-title {
    font-size: 1.4rem;
  }
}

/* Identidade 2026 — hero inspirado na direção visual aprovada */
.hero {
  min-height: min(760px, calc(100vh - 72px));
  padding: clamp(4.5rem, 7vw, 6.5rem) 0 3.5rem;
  background:
    radial-gradient(circle at 76% 46%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 33%),
    linear-gradient(180deg, color-mix(in srgb, var(--brand-dark) 18%, transparent) 0%, transparent 100%);
  isolation: isolate;
  overflow: hidden;
}

.hero > .container {
  width: min(1480px, 92vw);
}

.hero-layout {
  grid-template-columns: minmax(0, 1.16fr) minmax(370px, 0.84fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: center;
}

.hero-badge {
  position: relative;
  padding: 0 0 1rem;
  margin-bottom: 1.6rem;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
}

.hero-badge::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--accent-1));
}

.hero h1 {
  max-width: 850px;
  font-size: clamp(3rem, 4.75vw, 4.75rem);
  line-height: 1.04;
}

.hero-subtitle {
  max-width: 650px;
}

.hero-pillars {
  margin-bottom: 0.5rem;
}

.hero-stats {
  gap: 0;
  margin-top: 3.2rem;
}

.stat {
  text-align: left;
  padding: 0 1.4rem;
  border-left: 1px solid var(--border);
}

.stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-visual {
  position: relative;
  min-height: 520px;
  margin-right: -7vw;
  opacity: 0.96;
  pointer-events: none;
}

.hero-visual img {
  position: absolute;
  width: min(760px, 64vw);
  max-width: none;
  height: auto;
  left: -8%;
  bottom: -8%;
  filter: drop-shadow(0 28px 42px color-mix(in srgb, var(--brand) 20%, transparent));
}

.hero-visual-orbit {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--accent-1) 28%, transparent);
  border-radius: 50%;
}

.hero-visual-orbit--one {
  width: 360px;
  aspect-ratio: 1;
  right: 8%;
  top: 5%;
}

.hero-visual-orbit--two {
  width: 210px;
  aspect-ratio: 1;
  right: 22%;
  top: 20%;
  border-color: color-mix(in srgb, var(--brand) 32%, transparent);
}

:where(a, button, input, textarea):focus-visible {
  outline: 3px solid var(--accent-1);
  outline-offset: 3px;
}

@media (max-width: 980px) {
  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  }

  .hero-visual {
    min-height: 440px;
  }

  .hero-visual img {
    left: -18%;
  }
}

@media (max-width: 768px) {
  .brand-logo {
    height: 40px;
  }

  .hero {
    min-height: auto;
    padding-top: 4.5rem;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 310px;
    margin: -2rem -6vw -2rem 5vw;
    order: 2;
  }

  .hero-visual img {
    width: 720px;
    left: 0;
    bottom: -22%;
  }

  .hero-visual-orbit--one {
    width: 250px;
  }

  .hero-visual-orbit--two {
    width: 140px;
  }
}

@media (max-width: 520px) {
  .brand-logo {
    height: 36px;
  }

  .hero {
    padding-top: 3.5rem;
  }

  .hero-badge {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
  }

  .hero h1 {
    font-size: clamp(2.65rem, 13vw, 3.5rem);
  }

  .hero-pillars {
    gap: 0.5rem;
  }

  .hero-buttons > a {
    width: 100%;
    justify-content: center;
  }

  .hero-stats {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .stat,
  .stat:first-child {
    padding: 0 0 0 1rem;
    border-left: 1px solid var(--border);
  }

  .stat-number {
    font-size: 2rem;
  }

  .hero-visual {
    min-height: 245px;
    margin-top: -1rem;
  }
}

@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;
  }
}

/* Mobile-first refinement for the full homepage */
@media (max-width: 768px) {
  .navbar {
    padding: 0.35rem 0;
  }

  .navbar-container {
    width: min(100% - 1rem, 1200px);
  }

  .brand,
  .nav-hamburger,
  .mode-toggle,
  .theme-toggle {
    min-height: 44px;
  }

  .nav-hamburger,
  .mode-toggle,
  .theme-toggle {
    width: 44px;
    height: 44px;
  }

  .nav-menu {
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-links a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }

  .nav-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .theme-selector {
    min-height: 44px;
  }

  .portal-btn,
  .admin-link,
  .contact-btn {
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero {
    padding: 3.5rem 0 2.5rem;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 13vw, 3.65rem);
  }

  .hero-pillars span {
    padding: 0.5rem 0.75rem;
    font-size: 0.82rem;
  }

  .hero-buttons {
    margin: 2rem 0;
  }

  .hero-buttons > a {
    min-height: 52px;
  }

  .hero-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    margin-top: 2rem;
  }

  .stat,
  .stat:first-child {
    padding: 0 0.6rem;
    border-left: 1px solid var(--border);
    text-align: center;
  }

  .stat:first-child {
    padding-left: 0;
    border-left: 0;
  }

  .stat-number {
    font-size: 2rem;
  }

  .stat-label {
    font-size: 0.68rem;
    line-height: 1.35;
    letter-spacing: 0.035em;
  }

  .hero-visual {
    min-height: 210px;
    margin: -1rem -6vw -2rem 4vw;
  }

  .hero-visual img {
    width: 630px;
    bottom: -30%;
  }

  .diferenciais-section,
  .systems-section,
  .technology-section {
    padding: 4rem 0;
  }

  .diferenciais-section h2,
  .technology-section h2 {
    margin-bottom: 2rem;
  }

  .diferenciais-grid,
  .systems-grid,
  .tech-grid {
    gap: 1rem;
  }

  .diferencial-card,
  .tech-item {
    padding: 1.5rem;
  }

  .diferencial-card:hover,
  .system-card:hover,
  .tech-item:hover {
    transform: none;
  }

  .section-header {
    gap: 1.5rem;
    margin-bottom: 2rem;
  }

  .search-wrapper,
  .search {
    width: 100%;
    min-width: 0;
    align-items: stretch;
  }

  .search input {
    min-height: 52px;
    padding: 0.85rem 3rem 0.85rem 1rem;
  }

  .counter {
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 0.8rem 1rem;
    text-align: center;
  }

  .system-card {
    padding: 1.5rem;
    border-radius: 16px;
  }

  .card-logo-band {
    min-height: 84px;
    margin: -1.5rem -1.5rem 1.25rem;
    padding: 1rem 1.5rem;
  }

  .card-logo-wrap--panel,
  .card-logo-wrap--panel .card-logo,
  .card-logo-wrap--brandmark,
  .card-logo-wrap--brandmark .card-logo {
    height: 54px;
  }

  .card-header {
    margin-bottom: 0.75rem;
  }

  .system-card h3 {
    font-size: 1.45rem;
  }

  .card-meta {
    margin-bottom: 0.75rem;
  }

  .card-summary {
    display: -webkit-box;
    margin-bottom: 1rem;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .card-highlights {
    padding: 0;
    margin-bottom: 1rem;
  }

  .card-highlights-title {
    min-height: 48px;
    margin: 0;
    padding: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  .card-highlights-hint {
    display: inline;
  }

  .card-highlights[open] .card-highlights-title {
    border-bottom: 1px solid var(--border);
  }

  .card-highlights ul {
    padding: 0.65rem 0.85rem 0.85rem;
  }

  .card-highlights li {
    align-items: flex-start;
  }

  .card-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    padding-top: 1rem;
  }

  .card-actions .primary-btn,
  .domain-link {
    width: 100%;
    min-height: 48px;
  }

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

  .footer {
    margin-top: 2rem;
    padding: 3rem 0 1.5rem;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .footer-section ul li {
    margin: 0;
  }

  .footer-section a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .contact-modal {
    width: calc(100% - 1rem);
    max-height: calc(100dvh - 1rem);
    padding: 1.5rem 1rem;
  }

  .contact-modal-close {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .contact-modal .form-group input,
  .contact-modal .form-group textarea,
  .contact-submit-btn {
    min-height: 48px;
  }
}

@media (max-width: 380px) {
  .hero h1 {
    font-size: 2.75rem;
  }

  .hero-badge {
    font-size: 0.66rem;
  }

  .nav-actions {
    grid-template-columns: 1fr;
  }
}
