:root {
  --brand-1: #1b80ee;
  --brand-2: #28a0f0;
  --brand-3: #31cdfa;
  --neutral-1: #0b1220;
  --neutral-2: #1a2333;
  --neutral-3: #b4b7b9;
  --surface: #f6f7fb;
  --white: #ffffff;
  --pop-1: #ff7a59;
  --pop-2: #f9c74f;
  --pop-3: #31cdfa;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Mulish", "Segoe UI", sans-serif;
  color: var(--neutral-1);
  font-size: 0.95rem;
  background: radial-gradient(circle at 10% 10%, rgba(49, 205, 250, 0.25), transparent 45%),
    radial-gradient(circle at 90% 10%, rgba(27, 128, 238, 0.2), transparent 40%),
    linear-gradient(180deg, #f9fbff 0%, #f0f3f9 50%, #f8fafc 100%);
  background-size: 140% 140%, 140% 140%, 100% 100%;
  animation: ambient 16s ease-in-out infinite;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  overflow: hidden;
}

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 6vw 16px;
  position: sticky;
  top: 0;
  backdrop-filter: blur(8px);
  z-index: 10;
  background: rgba(248, 250, 252, 0.8);
  border-bottom: 1px solid rgba(26, 35, 51, 0.08);
  animation: drop-in 0.7s ease both;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
  animation: pop-text 0.7s ease both;
  animation-delay: 0.04s;
}

.brand-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(27, 128, 238, 0.2);
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--neutral-2);
  font-size: 0.9rem;
  letter-spacing: 0.4px;
}

.hero-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(27, 128, 238, 0.18);
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: conic-gradient(from 45deg, var(--brand-1), var(--brand-2), var(--brand-3));
  box-shadow: 0 10px 24px rgba(27, 128, 238, 0.25);
}

.nav-links {
  display: flex;
  gap: 24px;
  font-size: 0.95rem;
  color: var(--neutral-2);
}

.nav-links a {
  animation: pop-text 0.7s ease both;
}

.nav-links a:nth-child(1) {
  animation-delay: 0.08s;
}

.nav-links a:nth-child(2) {
  animation-delay: 0.12s;
}

.nav-links a:nth-child(3) {
  animation-delay: 0.16s;
}

.nav-links a:nth-child(4) {
  animation-delay: 0.2s;
}

.nav-links a {
  position: relative;
  padding-bottom: 4px;
  transition: transform 0.2s ease, color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--brand-1), var(--brand-3));
  transition: width 0.3s ease;
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-links a:hover {
  transform: translateY(-2px);
  color: var(--brand-1);
}

.nav-links a:active {
  transform: translateY(1px) scale(0.98);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  padding: 60px 6vw 80px;
  align-items: center;
  position: relative;
  animation: fade-up 0.8s ease both;
}

.hero::before {
  content: "";
  position: absolute;
  right: -120px;
  top: 10px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(49, 205, 250, 0.35), transparent 65%);
  border-radius: 50%;
  filter: blur(2px);
  animation: float 10s ease-in-out infinite, glow 6s ease-in-out infinite;
}

.hero h1 {
  animation: text-rise 0.9s ease both;
  animation-delay: 0.1s;
}

.hero p {
  animation: text-rise 0.9s ease both;
  animation-delay: 0.2s;
}

.hero .cta {
  animation: text-rise 0.9s ease both;
  animation-delay: 0.3s;
}

.hero h1 {
  font-family: "Libre Baskerville", "Times New Roman", serif;
  font-size: clamp(2.1rem, 3.4vw, 3rem);
  line-height: 1.1;
  margin-bottom: 20px;
  animation: pop-text 0.7s ease both;
  animation-delay: 0.08s;
}

