/* ============================================
   AGENTICLATAM - Brand Stylesheet
   Azul #1e4364 | Negro #1c1c1b | Gris #7b7b7a
   ============================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #1e4364;
  --blue-light: #2f6394;
  --blue-dark: #132b41;
  --black: #1c1c1b;
  --gray: #7b7b7a;
  --gray-light: #b0b0af;
  --gray-bg: #f6f6f5;
  --white: #ffffff;
  --font: 'Inter', system-ui, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --radius: 16px;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  color: var(--black);
  line-height: 1.6;
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; transition: color .3s var(--ease); }
ul { list-style: none; }
img { max-width: 100%; display: block; }
em { font-style: normal; color: var(--blue); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ============================================
   PRELOADER
   ============================================ */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  background: var(--white);
  transition: opacity .6s var(--ease), visibility .6s;
}

.preloader.done { opacity: 0; visibility: hidden; }

.preloader-logo {
  width: 76px;
  animation: logoPulse 1.6s var(--ease) infinite;
}

@keyframes logoPulse {
  0%, 100% { transform: scale(1); opacity: .85; }
  50% { transform: scale(1.09); opacity: 1; }
}

.preloader-bar {
  width: 150px;
  height: 2px;
  background: #e6e6e5;
  border-radius: 2px;
  overflow: hidden;
}

.preloader-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--blue);
  animation: loadBar 1.1s var(--ease) forwards;
}

@keyframes loadBar { to { width: 100%; } }

/* ============================================
   SCROLL PROGRESS + SPOTLIGHT
   ============================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--blue), var(--blue-light));
  z-index: 1100;
  transition: width .1s linear;
}

.spotlight {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(47, 99, 148, .12) 0%, transparent 65%);
  transition: opacity .4s var(--ease);
}

/* ============================================
   NAVBAR
   ============================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 22px 0;
  transition: all .4s var(--ease);
}

.navbar.scrolled {
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(16px) saturate(1.6);
  -webkit-backdrop-filter: blur(16px) saturate(1.6);
  padding: 12px 0;
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}

.nav-container { display: flex; align-items: center; justify-content: space-between; }

.nav-logo { display: block; position: relative; height: 26px; }

.nav-logo-img {
  height: 100%;
  width: auto;
  transition: opacity .4s var(--ease);
}

.nav-logo-img--dark { position: absolute; inset: 0; opacity: 0; }
.navbar.scrolled .nav-logo-img--light { opacity: 0; }
.navbar.scrolled .nav-logo-img--dark { opacity: 1; }

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

.nav-link {
  font-size: .875rem;
  font-weight: 500;
  letter-spacing: .3px;
  color: rgba(255, 255, 255, .82);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -5px; left: 0;
  width: 0; height: 1.5px;
  background: currentColor;
  transition: width .35s var(--ease);
}

.nav-link:hover::after { width: 100%; }
.nav-link:hover { color: var(--white); }
.navbar.scrolled .nav-link { color: var(--black); }
.navbar.scrolled .nav-link:hover { color: var(--blue); }

.nav-link--cta {
  background: var(--white);
  color: var(--blue) !important;
  padding: 9px 22px;
  border-radius: 100px;
  font-weight: 600;
  transition: all .35s var(--ease);
}

.nav-link--cta::after { display: none; }
.nav-link--cta:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
.navbar.scrolled .nav-link--cta { background: var(--blue); color: var(--white) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all .35s var(--ease);
}

.navbar.scrolled .nav-toggle span { background: var(--black); }

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(150deg, #0f2438 0%, var(--blue-dark) 35%, var(--blue) 100%);
}

/* Aurora mesh */
.aurora { position: absolute; inset: 0; overflow: hidden; }

.aurora-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .5;
  will-change: transform;
}

.aurora-blob--1 {
  width: 620px; height: 620px;
  background: radial-gradient(circle, #2f6394, transparent 70%);
  top: -14%; left: -8%;
  animation: drift1 22s ease-in-out infinite;
}

.aurora-blob--2 {
  width: 540px; height: 540px;
  background: radial-gradient(circle, #3d7fbd, transparent 70%);
  bottom: -18%; right: -6%;
  animation: drift2 26s ease-in-out infinite;
}

.aurora-blob--3 {
  width: 440px; height: 440px;
  background: radial-gradient(circle, #7b7b7a, transparent 70%);
  top: 42%; left: 46%;
  opacity: .25;
  animation: drift3 30s ease-in-out infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(90px, 70px) scale(1.14); }
}
@keyframes drift2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, -60px) scale(1.2); }
}
@keyframes drift3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-70px, 60px) scale(.85); }
}

