/* ================================================================
   KervianSync — styles.css
   Paleta: Navy #1B2458 | Blue #3B6EF6 | Purple #8B3FE8 | Teal #06D6A0
   ================================================================ */

/* ---- Reset & base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --navy:          #1B2458;
  --navy-dark:     #111840;
  --navy-light:    #2A3570;
  --blue:          #3B6EF6;
  --blue-light:    #5D8BFF;
  --purple:        #8B3FE8;
  --purple-light:  #A55FF5;
  --teal:          #06D6A0;
  --teal-dark:     #04B885;

  --grad-main:  linear-gradient(135deg, #3B6EF6 0%, #8B3FE8 100%);
  --grad-dark:  linear-gradient(135deg, #111840 0%, #1B2458 50%, #2A1860 100%);
  --grad-hero:  linear-gradient(140deg, #0C1230 0%, #1B2458 40%, #2A1860 75%, #180A38 100%);

  --white:       #FFFFFF;
  --off-white:   #F8F9FF;
  --light-gray:  #F0F4FF;
  --border:      #E4E8F5;
  --text:        #1B2458;
  --text-muted:  #6B7280;

  --sh-sm: 0 1px 4px rgba(0,0,0,.07);
  --sh-md: 0 4px 18px rgba(27,36,88,.11);
  --sh-lg: 0 8px 36px rgba(27,36,88,.15);
  --sh-xl: 0 16px 64px rgba(27,36,88,.20);

  --r:    12px;
  --r-lg: 20px;
  --r-xl: 28px;

  --ease: 0.3s ease;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

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

h1,h2,h3,h4 { font-weight: 700; line-height: 1.2; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; transition: color var(--ease); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

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

.section { padding: 96px 0; }
.section-dark  { background: var(--grad-dark); color: var(--white); }
.section-light { background: var(--off-white); }

/* ---- Utilities ---- */
.gradient-text {
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-white      { color: var(--white); }
.text-muted-white{ color: rgba(255,255,255,.6); }

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg,rgba(59,110,246,.1),rgba(139,63,232,.1));
  border: 1px solid rgba(59,110,246,.2);
  color: var(--blue);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}

.section-dark .section-tag {
  background: rgba(59,110,246,.2);
  border-color: rgba(59,110,246,.4);
  color: var(--blue-light);
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-title {
  font-size: clamp(1.75rem,3vw,2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
  letter-spacing: -.03em;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.section-text {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--ease);
  text-decoration: none;
  white-space: nowrap;
  font-family: var(--font);
}

.btn-lg   { padding: 15px 32px; font-size: 1rem; border-radius: 10px; }
.btn-full { width: 100%; }

.btn-primary {
  background: var(--grad-main);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(59,110,246,.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(59,110,246,.42);
  color: var(--white);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.3);
}
.btn-outline:hover {
  background: rgba(255,255,255,.1);
  border-color: rgba(255,255,255,.6);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,.35);
}
.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy);
  transform: translateY(-2px);
}

.btn-teal {
  background: var(--teal);
  color: var(--navy-dark);
  font-weight: 700;
}
.btn-teal:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(6,214,160,.38);
}

.btn-loading { display: none; }
.btn.loading .btn-text    { display: none; }
.btn.loading .btn-loading { display: inline; }
.btn:disabled { opacity: .65; cursor: not-allowed; transform: none !important; }

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

.navbar.scrolled {
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 12px 0;
  box-shadow: 0 1px 0 rgba(0,0,0,.06), var(--sh-sm);
}

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

.nav-logo { flex-shrink: 0; display: flex; align-items: center; }

/* Logo completo — solo visible al hacer scroll */
.nav-logo .logo-img {
  height: 36px;
  width: auto;
  transition: all var(--ease);
  display: none;
}
.navbar.scrolled .nav-logo .logo-img { display: block; }

