:root {
  --navy-950: #061829;
  --navy-900: #0b2948;
  --navy-800: #123a5d;
  --navy-700: #1b4d73;
  --red-600: #1b4d73;
  --red-700: #0b2948;
  --slate-700: #41586b;
  --slate-500: #6b7e8e;
  --slate-300: #bac8d3;
  --slate-100: #eaf0f4;
  --paper: #f6f8fa;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(4, 25, 45, .13);
  --radius: 18px;
  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  color: var(--navy-950);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body.menu-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.container { width: min(calc(100% - 40px), var(--container)); margin-inline: auto; }
.section { padding: 112px 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 8px; left: 8px; z-index: 1000; padding: 10px 16px;
  background: var(--white); color: var(--navy-900); transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: 88px;
  background: rgba(246, 248, 250, .92); border-bottom: 1px solid rgba(11, 41, 72, .09);
  backdrop-filter: blur(18px); transition: box-shadow .25s ease, height .25s ease;
}
.site-header.scrolled { height: 74px; box-shadow: 0 10px 32px rgba(6, 24, 41, .09); }
.nav-wrap { height: 100%; display: flex; align-items: center; gap: 34px; }
.brand { width: 116px; height: 74px; display: grid; place-items: center; flex: 0 0 auto; }
.brand img { width: 104px; height: 104px; object-fit: contain; }
.main-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.main-nav a { position: relative; color: var(--slate-700); font-size: .9rem; font-weight: 700; }
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -9px; height: 2px;
  background: var(--red-600); transition: right .2s ease;
}
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.main-nav a.active { color: var(--navy-900); }
.button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 13px 24px; border: 0; border-radius: 6px; cursor: pointer;
  color: var(--white); background: var(--red-600); font-weight: 800; font-size: .94rem;
  box-shadow: 0 12px 26px rgba(27, 77, 115, .22); transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--red-700); box-shadow: 0 16px 34px rgba(27, 77, 115, .3); }
.button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 3px solid rgba(27, 77, 115, .35); outline-offset: 3px;
}
.button-small { min-height: 43px; padding: 10px 18px; font-size: .86rem; }
.menu-toggle { display: none; width: 45px; height: 45px; padding: 10px; border: 0; background: transparent; }
.menu-toggle span:not(.sr-only) { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--navy-900); transition: .2s ease; }