.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
}

.hero-watermark {
  position: absolute;
  right: -4%;
  top: 50%;
  width: 46vw;
  max-width: 620px;
  opacity: .06;
  transform: translateY(-50%);
  will-change: transform;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 140px;
  background: linear-gradient(to top, var(--white), transparent);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  margin: 0 auto;
  padding: 140px 24px 130px;
  text-align: center;
}

.hero-title {
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  font-weight: 700;
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 26px;
  letter-spacing: -1.2px;
  text-wrap: balance;
}

/* Word-by-word blur reveal */
.hero-title .word {
  display: inline-block;
  opacity: 0;
  filter: blur(10px);
  transform: translateY(28px);
  animation: wordIn .9s var(--ease) forwards;
  animation-delay: calc(var(--i) * .045s + .15s);
}

@keyframes wordIn {
  to { opacity: 1; filter: blur(0); transform: translateY(0); }
}

.hero-title .word--accent { color: rgba(255, 255, 255, .52); }

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255, 255, 255, .72);
  line-height: 1.75;
  margin: 0 auto 40px;
  max-width: 660px;
  text-wrap: pretty;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* Scroll hint */
.scroll-hint {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.scroll-hint-line {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,.5));
  position: relative;
  overflow: hidden;
}

.scroll-hint-line::after {
  content: '';
  position: absolute;
  top: -100%; left: 0;
  width: 100%; height: 100%;
  background: var(--white);
  animation: scrollLine 2s var(--ease) infinite;
}

@keyframes scrollLine {
  0% { top: -100%; } 60%, 100% { top: 100%; }
}

.scroll-hint-text {
  font-size: .65rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,.45);
}

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 14px 30px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: .9375rem;
  font-weight: 600;
  letter-spacing: .2px;
  cursor: pointer;
  border: 1.5px solid transparent;
  position: relative;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  will-change: transform;
}

.btn span, .btn svg { position: relative; z-index: 1; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(4px); }

/* Liquid fill */
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  transform: scale(0);
  transition: transform .5s var(--ease);
  z-index: 0;
}

.btn:hover::before { transform: scale(1); }

.btn--primary { background: var(--white); color: var(--blue); border-color: var(--white); }
.btn--primary::before { background: var(--blue-light); }
.btn--primary:hover { color: var(--white); border-color: var(--blue-light); box-shadow: 0 14px 34px rgba(47,99,148,.4); }

.btn--outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.32); }
.btn--outline::before { background: rgba(255,255,255,.12); }
.btn--outline:hover { border-color: var(--white); }

.btn--white { background: var(--white); color: var(--blue); border-color: var(--white); }
.btn--white::before { background: var(--blue-dark); }
.btn--white:hover { color: var(--white); border-color: var(--blue-dark); }

.btn:disabled { pointer-events: none; opacity: .75; }