/* Badge KS — visible en hero oscuro, oculto al hacer scroll */
.logo-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(59,110,246,.25), rgba(139,63,232,.25));
  border: 1px solid rgba(255,255,255,.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--white);
  transition: all var(--ease);
}
.navbar.scrolled .logo-fallback { display: none; }

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  padding: 8px 14px;
  font-size: .9375rem;
  font-weight: 500;
  border-radius: 8px;
  transition: all var(--ease);
}

.navbar:not(.scrolled) .nav-links a { color: rgba(255,255,255,.85); }
.navbar:not(.scrolled) .nav-links a:hover {
  color: var(--white);
  background: rgba(255,255,255,.1);
}

.navbar.scrolled .nav-links a { color: var(--text); }
.navbar.scrolled .nav-links a:hover {
  color: var(--blue);
  background: rgba(59,110,246,.06);
}

.nav-cta { margin-left: 8px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}

.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--ease);
}

.navbar.scrolled .hamburger span { background: var(--navy); }

.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--grad-hero);
  padding-top: 80px;
}

.hero-bg { position: absolute; inset: 0; overflow: hidden; }

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .14;
  animation: floatOrb 9s ease-in-out infinite;
}

.hero-orb-1 { width:600px;height:600px;background:var(--blue);  top:-200px;right:-80px;  animation-delay:0s; }
.hero-orb-2 { width:450px;height:450px;background:var(--purple);bottom:-120px;left:-80px;animation-delay:-4s; }
.hero-orb-3 { width:320px;height:320px;background:var(--teal);  top:50%;left:50%;transform:translate(-50%,-50%);animation-delay:-8s;opacity:.07; }

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(59,110,246,.06) 1px,transparent 1px),
    linear-gradient(90deg,rgba(59,110,246,.06) 1px,transparent 1px);
  background-size: 60px 60px;
}

.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  opacity: .35;
}

@keyframes floatOrb {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-28px) scale(1.06); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 80px 24px;
  max-width: 820px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.09);
  border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.88);
  font-size: .8125rem;
  font-weight: 500;
  padding: 8px 18px;
  border-radius: 100px;
  margin-bottom: 32px;
  backdrop-filter: blur(10px);
}

.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--teal);
  border-radius: 50%;
  animation: pulseDot 2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%,100% { opacity:1; transform:scale(1); }
  50%     { opacity:.5; transform:scale(1.4); }
}

.hero-title {
  font-size: clamp(2.25rem,6vw,4.5rem);
  font-weight: 900;
  color: var(--white);
  letter-spacing: -.04em;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1rem,2vw,1.2rem);
  color: rgba(255,255,255,.72);
  line-height: 1.75;
  margin-bottom: 40px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-scroll { position:absolute;bottom:40px;left:50%;transform:translateX(-50%);z-index:1; }

.scroll-indicator {
  width: 24px; height: 40px;
  border: 2px solid rgba(255,255,255,.28);
  border-radius: 12px;
  position: relative;
}

.scroll-indicator::after {
  content: '';
  position: absolute;
  top: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 8px;
  background: rgba(255,255,255,.55);
  border-radius: 2px;
  animation: scrollBounce 2.2s ease-in-out infinite;
}

@keyframes scrollBounce {
  0%,100% { top:6px; opacity:1; }
  50%     { top:18px; opacity:.3; }
}

/* ================================================================
   STATS BAR
   ================================================================ */
.stats-bar {
  background: var(--navy);
  padding: 52px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 32px;
  text-align: center;
}

.stat-item { color: var(--white); }

.stat-number-wrap {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 2px;
  margin-bottom: 6px;
}

.stat-number {
  font-size: 2.75rem;
  font-weight: 800;
  letter-spacing: -.04em;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
}

.stat-suffix {
  font-size: 1.5rem;
  font-weight: 700;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  display: block;
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  font-weight: 500;
}

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

.about-values {
  margin-top: 36px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.value-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.value-icon {
  font-size: 1.375rem;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-gray);
  border-radius: 12px;
  flex-shrink: 0;
}

