:root {
  --navy: #06265f;
  --navy-dark: #041946;
  --blue: #0b4ea2;
  --red: #d42027;
  --green: #21b15b;
  --ink: #142036;
  --muted: #667287;
  --line: #dce5f2;
  --paper: #f5f8fc;
  --white: #ffffff;
  --radius-sm: 8px;
  --radius-pill: 999px;
  --shadow: 0 26px 80px rgba(4, 25, 70, 0.18);
  --soft-shadow: 0 16px 42px rgba(6, 38, 95, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #fbfdff 0%, var(--paper) 42%, #ffffff 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::selection {
  color: var(--white);
  background: var(--red);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 16px;
  right: clamp(12px, 3vw, 32px);
  left: clamp(12px, 3vw, 32px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 72px;
  padding: 10px 12px 10px 16px;
  color: var(--white);
  background: rgba(4, 25, 70, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  box-shadow: 0 18px 52px rgba(4, 25, 70, 0.24);
  backdrop-filter: blur(20px);
  transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(4, 25, 70, 0.92);
  box-shadow: 0 16px 45px rgba(4, 25, 70, 0.3);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 48px;
  height: 48px;
  overflow: hidden;
  flex: 0 0 auto;
  background: var(--navy);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 14px;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-copy {
  display: grid;
  gap: 1px;
}

.brand-copy strong {
  font-family: "Roboto Slab", serif;
  font-size: 1.24rem;
  line-height: 1;
}

.brand-copy small {
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 15px;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 850;
  color: rgba(255, 255, 255, 0.82);
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.nav a:hover,
.nav a.active {
  color: var(--white);
  background: rgba(255, 255, 255, 0.13);
}

.nav a:hover {
  transform: translateY(-1px);
}

.nav .nav-whatsapp {
  margin-left: 6px;
  color: var(--white);
  background: var(--green);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
}

.menu-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  margin: 5px auto;
  background: var(--white);
  border-radius: 999px;
}

.section {
  scroll-margin-top: 112px;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 430px);
  align-items: center;
  gap: clamp(34px, 6vw, 84px);
  min-height: 100svh;
  padding: 150px clamp(20px, 5vw, 72px) 80px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(4, 25, 70, 0.98), rgba(6, 38, 95, 0.96) 44%, rgba(9, 56, 128, 0.94)),
    var(--navy-dark);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 84px 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.32), transparent);
}

.hero::after {
  content: "";
  position: absolute;
  right: -15vw;
  bottom: -18vw;
  width: 52vw;
  max-width: 720px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  opacity: 0.75;
}

.hero-flow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero-flow span {
  position: absolute;
  right: 12%;
  width: 2px;
  height: 52vh;
  min-height: 330px;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.34), transparent);
  transform: rotate(34deg);
  animation: flowLine 7s ease-in-out infinite;
}

.hero-flow span:nth-child(1) {
  top: 4%;
}

.hero-flow span:nth-child(2) {
  top: 18%;
  right: 30%;
  animation-delay: -2s;
  opacity: 0.55;
}

.hero-flow span:nth-child(3) {
  top: 42%;
  right: 4%;
  animation-delay: -4s;
  opacity: 0.38;
}

.hero-content,
.security-console {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ff4b52;
}

.hero h1,
.section-heading h2,
.story-copy h2,
.contact-card h2 {
  margin: 0;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 920px;
  font-size: clamp(3.1rem, 8vw, 7.2rem);
  font-weight: 950;
  line-height: 0.92;
}

.hero-text {
  max-width: 660px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1rem, 2vw, 1.22rem);
  line-height: 1.75;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn,
.whatsapp,
.phone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover,
.whatsapp:hover,
.phone:hover {
  transform: translateY(-2px);
}

.primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 14px 32px rgba(212, 32, 39, 0.32);
}

.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.security-console {
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px);
}

.console-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.console-top img {
  width: 58px;
  height: 58px;
  object-fit: cover;
  border-radius: 16px;
}

