:root {
  --navy: #03152f;
  --blue: #0049af;
  --teal: #0066d6;
  --green: #65a8ff;
  --ink: #071d3d;
  --muted: #607086;
  --paper: #f4f7fb;
  --white: #fff;
  --line: #d8e1ec;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Manrope, Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }
section { scroll-margin-top: 80px; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: auto; }

/* Header */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: 82px; padding: 0 max(28px, calc((100vw - 1180px) / 2));
  background: var(--white); border-bottom: 3px solid var(--blue);
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand img { display: block; width: 112px; height: auto; }
.topbar nav { display: flex; align-items: center; gap: 31px; font-size: 16px; font-weight: 700; }
.topbar nav a:hover { color: var(--teal); }
.nav-cta { padding: 14px 20px; color: var(--white) !important; background: var(--blue); }
.btn, .nav-cta, .contact-card .whatsapp {
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, border-color .25s ease;
}
.btn::before, .nav-cta::before, .contact-card .whatsapp::before {
  position: absolute; top: -35%; bottom: -35%; left: -75%; z-index: 1; width: 34%;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.14),rgba(255,255,255,.72),rgba(255,255,255,.14),transparent);
  content: ""; pointer-events: none; transform: skewX(-20deg); filter: blur(.2px);
}
.btn:hover, .nav-cta:hover, .contact-card .whatsapp:hover {
  transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,73,175,.32);
}
.btn:hover::before, .btn:focus-visible::before,
.nav-cta:hover::before, .nav-cta:focus-visible::before,
.contact-card .whatsapp:hover::before, .contact-card .whatsapp:focus-visible::before {
  animation: button-sweep .72s cubic-bezier(.3,.7,.2,1);
}
.menu { display: none; padding: 8px; background: none; border: 0; cursor: pointer; }
.menu span { display: block; width: 24px; height: 2px; margin: 5px; background: var(--ink); }

