/* =================================================================
   Markelia SpA - Rediseño
   ================================================================= */

:root {
  --paper: #f6f9fc;
  --paper-2: #eef4f8;
  --surface: #ffffff;
  --surface-ink: #06133a;
  --ink: #06133a;
  --ink-2: #244064;
  --muted: #60718a;
  --line: rgba(6, 19, 58, 0.13);
  --line-strong: rgba(6, 19, 58, 0.24);
  --blue: #064bff;
  --blue-dark: #042db3;
  --cyan: #00c2d7;
  --lime: #c6f000;
  --coral: #ff684d;
  --warning: #ffb020;
  --ok: #1fbf75;
  --white: #ffffff;

  --radius-sm: 4px;
  --radius: 8px;
  --shadow: 0 16px 40px rgba(6, 19, 58, 0.11);
  --shadow-lg: 0 28px 80px rgba(6, 19, 58, 0.16);
  --container: 1180px;
  --header-h: 76px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  --font-body: "Manrope", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-display: "Space Grotesk", "Manrope", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", "Consolas", monospace;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink-2);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.05;
  font-weight: 700;
  letter-spacing: 0;
}

button, input, select, textarea { font: inherit; }

::selection { background: var(--lime); color: var(--ink); }

.section {
  position: relative;
  padding: 104px 0;
}

.container {
  width: min(100% - 48px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 2000;
  background: var(--ink);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* =================================================================
   Botones
   ================================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  gap: 10px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease), border-color 0.22s var(--ease), color 0.22s var(--ease);
}
.btn-block { width: 100%; }
.btn-lg { min-height: 54px; padding: 15px 24px; font-size: 1rem; }

.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 12px 24px rgba(6, 75, 255, 0.22);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(6, 75, 255, 0.27);
}

.btn-ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-strong);
  box-shadow: 0 8px 20px rgba(6, 19, 58, 0.06);
}
.btn-ghost:hover {
  border-color: var(--blue);
  color: var(--blue-dark);
  transform: translateY(-2px);
}

.btn:focus-visible,
.nav-desktop a:focus-visible,
.nav-mobile a:focus-visible,
.back-to-top:focus-visible,
.menu-toggle:focus-visible,
.form-group input:focus-visible,
.form-group select:focus-visible,
.form-group textarea:focus-visible {
  outline: 3px solid rgba(0, 194, 215, 0.45);
  outline-offset: 3px;
}

/* =================================================================
   Header
   ================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(246, 249, 252, 0.86);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, background 0.25s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--header-h);
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 172px;
  height: 50px;
  flex: 0 0 auto;
}
.logo-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.nav-desktop { margin-left: auto; }
.nav-desktop ul {
  display: flex;
  gap: 4px;
  list-style: none;
}
.nav-desktop a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--ink-2);
  font-weight: 700;
  font-size: 0.93rem;
  transition: color 0.2s ease, background 0.2s ease;
}
.nav-desktop a:hover {
  background: rgba(6, 75, 255, 0.08);
  color: var(--blue-dark);
}

.header-cta { margin-left: 8px; }

.menu-toggle {
  display: none;
  margin-left: auto;
  padding: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle span + span { margin-top: 5px; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 999;
  background: rgba(246, 249, 252, 0.98);
  backdrop-filter: blur(20px);
  padding: 22px;
}
.nav-mobile.open { display: block; }
.nav-mobile ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
}
.nav-mobile a {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}
.nav-mobile .btn { margin-top: 8px; color: var(--white); }

/* =================================================================
   Hero
   ================================================================= */
.hero {
  position: relative;
  min-height: auto;
  display: grid;
  align-items: center;
  padding: 32px 0 44px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 19, 58, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(6, 19, 58, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.82) 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, 0.82) 55%, transparent 100%);
}
.hero-scanline {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 56%;
  width: 170px;
  background: linear-gradient(90deg, transparent, rgba(0, 194, 215, 0.16), transparent);
  transform: skewX(-18deg);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  gap: 44px;
  align-items: center;
}

