/* ============================================================
   LOGICALTEC — style.css
   Design: Dark Tech | Brand: #db6804 | Font: Inter
   ============================================================ */

:root {
  --brand:        #db6804;
  --brand-light:  #f07920;
  --brand-dark:   #b55400;
  --dark:         #0a0a0a;
  --dark-2:       #111111;
  --dark-3:       #1a1a1a;
  --dark-card:    #161616;
  --light:        #f8f8f8;
  --light-2:      #f0f0f0;
  --white:        #ffffff;
  --gray:         #6b7280;
  --gray-lt:      #d1d5db;
  --text-dark:    #1a1a1a;
  --text-muted:   #6b7280;
  --glass-bg:     rgba(255,255,255,0.04);
  --glass-border: rgba(255,255,255,0.08);
  --radius-sm:    8px;
  --radius:       14px;
  --radius-lg:    20px;
  --radius-xl:    28px;
  --shadow:       0 4px 24px rgba(0,0,0,0.3);
  --shadow-brand: 0 4px 24px rgba(219,104,4,0.25);
  --transition:   0.3s cubic-bezier(0.16,1,0.3,1);
  --transition-fast: 0.15s cubic-bezier(0.16,1,0.3,1);
  --ease-out:     cubic-bezier(0.16,1,0.3,1);
  --font:         'Inter', sans-serif;
  --container:    1200px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--dark);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

/* --- Browser surface theming: the cheapest signal of care --- */
::selection {
  background: var(--brand);
  color: #0a0a0a;
}
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--dark-2); }
::-webkit-scrollbar-thumb {
  background: rgba(219,104,4,0.45);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: var(--brand); }
* { scrollbar-width: thin; scrollbar-color: rgba(219,104,4,0.4) var(--dark-2); }

input, textarea { caret-color: var(--brand); }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; transition: var(--transition); }

/* ============================================================ HEADER */
#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
}
#header.scrolled {
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 24px rgba(0,0,0,0.4);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo { height: 46px; width: auto; }
.nav-desktop { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  position: relative;
  color: rgba(255,255,255,0.85);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition);
}
/* Underline grows from center — precision, not direction */
.nav-link:not(.btn-nav)::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0.9rem;
  right: 0.9rem;
  height: 1.5px;
  background: var(--brand);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s var(--ease-out);
}
.nav-link:not(.btn-nav):hover::after,
.nav-link:not(.btn-nav).active::after { transform: scaleX(1); }
.nav-link:hover { color: var(--white); }
.nav-link.active { color: var(--white); }
.nav-link.btn-nav {
  background: var(--brand);
  color: var(--white);
  padding: 0.45rem 1.1rem;
  border-radius: 50px;
}
.nav-link.btn-nav:hover { background: var(--brand-light); }

.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: var(--transition);
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: grid;
  grid-template-rows: 0fr;
  background: rgba(10,10,10,0.98);
  backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-border);
  opacity: 0;
  transition: grid-template-rows 0.38s var(--ease-out), opacity 0.28s var(--ease-out);
}
.mobile-menu > .mobile-menu-inner {
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0 1.5rem;
}
.mobile-menu.open {
  grid-template-rows: 1fr;
  opacity: 1;
}
.mobile-menu.open > .mobile-menu-inner {
  padding: 1rem 1.5rem 1.5rem;
}
.mobile-link {
  color: rgba(255,255,255,0.8);
  font-size: 1rem;
  font-weight: 500;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.mobile-link:hover { color: var(--brand); }

/* ============================================================ BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: 50px;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: var(--white); border-color: var(--brand); }
.btn-primary:hover {
  background: var(--brand-light);
  border-color: var(--brand-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-brand);
}
.btn-primary:active { transform: translateY(0); transition-duration: 0.1s; }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.4); }
.btn-outline:hover {
  border-color: var(--white);
  background: rgba(255,255,255,0.08);
  transform: translateY(-2px);
}
.btn-outline:active { transform: translateY(0); transition-duration: 0.1s; }
.btn-dark { background: var(--dark); color: var(--white); border-color: var(--dark); }
.btn-dark:hover { background: var(--dark-3); transform: translateY(-2px); }
.btn-dark:active { transform: translateY(0); transition-duration: 0.1s; }
.btn-outline-dark { background: transparent; color: var(--text-dark); border-color: var(--brand); }
.btn-outline-dark:hover { background: var(--brand); color: var(--white); transform: translateY(-2px); }
.btn-outline-dark:active { transform: translateY(0); transition-duration: 0.1s; }
.btn-full { width: 100%; justify-content: center; border-radius: var(--radius); }

/* ============================================================ SECTIONS */
.section { padding: 6rem 0; }
.section-dark { background: var(--dark); }
.section-light { background: var(--light); }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(219,104,4,0.12);
  border: 1px solid rgba(219,104,4,0.3);
  border-radius: 50px;
  padding: 0.35rem 1rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}