.console-top span {
  padding: 8px 12px;
  color: #dffbea;
  background: rgba(33, 177, 91, 0.16);
  border: 1px solid rgba(33, 177, 91, 0.32);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  font-weight: 900;
}

.phone-mockup {
  max-width: 330px;
  margin: 0 auto;
  padding: 12px;
  background: #071a41;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 34px;
}

.phone-screen {
  display: grid;
  gap: 12px;
  min-height: 410px;
  padding: 16px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.04)),
    #09275d;
  border-radius: 25px;
}

.camera-feed {
  display: grid;
  align-content: end;
  min-height: 185px;
  padding: 18px;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 18px);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.camera-feed span,
.status-row span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
  font-weight: 800;
}

.camera-feed strong,
.status-row strong {
  display: block;
  margin-top: 6px;
  color: var(--white);
  font-size: 1.05rem;
}

.status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
}

.signal-bars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: auto;
}

.signal-bars span {
  height: 7px;
  background: var(--green);
  border-radius: 999px;
  animation: signalPulse 1.7s ease-in-out infinite;
}

.signal-bars span:nth-child(2) {
  animation-delay: 0.15s;
}

.signal-bars span:nth-child(3) {
  animation-delay: 0.3s;
}

.signal-bars span:nth-child(4) {
  animation-delay: 0.45s;
}

.console-note {
  display: grid;
  gap: 6px;
  padding: 18px 4px 2px;
}

.console-note strong {
  color: var(--white);
  font-size: 1.05rem;
}

.console-note span {
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
}

.services,
.story,
.contact {
  padding: clamp(78px, 10vw, 128px) clamp(20px, 5vw, 72px);
}

.section-heading {
  display: grid;
  gap: 16px;
  max-width: 860px;
  margin-bottom: 40px;
}

.section-heading h2,
.story-copy h2,
.contact-card h2 {
  color: var(--navy-dark);
  font-size: clamp(2.05rem, 5vw, 4.3rem);
  line-height: 0.98;
}

.section-heading p:not(.eyebrow),
.story-copy p,
.contact-card p,
.contact-note span {
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.72;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  position: relative;
  min-height: 248px;
  padding: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--soft-shadow);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  right: 22px;
  bottom: 22px;
  width: 56px;
  height: 2px;
  background: var(--red);
  opacity: 0.28;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(11, 78, 162, 0.32);
  box-shadow: 0 24px 56px rgba(6, 38, 95, 0.15);
}

.icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: 28px;
  color: var(--red);
  background: #fff0f1;
  border-radius: 50%;
  font-size: 0.82rem;
  font-weight: 950;
}

.service-card h3 {
  margin: 0 0 12px;
  color: var(--navy);
  font-size: 1.22rem;
}

.service-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.story {
  display: grid;
  grid-template-columns: minmax(280px, 430px) minmax(0, 1fr);
  gap: clamp(34px, 6vw, 88px);
  align-items: center;
  background:
    linear-gradient(180deg, var(--white), #f8fbff);
}

.story-media {
  position: relative;
  min-height: 470px;
}

.shield-card {
  position: absolute;
  inset: 26px 42px auto 0;
  display: grid;
  place-items: center;
  min-height: 340px;
  background:
    linear-gradient(145deg, rgba(6, 38, 95, 0.96), rgba(4, 25, 70, 0.98));
  border-radius: 32px;
  box-shadow: var(--shadow);
}

.shield-card img {
  width: min(210px, 62%);
  border-radius: 26px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

.pulse-dot {
  position: absolute;
  top: 28px;
  right: 28px;
  width: 14px;
  height: 14px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(33, 177, 91, 0.6);
  animation: pulseRing 2s infinite;
}

.timeline-card {
  position: absolute;
  right: 0;
  bottom: 28px;
  display: grid;
  gap: 10px;
  width: min(300px, 80%);
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.timeline-card span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 900;
}

.timeline-card span::before {
  content: "";
  width: 10px;
  height: 10px;
  background: var(--red);
  border-radius: 50%;
}

.story-copy {
  max-width: 780px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 30px;
}

.stats div {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 10px 28px rgba(6, 38, 95, 0.07);
}

.stats strong {
  display: block;
  color: var(--red);
  font-size: 1.15rem;
}

.stats span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.35;
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  gap: 24px;
  align-items: stretch;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(4, 25, 70, 0.98), rgba(6, 38, 95, 0.94)),
    var(--navy);
}