.hero-content,
.hero-visual {
  min-width: 0;
}

.hero-title,
.hero-subtitle,
.hero-kicker {
  max-width: 100%;
}

.hero-title {
  overflow-wrap: break-word;
}

.hero-kicker > span:last-child {
  min-width: 0;
  white-space: normal;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  margin-bottom: 18px;
  padding: 7px 10px 7px 7px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink-2);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}
.kicker-mark {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--ink);
  color: var(--lime);
  border-radius: var(--radius-sm);
}

.hero-title {
  max-width: 780px;
  font-size: 3.45rem;
  line-height: 1;
  margin-bottom: 18px;
}
.hero-title::after {
  content: "";
  display: block;
  width: 96px;
  height: 8px;
  margin-top: 16px;
  background: linear-gradient(90deg, var(--blue), var(--cyan) 54%, var(--lime));
  border-radius: 3px;
}

.hero-subtitle {
  max-width: 650px;
  color: var(--ink-2);
  font-size: 1.04rem;
  line-height: 1.64;
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: 620px;
}
.hero-proof span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.68);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 450px;
  display: grid;
  place-items: center;
}

.signal-board {
  position: relative;
  width: min(100%, 470px);
  padding: 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.9)),
    linear-gradient(135deg, rgba(0, 194, 215, 0.2), rgba(198, 240, 0, 0.12));
  box-shadow: var(--shadow-lg);
}
.signal-board::before {
  content: "";
  position: absolute;
  inset: -12px 28px auto auto;
  width: 132px;
  height: 10px;
  background: var(--coral);
  border-radius: 3px;
}
.signal-board::after {
  content: "";
  position: absolute;
  inset: auto auto -18px 36px;
  width: 180px;
  height: 18px;
  background: repeating-linear-gradient(90deg, var(--ink) 0 14px, transparent 14px 22px);
  opacity: 0.11;
}

.board-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.board-top img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  flex: 0 0 auto;
}
.board-top span {
  display: block;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
}
.board-top strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 1.02rem;
}

.board-flow {
  position: relative;
  height: 86px;
  margin: 12px 0;
  border: 1px dashed rgba(6, 19, 58, 0.2);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, transparent 0 49%, rgba(6, 75, 255, 0.14) 49% 51%, transparent 51%),
    linear-gradient(180deg, transparent 0 48%, rgba(0, 194, 215, 0.14) 48% 52%, transparent 52%);
}
.board-flow::before {
  content: "";
  position: absolute;
  inset: 50% 9% auto 9%;
  height: 3px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--lime));
  transform: translateY(-50%);
}
.flow-dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px solid var(--white);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 1px rgba(6, 19, 58, 0.18), 0 0 24px rgba(0, 194, 215, 0.35);
}
.dot-one { left: 9%; top: 50%; transform: translateY(-50%); }
.dot-two { left: 36%; top: 50%; transform: translateY(-50%); background: var(--cyan); }
.dot-three { right: 32%; top: 50%; transform: translateY(-50%); background: var(--lime); }
.dot-four { right: 9%; top: 50%; transform: translateY(-50%); background: var(--coral); }