.value-item strong { display:block; margin-bottom:4px; color:var(--navy); font-weight:600; }
.value-item p { font-size:.9rem; color:var(--text-muted); margin:0; }

.about-card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-card {
  padding: 28px 24px;
  border-radius: var(--r-lg);
  color: var(--white);
  transition: transform var(--ease);
}
.about-card:hover { transform: translateY(-4px); }

.about-card-icon { font-size: 1.875rem; margin-bottom: 12px; }
.about-card strong { display:block; font-size:1rem; margin-bottom:6px; }
.about-card p { font-size:.85rem; opacity:.82; margin:0; }

.about-card-blue   { background: linear-gradient(135deg,#3B6EF6,#2954D9); }
.about-card-purple { background: linear-gradient(135deg,#8B3FE8,#6B28C4); }
.about-card-teal   { background: linear-gradient(135deg,#06D6A0,#04B885); }
.about-card-dark   { background: linear-gradient(135deg,#1B2458,#111840); }

/* ================================================================
   PRODUCTS
   ================================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 32px;
  max-width: 920px;
  margin: 0 auto;
}

.product-card {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: all var(--ease);
}
.product-card:hover {
  border-color: rgba(59,110,246,.42);
  transform: translateY(-4px);
  box-shadow: 0 20px 56px rgba(0,0,0,.32);
}

.product-card-inner { padding: 40px 36px; }

.product-logo { margin-bottom: 20px; min-height: 64px; display:flex; align-items:center; }
.product-logo img { height: 60px; width: auto; filter: drop-shadow(0 4px 12px rgba(0,0,0,.2)); }

.product-logo-fallback { display: none; }
.product-logo-text {
  font-size: 2rem;
  font-weight: 800;
  color: var(--white);
}
.product-logo-text .teal { color: var(--teal); }

.product-badge {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .05em;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.product-badge-coming {
  background: rgba(6,214,160,.18);
  color: var(--teal);
  border: 1px solid rgba(6,214,160,.3);
}

.product-name    { font-size:1.875rem; font-weight:800; color:var(--white); margin-bottom:4px; }
.product-tagline { color:var(--teal); font-size:.9375rem; font-weight:500; margin-bottom:18px; font-style:italic; }
.product-desc    { color:rgba(255,255,255,.62); font-size:.9rem; line-height:1.75; margin-bottom:22px; }

.product-features { margin-bottom: 28px; }
.product-features li {
  color: rgba(255,255,255,.78);
  font-size: .875rem;
  padding: 6px 0;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.product-features li:last-child { border-bottom: none; }
.feat-check { color: var(--teal); font-weight: 700; flex-shrink: 0; }

.product-card-placeholder { background: rgba(255,255,255,.03); }

.product-coming {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  height: 100%;
  min-height: 340px;
}
.coming-icon { font-size: 3rem; margin-bottom: 20px; animation: floatOrb 4s ease-in-out infinite; }
.product-coming h3 { font-size:1.5rem; color:var(--white); margin-bottom:12px; }
.product-coming p  { color:rgba(255,255,255,.52); font-size:.9375rem; line-height:1.75; margin-bottom:28px; max-width:240px; }

/* ================================================================
   SERVICES
   ================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 32px 28px;
  transition: all var(--ease);
}
.service-card:hover {
  border-color: var(--blue);
  box-shadow: var(--sh-lg);
  transform: translateY(-4px);
}

.service-icon { font-size: 2.25rem; margin-bottom: 18px; display: block; }
.service-card h3 { font-size:1.0625rem; font-weight:700; color:var(--navy); margin-bottom:10px; }
.service-card p  { font-size:.9rem; color:var(--text-muted); line-height:1.75; }

/* ================================================================
   WHY KERVIANSYNC
   ================================================================ */
.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.why-features { margin-top:32px; display:flex; flex-direction:column; gap:22px; }

.why-feature { display:flex; gap:16px; align-items:flex-start; }

.why-check {
  width: 28px; height: 28px;
  background: var(--grad-main);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.why-feature strong { display:block; color:var(--navy); margin-bottom:4px; font-weight:600; }
.why-feature p { font-size:.9rem; color:var(--text-muted); margin:0; }

/* Diagram */
.why-visual { display:flex; align-items:center; justify-content:center; }

.why-diagram {
  position: relative;
  width: 380px; height: 380px;
}

.diagram-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 96px; height: 96px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-lg);
  z-index: 2;
  border: 2px solid var(--border);
  overflow: hidden;
}
.diagram-center img { width: 64px; height: auto; }
.diagram-center-fallback {
  display: none;
  font-size: 1.5rem;
  font-weight: 900;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.diagram-orbit {
  position: absolute;
  top: 50%; left: 50%;
  width: 300px; height: 300px;
  transform: translate(-50%,-50%);
  border: 1px dashed rgba(59,110,246,.2);
  border-radius: 50%;
  animation: spinOrbit 18s linear infinite;
}

@keyframes spinOrbit { to { transform: translate(-50%,-50%) rotate(360deg); } }

.diagram-node {
  position: absolute;
  width: 74px; height: 74px;
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: var(--sh-md);
  transition: all var(--ease);
  top: 50%; left: 50%;
}

.diagram-node:hover {
  border-color: var(--blue);
  box-shadow: var(--sh-lg);
  transform: scale(1.12) !important;
  z-index: 3;
}

.node-icon  { font-size: 1.375rem; }
.node-label { font-size: .625rem; font-weight: 600; color: var(--text-muted); margin-top: 3px; }

/* ================================================================
   CONTACT
   ================================================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.65fr;
  gap: 80px;
  align-items: flex-start;
}

.contact-details { margin-top:32px; display:flex; flex-direction:column; gap:22px; }

.contact-item { display:flex; gap:16px; align-items:flex-start; }

.contact-icon {
  font-size: 1.25rem;
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-gray);
  border-radius: 10px;
  flex-shrink: 0;
}

.contact-item strong { display:block; color:var(--navy); font-weight:600; margin-bottom:2px; }
.contact-item p { font-size:.9rem; color:var(--text-muted); margin:0; }
.contact-item a { color:var(--blue); }
.contact-item a:hover { text-decoration:underline; }

.social-links { display:flex; gap:12px; margin-top:32px; }

.social-link {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--light-gray);
  border-radius: 10px;
  color: var(--navy);
  transition: all var(--ease);
}
.social-link:hover {
  background: var(--grad-main);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59,110,246,.3);
}

/* Form */
.contact-form-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px;
  box-shadow: var(--sh-lg);
}

.form-row { display:grid; grid-template-columns:1fr 1fr; gap:16px; }

.form-group { margin-bottom: 20px; }

.form-group label {
  display: block;
  font-size: .875rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 8px;
}

.required { color: var(--blue); font-weight: 700; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-family: var(--font);
  font-size: .9375rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--ease), box-shadow var(--ease);
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(59,110,246,.12);
}

.form-group input.is-invalid,
.form-group select.is-invalid,
.form-group textarea.is-invalid {
  border-color: #EF4444;
  box-shadow: 0 0 0 3px rgba(239,68,68,.1);
}

.form-group textarea { resize: vertical; min-height: 120px; }

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath stroke='%236B7280' stroke-width='1.5' fill='none' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.form-footer { display:flex; flex-direction:column; gap:14px; }

.form-legal {
  font-size: .8125rem;
  color: var(--text-muted);
  text-align: center;
}
.form-legal a { color:var(--blue); text-decoration:underline; }

.form-message {
  font-size: .875rem;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  min-height: 0;
  transition: all var(--ease);
}
.form-message:empty { display: none; }
.form-message.success { background:rgba(6,214,160,.1); color:#059669; border:1px solid rgba(6,214,160,.3); }
.form-message.error   { background:rgba(239,68,68,.1); color:#DC2626; border:1px solid rgba(239,68,68,.28); }

/* Honeypot — invisible to humans, traps bots */
.honeypot {
  position: absolute;
  left: -9999px;
  top: -9999px;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}

/* ================================================================
   FOOTER
   ================================================================ */
.footer { background:var(--navy-dark); color:var(--white); padding: 72px 0 0; }

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

.footer-logo { height:44px; width:auto; margin-bottom:16px; background:rgba(255,255,255,0.08); border-radius:8px; padding:4px 10px; }
.footer-logo-fallback {
  display: none;
  font-size: 1.25rem;
  font-weight: 800;
  background: var(--grad-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.footer-brand p { font-size:.875rem; color:rgba(255,255,255,.58); line-height:1.65; }
.footer-tagline { margin-top:8px !important; color:rgba(255,255,255,.35) !important; font-size:.8125rem !important; }

.footer-col h4 {
  font-size: .8125rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
  margin-bottom: 20px;
}

.footer-col ul { display:flex; flex-direction:column; gap:10px; }
.footer-col ul li a { font-size:.9rem; color:rgba(255,255,255,.52); transition:color var(--ease); }
.footer-col ul li a:hover { color:var(--white); }

.footer-bottom {
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom p { font-size:.8125rem; color:rgba(255,255,255,.3); }

/* ================================================================
   ANIMATIONS
   ================================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s ease;
}
.fade-in.visible { opacity:1; transform:translateY(0); }

/* Stagger for service cards */
.services-grid .service-card:nth-child(2) { transition-delay:.1s; }
.services-grid .service-card:nth-child(3) { transition-delay:.2s; }
.services-grid .service-card:nth-child(4) { transition-delay:.1s; }
.services-grid .service-card:nth-child(5) { transition-delay:.2s; }
.services-grid .service-card:nth-child(6) { transition-delay:.3s; }

.products-grid .product-card:nth-child(2) { transition-delay:.12s; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
  .about-grid,
  .why-grid,
  .contact-grid { grid-template-columns:1fr; gap:48px; }
  .about-visual  { order:-1; }
  .why-visual    { display:none; }
  .stats-grid    { grid-template-columns:repeat(2,1fr); }
}

@media (max-width: 768px) {
  .section { padding:64px 0; }
  .nav-links, .nav-cta { display:none; }
  .hamburger { display:flex; }

  .nav-links.mobile-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--navy-dark);
    padding: 96px 28px 32px;
    gap: 6px;
    z-index: 999;
  }

  .nav-links.mobile-open li a {
    display: block;
    color: var(--white);
    font-size: 1.25rem;
    padding: 14px 18px;
    border-radius: 12px;
  }
  .nav-links.mobile-open li a:hover { background:rgba(255,255,255,.08); }

  .hero-title { font-size: 2.25rem; }
  .hero-ctas  { flex-direction:column; align-items:center; }

  .services-grid { grid-template-columns:1fr; }
  .products-grid { grid-template-columns:1fr; }

  .about-card-grid { grid-template-columns:1fr 1fr; }

  .footer-grid { grid-template-columns:1fr 1fr; gap:32px; }
  .footer-bottom { flex-direction:column; text-align:center; }

  .form-row { grid-template-columns:1fr; }
  .contact-form-wrap { padding:28px 20px; }

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

@media (max-width: 480px) {
  .container { padding:0 16px; }
  .hero-title { font-size:1.875rem; }
  .about-card-grid { grid-template-columns:1fr; }
  .footer-grid { grid-template-columns:1fr; }
  .stats-grid { grid-template-columns:1fr 1fr; gap:20px; }
  .stat-number { font-size:2.25rem; }
}

/* ================================================================
   REDUCED MOTION
   ================================================================ */
@media (prefers-reduced-motion: reduce) {
  *,*::before,*::after { animation-duration:.01ms !important; transition-duration:.01ms !important; }
  .fade-in { opacity:1; transform:none; }
}