.label-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 2s infinite;
}
/* Refined pulse: breathes with opacity only — less distracting, still alive */
@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(219,104,4,0.6); }
  60%       { opacity: 0.7; box-shadow: 0 0 0 5px rgba(219,104,4,0); }
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  color: var(--white);
}
.section-title.dark { color: var(--text-dark); }
.section-sub {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.65);
  max-width: 680px;
  margin-bottom: 3rem;
  line-height: 1.75;
}
.section-sub.dark { color: var(--text-muted); }
.text-brand { color: var(--brand); }

/* ============================================================ HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--dark-2);
  padding-top: 70px;
}

/* Perspective grid — cockpit floor receding to horizon */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.028) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(18deg) scaleY(1.4);
  transform-origin: 50% 80%;
  pointer-events: none;
  /* fade the top edge so perspective doesn't clip harshly */
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0.8) 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.6) 30%, rgba(0,0,0,0.8) 100%);
}

/* Scanline — single crisp sweep, runs once on load then idles */
.hero-scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.hero-scanline::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(219,104,4,0.06) 20%,
    rgba(219,104,4,0.18) 50%,
    rgba(219,104,4,0.06) 80%,
    transparent 100%);
  animation: scanline-sweep 3s cubic-bezier(0.4,0,0.2,1) 0.3s 1 forwards;
  top: -2px;
}
@keyframes scanline-sweep {
  0%   { top: -2px; opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: calc(100% + 2px); opacity: 0; }
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}
.hero-glow-1 {
  width: 600px; height: 600px;
  top: -200px; right: -100px;
  background: radial-gradient(circle, rgba(219,104,4,0.18) 0%, transparent 70%);
}
.hero-glow-2 {
  width: 400px; height: 400px;
  bottom: -100px; left: -100px;
  background: radial-gradient(circle, rgba(219,104,4,0.1) 0%, transparent 70%);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding: 2.5rem 1.5rem 3rem;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(219,104,4,0.15);
  border: 1px solid rgba(219,104,4,0.35);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 1.5rem;
  letter-spacing: 0.04em;
  opacity: 0;
  animation: hero-fade-up 0.5s var(--ease-out) 0.1s forwards;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 2s infinite;
}

/* Boot-sequence title words */
.hero-title {
  font-size: clamp(2.4rem, 5.5vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.boot-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
  /* Each word transitions via JS-driven WAAPI; CSS is the static default */
}
.boot-word.boot-brand {
  color: var(--brand);
}
/* After JS fires .booted on each word: */
.boot-word.booted {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.38s var(--ease-out), transform 0.38s var(--ease-out);
}

.hero-sub {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 2.25rem;
  line-height: 1.75;
  opacity: 0;
  animation: hero-fade-up 0.5s var(--ease-out) 1.1s forwards;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
  opacity: 0;
  animation: hero-fade-up 0.5s var(--ease-out) 1.35s forwards;
}

@keyframes hero-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---- Instrument Gauges ---- */
.hero-instruments {
  display: flex;
  align-items: flex-end;
  gap: 1.5rem;
  flex-wrap: wrap;
  opacity: 0;
  animation: hero-fade-up 0.5s var(--ease-out) 1.6s forwards;
}

.instrument {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  /* LCD panel feel: dark inset, amber border, tabular precision */
  background: rgba(10,8,4,0.75);
  border: 1px solid rgba(219,104,4,0.28);
  border-radius: 10px;
  padding: 0.85rem 1rem 0.6rem;
  min-width: 130px;
  position: relative;
  overflow: hidden;
  backdrop-filter: blur(4px);
}
/* Subtle top-edge highlight — depth without glow */
.instrument::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(219,104,4,0.5), transparent);
}

.gauge-svg {
  width: 110px;
  height: auto;
  overflow: visible;
}