.board-modules {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.board-module {
  min-height: 104px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.board-module.is-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.board-module span {
  display: inline-flex;
  margin-bottom: 12px;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
}
.board-module strong {
  display: block;
  color: inherit;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.1;
}
.board-module small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}
.board-module.is-primary small { color: rgba(255, 255, 255, 0.72); }

.board-terminal {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
  padding: 11px 12px;
  border-radius: var(--radius);
  background: var(--surface-ink);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
}
.term-label { color: var(--cyan); }
.term-value {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.term-value i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 10px rgba(31, 191, 117, 0.8);
}

.signal-tag {
  position: absolute;
  padding: 8px 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--lime);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: var(--shadow);
  pointer-events: none;
  animation: floaty 4.5s ease-in-out infinite;
}
.tag-left { left: -18px; bottom: -18px; }
.tag-right {
  right: -24px;
  top: 22%;
  background: var(--coral);
  color: var(--white);
  animation-delay: 0.8s;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* =================================================================
   Section heads
   ================================================================= */
.section-head {
  max-width: 780px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head-left {
  margin-inline: 0;
  text-align: left;
}
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--blue-dark);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}
.section-label::before {
  content: "";
  width: 18px;
  height: 8px;
  background: var(--lime);
  border-radius: 2px;
}
.section-title {
  font-size: 2.8rem;
  line-height: 1.05;
  margin-bottom: 16px;
}
.section-text {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* =================================================================
   Value cards
   ================================================================= */
.value-section {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.grid.three {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.glass-card {
  position: relative;
  min-height: 220px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease;
}
.glass-card::before {
  content: "";
  position: absolute;
  left: 26px;
  right: 26px;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--blue), var(--cyan), var(--lime));
  border-radius: 0 0 3px 3px;
}
.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(6, 75, 255, 0.3);
  box-shadow: var(--shadow);
}
.glass-card-title {
  margin: 48px 0 10px;
  font-size: 1.28rem;
}
.glass-card-text {
  color: var(--muted);
  line-height: 1.65;
}

/* =================================================================
   Services
   ================================================================= */
.services {
  background: var(--paper);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.service-card {
  position: relative;
  min-height: 292px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), border-color 0.25s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 194, 215, 0.45);
  box-shadow: var(--shadow);
}
.service-card::after {
  content: "";
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 30px;
  height: 30px;
  border-right: 3px solid var(--cyan);
  border-bottom: 3px solid var(--cyan);
  opacity: 0.3;
}
.service-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(6, 75, 255, 0.08), rgba(0, 194, 215, 0.12));
  color: var(--blue);
}
.service-icon svg {
  width: 27px;
  height: 27px;
}
.service-title {
  margin-bottom: 10px;
  font-size: 1.2rem;
  line-height: 1.18;
}
.service-text {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.68;
}

/* =================================================================
   Process
   ================================================================= */
.process {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}
.process .section-title,
.process .section-label {
  color: var(--white);
}
.process .section-label::before { background: var(--cyan); }

.process-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  overflow: hidden;
}
.process-track::before {
  content: "";
  position: absolute;
  top: 76px;
  left: 8%;
  right: 8%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--lime), var(--coral));
  opacity: 0.72;
}
.process-step {
  position: relative;
  min-height: 278px;
  padding: 28px 22px;
  background: rgba(255, 255, 255, 0.035);
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.process-step:last-child { border-right: 0; }
.process-num {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  margin-bottom: 46px;
  border: 2px solid var(--cyan);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--lime);
  font-family: var(--font-mono);
  font-weight: 800;
  box-shadow: 0 0 0 8px var(--ink);
}
.process-title {
  margin-bottom: 9px;
  color: var(--white);
  font-size: 1.15rem;
}
.process-text {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.94rem;
  line-height: 1.65;
}
.process-arrow { display: none; }

/* =================================================================
   Odoo section
   ================================================================= */
.odoo-section { background: var(--paper-2); }
.odoo-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.odoo-content .section-title {
  text-align: left;
  max-width: 620px;
}
.odoo-content .section-text { margin-bottom: 24px; }

.odoo-visual {
  position: relative;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(6, 19, 58, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(6, 19, 58, 0.07) 1px, transparent 1px),
    var(--paper);
  background-size: 34px 34px;
}
.odoo-visual::before {
  content: "sync";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--lime);
  font-family: var(--font-mono);
  font-weight: 800;
  transform: translate(-50%, -50%);
}
.odoo-node {
  position: absolute;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--blue-dark);
  font-family: var(--font-mono);
  font-weight: 800;
  box-shadow: var(--shadow);
}
.odoo-node span { font-size: 0.82rem; }
.node-1 { top: 12%; left: 12%; }
.node-2 { top: 12%; right: 12%; }
.node-3 { bottom: 12%; left: 12%; }
.node-4 { bottom: 12%; right: 12%; }
.odoo-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.odoo-lines line {
  stroke: var(--blue);
  stroke-width: 2;
  stroke-dasharray: 8 8;
  opacity: 0.45;
}