.contact-card,
.contact-note {
  padding: clamp(30px, 5vw, 58px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 28px;
}

.contact-card {
  background: rgba(255, 255, 255, 0.06);
}

.contact-card h2,
.contact-card p {
  color: var(--white);
}

.contact-card p {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.76);
}

.whatsapp {
  color: var(--white);
  background: var(--green);
  box-shadow: 0 14px 32px rgba(33, 177, 91, 0.24);
}

.phone {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.28);
}

.contact-note {
  display: grid;
  align-content: center;
  gap: 16px;
  background: var(--white);
}

.contact-note strong {
  color: var(--red);
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
  text-transform: uppercase;
}

.floating-whatsapp {
  position: fixed;
  z-index: 25;
  right: 22px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  min-height: 54px;
  padding: 0 20px;
  color: var(--white);
  background: var(--green);
  border-radius: var(--radius-pill);
  box-shadow: 0 18px 45px rgba(33, 177, 91, 0.34);
  font-weight: 950;
  transition: transform 0.2s ease;
}

.floating-whatsapp:hover {
  transform: translateY(-3px);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(20px, 5vw, 72px) 38px;
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy-dark);
  font-weight: 850;
}

.footer a {
  color: var(--white);
}

[data-reveal] {
  opacity: 1;
  transform: translateY(24px);
  transition: transform 0.7s ease;
}

[data-reveal].is-visible {
  transform: translateY(0);
}

@keyframes flowLine {
  0%,
  100% {
    transform: translateY(-20px) rotate(34deg);
    opacity: 0.2;
  }

  50% {
    transform: translateY(30px) rotate(34deg);
    opacity: 0.78;
  }
}

@keyframes signalPulse {
  0%,
  100% {
    opacity: 0.36;
    transform: scaleX(0.62);
  }

  50% {
    opacity: 1;
    transform: scaleX(1);
  }
}

@keyframes pulseRing {
  0% {
    box-shadow: 0 0 0 0 rgba(33, 177, 91, 0.62);
  }

  70% {
    box-shadow: 0 0 0 18px rgba(33, 177, 91, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(33, 177, 91, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .site-header {
    border-radius: 28px;
  }

  .nav {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    color: var(--navy);
  }

  .nav a:hover,
  .nav a.active {
    color: var(--white);
    background: var(--navy);
  }

  .nav .nav-whatsapp {
    margin-left: 0;
    color: var(--white);
  }

  .hero,
  .story,
  .contact {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 132px;
  }

  .security-console {
    max-width: 430px;
  }

  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .site-header {
    top: 10px;
    min-height: 66px;
    padding: 8px 9px 8px 11px;
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 12px;
  }

  .brand-copy strong {
    font-size: 1.06rem;
  }

  .brand-copy small {
    font-size: 0.55rem;
  }

  .hero {
    padding: 118px 18px 54px;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 15vw, 4.6rem);
  }

  .hero-actions,
  .contact-actions,
  .footer {
    flex-direction: column;
  }

  .btn,
  .whatsapp,
  .phone {
    width: 100%;
  }

  .phone-screen {
    min-height: 360px;
  }

  .service-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .story-media {
    min-height: 380px;
  }

  .shield-card {
    inset: 8px 18px auto 0;
    min-height: 280px;
  }

  .timeline-card {
    width: 86%;
  }

  .contact-card,
  .contact-note {
    padding: 28px;
    border-radius: 24px;
  }

  .floating-whatsapp {
    right: 14px;
    bottom: 14px;
    min-height: 48px;
    padding: 0 16px;
  }
}