/* SVG track arc — dim reference line */
.gauge-track {
  stroke: rgba(255,255,255,0.08);
}
/* SVG fill arc — animated orange sweep */
.gauge-fill {
  stroke: var(--brand);
  /* dashoffset animated by JS */
  filter: drop-shadow(0 0 3px rgba(219,104,4,0.5));
}
/* Needle */
.gauge-needle {
  stroke: rgba(255,255,255,0.8);
  stroke-width: 2;
  transform-origin: 60px 72px;
  transform: rotate(-90deg); /* start at far-left = 0% */
  transition: transform 0s; /* JS overrides via WAAPI */
}
/* Pivot dot */
.gauge-needle-pivot {
  fill: var(--brand);
}
/* Center readout — tabular, monospaced feel via font features */
.gauge-value {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  fill: var(--white);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.instrument-label {
  font-size: 0.65rem;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.3;
}

/* Final value tag — amber chip below label */
.instrument-tag {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--brand);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  margin-top: 0.15rem;
}

.instrument-divider {
  width: 1px;
  height: 80px;
  background: linear-gradient(to bottom,
    transparent,
    rgba(219,104,4,0.2) 30%,
    rgba(219,104,4,0.2) 70%,
    transparent);
  align-self: center;
  flex-shrink: 0;
}

.scroll-indicator {
  position: absolute;
  bottom: 2rem; left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255,255,255,0.35);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 1;
}
.scroll-arrow {
  animation: scroll-bob 2s infinite;
  font-size: 0.9rem;
}
@keyframes scroll-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* prefers-reduced-motion: kill all motion, show final state */
@media (prefers-reduced-motion: reduce) {
  .hero-scanline::after { animation: none; opacity: 0; }
  .hero-badge, .hero-sub, .hero-actions, .hero-instruments { animation: none; opacity: 1; }
  .boot-word { opacity: 1; transform: none; }
  .boot-word.booted { transition: none; }
  .scroll-arrow { animation: none; }
  .gauge-needle { transition: none; }
}

/* ---- Mobile instrument layout ---- */
@media (max-width: 600px) {
  .hero-instruments {
    gap: 0.75rem;
  }
  .instrument {
    min-width: 100px;
    padding: 0.65rem 0.75rem 0.5rem;
  }
  .gauge-svg { width: 90px; }
  .instrument-divider { height: 60px; }
}

/* ============================================================ CARDS GRID */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
}
.card.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(8px);
}
.card.glass:hover {
  border-color: rgba(219,104,4,0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.3);
}
.card.card-light {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.07);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.card.card-light:hover {
  border-color: var(--brand);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(219,104,4,0.12);
}

.card-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  background: rgba(219,104,4,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: var(--brand);
  margin-bottom: 1.1rem;
  transition: background var(--transition), color var(--transition), transform 0.4s var(--ease-out);
}
/* Icon micro-rotation: snaps into readiness on hover */
.card:hover .card-icon {
  background: var(--brand);
  color: var(--white);
  transform: rotate(8deg) scale(1.08);
}
.card-icon.brand { background: rgba(219,104,4,0.12); color: var(--brand); }
.card-title { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--white); }
.card-title.dark { color: var(--text-dark); }
.card-text { font-size: 0.9rem; color: rgba(255,255,255,0.55); line-height: 1.65; }
.card-text.dark { color: var(--text-muted); }

/* ============================================================ ACCENT STRIP */
.section-accent {
  background: var(--brand);
  padding: 4rem 0;
}
.accent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.accent-title {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
}
.accent-title span { font-weight: 300; opacity: 0.9; }

/* ============================================================ ERP BLOCK */
.erp-hero-block {
  background: var(--light-2);
  border: 1px solid rgba(219,104,4,0.2);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 680px;
}
.erp-badge-block {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--brand);
  font-weight: 700;
  font-size: 0.9rem;
}
.erp-badge-block i { font-size: 1.1rem; }
.erp-desc { color: var(--text-muted); font-size: 0.95rem; line-height: 1.7; }

/* ============================================================ COUNTERS */
.counters-row {
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}
.counter-block {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.counter-value {
  display: flex;
  align-items: flex-start;
  line-height: 1;
  color: var(--brand);
}
.counter-num {
  font-size: clamp(3.5rem, 7vw, 5.5rem);
  font-weight: 100;
  line-height: 1;
}
.counter-plus {
  font-size: 2rem;
  font-weight: 300;
  margin-top: 0.4rem;
  margin-left: 0.1rem;
}
.counter-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0.5rem;
}