/* =================================================================
   Why us
   ================================================================= */
.why-us { background: var(--surface); }
.why-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.why-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 26px;
  list-style: none;
}
.why-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}
.check {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  background: var(--lime);
  color: var(--ink);
}

.why-visual {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
}
.why-panel {
  position: relative;
  z-index: 1;
  width: min(100%, 390px);
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--white);
  box-shadow: var(--shadow-lg);
}
.why-panel::before {
  content: "";
  position: absolute;
  inset: -16px -16px auto auto;
  width: 112px;
  height: 112px;
  border: 10px solid var(--cyan);
  border-left: 0;
  border-bottom: 0;
  opacity: 0.75;
}
.why-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.why-avatar {
  width: 46px;
  height: 46px;
  object-fit: contain;
  border-radius: var(--radius);
  background: var(--white);
}
.why-name {
  color: var(--white);
  font-weight: 800;
}
.why-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.84rem;
}
.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.dot-ok {
  background: var(--ok);
  box-shadow: 0 0 10px rgba(31, 191, 117, 0.8);
}
.why-bars {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.why-bar {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px 12px;
  align-items: center;
}
.why-bar > span {
  grid-column: 1 / -1;
  height: 9px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.13);
  overflow: hidden;
}
.why-bar > span::after {
  content: "";
  display: block;
  width: var(--bar);
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--lime));
  animation: fillBar 1.1s var(--ease) both;
}
.why-bar label {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.84rem;
}
@keyframes fillBar { from { width: 0; } }

.float-card {
  position: absolute;
  right: 0;
  bottom: 34px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  animation: floaty 4.8s ease-in-out infinite;
}
.fc-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--blue);
}
.fc-title {
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 800;
}
.fc-sub {
  color: var(--muted);
  font-size: 0.76rem;
}

/* =================================================================
   Contact
   ================================================================= */
.contact {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.76);
}
.contact .section-title,
.contact .section-label {
  color: var(--white);
}
.contact .section-label::before { background: var(--coral); }
.contact .section-text { color: rgba(255, 255, 255, 0.72); }
.contact-quick {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}
.contact .btn-ghost {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: none;
}
.contact .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--cyan);
}

.contact-form-wrap {
  max-width: 800px;
  margin: 0 auto;
  padding: 34px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.24);
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.form-group label {
  color: var(--white);
  font-weight: 800;
  font-size: 0.9rem;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.09);
  color: var(--white);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255, 255, 255, 0.4); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 4px rgba(0, 194, 215, 0.18);
}
.form-group select option {
  background: var(--ink);
  color: var(--white);
}
.form-group textarea {
  min-height: 124px;
  resize: vertical;
}
.form-group input[aria-invalid="true"],
.form-group textarea[aria-invalid="true"],
.form-group select[aria-invalid="true"] {
  border-color: var(--coral);
  box-shadow: 0 0 0 4px rgba(255, 104, 77, 0.16);
}
.field-error {
  color: #ffc7bd;
  font-size: 0.84rem;
}
.captcha-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 86px;
}
.captcha-group .g-recaptcha { max-width: 100%; }
.form-error {
  padding: 12px 14px;
  border: 1px solid rgba(255, 104, 77, 0.48);
  border-radius: var(--radius);
  background: rgba(255, 104, 77, 0.12);
  color: #ffd4cd;
}
.form-success {
  padding: 20px;
  border: 1px solid rgba(31, 191, 117, 0.45);
  border-radius: var(--radius);
  background: rgba(31, 191, 117, 0.12);
  text-align: center;
}
.form-success h3 {
  margin-bottom: 8px;
  color: var(--white);
}
.form-note {
  margin-top: 2px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.84rem;
  text-align: center;
}
.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
}

