:root {
  --navy: #3E4095;
  --navy-dark: #23255e;
  --red: #EC3237;
  --red-dark: #c8232a;
  --tint: #e9ebfb;
  --tint-2: #d6d9f6;
  --ink: #15163a;
  --muted: #55587a;
  --white: #fff;
  --radius: 28px;
  --shadow: 0 12px 40px rgba(35, 37, 94, .12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { line-height: 1.1; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 34rem; }
.accent { color: var(--red); }

/* ---------- Buttons (template: dark pill + circular arrow) ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 10px 10px 24px; border-radius: 999px;
  font-weight: 700; font-size: .98rem; border: 0; cursor: pointer;
  font-family: inherit; transition: transform .2s, background .2s;
}
.btn::after {
  content: ""; width: 32px; height: 32px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center/18px no-repeat;
  flex-shrink: 0;
}
.btn:hover { transform: translateY(-2px); }
.btn-dark { background: var(--navy-dark); color: var(--white); }
.btn-dark:hover { background: var(--navy); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red::after { background-color: var(--navy-dark); }
.btn-red:hover { background: var(--red-dark); }
.btn-light { background: var(--white); color: var(--navy-dark); }
.btn-sm { font-size: .88rem; padding: 6px 6px 6px 16px; gap: 10px; }
.btn-sm::after { width: 26px; height: 26px; background-size: 15px; }
.btn-lg { font-size: 1.1rem; padding: 14px 14px 14px 32px; }
.btn-lg::after { width: 42px; height: 42px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header (floating white pill) ---------- */
.site-header { position: sticky; top: 16px; z-index: 50; padding-top: 16px; margin-top: -16px; }
.nav {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  background: var(--white); border-radius: 22px; padding: 10px 12px 10px 20px;
  box-shadow: var(--shadow);
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; }
.logo img { width: 38px; height: 38px; object-fit: contain; }
.logo .k { color: var(--red); } .logo .m { color: var(--navy); }
.nav ul { display: flex; gap: 6px; list-style: none; }
.nav ul a { padding: 8px 14px; border-radius: 999px; font-weight: 500; font-size: .95rem; }
.nav ul a:hover, .nav ul a[aria-current="page"] { background: var(--tint); color: var(--navy); }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.5px; background: var(--navy-dark); margin: 5px 0; border-radius: 2px; }

/* ---------- Hero / page header with organic blobs ---------- */
.blob-bg { position: relative; background: var(--tint); overflow: hidden; }
.blob-bg::before, .blob-bg::after {
  content: ""; position: absolute; border-radius: 50%; background: var(--tint-2); z-index: 0;
}
.blob-bg::before { width: 70vw; height: 70vw; left: -20vw; top: -35vw; transform: rotate(-20deg); border-radius: 42% 58% 60% 40%; }
.blob-bg::after { width: 55vw; height: 55vw; right: -18vw; bottom: -30vw; border-radius: 58% 42% 40% 60%; }
.blob-bg > * { position: relative; z-index: 1; }

.hero { padding: 70px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.2fr .9fr; gap: 48px; align-items: center; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 32px; }
.hero-card {
  position: relative; border-radius: var(--radius); min-height: 460px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-dark) 100%);
  display: flex; align-items: flex-end; justify-content: center; overflow: visible;
}
.hero-card img { height: 460px; width: auto; object-fit: contain; border-radius: 0 0 var(--radius) var(--radius); }
.float {
  position: absolute; background: var(--white); border-radius: 16px; padding: 12px 16px;
  box-shadow: var(--shadow); font-size: .88rem; display: flex; align-items: center; gap: 10px;
}
.float strong { display: block; font-size: 1.15rem; }
.float.top { top: 50px; left: -50px; }
.float.bottom { bottom: 24px; right: -24px; max-width: 220px; }
.chip { background: var(--tint); color: var(--navy); font-weight: 700; font-size: .78rem; padding: 3px 9px; border-radius: 8px; }
.icon-dot { width: 38px; height: 38px; border-radius: 50%; background: var(--tint); display: grid; place-items: center; flex-shrink: 0; color: var(--red); }
.icon-dot svg { width: 20px; height: 20px; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 56px 0 64px; text-align: center; }
.stats div + div { border-left: 1.5px solid var(--tint-2); }
.stats strong { display: block; font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 800; color: var(--navy-dark); letter-spacing: -.03em; }
.stats span { color: var(--muted); font-size: .95rem; }