/* ============================================================ CLIENTS */
.clients-section { text-align: center; }
.clients-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
}
.clients-placeholder {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1rem;
}
.client-slot {
  width: 160px; height: 70px;
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.15);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  color: rgba(255,255,255,0.2);
  font-size: 0.72rem;
  font-weight: 500;
}
.client-slot i { font-size: 1.2rem; }

/* ============================================================ ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
/* Single-column variant — used when team cards are removed */
.about-grid--solo {
  grid-template-columns: 1fr;
  max-width: 780px;
}
.about-text p {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}
.about-text strong { color: var(--text-dark); }
/* Horizontal row when there's room (solo layout) */
.about-grid--solo .mvv-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.mvv-grid { display: flex; flex-direction: column; gap: 1.25rem; margin-top: 2rem; }
.mvv-item { display: flex; align-items: flex-start; gap: 1rem; }
.mvv-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: rgba(219,104,4,0.12);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand); font-size: 1rem;
}
.mvv-title { font-size: 0.9rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.2rem; }
.mvv-text { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* ============================================================ TEAM */
.team-cards { display: flex; flex-direction: column; gap: 1.5rem; }
.team-card {
  background: var(--white);
  border: 1px solid rgba(0,0,0,0.07);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: var(--transition);
  box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.team-card:hover { border-color: var(--brand); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(219,104,4,0.12); }
.team-photo-placeholder {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: rgba(219,104,4,0.12);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand); font-size: 1.6rem;
  margin-bottom: 1rem;
}
.team-name { font-size: 1.05rem; font-weight: 700; color: var(--text-dark); margin-bottom: 0.2rem; }
.team-role { font-size: 0.85rem; font-weight: 600; color: var(--brand); margin-bottom: 0.2rem; }
.team-detail { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem; }
.team-social { display: flex; gap: 0.6rem; }
.team-social a {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  background: var(--light-2);
  display: flex; align-items: center; justify-content: center;
  color: var(--gray); font-size: 0.85rem;
  transition: var(--transition);
}
.team-social a:hover { background: var(--brand); color: var(--white); }

/* ============================================================ CONTACT */
.contact-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  align-items: start;
}
.contact-form {
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  display: flex; flex-direction: column; gap: 1.1rem;
}
.glass {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.09);
  backdrop-filter: blur(12px);
}
.form-group { display: flex; flex-direction: column; gap: 0.4rem; position: relative; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: rgba(255,255,255,0.65); }
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  color: var(--white);
  font-family: var(--font);
  font-size: 0.92rem;
  transition: border-color var(--transition), background var(--transition);
  outline: none;
  resize: vertical;
  width: 100%;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.25); }
/* Focus: brand progress-line loads in from the left — data-system language */
.form-group::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--brand);
  border-radius: 0 0 var(--radius) var(--radius);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease-out);
  pointer-events: none;
}
.form-group:focus-within::after { transform: scaleX(1); }
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--brand);
  background: rgba(219,104,4,0.06);
}
.form-group select option { background: var(--dark-3); color: var(--white); }
.form-success {
  background: rgba(34,197,94,0.12);
  border: 1px solid rgba(34,197,94,0.3);
  border-radius: var(--radius);
  padding: 1rem;
  color: #4ade80;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.contact-info { display: flex; flex-direction: column; gap: 1rem; }
.info-block {
  display: flex; align-items: center; gap: 1rem;
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
}
.info-icon {
  width: 44px; height: 44px; min-width: 44px;
  background: rgba(219,104,4,0.15);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--brand); font-size: 1.15rem;
}
.info-block h4 { font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.5); margin-bottom: 0.2rem; letter-spacing: 0.05em; text-transform: uppercase; }
.info-block a, .info-block p { font-size: 0.92rem; color: rgba(255,255,255,0.85); line-height: 1.5; }
.info-block a:hover { color: var(--brand); }

.social-row { display: flex; gap: 0.75rem; margin-top: 0.5rem; }
.social-btn {
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6); font-size: 1rem;
  transition: var(--transition);
}
.social-btn:hover { background: var(--brand); color: var(--white); border-color: var(--brand); }