.hero p {
  font-size: 0.95rem;
  color: var(--neutral-2);
  line-height: 1.7;
  margin-bottom: 26px;
  animation: pop-text 0.7s ease both;
  animation-delay: 0.16s;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(120deg, rgba(255, 122, 89, 0.16), rgba(249, 199, 79, 0.22));
  color: var(--neutral-2);
  font-size: 0.82rem;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.accent {
  background: linear-gradient(120deg, var(--brand-1), var(--pop-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  background: linear-gradient(120deg, var(--brand-1), var(--pop-3));
  color: var(--white);
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(123, 97, 255, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(123, 97, 255, 0.35);
  filter: brightness(1.05);
}

.cta:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 10px 24px rgba(123, 97, 255, 0.25);
}

.hero-card {
  background: var(--white);
  border-radius: 24px;
  padding: 28px;
  box-shadow: 0 22px 60px rgba(11, 18, 32, 0.12);
  display: grid;
  gap: 16px;
  border: 1px solid rgba(26, 35, 51, 0.06);
  position: relative;
  overflow: hidden;
  animation: float-card 9s ease-in-out infinite;
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -40% -45% auto;
  width: 260px;
  height: 260px;
  background: linear-gradient(135deg, rgba(27, 128, 238, 0.2), rgba(49, 205, 250, 0.05));
  border-radius: 50%;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.metric {
  background: linear-gradient(135deg, rgba(27, 128, 238, 0.12), rgba(249, 199, 79, 0.14));
  border-radius: 16px;
  padding: 16px;
  font-size: 0.9rem;
  color: var(--neutral-2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.metric:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 18px 36px rgba(11, 18, 32, 0.12);
}

.metric:active {
  transform: translateY(1px) scale(0.99);
}

.metric strong {
  display: block;
  font-size: 1.3rem;
  color: var(--neutral-1);
}

section {
  padding: 80px 6vw;
  transition: transform 0.25s ease;
}

section:hover {
  transform: translateY(-2px);
}

section:active {
  transform: translateY(1px);
}

#mapman {
  padding: 70px 6vw;
}

#about,
#services,
#mapman,
#contact {
  animation: fade-up 0.8s ease both;
}

#about {
  animation-delay: 0.1s;
}

#services {
  animation-delay: 0.2s;
}

#mapman {
  animation-delay: 0.3s;
}

#contact {
  animation-delay: 0.4s;
}

.section-title {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-family: "Libre Baskerville", "Times New Roman", serif;
  margin-bottom: 18px;
  animation: pop-text 0.7s ease both;
}

.section-sub {
  color: var(--neutral-2);
  line-height: 1.7;
  max-width: 720px;
  font-size: 0.95rem;
  animation: pop-text 0.7s ease both;
  animation-delay: 0.08s;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
  transition: transform 0.25s ease;
}

.about-grid:hover {
  transform: translateY(-2px);
}

.about-grid:active {
  transform: translateY(1px);
}

.about-card {
  background: var(--white);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(26, 35, 51, 0.08);
  box-shadow: 0 12px 40px rgba(11, 18, 32, 0.08);
  transition: transform 0.2s ease;
  animation: rise-in 0.8s ease both;
}

.about-card h3,
.about-card p {
  animation: pop-text 0.7s ease both;
}

.about-card:hover {
  transform: translateY(-4px);
}

.about-card:active {
  transform: translateY(1px) scale(0.99);
}

.about-card:nth-child(1) {
  animation-delay: 0.1s;
}

.about-card:nth-child(2) {
  animation-delay: 0.18s;
}

.about-card:nth-child(3) {
  animation-delay: 0.26s;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 30px;
  transition: transform 0.25s ease;
}

.services-grid:hover {
  transform: translateY(-2px);
}

.services-grid:active {
  transform: translateY(1px);
}