.btn--whatsapp {
  width: 100%;
  background: linear-gradient(135deg, #25d366, #12a150);
  color: var(--white);
  border-color: transparent;
}
.btn--whatsapp::before { background: linear-gradient(135deg, #1fbb59, #0c8442); }
.btn--whatsapp:hover { box-shadow: 0 14px 34px rgba(18,161,80,.32); }
.btn--whatsapp:hover svg { transform: scale(1.12); }

/* ============================================
   MARQUEE
   ============================================ */
.marquee {
  background: var(--white);
  border-top: 1px solid #eeeeed;
  border-bottom: 1px solid #eeeeed;
  padding: 20px 0;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee-track { display: flex; width: max-content; animation: scrollX 34s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; align-items: center; gap: 30px; padding-right: 30px; }

.marquee-group span {
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--gray);
  white-space: nowrap;
}

.marquee-group i { width: 5px; height: 5px; border-radius: 50%; background: var(--blue); opacity: .45; flex-shrink: 0; }

@keyframes scrollX { to { transform: translateX(-50%); } }

/* ============================================
   SECTIONS
   ============================================ */
.section { padding: 110px 0; position: relative; }
.section--light { background: var(--white); }
.section--dark { background: var(--black); overflow: hidden; }
.section--cta { background: linear-gradient(140deg, var(--blue-dark), var(--blue) 60%, var(--blue-light)); text-align: center; padding: 100px 0; overflow: hidden; }

.section-watermark {
  position: absolute;
  left: -6%; bottom: -10%;
  width: 34vw;
  max-width: 460px;
  opacity: .035;
  pointer-events: none;
}

.section-header { margin-bottom: 64px; }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 2.6px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.tag-line { width: 30px; height: 1.5px; background: currentColor; display: inline-block; }
.section-tag--light { color: var(--gray-light); }

.section-title {
  font-size: clamp(1.85rem, 3.8vw, 2.7rem);
  font-weight: 700;
  color: var(--black);
  line-height: 1.15;
  max-width: 660px;
  letter-spacing: -.8px;
}

.section-title--light { color: var(--white); }
.section-title--light em { color: var(--gray-light); }

/* ============================================
   REVEAL ANIMATIONS
   ============================================ */
.reveal-up, .reveal-scale {
  opacity: 0;
  transition: opacity .85s var(--ease) var(--d, 0s), transform .85s var(--ease) var(--d, 0s), filter .85s var(--ease) var(--d, 0s);
  will-change: opacity, transform;
}

.reveal-up { transform: translateY(34px); filter: blur(6px); }
.reveal-scale { transform: scale(.94) translateY(24px); filter: blur(6px); }

.reveal-up.in, .reveal-scale.in {
  opacity: 1;
  transform: none;
  filter: blur(0);
}

/* ============================================
   ABOUT
   ============================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: start; }

.about-text p { font-size: 1.0625rem; color: var(--gray); line-height: 1.85; margin-bottom: 20px; }
.about-text p:first-child { color: var(--black); font-weight: 500; font-size: 1.125rem; }

.counters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
  padding-top: 34px;
  border-top: 1px solid #ececeb;
}

.counter-num, .counter-suffix {
  font-size: 2.1rem;
  font-weight: 700;
  color: var(--blue);
  letter-spacing: -1.5px;
  line-height: 1;
}

.counter p { font-size: .8125rem; color: var(--gray); margin-top: 8px; line-height: 1.4; }

.about-visual { display: flex; flex-direction: column; gap: 20px; }

.about-logo-card {
  position: relative;
  background: var(--gray-bg);
  border: 1px solid #ececeb;
  border-radius: var(--radius);
  padding: 46px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}

.about-logo-card:hover { box-shadow: 0 22px 60px rgba(30,67,100,.14); }
.about-logo { width: 100%; max-width: 260px; transform: translateZ(38px); }

.card-glow {
  position: absolute;
  inset: -40%;
  background: conic-gradient(from 0deg, transparent, rgba(47,99,148,.13), transparent 42%);
  animation: spin 9s linear infinite;
  opacity: 0;
  transition: opacity .5s var(--ease);
}

.about-logo-card:hover .card-glow { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.about-stats { display: flex; flex-direction: column; gap: 14px; }

.stat-card {
  position: relative;
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding: 22px 24px;
  background: var(--gray-bg);
  border: 1px solid #ececeb;
  border-radius: 14px;
  overflow: hidden;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}

.stat-card:hover { transform: translateX(6px); border-color: rgba(30,67,100,.22); box-shadow: 0 12px 34px rgba(0,0,0,.06); }
.stat-icon { color: var(--blue); flex-shrink: 0; }
.stat-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.stat-card p { font-size: .875rem; color: var(--gray); line-height: 1.55; }

/* Spotlight hover effect */
[data-spot] { position: relative; }

[data-spot]::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity .45s var(--ease);
  pointer-events: none;
  background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(47,99,148,.1), transparent 65%);
}

[data-spot]:hover::after { opacity: 1; }

/* ============================================
   SERVICES
   ============================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.services-grid + .services-group { margin-top: 64px; }

.services-group {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
  font-size: .8125rem;
  font-weight: 600;
  letter-spacing: 2.2px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}

.services-group-line {
  width: 34px;
  height: 1px;
  background: var(--blue-light);
  flex-shrink: 0;
}

.service-card {
  position: relative;
  padding: 38px 34px 46px;
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .45s var(--ease), background .45s var(--ease), border-color .45s var(--ease);
}

.service-card::after {
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(255,255,255,.07), transparent 62%);
}

.service-card:hover {
  transform: translateY(-6px);
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
}

.service-number {
  font-size: .75rem;
  font-weight: 700;
  color: var(--blue-light);
  letter-spacing: 2px;
  margin-bottom: 18px;
}

.service-card h3 { font-size: 1.1875rem; font-weight: 600; color: var(--white); margin-bottom: 12px; }
.service-card p { font-size: .9375rem; color: var(--gray-light); line-height: 1.75; }

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  list-style: none;
}

.service-tags li {
  font-size: .75rem;
  color: rgba(255, 255, 255, .62);
  padding: 5px 11px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 100px;
  background: rgba(255, 255, 255, .03);
  transition: border-color .4s var(--ease), color .4s var(--ease);
}

.service-card:hover .service-tags li { border-color: rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .8); }

.service-arrow {
  position: absolute;
  bottom: 24px; right: 28px;
  color: var(--blue-light);
  opacity: 0;
  transform: translate(-8px, 8px);
  transition: all .45s var(--ease);
}

.service-card:hover .service-arrow { opacity: 1; transform: none; }

/* ============================================
   BENTO VALUES
   ============================================ */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.bento-item {
  position: relative;
  padding: 36px 34px;
  background: var(--gray-bg);
  border: 1px solid #ececeb;
  border-radius: var(--radius);
  overflow: hidden;
  transform-style: preserve-3d;
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .45s var(--ease);
}

.bento-item:hover { border-color: rgba(30,67,100,.2); box-shadow: 0 20px 50px rgba(0,0,0,.07); }
.bento-item--lg { grid-row: span 2; display: flex; flex-direction: column; justify-content: center; }

.value-icon { color: var(--blue); margin-bottom: 18px; }

.bento-item h3 { font-size: 1.1875rem; font-weight: 600; color: var(--black); margin-bottom: 10px; }
.bento-item p { font-size: .9375rem; color: var(--gray); line-height: 1.75; }

/* Isotipo watermark on cards */
.bento-item::before,
.service-card::before {
  content: '';
  position: absolute;
  right: -30px; bottom: -30px;
  width: 150px; height: 130px;
  background: url('assets/iso-blue.png') no-repeat right bottom / contain;
  opacity: .05;
  pointer-events: none;
  transition: transform .6s var(--ease), opacity .6s var(--ease);
}

.service-card::before { background-image: url('assets/iso-white.png'); opacity: .04; }

.bento-item > *,
.service-card > * { position: relative; z-index: 1; }

.bento-item:hover::before,
.service-card:hover::before { transform: scale(1.12) rotate(-6deg); opacity: .09; }
.service-card:hover::before { opacity: .07; }

/* ============================================
   CTA
   ============================================ */
.section--cta .aurora-blob { opacity: .35; }
.cta-content { position: relative; z-index: 2; }
.cta-logo { width: 62px; margin: 0 auto 26px; opacity: .92; animation: floaty 5s ease-in-out infinite; }

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-11px); }
}