/* ============================================================ FOOTER */
.footer {
  background: linear-gradient(180deg, #db6804 0%, #b55400 30%, #0a0a0a 100%);
  padding: 4rem 0 0;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-logo { height: 46px; width: auto; margin-bottom: 0.75rem; }
.footer-tagline { font-size: 0.75rem; font-weight: 600; color: rgba(255,255,255,0.4); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.75rem; }
.footer-desc { font-size: 0.88rem; color: rgba(255,255,255,0.55); line-height: 1.7; }
.footer-links h5, .footer-contact h5 { font-size: 0.8rem; font-weight: 700; color: rgba(255,255,255,0.5); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.65);
  position: relative;
  width: fit-content;
}
/* Footer underline: grows from center — same language as nav */
.footer-links a::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: rgba(255,255,255,0.5);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.22s var(--ease-out);
}
.footer-links a:hover { color: var(--white); }
.footer-links a:hover::after { transform: scaleX(1); }
.footer-contact { display: flex; flex-direction: column; gap: 0.75rem; }
.footer-contact a { font-size: 0.88rem; color: rgba(255,255,255,0.65); display: flex; align-items: center; gap: 0.5rem; }
.footer-contact a:hover { color: var(--white); }
.footer-bottom {
  text-align: center;
  padding: 1.25rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.3);
}

/* ============================================================ FLOATS */
.whatsapp-float {
  position: fixed;
  bottom: 1.75rem; right: 1.75rem;
  width: 56px; height: 56px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; color: var(--white);
  z-index: 999;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 8px 24px rgba(37,211,102,0.5); }
/* Discovery tooltip — appears once on first hover, rewards curiosity */
.whatsapp-float::before {
  content: 'Fale agora';
  position: absolute;
  right: calc(100% + 10px);
  top: 50%;
  transform: translateY(-50%) translateX(6px);
  background: #25d366;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s var(--ease-out), transform 0.22s var(--ease-out);
  letter-spacing: 0.02em;
}
.whatsapp-float:hover::before {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

.back-to-top {
  position: fixed;
  bottom: 1.75rem; right: 5.5rem;
  width: 48px; height: 48px;
  background: var(--brand);
  border: none; border-radius: 50%;
  color: var(--white); font-size: 1rem;
  cursor: pointer; z-index: 999;
  box-shadow: var(--shadow-brand);
  transition: var(--transition);
  opacity: 0; pointer-events: none;
}
.back-to-top.visible { opacity: 1; pointer-events: all; }
.back-to-top:hover { transform: translateY(-3px); background: var(--brand-light); }

/* ============================================================ ANIMATIONS */



/* Scroll-reveal: base state */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Card stagger: per-child delays injected via JS data-attr */
.cards-grid .reveal { transition-delay: var(--stagger-delay, 0ms); }

/* Counter block entrance */
.counter-block {
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}
.counter-block.counting {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* ============================================================ RESPONSIVE */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .hamburger { display: flex; }
  .hero-title { font-size: clamp(1.9rem, 6vw, 2.8rem); }
  .cards-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .accent-inner { flex-direction: column; text-align: center; }
  .counters-row { gap: 2rem; }
  .erp-hero-block { padding: 1.5rem; }
  .section { padding: 4rem 0; }
  /* Solo MVV: stack vertically on tablet */
  .about-grid--solo .mvv-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .counters-row { flex-direction: column; align-items: center; gap: 2rem; }
  .contact-form { padding: 1.5rem; }
}

/* ============================================================ REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  /* Remove spatial movement; keep opacity-only fades and state feedback */
  .hero-badge, .hero-sub, .hero-actions, .hero-instruments {
    animation: none;
    opacity: 1;
  }
  .reveal {
    transform: none;
    transition: opacity 0.4s linear;
  }
  .cards-grid .reveal { transition-delay: 0ms; }
  .btn:hover, .btn:active,
  .card:hover, .team-card:hover,
  .whatsapp-float:hover, .back-to-top:hover {
    transform: none;
  }
  .scroll-arrow { animation: none; }
  .mobile-menu {
    transition: grid-template-rows 0.2s linear, opacity 0.2s linear;
  }
  .counter-block { transition: opacity 0.4s linear; }
  /* Delight: suppress all spatial delight motion */
  .card:hover .card-icon { transform: none; }
  .nav-link:not(.btn-nav)::after { transform: scaleX(1); transition: none; }
  .footer-links a::after { transform: scaleX(0); transition: none; }
  .footer-links a:hover::after { transform: scaleX(1); }
  .form-group::after { transition: none; }
  .whatsapp-float::before { transition: opacity 0.15s linear; transform: translateY(-50%) translateX(0); }
}