.service-card {
  background: var(--white);
  padding: 22px;
  border-radius: 18px;
  border: 1px solid rgba(26, 35, 51, 0.06);
  box-shadow: 0 10px 30px rgba(11, 18, 32, 0.07);
  border-top: 3px solid rgba(255, 122, 89, 0.5);
  animation: rise-in 0.8s ease both;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-card h4,
.service-card p {
  animation: pop-text 0.7s ease both;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(11, 18, 32, 0.12);
}

.service-card:active {
  transform: translateY(1px) scale(0.99);
}

.service-card:nth-child(1) {
  animation-delay: 0.08s;
}

.service-card:nth-child(2) {
  animation-delay: 0.16s;
}

.service-card:nth-child(3) {
  animation-delay: 0.24s;
}

.service-card:nth-child(4) {
  animation-delay: 0.32s;
}

.service-card:nth-child(5) {
  animation-delay: 0.4s;
}

.service-card:nth-child(6) {
  animation-delay: 0.48s;
}

.service-card h4 {
  margin-bottom: 10px;
  font-size: 1.1rem;
  animation: pop-text 0.7s ease both;
  animation-delay: 0.12s;
}

.mapman-section {
  position: relative;
}

.mapman-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  align-items: center;
  background: linear-gradient(135deg, rgba(27, 128, 238, 0.12), rgba(49, 205, 250, 0.18));
  border-radius: 32px;
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid rgba(26, 35, 51, 0.06);
  position: relative;
  overflow: hidden;
  animation: shimmer 12s ease-in-out infinite;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.mapman-grid:hover {
  transform: translateY(-3px);
  box-shadow: 0 26px 60px rgba(11, 18, 32, 0.12);
}

.mapman-grid:active {
  transform: translateY(1px) scale(0.995);
}

.mapman-grid::before,
.mapman-grid::after {
  content: "";
  position: absolute;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(49, 205, 250, 0.25), transparent 65%);
  filter: blur(8px);
  animation: drift 9s ease-in-out infinite;
}

.mapman-grid::before {
  top: -120px;
  left: -80px;
}

.mapman-grid::after {
  bottom: -140px;
  right: -80px;
  animation-delay: 2s;
}

.mapman-hero {
  display: grid;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.mapman-badge {
  display: inline-flex;
  justify-self: start;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 0.7rem;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--neutral-1);
  border: 1px solid rgba(27, 128, 238, 0.12);
  animation: pop-text 0.7s ease both;
  animation-delay: 0.08s;
}

.mapman-logo {
  width: 170px;
  height: 170px;
  border-radius: 44px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 70px rgba(11, 18, 32, 0.14);
  animation: float 7s ease-in-out infinite;
}

.mapman-logo img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  border-radius: 30px;
}

.mapman-title {
  font-family: "Libre Baskerville", "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin: 0;
  animation: pop-text 0.7s ease both;
}

.mapman-lead {
  color: var(--neutral-2);
  line-height: 1.75;
  max-width: 520px;
  animation: pop-text 0.7s ease both;
  animation-delay: 0.12s;
}

.mapman-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
}

.mapman-stats div {
  background: rgba(255, 255, 255, 0.85);
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(27, 128, 238, 0.12);
  display: grid;
  gap: 4px;
  animation: pop-in 0.9s ease both;
}

.mapman-stats div strong,
.mapman-stats div span {
  animation: pop-text 0.7s ease both;
}

.mapman-stats strong {
  font-size: 0.95rem;
}

.mapman-stats span {
  font-size: 0.8rem;
  color: var(--neutral-2);
}

.mapman-features {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.mapman-orbit {
  position: absolute;
  top: -20px;
  right: 10px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px dashed rgba(27, 128, 238, 0.25);
  animation: spin 16s linear infinite, pulse 6s ease-in-out infinite;
}

.mapman-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  padding: 16px 18px;
  border: 1px solid rgba(26, 35, 51, 0.06);
  box-shadow: 0 16px 30px rgba(11, 18, 32, 0.08);
  animation: slide-in 0.9s ease both;
  min-height: 110px;
  display: grid;
  align-content: center;
  transition: transform 0.2s ease;
}

.mapman-card h3,
.mapman-card p {
  animation: pop-text 0.7s ease both;
}

.mapman-card:hover {
  transform: translateY(-4px) scale(1.01);
}

.mapman-card:active {
  transform: translateY(1px) scale(0.99);
}

.mapman-card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.mapman-card p {
  color: var(--neutral-2);
  font-size: 0.9rem;
}