/* =================================================================
   Footer
   ================================================================= */
.site-footer {
  background: #030b22;
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 58px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.footer-brand .logo {
  margin-bottom: 16px;
  width: 172px;
}
.footer-tagline {
  max-width: 420px;
  margin-bottom: 10px;
}
.footer-loc {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.9rem;
}
.footer-col h3 {
  margin-bottom: 14px;
  color: var(--white);
  font-size: 1rem;
}
.footer-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  list-style: none;
}
.footer-list a {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
  transition: color 0.2s ease;
}
.footer-list a:hover { color: var(--cyan); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.85rem;
  text-align: center;
}

.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 900;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: var(--radius);
  background: var(--blue);
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(6, 75, 255, 0.28);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.25s ease, transform 0.25s var(--ease), background 0.2s ease;
}
.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
}
.back-to-top:hover {
  background: var(--blue-dark);
  transform: translateY(-3px);
}

/* =================================================================
   Reveal animations
   ================================================================= */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual {
    min-height: auto;
    max-width: 560px;
    margin-inline: auto;
  }
  .hero-title { font-size: 3.25rem; }
}

@media (max-width: 980px) {
  .section { padding: 82px 0; }
  .nav-desktop,
  .header-cta { display: none; }
  .menu-toggle { display: inline-block; }
  .grid.three { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .process-track { grid-template-columns: 1fr 1fr; }
  .process-track::before { display: none; }
  .process-step {
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  .process-step:nth-child(2n) { border-right: 0; }
  .odoo-card,
  .why-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }
  .why-visual { min-height: 350px; }
}

@media (max-width: 700px) {
  :root { --header-h: 68px; }
  .container { width: calc(100% - 32px); }
  .section { padding: 70px 0; }
  .header-inner { min-height: var(--header-h); }
  .logo { width: 148px; height: 42px; }
  .hero {
    min-height: auto;
    padding: 46px 0 70px;
  }
  .hero-inner,
  .hero-content,
  .hero-subtitle,
  .hero-kicker,
  .hero-proof {
    width: 100%;
    max-width: 358px;
  }
  .hero-content {
    justify-self: start;
  }
  .hero-title {
    width: 100%;
    max-width: 350px;
  }
  .hero-title {
    font-size: 2.12rem;
    line-height: 1.08;
  }
  .hero-subtitle { font-size: 1rem; }
  .hero-actions .btn,
  .contact-quick .btn { width: 100%; }
  .hero-kicker {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    align-items: flex-start;
    font-size: 0.72rem;
  }
  .hero-kicker > span:last-child {
    overflow-wrap: anywhere;
  }
  .hero-proof span { flex: 1 1 calc(50% - 8px); justify-content: center; }
  .signal-board {
    width: 100%;
    max-width: 358px;
    padding: 14px;
  }
  .board-modules { grid-template-columns: 1fr; }
  .board-module { min-height: auto; }
  .board-terminal { flex-direction: column; }
  .signal-tag { display: none; }
  .section-title { font-size: 2.15rem; }
  .services-grid,
  .process-track,
  .form-row,
  .footer-grid { grid-template-columns: 1fr; }
  .process-step,
  .process-step:nth-child(2n) {
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }
  .odoo-card,
  .contact-form-wrap { padding: 24px; }
  .odoo-visual { min-height: 280px; }
  .odoo-node {
    width: 62px;
    height: 62px;
  }
  .float-card { display: none; }
}

@media (max-width: 420px) {
  .hero-inner,
  .hero-content,
  .hero-subtitle,
  .hero-kicker,
  .hero-proof,
  .signal-board {
    max-width: 358px;
  }
  .hero-title {
    max-width: 350px;
  }
  .hero-title { font-size: 2rem; }
  .section-title { font-size: 1.9rem; }
  .board-top {
    align-items: flex-start;
  }
  .board-top img {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