.page-head { padding: 80px 0 90px; text-align: center; }
.page-head .lead { margin: 18px auto 0; }

/* ---------- Sections ---------- */
section { padding: 90px 0; }
.section-title { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-title p { color: var(--muted); margin-top: 12px; font-size: 1.08rem; }
.eyebrow { display: inline-block; color: var(--red); font-weight: 700; font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 10px; }

/* Full-bleed rounded band with overlaid white cards */
.band {
  margin: 0 12px; border-radius: 36px; padding: 90px 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(236, 50, 55, .35), transparent 40%),
    radial-gradient(circle at 85% 80%, rgba(255, 255, 255, .12), transparent 45%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  color: var(--white);
}
.band .section-title p { color: rgba(255, 255, 255, .8); }
.band .eyebrow { color: #ff8a8e; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--white); color: var(--ink); border-radius: 22px; padding: 28px;
  display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow);
}
.card p { color: var(--muted); flex: 1; }
.card .btn { align-self: flex-start; }
.card .icon-dot { width: 56px; height: 56px; }
.card .icon-dot svg { width: 28px; height: 28px; }

/* Products */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.product {
  background: var(--white); border: 1.5px solid var(--tint-2); border-radius: 22px; overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .2s, transform .2s;
}
.product:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.product .ph { aspect-ratio: 1; background: #fff; padding: 18px; display: grid; place-items: center; border-bottom: 1.5px solid var(--tint); }
.product .ph img { max-height: 100%; object-fit: contain; }
.product .ph.empty { background: var(--tint); color: var(--navy); font-weight: 600; text-align: center; font-size: .9rem; }
.product .body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product .cat { font-size: .78rem; color: var(--red); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.product p { color: var(--muted); font-size: .93rem; flex: 1; }
.avail { font-size: .82rem; color: var(--navy); font-weight: 600; }
.product .btn { margin-top: 8px; align-self: flex-start; }
.product[hidden] { display: none; }

.tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 36px; }
.tabs button {
  font: inherit; font-weight: 600; padding: 10px 20px; border-radius: 999px; cursor: pointer;
  border: 1.5px solid var(--tint-2); background: var(--white); color: var(--navy-dark);
}
.tabs button[aria-pressed="true"] { background: var(--navy-dark); color: var(--white); border-color: var(--navy-dark); }

/* Feature strip */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.feature { background: var(--tint); border-radius: 22px; padding: 26px; }
.feature .icon-dot { background: var(--white); width: 50px; height: 50px; margin-bottom: 14px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .95rem; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; counter-reset: step; list-style: none; }
.steps li { background: var(--white); border-radius: 22px; padding: 26px; border: 1.5px solid var(--tint-2); counter-increment: step; }
.steps li::before {
  content: counter(step); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--red); color: var(--white); font-weight: 800; margin-bottom: 14px;
}
.steps strong { display: block; font-size: 1.08rem; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: .95rem; }
.band .steps li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.band .steps span { color: rgba(255, 255, 255, .78); }

/* Split text */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split p + p { margin-top: 14px; }
.split p { color: var(--muted); font-size: 1.05rem; }
.split-img { border-radius: var(--radius); background: var(--tint); padding: 30px; display: grid; place-items: center; }
.ticks { list-style: none; display: grid; gap: 12px; margin-top: 20px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; }
.ticks li::before {
  content: ""; width: 24px; height: 24px; border-radius: 50%; flex-shrink: 0; margin-top: 2px;
  background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center/14px no-repeat;
}
.pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.pills span { background: var(--tint); color: var(--navy-dark); padding: 10px 18px; border-radius: 999px; font-weight: 600; }
.note { border: 2px dashed var(--tint-2); border-radius: 22px; padding: 28px; text-align: center; color: var(--muted); }

/* Closing CTA (template bottom) */
.cta { text-align: center; padding: 100px 0; }
.cta p { color: var(--muted); font-size: 1.15rem; margin: 12px auto 32px; max-width: 560px; }
.cta .btn-row { justify-content: center; }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: start; }
.panel { background: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form .full { grid-column: 1 / -1; }
.form label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.form label small { color: var(--muted); font-weight: 400; }
.form input, .form select, .form textarea {
  width: 100%; font: inherit; padding: 13px 16px; border-radius: 14px;
  border: 1.5px solid var(--tint-2); background: #fafbff; color: var(--ink);
}
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid rgba(62, 64, 149, .25); border-color: var(--navy); }
.form textarea { min-height: 140px; resize: vertical; }
.success { display: none; background: var(--tint); color: var(--navy-dark); border-radius: 16px; padding: 18px; font-weight: 600; margin-top: 18px; }
.success.show { display: block; }
.info-list { list-style: none; display: grid; gap: 18px; }
.info-list li { display: flex; gap: 14px; align-items: flex-start; }
.info-list strong { display: block; }
.info-list span { color: var(--muted); }
.map { border: 0; width: 100%; height: 320px; border-radius: 22px; margin-top: 24px; }