/* Hero */
.hero { position: relative; height: 710px; overflow: hidden; color: var(--white); }
.hero::after {
  position: absolute; top: 0; right: 8%; z-index: 2;
  width: 1px; height: 100%; background: rgba(255,255,255,.12);
  content: ""; transform: skew(-12deg);
}
.hero-slides, .hero-slide { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-slides { overflow: hidden; background: var(--navy); }
.hero-slides::after {
  position: absolute; inset: -15% auto -15% -35%; z-index: 3; width: 30%;
  background: linear-gradient(90deg,transparent,rgba(101,168,255,.3),transparent);
  content: ""; opacity: 0; pointer-events: none; transform: skewX(-15deg);
}
.hero.is-changing .hero-slides::after { animation: hero-sweep 1.15s cubic-bezier(.77,0,.18,1); }
.hero-slide {
  z-index: 0; object-fit: cover; opacity: 0; filter: saturate(.78) contrast(1.08);
  clip-path: polygon(100% 0,100% 0,100% 100%,100% 100%); transform: scale(1.08);
  transition: clip-path 1.15s cubic-bezier(.77,0,.18,1), opacity .5s ease, transform 7s ease, filter 1.15s ease;
  will-change: clip-path, opacity, transform;
}
.hero-slide.active {
  z-index: 1; opacity: 1; filter: saturate(1) contrast(1);
  clip-path: polygon(0 0,100% 0,100% 100%,0 100%); transform: scale(1);
}
.hero-shade {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,12,35,.97) 0%, rgba(0,27,72,.84) 40%, rgba(0,40,100,.14) 78%);
}
.hero-content {
  position: relative; z-index: 2; width: min(1180px, calc(100% - 48px));
  margin: auto; padding-top: 120px;
}
.hero-content .eyebrow, .hero-content h1, .hero-content > p, .hero-content .hero-actions { will-change: transform, opacity; }
.hero-content.is-entering .eyebrow { animation: hero-copy-in .7s .08s both cubic-bezier(.2,.75,.25,1); }
.hero-content.is-entering h1 { animation: hero-copy-in .8s .16s both cubic-bezier(.2,.75,.25,1); }
.hero-content.is-entering > p { animation: hero-copy-in .8s .26s both cubic-bezier(.2,.75,.25,1); }
.hero-content.is-entering .hero-actions { animation: hero-copy-in .8s .36s both cubic-bezier(.2,.75,.25,1); }
.eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase;
}
.eyebrow i { width: 30px; height: 2px; background: #5ba4ff; }
h1 { max-width: 780px; margin: 24px 0; font-size: 68px; line-height: 1.04; letter-spacing: -3px; }
h1 em { color: #70afff; font-style: normal; }
.hero-content p { max-width: 610px; color: #d5e1e3; font-size: 18px; line-height: 1.75; }
.hero-actions { display: flex; gap: 12px; margin-top: 38px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 17px 24px; font-size: 15px; font-weight: 700; }
.btn.primary { background: var(--blue); box-shadow: 0 12px 35px rgba(0,73,175,.3); }
.btn.primary span { margin-left: 22px; }
.btn.ghost { border: 1px solid rgba(255,255,255,.45); }
.slider-controls {
  position: absolute; bottom: 28px; left: max(24px, calc((100vw - 1180px) / 2)); z-index: 5;
  display: flex; align-items: center; gap: 16px; color: var(--white);
}
.slide-arrow {
  width: 40px; height: 40px; color: var(--white); font-size: 18px;
  background: rgba(3,21,47,.45); border: 1px solid rgba(255,255,255,.35);
  cursor: pointer; transition: .2s;
}
.slide-arrow:hover { background: var(--blue); border-color: var(--blue); }
.slide-dots { display: flex; gap: 7px; }
.slide-dots button {
  position: relative; width: 28px; height: 3px; padding: 0; overflow: hidden;
  background: rgba(255,255,255,.28); border: 0; cursor: pointer; transition: width .3s ease;
}
.slide-dots button::after {
  position: absolute; inset: 0; background: #6daeff; content: "";
  transform: scaleX(0); transform-origin: left;
}
.slide-dots button.active { width: 52px; }
.slide-dots button.active.is-progressing::after { animation: slide-progress 6.5s linear forwards; }
.hero:hover .slide-dots button.active.is-progressing::after { animation-play-state: paused; }
.slide-count { color: #b7c6d9; font-size: 13px; letter-spacing: 1px; }
.slide-count b { color: var(--white); }
.hero-stat {
  position: absolute; right: max(28px, calc((100vw - 1180px) / 2)); bottom: 0; z-index: 3;
  display: flex; align-items: center; gap: 13px; padding: 24px 34px;
  color: var(--white); background: var(--blue);
  clip-path: polygon(18px 0,100% 0,100% 100%,0 100%,0 18px);
}
.hero-stat strong { font-size: 42px; }
.hero-stat span { font-size: 13px; font-weight: 700; line-height: 1.3; letter-spacing: 1px; text-transform: uppercase; }

@keyframes hero-copy-in {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes hero-sweep {
  0% { left: -35%; opacity: 0; }
  35% { opacity: 1; }
  100% { left: 115%; opacity: 0; }
}

@keyframes button-sweep {
  0% { left: -75%; opacity: 0; }
  22% { opacity: 1; }
  100% { left: 135%; opacity: 0; }
}

@keyframes slide-progress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
.benefits-bar {
  min-height: 104px;
  overflow: hidden;
  color: var(--navy);
  background: var(--white);
  border-bottom: 1px solid rgba(0,73,175,.12);
  box-shadow: 0 12px 30px rgba(3,21,47,.04);
}
.benefits-inner {
  display: flex; align-items: center;
  width: min(1180px,calc(100% - 48px)); min-height: 104px; margin: auto;
}
.benefits-list { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 16px; width: 100%; }
.benefit-item {
  display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px 8px;
  color: #1f385d; font-size: 15px; font-weight: 800; line-height: 1.4;
}
.benefit-icon {
  display: grid; place-items: center; flex: 0 0 46px; width: 46px; height: 46px;
  color: var(--blue); background: #eef5ff; border: 1px solid rgba(0,73,175,.16); border-radius: 10px;
}
.benefit-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Shared sections */
.about, .process { padding: 110px 0; }
.section-label {
  display: flex; align-items: center; gap: 12px; color: var(--teal);
  font-size: 14px; font-weight: 800; letter-spacing: 1.6px; text-transform: uppercase;
}
.section-label span { padding: 5px; border: 1px solid #aab7b5; }
.section-label.light { color: #78b5ff; }
.section-label.light span { border-color: #40606b; }
.section-head { display: flex; align-items: end; justify-content: space-between; margin: 40px 0 52px; }
.about h2, .section-head h2, .cta h2 { margin: 0; font-size: 48px; line-height: 1.15; letter-spacing: -2px; }
.section-head p { max-width: 430px; margin: 0; color: #9db0b7; line-height: 1.7; }

/* About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 100px; margin-top: 44px; }
.about p { color: var(--muted); font-size: 16px; line-height: 1.8; }
.about .lead { margin-top: 0; color: var(--ink); font-size: 21px; font-weight: 600; }
.facts {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 20px;
  margin-top: 42px; padding-top: 26px; border-top: 1px solid var(--line);
}
.facts strong { display: block; color: var(--teal); font-size: 30px; }
.facts span { font-size: 13px; letter-spacing: .7px; text-transform: uppercase; }

/* Services and projects */
.services, .projects { position: relative; padding: 100px 0; overflow: hidden; color: var(--white); }
.services { background: linear-gradient(140deg,#03152f,#052b66); }
.projects { background: linear-gradient(140deg,#03152f,#062956); }
.services::before, .projects::before {
  position: absolute; top: 25px; right: 3%; color: rgba(255,255,255,.025);
  font-size: 170px; font-weight: 800; line-height: 1; letter-spacing: -12px; content: "SGII";
}
.service-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 24px;
}
.service-grid article {
  position: relative; min-width: 0; overflow: hidden;
  background: rgba(255,255,255,.065); border: 1px solid rgba(120,181,255,.18); border-radius: 16px;
  box-shadow: 0 18px 45px rgba(0,8,28,.22); transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}
.service-grid article:hover {
  border-color: rgba(112,175,255,.65); box-shadow: 0 24px 55px rgba(0,8,28,.38); transform: translateY(-7px);
}
.service-media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #061a35; }
.service-media::after {
  position: absolute; inset: 35% 0 0; background: linear-gradient(transparent,rgba(3,21,47,.62)); content: ""; pointer-events: none;
}
.service-media img {
  display: block; width: 100%; height: 100%; object-fit: cover;
  transition: transform .65s cubic-bezier(.2,.75,.25,1), filter .3s ease;
}
.service-grid article:hover .service-media img { filter: saturate(1.1); transform: scale(1.055); }
.service-media span {
  position: absolute; top: 18px; left: 18px; z-index: 1; display: grid; place-items: center;
  width: 44px; height: 44px; color: var(--white); font-size: 13px; font-weight: 800;
  background: rgba(0,73,175,.9); border: 1px solid rgba(255,255,255,.3); border-radius: 50%;
  box-shadow: 0 10px 24px rgba(0,20,65,.35); backdrop-filter: blur(8px);
}
.service-card-body { min-height: 190px; padding: 26px 27px 30px; }
.service-grid h3 { margin: 0 0 12px; color: var(--white); font-size: 23px; line-height: 1.25; }
.service-grid h3::after { display: block; width: 36px; height: 3px; margin-top: 14px; background: #69aaff; content: ""; }
.service-grid p { margin: 0; color: #b7c8d7; font-size: 15px; line-height: 1.75; }

/* Process */
.section-head.dark p { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(4,1fr); margin-top: 60px; border-top: 2px solid var(--ink); }
.steps div { position: relative; padding: 28px 25px 0 0; }
.steps div::before { position: absolute; top: -5px; width: 9px; height: 9px; background: var(--blue); content: ""; }
.steps b { color: var(--teal); font-size: 13px; }
.steps h3 { margin-top: 32px; font-size: 19px; }
.steps p { color: var(--muted); font-size: 15px; line-height: 1.7; }

/* Projects */
.project-list { border-top: 1px solid rgba(101,168,255,.24); }
.project-list article {
  display: grid; grid-template-columns: 140px 1fr 1.2fr 50px; align-items: center;
  padding: 27px 0; border-bottom: 1px solid rgba(101,168,255,.24);
}
.project-list small { color: #78b5ff; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.project-list h3 { font-size: 18px; }
.project-list p { color: #aabbd1; font-size: 15px; }
.project-list > article > span { color: #6f8eae; text-align: right; }

/* Contact */
.cta {
  position: relative; padding: 105px 0; overflow: hidden;
  background: linear-gradient(135deg,#eaf3ff 0%,#bcd9ff 100%);
}
.cta::after {
  position: absolute; top: -160px; right: 4%; width: 320px; height: 650px;
  background: rgba(0,73,175,.07); content: ""; transform: rotate(25deg);
}
.cta-grid {
  position: relative; z-index: 2; display: grid;
  grid-template-columns: 1.2fr .8fr; gap: 100px;
}
.dark-eye { color: var(--navy); }
.dark-eye i { background: var(--navy); }
.cta h2 { margin: 28px 0; }
.cta p { max-width: 600px; line-height: 1.7; }
.contact-card { padding: 15px 32px; background: var(--white); }
.contact-card > a, .contact-card > div {
  position: relative; display: block; padding: 20px 0; border-bottom: 1px solid var(--line);
}
.contact-card small {
  display: block; margin-bottom: 7px; color: var(--teal);
  font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase;
}
.contact-card strong { font-size: 15px; }
.contact-card a > span { position: absolute; top: 32px; right: 0; }
.contact-card .whatsapp {
  margin: 15px -17px -1px; padding: 18px;
  color: var(--white); background: var(--blue); border: 0;
}
.contact-card .whatsapp span { top: 18px; right: 18px; }

/* Floating WhatsApp */
.whatsapp-float {
  position: fixed; right: 24px; bottom: 24px; z-index: 30;
  display: grid; place-items: center; width: 58px; height: 58px;
  padding: 13px; color: #fff; background: #20b45a; border-radius: 50%;
  box-shadow: 0 14px 32px rgba(3,21,47,.28);
  transition: transform .2s ease, background .2s ease;
}
.whatsapp-float:hover { background: #169c4b; transform: translateY(-3px); }
.whatsapp-float svg { width: 32px; height: 32px; }

/* Footer */
footer {
  position: relative; padding: 70px 0 25px; overflow: hidden;
  color: var(--white); background: radial-gradient(circle at 12% 0,rgba(0,73,175,.22),transparent 32%),#020d20;
  border-top: 4px solid var(--blue);
}
footer::after {
  position: absolute; right: 4%; bottom: -48px; color: rgba(255,255,255,.025);
  font-size: 180px; font-weight: 800; line-height: 1; letter-spacing: -12px; content: "SGII";
}
.footer-grid {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: 1.35fr .65fr 1fr .9fr; align-items: start; gap: 54px;
}
.inverse { width: fit-content; }
.footer-brand-block { display: grid; justify-items: start; gap: 18px; }
.footer-brand-block p { max-width: 290px; margin: 0; color: #9fb1bf; font-size: 15px; line-height: 1.75; }
.footer-badge {
  display: inline-flex; padding: 7px 10px; color: #91bdff;
  font-size: 12px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase;
  background: rgba(0,73,175,.18); border: 1px solid rgba(101,168,255,.2); border-radius: 4px;
}
.footer-nav { display: grid; justify-items: start; gap: 12px; font-size: 15px; }
.footer-nav strong, .footer-contact > strong, .footer-social > strong {
  margin-bottom: 5px; color: #71899b; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase;
}
.footer-nav a { color: #c1ced7; transition: color .2s ease; }
.footer-nav a:hover { color: #fff; }
.footer-contact { display: grid; justify-items: start; gap: 14px; }
.footer-contact a { display: grid; gap: 4px; color: #e4ebf0; }
.footer-contact small { color: #71899b; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; }
.footer-contact span { font-size: 15px; font-weight: 700; }
.footer-contact a:hover span { color: #91bdff; }
.footer-social { display: grid; justify-items: end; gap: 11px; }
.footer-social p { margin: -4px 0 3px; color: #8da0ae; font-size: 14px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  display: grid; place-items: center; width: 42px; height: 42px;
  color: #cbd8e1; border: 1px solid #203b50; border-radius: 50%;
  transition: color .2s ease, background .2s ease, border-color .2s ease, transform .2s ease;
}
.social-links a:hover { color: #fff; background: var(--blue); border-color: var(--blue); transform: translateY(-2px); }
.social-links svg { width: 20px; height: 20px; fill: currentColor; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.social-links a:first-child svg, .social-links a:last-child svg { fill: none; }
.footer-bottom {
  position: relative; z-index: 1; display: flex; justify-content: space-between; margin-top: 54px; padding-top: 22px;
  color: #72868e; font-size: 13px; border-top: 1px solid #20343d;
}

@media (max-width: 800px) {
  .wrap { width: min(100% - 32px,1180px); }
  .topbar { height: 72px; }
  .brand img { width: 92px; }
  .menu { display: block; }
  .topbar nav {
    position: absolute; top: 72px; right: 0; left: 0;
    display: none; flex-direction: column; align-items: stretch;
    padding: 24px; background: var(--white);
  }
  .topbar nav.open { display: flex; }
  .hero { height: 680px; }
  .hero::after { display: none; }
  .hero-slide { object-position: 63% center; }
  .hero-shade { background: linear-gradient(90deg,rgba(2,15,22,.94),rgba(2,18,27,.55)); }
  .hero-content { padding-top: 90px; }
  h1 { font-size: 46px; letter-spacing: -2px; }
  .hero-content p { font-size: 16px; }
  .slider-controls { bottom: 105px; }
  .hero-stat { right: 0; }
  .benefits-inner {
    display: block; width: 100%; min-height: 0; padding: 18px 0 14px;
  }
  .benefits-list {
    display: flex; gap: 8px; width: 100%; padding: 0 16px 6px;
    overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: inline proximity;
    scrollbar-width: thin; scrollbar-color: rgba(0,73,175,.35) transparent;
  }
  .benefit-item {
    flex: 0 0 auto; min-width: 205px; padding: 10px 12px;
    background: #f8faff; border: 1px solid rgba(0,73,175,.1); border-radius: 10px;
    scroll-snap-align: start; white-space: nowrap;
  }
  .about-grid, .cta-grid { grid-template-columns: 1fr; gap: 45px; }
  .about h2, .section-head h2, .cta h2 { font-size: 36px; }
  .section-head { display: block; }
  .section-head p { margin-top: 22px; }
  .services::before, .projects::before { font-size: 100px; }
  .service-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; gap: 30px; }
  .project-list article { grid-template-columns: 90px 1fr; }
  .project-list p, .project-list > article > span { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 42px 36px; }
  .footer-social { justify-items: start; }
}

@media (max-width: 480px) {
  .whatsapp-float { right: 16px; bottom: 16px; width: 56px; height: 56px; padding: 12px; }
  .whatsapp-float svg { width: 32px; height: 32px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .btn { text-align: center; }
  .hero-stat { padding: 15px 22px; }
  .hero-stat strong { font-size: 32px; }
  .about, .process, .services, .projects, .cta { padding: 76px 0; }
  .facts, .steps { grid-template-columns: 1fr; }
  .steps { gap: 30px; }
  .cta-grid { gap: 35px; }
  .project-list article { grid-template-columns: 1fr; }
  .project-list small { margin-bottom: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  footer::after { font-size: 110px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide, .service-grid article, .service-media img { transition: none; }
  .hero.is-changing .hero-slides::after,
  .hero-content.is-entering .eyebrow,
  .hero-content.is-entering h1,
  .hero-content.is-entering > p,
  .hero-content.is-entering .hero-actions,
  .slide-dots button.active.is-progressing::after,
  .btn::before, .nav-cta::before, .contact-card .whatsapp::before { animation: none; }
  .btn, .nav-cta, .contact-card .whatsapp { transition: none; }
  .btn:hover, .nav-cta:hover, .contact-card .whatsapp:hover { transform: none; }
  .slide-dots button.active::after { transform: scaleX(1); }
}