.cta-content h2 {
  font-size: clamp(1.85rem, 3.8vw, 2.7rem);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 16px;
  letter-spacing: -.8px;
  line-height: 1.15;
}

.cta-content h2 em { color: rgba(255,255,255,.55); }

.cta-content p {
  font-size: 1.0625rem;
  color: rgba(255,255,255,.75);
  margin: 0 auto 34px;
  max-width: 520px;
}

/* ============================================
   CONTACT
   ============================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 70px; align-items: start; }
.contact-info > p { font-size: 1.0625rem; color: var(--gray); line-height: 1.85; margin-bottom: 32px; }
.contact-details { display: flex; flex-direction: column; gap: 14px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .9375rem;
  color: var(--black);
  padding: 12px 18px;
  border: 1px solid #ececeb;
  border-radius: 12px;
  transition: all .35s var(--ease);
}

.contact-item svg { color: var(--blue); flex-shrink: 0; }
a.contact-item:hover { border-color: var(--blue); transform: translateX(5px); color: var(--blue); }

.contact-item--wa svg { color: #12a150; }
a.contact-item--wa:hover { border-color: #25d366; color: #0c8442; }

.contact-logo { width: 165px; margin-top: 40px; opacity: .5; transition: opacity .4s var(--ease); }
.contact-info:hover .contact-logo { opacity: 1; }

.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

.form-note { font-size: .8125rem; color: var(--gray); text-align: center; margin-top: -4px; }
.form-group { position: relative; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 18px 18px 8px;
  border: 1.5px solid #e4e4e3;
  border-radius: 12px;
  font-family: var(--font);
  font-size: .9375rem;
  color: var(--black);
  background: var(--white);
  transition: border-color .35s var(--ease), box-shadow .35s var(--ease);
}

.form-group label {
  position: absolute;
  left: 18px; top: 16px;
  font-size: .9375rem;
  color: var(--gray-light);
  pointer-events: none;
  transition: all .3s var(--ease);
}

.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(30,67,100,.09);
}

.form-group input:focus + label,
.form-group input:not(:placeholder-shown) + label,
.form-group textarea:focus + label,
.form-group textarea:not(:placeholder-shown) + label {
  top: 6px;
  font-size: .6875rem;
  font-weight: 600;
  letter-spacing: .4px;
  color: var(--blue);
}

.form-group textarea { resize: vertical; min-height: 118px; padding-top: 24px; }
.form-group textarea + label { top: 18px; }

/* ============================================
   FOOTER
   ============================================ */