.hero {
  position: relative; min-height: 780px; padding: 170px 0 100px; overflow: hidden;
  background:
    radial-gradient(circle at 77% 40%, rgba(178, 198, 213, .35), transparent 27%),
    linear-gradient(135deg, #f9fbfc 0%, #eef3f7 56%, #e6edf2 100%);
}
.hero::before {
  content: ""; position: absolute; width: 460px; height: 460px; right: -230px; top: 85px;
  border: 90px solid rgba(11, 41, 72, .035); border-radius: 50%;
}
.hero-grid-lines {
  position: absolute; inset: 0; opacity: .42; pointer-events: none;
  background-image: linear-gradient(rgba(11,41,72,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(11,41,72,.055) 1px, transparent 1px);
  background-size: 58px 58px; mask-image: linear-gradient(to right, transparent, black 55%, black);
}
.hero-grid { position: relative; display: grid; grid-template-columns: .95fr 1.05fr; align-items: center; gap: 68px; }
.eyebrow { margin: 0 0 18px; color: var(--navy-700); font-size: .76rem; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.eyebrow span { display: inline-block; width: 28px; height: 2px; margin: 0 10px 3px 0; background: var(--red-600); }
.eyebrow.light { color: #a9bbc9; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.03em; }
h1 { max-width: 660px; margin-bottom: 26px; font-size: clamp(3rem, 5.4vw, 5.25rem); font-weight: 900; }
h1 em { display: block; color: var(--red-600); font-style: normal; }
.hero-lead { max-width: 620px; margin-bottom: 32px; color: var(--slate-700); font-size: 1.08rem; }
.hero-actions { display: flex; align-items: center; gap: 30px; }
.text-link { color: var(--navy-900); font-weight: 800; }
.text-link span { display: inline-block; margin-left: 5px; color: var(--red-600); transition: transform .2s ease; }
.text-link:hover span { transform: translateX(5px); }
.service-strip { display: flex; gap: 0; margin-top: 52px; color: var(--slate-700); font-size: .72rem; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.service-strip span { padding: 0 20px; border-right: 1px solid var(--slate-300); }
.service-strip span:first-child { padding-left: 0; }
.service-strip span:last-child { border-right: 0; }

.hero-visual { position: relative; min-width: 0; }
.machine-panel {
  position: relative; padding: 22px 24px 18px; border: 1px solid rgba(11, 41, 72, .15); border-radius: 24px;
  background: rgba(255, 255, 255, .68); box-shadow: var(--shadow); backdrop-filter: blur(12px); overflow: hidden;
}
.machine-panel::after {
  content: ""; position: absolute; inset: auto 0 0; height: 6px;
  background: linear-gradient(90deg, var(--red-600) 0 18%, var(--navy-900) 18% 100%);
}
.panel-label { color: var(--slate-500); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .68rem; letter-spacing: .13em; }
.motor-illustration { width: 100%; overflow: visible; filter: drop-shadow(0 18px 14px rgba(4, 25, 45, .17)); }
.motor-illustration .gear { transform-origin: 492px 180px; animation: rotateGear 18s linear infinite; }
.motor-illustration .orbit { transform-origin: 320px 225px; animation: rotateGear 30s linear infinite reverse; }
@keyframes rotateGear { to { transform: rotate(360deg); } }
.panel-footer { display: flex; justify-content: space-between; color: var(--slate-500); font-family: ui-monospace, monospace; font-size: .64rem; letter-spacing: .12em; }
.visual-badge {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 12px 15px;
  border: 1px solid rgba(11, 41, 72, .1); border-radius: 8px; background: var(--white);
  color: var(--navy-900); font-size: .73rem; font-weight: 850; box-shadow: 0 14px 40px rgba(6, 24, 41, .13);
}
.badge-top { top: 40px; right: -22px; }
.badge-top i { width: 8px; height: 8px; border-radius: 50%; background: #1aa877; box-shadow: 0 0 0 4px rgba(26,168,119,.13); }
.badge-bottom { bottom: 42px; left: -24px; border-left: 4px solid var(--red-600); }

.about { background: var(--white); }
.about-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 110px; }
.section-heading h2 { max-width: 620px; margin-bottom: 0; font-size: clamp(2.4rem, 4.6vw, 4.1rem); font-weight: 900; }
.about-content > .lead { color: var(--navy-900); font-size: 1.35rem; font-weight: 650; line-height: 1.5; }
.about-content > p:not(.lead) { max-width: 700px; color: var(--slate-700); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 46px; }
.values-grid article { min-height: 210px; padding: 26px 20px; border: 1px solid var(--slate-100); background: var(--paper); }
.value-number { display: block; margin-bottom: 38px; color: var(--red-600); font-family: ui-monospace, monospace; font-size: .73rem; font-weight: 900; }
.values-grid h3 { margin-bottom: 10px; font-size: 1.05rem; }
.values-grid p { margin: 0; color: var(--slate-700); font-size: .88rem; line-height: 1.55; }

.services { position: relative; overflow: hidden; color: var(--white); background: var(--navy-950); }
.services::before {
  content: ""; position: absolute; inset: 0; opacity: .12;
  background-image: radial-gradient(circle at center, #b9cad7 1px, transparent 1px); background-size: 28px 28px;
  mask-image: linear-gradient(90deg, transparent, black 60%, transparent);
}
.services .container { position: relative; }
.services-header { display: flex; align-items: end; justify-content: space-between; gap: 60px; margin-bottom: 64px; }
.services-header > p { max-width: 430px; margin-bottom: 4px; color: #9eb2c2; }
.services-grid { display: grid; grid-template-columns: repeat(12, 1fr); border-top: 1px solid rgba(255,255,255,.14); border-left: 1px solid rgba(255,255,255,.14); }
.service-card {
  grid-column: span 3;
  position: relative; min-height: 370px; padding: 34px 26px 30px; overflow: hidden;
  border-right: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.018); transition: background .25s ease, transform .25s ease;
}
.service-card:nth-child(n+5) { grid-column: span 4; }
.service-card::after {
  content: ""; position: absolute; inset: auto 0 0; height: 4px; background: var(--red-600);
  transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.service-card:hover { background: rgba(255,255,255,.06); transform: translateY(-4px); }
.service-card:hover::after { transform: scaleX(1); }
.service-index { position: absolute; top: 37px; right: 27px; color: #6c8294; font-family: ui-monospace, monospace; font-size: .7rem; }
.service-icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 74px; border: 1px solid rgba(255,255,255,.17); border-radius: 50%; color: var(--red-600); }
.service-icon svg { width: 30px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin-bottom: 18px; font-size: 1.28rem; }
.service-card p { margin: 0; color: #9eb2c2; font-size: .91rem; line-height: 1.65; }
.service-note { display: flex; align-items: center; gap: 16px; margin-top: 34px; color: #b8c7d2; }
.service-note p { margin: 0; }
.service-note a { margin-left: auto; color: var(--white); font-weight: 800; }
.service-note a span { color: var(--red-600); }
.pulse { width: 9px; height: 9px; flex: 0 0 auto; border-radius: 50%; background: var(--red-600); box-shadow: 0 0 0 6px rgba(27,77,115,.14); }

.process { background: var(--paper); }
.section-heading.centered { text-align: center; }
.section-heading.centered h2 { margin-inline: auto; }
.process-list { display: grid; grid-template-columns: repeat(4, 1fr); margin: 72px 0 0; padding: 0; list-style: none; counter-reset: none; }
.process-list li { position: relative; padding: 0 30px; border-left: 1px solid var(--slate-300); }
.process-list li:first-child { padding-left: 0; border-left: 0; }
.process-list li::before { content: ""; position: absolute; left: -4px; top: 2px; width: 7px; height: 7px; border-radius: 50%; background: var(--red-600); }
.process-list li:first-child::before { display: none; }
.process-list > li > span { display: block; margin-bottom: 54px; color: var(--red-600); font-family: ui-monospace, monospace; font-size: .75rem; font-weight: 900; }
.process-list h3 { margin-bottom: 12px; font-size: 1.08rem; }
.process-list p { margin: 0; color: var(--slate-700); font-size: .9rem; }

.contact { color: var(--white); background: linear-gradient(120deg, var(--navy-900), #071e35 62%); }
.contact-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; align-items: start; }
.contact-copy h2 { max-width: 530px; margin-bottom: 24px; font-size: clamp(2.6rem, 5vw, 4.6rem); font-weight: 900; }
.contact-copy > p:not(.eyebrow) { max-width: 520px; color: #b5c5d1; font-size: 1.05rem; }
.contact-options { display: grid; gap: 12px; margin-top: 44px; }
.contact-options a { display: flex; align-items: center; gap: 15px; width: fit-content; font-weight: 750; }
.contact-options small { display: block; color: #8fa6b8; font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.contact-option-icon { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; color: var(--red-600); font-weight: 900; }
.contact-form { padding: 38px; color: var(--navy-950); background: var(--white); box-shadow: 0 25px 80px rgba(0,0,0,.24); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form label { display: block; margin-bottom: 18px; color: var(--navy-900); font-size: .77rem; font-weight: 850; }
.contact-form input, .contact-form select, .contact-form textarea {
  width: 100%; margin-top: 8px; padding: 13px 14px; border: 1px solid #d5dfe6; border-radius: 4px;
  color: var(--navy-950); background: #fbfcfd; transition: border .2s ease, box-shadow .2s ease;
}
.contact-form input, .contact-form select { height: 48px; }
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: var(--navy-700); box-shadow: 0 0 0 3px rgba(27,77,115,.1); outline: 0; }
.contact-form ::placeholder { color: #8a9baa; }
.button-full { width: 100%; gap: 10px; }
.form-help { margin: 12px 0 0; color: var(--slate-500); font-size: .72rem; text-align: center; }

.site-footer { padding: 68px 0 24px; color: #a5b7c5; background: #041321; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .7fr 1fr; gap: 80px; padding-bottom: 52px; }
.footer-brand img { width: 124px; height: 124px; margin: -28px 0 -2px; object-fit: contain; filter: brightness(0) invert(1); opacity: .86; }
.footer-brand p { max-width: 270px; margin: 0; font-size: .88rem; }
.footer-grid h2 { margin-bottom: 18px; color: var(--white); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid > div:not(.footer-brand) a { display: block; width: fit-content; margin: 9px 0; font-size: .87rem; transition: color .2s ease; }
.footer-grid a:hover { color: var(--white); }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1); font-size: .72rem; }
.footer-bottom p { margin: 0; }

.whatsapp-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 70; width: 56px; height: 56px;
  display: grid; place-items: center; border-radius: 50%; background: #20b86a;
  box-shadow: 0 14px 35px rgba(8, 77, 48, .3); transition: transform .2s ease;
}
.whatsapp-float:hover { transform: translateY(-3px) scale(1.03); }
.whatsapp-float svg { width: 30px; fill: var(--white); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .75s ease, transform .75s ease; }
.reveal.visible { opacity: 1; transform: none; }
.services-grid .reveal:nth-child(2), .process-list .reveal:nth-child(2) { transition-delay: .08s; }
.services-grid .reveal:nth-child(3), .process-list .reveal:nth-child(3) { transition-delay: .16s; }
.services-grid .reveal:nth-child(4), .process-list .reveal:nth-child(4) { transition-delay: .24s; }

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

@media (max-width: 1020px) {
  .header-cta { display: none; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr 1fr; gap: 38px; }
  .about-grid { gap: 60px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .service-card, .service-card:nth-child(n+5) { grid-column: auto; }
  .contact-grid { gap: 50px; }
}

@media (max-width: 780px) {
  .container { width: min(calc(100% - 30px), var(--container)); }
  .section { padding: 80px 0; }
  .site-header, .site-header.scrolled { height: 72px; }
  .brand { width: 94px; height: 64px; }
  .brand img { width: 70px; height: 70px; }
  .menu-toggle { display: block; margin-left: auto; position: relative; z-index: 102; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(3) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-of-type(4) { transform: translateY(-7px) rotate(-45deg); }
  .main-nav {
    position: fixed; inset: 72px 0 auto; z-index: 101; width: 100%; height: calc(100vh - 72px);
    display: flex; flex-direction: column; align-items: flex-start;
    justify-content: center; gap: 26px; padding: 52px 32px; background: var(--paper);
    box-shadow: 0 18px 40px rgba(6, 24, 41, .12);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: .25s ease;
  }
  .main-nav.open { opacity: 1; visibility: visible; transform: none; }
  .main-nav a { font-size: 1.7rem; }
  .hero { padding: 130px 0 76px; }
  .hero-grid { grid-template-columns: 1fr; gap: 62px; }
  h1 { font-size: clamp(2.75rem, 13vw, 4.3rem); }
  .hero-visual { width: 94%; margin-inline: auto; }
  .badge-top { right: -9px; }
  .badge-bottom { left: -9px; }
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .values-grid { grid-template-columns: 1fr; }
  .values-grid article { min-height: auto; }
  .value-number { margin-bottom: 22px; }
  .services-header { display: block; }
  .services-header > p { margin-top: 26px; }
  .service-note { align-items: flex-start; flex-wrap: wrap; }
  .service-note a { width: 100%; margin: 4px 0 0 25px; }
  .process-list { grid-template-columns: 1fr 1fr; gap: 42px 0; }
  .process-list li:nth-child(3) { padding-left: 0; border-left: 0; }
  .process-list li:nth-child(3)::before { display: none; }
  .process-list > li > span { margin-bottom: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 38px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 540px) {
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; }
  .hero-actions .button { width: 100%; }
  .service-strip { flex-wrap: wrap; gap: 10px 0; margin-top: 38px; }
  .service-strip span { padding: 0 10px; }
  .service-strip span:first-child { padding-left: 0; }
  .visual-badge { padding: 10px 12px; font-size: .64rem; }
  .badge-top { top: 26px; }
  .badge-bottom { bottom: 26px; }
  .machine-panel { padding: 16px 12px; border-radius: 16px; }
  .services-grid { grid-template-columns: 1fr; }
  .service-card { min-height: 320px; }
  .service-icon { margin-bottom: 48px; }
  .process-list { grid-template-columns: 1fr; gap: 0; }
  .process-list li, .process-list li:first-child, .process-list li:nth-child(3) { padding: 0 0 34px 28px; border-left: 1px solid var(--slate-300); }
  .process-list li::before, .process-list li:first-child::before, .process-list li:nth-child(3)::before { display: block; }
  .contact-form { padding: 26px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
  .contact-options a { font-size: .85rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { display: block; }
  .footer-bottom p + p { margin-top: 6px; }
  .whatsapp-float { right: 16px; bottom: 16px; }
}