/* Footer */
.site-footer { background: var(--navy-dark); color: rgba(255, 255, 255, .78); padding: 70px 0 30px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 36px; }
.site-footer h4 { color: var(--white); margin-bottom: 14px; font-size: 1rem; }
.site-footer ul { list-style: none; display: grid; gap: 8px; }
.site-footer a:hover { color: var(--white); }
.site-footer .logo { color: var(--white); margin-bottom: 14px; }
.site-footer .logo .m { color: #a9abf0; }
.copy { border-top: 1px solid rgba(255, 255, 255, .15); margin-top: 48px; padding-top: 24px; font-size: .9rem; text-align: center; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 60px; height: 60px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.wa-float svg { width: 32px; height: 32px; fill: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav ul {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column;
    background: var(--white); border-radius: 22px; padding: 12px; box-shadow: var(--shadow);
  }
  .nav.open ul { display: flex; }
  .nav { position: relative; }
  .nav > .btn { display: none; }
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 400px; margin-top: 20px; }
  .hero-card img { height: 400px; }
  .float.top { left: 12px; top: -20px; }
  .float.bottom { right: 12px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  section { padding: 64px 0; }
  .stats { grid-template-columns: 1fr; gap: 24px; }
  .stats div + div { border-left: 0; border-top: 1.5px solid var(--tint-2); padding-top: 24px; }
  .form { grid-template-columns: 1fr; }
  .panel { padding: 24px; }
  .foot-grid { grid-template-columns: 1fr; }
  .band { margin: 0 6px; border-radius: 26px; }
}

/* ================= Motion ================= */
:root { --ease-out: cubic-bezier(.16, 1, .3, 1); }

/* Hero / page-head entrance: staggered blur-rise (pure CSS, ends visible even without JS) */
@keyframes blurRise { from { opacity: 0; transform: translateY(28px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(40px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes drift { 0%, 100% { transform: rotate(-20deg) translate(0, 0); } 50% { transform: rotate(-14deg) translate(3vw, 2vw); } }
@keyframes drift2 { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-3vw, -2vw); } }
@keyframes navIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: none; } }

.nav { animation: navIn .7s var(--ease-out) both; }
.hero-grid > div:first-child > *, .page-head > * { animation: blurRise .9s var(--ease-out) both; }
.hero-grid > div:first-child > :nth-child(2), .page-head > :nth-child(2) { animation-delay: .12s; }
.hero-grid > div:first-child > :nth-child(3), .page-head > :nth-child(3) { animation-delay: .24s; }
.hero-grid > div:first-child > :nth-child(4), .page-head > :nth-child(4) { animation-delay: .36s; }
.hero-card { animation: cardIn 1.1s .2s var(--ease-out) both; transition: transform .4s var(--ease-out); transform-style: preserve-3d; }
.hero-card img { animation: blurRise 1.2s .45s var(--ease-out) both; }
.float.top { animation: blurRise .8s .8s var(--ease-out) both, bob 5s 1.6s ease-in-out infinite; }
.float.bottom { animation: blurRise .8s 1s var(--ease-out) both, bob 6s 1.8s ease-in-out infinite; }
.blob-bg::before { animation: drift 18s ease-in-out infinite; }
.blob-bg::after { animation: drift2 22s ease-in-out infinite; }

/* Scroll reveals: only hidden once JS has opted in */
.motion .reveal { opacity: 0; transform: translateY(30px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
.motion .reveal.in { opacity: 1; transform: none; }

/* Hover polish */
.btn::after { transition: transform .35s var(--ease-out); }
.btn:hover::after { transform: translateX(4px) rotate(-45deg); }
.btn:active { transform: scale(.97); }
.card, .feature, .steps li { transition: transform .35s var(--ease-out), box-shadow .35s; }
.card:hover, .feature:hover, .steps li:hover { transform: translateY(-6px); box-shadow: 0 20px 50px rgba(35, 37, 94, .18); }
.card .icon-dot, .feature .icon-dot { transition: transform .5s cubic-bezier(.34, 1.56, .64, 1), background .3s, color .3s; }
.card:hover .icon-dot, .feature:hover .icon-dot { transform: rotate(-10deg) scale(1.12); background: var(--red); color: var(--white); }
.product .ph img { transition: transform .6s var(--ease-out); }
.product:hover .ph img { transform: scale(1.07); }
.nav ul a { transition: background .25s, color .25s; }
.tabs button { transition: background .25s, color .25s, transform .2s; }
.tabs button:hover { transform: translateY(-2px); }
.wa-float { animation: navIn .6s 1.2s var(--ease-out) both; transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.wa-float:hover { transform: scale(1.1); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: -1; animation: ping 2.4s 2s ease-out infinite; }
@keyframes ping { 0% { transform: scale(1); opacity: .6; } 80%, 100% { transform: scale(1.7); opacity: 0; } }
.site-header.scrolled .nav { box-shadow: 0 16px 50px rgba(35, 37, 94, .2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .motion .reveal { opacity: 1; transform: none; }
}

/* ================= Responsive grid tuning (no orphan cards) ================= */
.features, .steps { grid-template-columns: repeat(4, 1fr); }
.steps:has(li:nth-child(5)) { grid-template-columns: repeat(3, 1fr); }  /* 6-step repair process → 3×2 */
[data-featured] { grid-template-columns: repeat(4, 1fr); }
.cards { grid-template-columns: repeat(3, 1fr); }
.products[data-catalogue] { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* Small laptops / large tablets */
@media (max-width: 1100px) {
  [data-featured] { grid-template-columns: repeat(2, 1fr); }
  .features, .steps, .steps:has(li:nth-child(5)) { grid-template-columns: repeat(2, 1fr); }
  .hero-grid { gap: 32px; }
}
/* Tablets */
@media (max-width: 920px) {
  .hero { padding-top: 48px; }
  .hero-card { max-width: 560px; width: 100%; margin-inline: auto; }
  .cards { grid-template-columns: 1fr 1fr; }
  .cards > :last-child:nth-child(odd) { grid-column: 1 / -1; }  /* 3rd card spans full width */
  .products[data-catalogue] { grid-template-columns: repeat(2, 1fr); }
  .page-head { padding: 56px 0 64px; }
  .split { gap: 28px; }
}
/* Phones */
@media (max-width: 600px) {
  .cards, .features, .steps, .steps:has(li:nth-child(5)), [data-featured], .products[data-catalogue] { grid-template-columns: 1fr; }
  .cards > :last-child:nth-child(odd) { grid-column: auto; }
  .product .ph { aspect-ratio: 4 / 3; }
  .hero { padding-top: 32px; }
  .hero .btn-row .btn, .cta .btn-row .btn, .page-head .btn-row .btn { width: 100%; justify-content: space-between; }
  .hero-card { min-height: 360px; }
  .hero-card img { height: 360px; }
  .float { font-size: .8rem; padding: 10px 12px; }
  .float.top { left: 8px; right: auto; }
  .float.bottom { right: 8px; max-width: 190px; }
  .tabs { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding-bottom: 6px; margin-inline: -16px; padding-inline: 16px; }
  .tabs button { flex-shrink: 0; }
  .cta { padding: 64px 0; }
  .wa-float { width: 52px; height: 52px; right: 14px; bottom: 14px; }
}
/* Touch screens: no sticky hover lifts */
@media (hover: none) {
  .card:hover, .feature:hover, .steps li:hover, .product:hover { transform: none; }
  .product:hover .ph img { transform: none; }
}

/* Count-up landing pop (kept even with reduced motion: it's tiny and brief) */
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.18); color: var(--red); } 100% { transform: scale(1); } }
.stats strong { font-variant-numeric: tabular-nums; }
.stats strong.pop { animation: pop .6s cubic-bezier(.34, 1.56, .64, 1) !important; }

/* Keep hero badges clear of the technicians' faces: top badge sits in the lower half */
.float.top { top: auto; bottom: 42%; left: -50px; }
@media (max-width: 920px) { .float.top { top: auto; bottom: 40%; left: 12px; } }
@media (max-width: 600px) { .float.top { bottom: 38%; left: 8px; } }