.footer { background: var(--black); padding: 70px 0 0; position: relative; overflow: hidden; }

.footer-watermark {
  position: absolute;
  right: -4%; top: -30%;
  width: 30vw;
  max-width: 380px;
  opacity: .03;
  pointer-events: none;
}

.footer .container { position: relative; z-index: 1; }

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.footer-logo { width: 210px; margin-bottom: 18px; }
.footer-brand p { font-size: .875rem; color: var(--gray); line-height: 1.75; max-width: 330px; }

.footer-links h4 {
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 18px;
}

.footer-links li { margin-bottom: 11px; }
.footer-links a { font-size: .875rem; color: var(--gray); position: relative; }
.footer-links a:hover { color: var(--white); padding-left: 6px; }

.footer-bottom {
  padding: 24px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-bottom p { font-size: .8125rem; color: var(--gray); }

.footer-top {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.14);
  display: grid;
  place-items: center;
  color: var(--gray-light);
  transition: all .4s var(--ease);
}

.footer-top:hover { background: var(--blue); border-color: var(--blue); color: var(--white); transform: translateY(-4px); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 44px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-item--lg { grid-row: span 1; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; z-index: 1001; }

  .nav-menu {
    position: fixed;
    top: 0; right: -100%;
    width: 285px; height: 100svh;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 92px 32px 32px;
    gap: 26px;
    transition: right .5s var(--ease);
    box-shadow: -6px 0 40px rgba(0,0,0,.14);
  }

  .nav-menu.active { right: 0; }
  .nav-menu li { width: 100%; }
  .nav-menu .nav-link { color: var(--black); font-size: 1.0625rem; }
  .nav-menu .nav-link:hover { color: var(--blue); }
  .nav-menu .nav-link--cta { display: flex; background: var(--blue); color: var(--white) !important; width: 100%; justify-content: center; padding: 13px 22px; }

  .nav-toggle.active span { background: var(--black); }
  .nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

  .nav-logo { height: 20px; }

  .section { padding: 76px 0; }
  .services-grid, .bento, .form-row { grid-template-columns: 1fr; }
  .bento-item--lg { grid-row: span 1; }
  .hero-content { padding: 118px 24px 90px; }
  .hero-watermark { opacity: .04; width: 80vw; right: -22%; }
  .footer-content { grid-template-columns: 1fr; gap: 34px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .spotlight { display: none; }
  .counters { gap: 12px; }
  .counter-num, .counter-suffix { font-size: 1.7rem; }

}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .counters { grid-template-columns: 1fr; text-align: left; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .reveal-up, .reveal-scale, .hero-title .word { opacity: 1; transform: none; filter: none; }
}