.mapman-pill {
  justify-self: start;
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(26, 35, 51, 0.06);
  box-shadow: 0 16px 30px rgba(11, 18, 32, 0.08);
  font-size: 0.9rem;
  animation: slide-in 0.9s ease both;
  min-height: 110px;
  display: grid;
  align-content: center;
}

.contact {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
  align-items: start;
}

.contact-card {
  background: var(--white);
  padding: 24px;
  border-radius: 20px;
  border: 1px solid rgba(26, 35, 51, 0.08);
  box-shadow: 0 12px 40px rgba(11, 18, 32, 0.08);
  animation: fade-up 0.7s ease both;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.contact-card h3,
.contact-card p,
.contact-card label,
.contact-card button,
.contact-details div {
  animation: pop-text 0.7s ease both;
}

.contact-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(11, 18, 32, 0.12);
}

.contact-card:active {
  transform: translateY(1px) scale(0.99);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.form-grid label {
  display: grid;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--neutral-2);
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(26, 35, 51, 0.12);
  background: #f8fbff;
  font-family: inherit;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.form-grid input:active,
.form-grid select:active,
.form-grid textarea:active {
  transform: scale(0.99);
  box-shadow: 0 10px 24px rgba(27, 128, 238, 0.12);
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: 2px solid rgba(27, 128, 238, 0.2);
  border-color: rgba(27, 128, 238, 0.5);
}

.form-grid .full {
  grid-column: 1 / -1;
}

.contact-details {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  font-size: 0.95rem;
}

.whatsapp {
  position: fixed;
  right: 28px;
  bottom: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 999px;
  background: #18b76a;
  color: var(--white);
  box-shadow: 0 16px 30px rgba(24, 183, 106, 0.35);
  font-size: 0.85rem;
  z-index: 20;
  animation: pulse 2.6s ease-in-out infinite, float 8s ease-in-out infinite;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.whatsapp:active {
  transform: translateY(1px) scale(0.98);
  box-shadow: 0 12px 24px rgba(24, 183, 106, 0.28);
}

.wa-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  object-fit: contain;
  padding: 4px;
}

.footer {
  padding: 40px 6vw 60px;
  background: var(--neutral-1);
  color: var(--white);
  display: grid;
  gap: 12px;
  animation: fade-up 0.8s ease both;
  animation-delay: 0.5s;
}

.footer small {
  color: var(--neutral-3);
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
}

.footer-grid > div {
  animation: pop-text 0.7s ease both;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  animation: pop-text 0.7s ease both;
}

.footer-brand img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 10px 20px rgba(27, 128, 238, 0.18);
}

.footer h4 {
  font-size: 1rem;
  margin-bottom: 10px;
  animation: pop-text 0.7s ease both;
}

.footer p,
.footer li {
  color: var(--neutral-3);
  font-size: 0.9rem;
  line-height: 1.6;
  animation: pop-text 0.7s ease both;
}

.footer ul {
  list-style: none;
  display: grid;
  gap: 6px;
}

@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pop-in {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes text-rise {
  0% {
    opacity: 0;
    transform: translateY(14px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes rise-in {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pop-text {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
  60% {
    opacity: 1;
    transform: translateY(-2px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slide-in {
  0% {
    opacity: 0;
    transform: translateX(18px);
  }
  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes drift {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(18px);
  }
}

@keyframes shimmer {
  0%, 100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes float-card {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes glow {
  0%, 100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes ambient {
  0%, 100% {
    background-position: 0% 0%, 100% 0%, 0% 0%;
  }
  50% {
    background-position: 10% 15%, 85% 12%, 0% 0%;
  }
}

@keyframes drop-in {
  0% {
    opacity: 0;
    transform: translateY(-12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.04);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(14px);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .hero {
    padding-top: 40px;
  }

  section {
    padding: 64px 6vw;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .mapman-orbit {
    display: none;
  }

  .whatsapp span:first-child {
    display: none;
  }

  .hero::before {
    right: -160px;
    width: 300px;
    height: 300px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
