@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700;800;900&display=swap');

/* ═══════════════════════════════════════════════════════════
   NEST NEXUS — Design System 3.0
   Navy #0E2841  |  Teal #207888  |  White #FFFFFF
═══════════════════════════════════════════════════════════ */
:root {
  --navy:    #0E2841;
  --navy-d:  #081828;
  --teal:    #207888;
  --teal-l:  #4EC9C0;
  --white:   #FFFFFF;
  --off:     #F7F9FB;
  --border:  rgba(14,40,65,0.09);
  --muted:   #6B8099;
  --text:    #0E2841;
  --ease:    cubic-bezier(0.25, 0.8, 0.25, 1);
  /* compat aliases */
  --primary: #0E2841;
  --accent:  #207888;
  --bg-white: #FFFFFF;
  --text-secondary: #6B8099;
  --text-muted: #6B8099;
  --shadow: 0 2px 12px rgba(14,40,65,0.07);
  --shadow-strong: 0 8px 30px rgba(14,40,65,0.12);
  --transition: all 0.3s cubic-bezier(0.25,0.8,0.25,1);
}

/* ── Reset ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Montserrat', sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Layout ──────────────────────────────────────────────── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 2rem; }

/* ── Typography ──────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--navy);
}

/* ── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--off); }
::-webkit-scrollbar-thumb { background: var(--teal); border-radius: 3px; }

/* ═══════════════════════════════════════════════════════════
   BUTTONS
═══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.8rem;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.25s var(--ease);
  border: none;
  white-space: nowrap;
}

.btn-navy  { background: var(--navy); color: #fff; box-shadow: 0 4px 16px rgba(14,40,65,0.22); }
.btn-navy:hover  { background: #1a3a5c; transform: translateY(-2px); box-shadow: 0 6px 22px rgba(14,40,65,0.30); }

.btn-teal  { background: var(--teal); color: #fff; box-shadow: 0 4px 20px rgba(32,120,136,0.38); }
.btn-teal:hover  { background: #258a9c; transform: translateY(-2px); box-shadow: 0 6px 26px rgba(32,120,136,0.50); }

/* compat aliases */
.btn-primary { background: var(--navy); color: #fff; border: none; box-shadow: 0 4px 16px rgba(14,40,65,0.22); }
.btn-primary:hover { background: #1a3a5c; transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--navy); border: 1.5px solid var(--border); }
.btn-secondary:hover { border-color: var(--teal); color: var(--teal); transform: translateY(-2px); }

.btn-ghost-light { background: transparent; color: rgba(255,255,255,0.78); border: 1.5px solid rgba(255,255,255,0.18); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.42); color: #fff; transform: translateY(-2px); }

.btn-white { background: #fff; color: var(--navy); border: none; box-shadow: 0 4px 16px rgba(0,0,0,0.14); }
.btn-white:hover { background: var(--teal); color: #fff; transform: translateY(-2px); }

/* ═══════════════════════════════════════════════════════════
   BADGE
═══════════════════════════════════════════════════════════ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.85rem;
  background: rgba(14,40,65,0.05);
  border: 1px solid rgba(14,40,65,0.10);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-header { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-title  { font-size: 2.4rem; font-weight: 800; margin-bottom: 1rem; letter-spacing: -0.025em; }
.section-subtitle { color: var(--muted); font-size: 1rem; line-height: 1.7; }

/* ═══════════════════════════════════════════════════════════
   HEADER — Dual bar (contact strip + nav)  [CircuitCheck style]
═══════════════════════════════════════════════════════════ */
header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 1000;
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.35s ease;
}
header.scrolled { box-shadow: 0 2px 24px rgba(14,40,65,0.08); }

/* ── Top contact bar ─────────────────────────────────────── */
.header-top-bar {
  background: #fff;
  height: 38px;
  overflow: hidden;
  transition: height 0.38s cubic-bezier(0.4,0,0.2,1),
              opacity 0.28s ease;
  opacity: 1;
}
header.scrolled .header-top-bar { height: 0; opacity: 0; }

.header-top-bar .container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 38px;
  gap: 2rem;
  padding-right: 2rem;
}

.htb-item {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
  transition: color 0.2s ease;
}
.htb-item:hover { color: var(--navy); }
.htb-item i { color: var(--teal); font-size: 0.75rem; }

/* ── Main nav bar ────────────────────────────────────────── */
.header-main-bar .container {
  display: flex;
  align-items: center;
  height: 88px;
  padding-left: 300px;
  padding-right: 2rem;
  transition: height 0.38s cubic-bezier(0.4,0,0.2,1);
}
header.scrolled .header-main-bar .container { height: 60px; padding-left: 200px; }

/* ── Logo ────────────────────────────────────────────────── */
.logo-container {
  position: absolute;
  left: 1.5rem;
  top: 0;
  height: 100%;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  z-index: 10;
}

.logo-full    { height: 108px; width: auto; display: block; transition: all 0.35s ease; }
.logo-compact { height: 46px;  width: auto; display: none; transition: all 0.35s ease; }

header.scrolled .logo-full    { display: none; }
header.scrolled .logo-compact { display: block; }

#navbar-links { flex: 1; display: flex; align-items: center; justify-content: center; }
#navbar-links ul { display: flex; align-items: center; list-style: none; gap: 2.4rem; margin: 0; padding: 0; }

nav a {
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  transition: color 0.22s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  line-height: 1;
  position: relative;
}
nav a:hover, nav a.active { color: var(--navy); }
nav a::after { content: ''; position: absolute; bottom: -4px; left: 0; width: 0; height: 2px; background: var(--teal); transition: width 0.25s ease; border-radius: 2px; }
nav a:hover::after, nav a.active::after { width: 100%; }

#header-cta-btn { flex-shrink: 0; }

.hamburger { display: none; flex-direction: column; justify-content: space-between; width: 22px; height: 16px; background: transparent; border: none; cursor: pointer; z-index: 1100; }
.hamburger span { width: 100%; height: 2px; background: var(--navy); border-radius: 2px; transition: all 0.25s ease; }

/* Dropdown */
.has-dropdown { position: relative; }
.has-dropdown > a { display: inline-flex; align-items: center; gap: 4px; }
.has-dropdown > a .chevron { font-size: 0.6rem; opacity: 0.6; transition: transform 0.25s ease; }
.has-dropdown:hover > a .chevron { transform: rotate(180deg); }

.nav-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(14,40,65,0.12);
  padding: 0.5rem;
  min-width: 220px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 200;
}
.nav-dropdown::before {
  content: '';
  position: absolute;
  top: -6px; left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px; height: 10px;
  background: var(--white);
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.has-dropdown:hover .nav-dropdown { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }

.nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border-radius: 7px;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.2s ease;
  white-space: nowrap;
}
.nav-dropdown a i { width: 18px; text-align: center; color: var(--teal); }
.nav-dropdown a:hover { background: var(--off); color: var(--navy); }

/* ═══════════════════════════════════════════════════════════
   HERO — FULL SCREEN (Vercel/Linear inspired)
═══════════════════════════════════════════════════════════ */
/* ═══════════════════════════════════════════════════════════
   HERO — WHITE BACKGROUND  (Continental style — clean, bright)
═══════════════════════════════════════════════════════════ */
.hero {
  min-height: 100vh;
  background: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  padding: 200px 2rem 120px; /* extra top for tall header */
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(14,40,65,0.038) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  top: 25%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(32,120,136,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid rgba(32,120,136,0.22);
  background: rgba(32,120,136,0.07);
  padding: 0.38rem 1rem;
  border-radius: 50px;
  margin-bottom: 2rem;
  position: relative;
  z-index: 2;
}

.hero-h1 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.035em;
  color: var(--navy);          /* dark on white */
  margin-bottom: 1.5rem;
  max-width: 920px;
  position: relative;
  z-index: 2;
}

.hero-h1 .teal-word {
  background: linear-gradient(95deg, var(--teal) 0%, var(--teal-l) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: 1.1rem;
  color: var(--muted);          /* dark on white */
  max-width: 530px;
  margin: 0 auto 2.8rem;
  line-height: 1.75;
  position: relative;
  z-index: 2;
}

.hero-btns {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

/* Scrolling tech tags */
.hero-tags-bar {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  border-top: 1px solid rgba(14,40,65,0.06);
  padding: 1rem 0;
  overflow: hidden;
  background: rgba(14,40,65,0.02);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.hero-tags-track {
  display: flex;
  align-items: center;
  gap: 2.5rem;
  width: max-content;
  animation: tags-scroll 30s linear infinite;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(14,40,65,0.32);   /* dark tags on white */
  white-space: nowrap;
}
.hero-tag i { color: rgba(32,120,136,0.55); }

@keyframes tags-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ═══════════════════════════════════════════════════════════
   CODE WINDOW COMPONENT
═══════════════════════════════════════════════════════════ */
.code-window { width: 100%; max-width: 400px; border-radius: 10px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 20px 50px rgba(0,0,0,0.45); }
.cw-bar { background: #161B22; padding: 0.75rem 1rem; display: flex; align-items: center; gap: 0.5rem; border-bottom: 1px solid rgba(255,255,255,0.06); }
.cw-dot { width: 10px; height: 10px; border-radius: 50%; }
.cw-dot.r { background: #FF5F57; }
.cw-dot.y { background: #FFBD2E; }
.cw-dot.g { background: #28C840; }
.cw-title { font-size: 0.72rem; color: rgba(255,255,255,0.3); font-family: monospace; margin: 0 auto; }
.cw-body { background: #0D1117; padding: 1.2rem 1.5rem; font-family: 'Courier New', monospace; font-size: 0.78rem; line-height: 1.75; color: rgba(255,255,255,0.85); }
.cl { display: flex; gap: 1.2rem; }
.ln { color: rgba(255,255,255,0.18); min-width: 16px; text-align: right; user-select: none; }
.kw  { color: #FF7B72; }
.fn  { color: #79C0FF; }
.st  { color: #E6EDF3; }
.str { color: #A5D6FF; }
.cm  { color: rgba(255,255,255,0.28); }
.def { color: #D2A8FF; }
.sep { color: rgba(255,255,255,0.08); }

/* ═══════════════════════════════════════════════════════════
   ABOUT SECTION
═══════════════════════════════════════════════════════════ */
.about-section { padding: 100px 0; border-top: 1px solid var(--border); background: var(--white); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.about-feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.about-feature-card {
  padding: 1.8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  transition: all 0.3s var(--ease);
}
.about-feature-card:hover { box-shadow: 0 8px 28px rgba(14,40,65,0.09); transform: translateY(-3px); border-color: rgba(32,120,136,0.25); }
.about-feature-card i { font-size: 1.5rem; color: var(--teal); margin-bottom: 0.8rem; display: block; }
.about-feature-card h4 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.about-feature-card p { font-size: 0.82rem; color: var(--muted); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════
   INDUSTRIES  (dark section)
═══════════════════════════════════════════════════════════ */
.industries-section { background: var(--off); padding: 100px 0; border-top: 1px solid var(--border); }
.industries-section .badge { }
.industries-section .section-title { color: var(--navy); }
.industries-section .section-subtitle { color: var(--muted); }

.industries-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

.industry-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 2rem 1.8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--white);
  transition: all 0.3s var(--ease);
  position: relative;
  overflow: hidden;
}
.industry-card::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, var(--navy), var(--teal)); transform: scaleX(0); transform-origin: left; transition: transform 0.35s ease; }
.industry-card:hover { border-color: rgba(14,40,65,0.15); box-shadow: var(--shadow-strong); transform: translateY(-5px); }
.industry-card:hover::after { transform: scaleX(1); }

.industry-icon { width: 48px; height: 48px; border-radius: 10px; background: rgba(14,40,65,0.04); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 1.35rem; color: var(--navy); transition: all 0.3s ease; }
.industry-card:hover .industry-icon { background: var(--navy); color: #fff; border-color: var(--navy); }
.industry-card h4 { font-size: 0.97rem; font-weight: 700; color: var(--navy); }
.industry-card p  { font-size: 0.8rem; color: var(--muted); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════
   PROCESS — Horizontal steps
═══════════════════════════════════════════════════════════ */
.process-section { padding: 100px 0; background: var(--white); border-top: 1px solid var(--border); }

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process-grid::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 6%; right: 6%;
  height: 1px;
  background: var(--border);
  z-index: 0;
}

.process-step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0 1.5rem; gap: 1.2rem; position: relative; z-index: 1; }

.process-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: 0.04em;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.process-step:hover .process-num { background: var(--navy); color: #fff; border-color: var(--navy); transform: scale(1.1); }
.process-step h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.process-step p  { font-size: 0.83rem; color: var(--muted); line-height: 1.6; }

/* ═══════════════════════════════════════════════════════════
   STATS
═══════════════════════════════════════════════════════════ */
.stats-section { background: var(--white); padding: 80px 0; border-top: 1px solid var(--border); }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.stat-item { padding: 3rem 2rem; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }

.stat-number {
  font-size: 4.5rem;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 0.6rem;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--navy) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-item .label { font-size: 0.88rem; font-weight: 700; color: var(--navy); margin-bottom: 0.4rem; }
.stat-item .desc  { font-size: 0.8rem; color: var(--muted); max-width: 200px; margin: 0 auto; }

/* ═══════════════════════════════════════════════════════════
   CONTACT
═══════════════════════════════════════════════════════════ */
.contact-section { padding: 100px 0; background: var(--white); border-top: 1px solid var(--border); }

.contact-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 5rem; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 2rem; }
.contact-info h2 { font-size: 2.2rem; letter-spacing: -0.025em; margin-bottom: 0.5rem; }
.contact-info p { color: var(--muted); line-height: 1.72; }

.contact-detail-item { display: flex; align-items: center; gap: 1rem; }
.contact-detail-icon { width: 42px; height: 42px; background: var(--off); border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--navy); font-size: 1rem; flex-shrink: 0; }
.contact-detail-text p { margin: 0; }
.contact-detail-text .label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.contact-detail-text .value { font-weight: 600; color: var(--navy); font-size: 0.93rem; }

.contact-form { background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 3rem; box-shadow: 0 2px 20px rgba(14,40,65,0.05); }

.form-group-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1.2rem; }
.form-group label { font-size: 0.78rem; font-weight: 700; color: var(--muted); letter-spacing: 0.04em; }

.form-control {
  background: var(--off);
  border: 1px solid var(--border);
  color: var(--navy);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.9rem;
  transition: all 0.22s ease;
}
.form-control:focus { outline: none; border-color: var(--teal); background: #fff; box-shadow: 0 0 0 3px rgba(32,120,136,0.08); }
textarea.form-control { resize: vertical; min-height: 120px; }

/* ═══════════════════════════════════════════════════════════
   MODAL
═══════════════════════════════════════════════════════════ */
.modal-overlay { position: fixed; inset: 0; background: rgba(14,40,65,0.40); backdrop-filter: blur(8px); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 1rem; }
.modal-overlay.active { display: flex; animation: fadeIn 0.3s ease; }
.modal-card { max-width: 460px; width: 100%; background: #fff; border-radius: 16px; padding: 2.8rem 2rem; text-align: center; animation: slideUp 0.4s ease; }
.modal-icon { width: 68px; height: 68px; background: rgba(21,128,61,0.07); border: 2px solid #15803d; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #15803d; font-size: 2rem; margin: 0 auto 1.4rem; }
.modal-card h3 { font-size: 1.6rem; margin-bottom: 0.8rem; }
.modal-card p  { color: var(--muted); margin-bottom: 1.8rem; font-size: 0.92rem; }

/* ═══════════════════════════════════════════════════════════
   FOOTER
═══════════════════════════════════════════════════════════ */
footer { background: var(--white); border-top: 1px solid var(--border); padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 4rem; margin-bottom: 40px; }
.footer-brand { display: flex; flex-direction: column; gap: 1.1rem; }
.footer-brand .logo-img { filter: none; height: 60px; }
.footer-brand p { color: var(--muted); font-size: 0.86rem; line-height: 1.65; max-width: 280px; }
.footer-col-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 1.2rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links a { color: var(--muted); font-size: 0.88rem; transition: color 0.2s ease; }
.footer-links a:hover { color: var(--navy); }
/* compat */
.footer-links-title { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); margin-bottom: 1.2rem; }

.footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; }
.footer-bottom p { font-size: 0.8rem; color: var(--muted); }
.footer-socials { display: flex; gap: 0.75rem; }
.footer-social-icon { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 0.9rem; transition: all 0.25s ease; }
.footer-social-icon:hover { background: var(--navy); border-color: var(--navy); color: #fff; transform: translateY(-2px); }

/* ═══════════════════════════════════════════════════════════
   SERVICE DETAIL PAGES
═══════════════════════════════════════════════════════════ */
.service-page-hero { background: var(--navy); min-height: 480px; display: flex; align-items: center; padding: 140px 0 80px; position: relative; overflow: hidden; }
.service-page-hero::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px); background-size: 28px 28px; }

.sph-grid { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 3rem; position: relative; }
.back-link { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 600; color: rgba(245,245,245,0.5); margin-bottom: 1.8rem; transition: all 0.22s ease; letter-spacing: 0.04em; }
.back-link:hover { color: rgba(245,245,245,0.9); gap: 0.7rem; }
.service-page-badge { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.3rem 0.9rem; background: rgba(32,120,136,0.22); border: 1px solid rgba(32,120,136,0.38); border-radius: 50px; font-size: 0.72rem; font-weight: 700; color: rgba(245,245,245,0.85); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 1rem; }
.sph-title { font-size: 3rem; font-weight: 800; color: #fff; line-height: 1.1; margin-bottom: 1.2rem; }
.sph-title span { color: var(--teal); }
.sph-desc { font-size: 1.05rem; color: rgba(245,245,245,0.60); line-height: 1.7; max-width: 560px; margin-bottom: 2rem; }
.sph-visual { width: 140px; height: 140px; background: rgba(32,120,136,0.12); border: 1px solid rgba(32,120,136,0.25); border-radius: 24px; display: flex; align-items: center; justify-content: center; font-size: 4.5rem; color: var(--teal); flex-shrink: 0; }

.capabilities-section { padding: 96px 0; }
.capabilities-section .section-header { margin-bottom: 48px; }
.capabilities-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.capability-card { padding: 2rem 1.8rem; border: 1px solid var(--border); border-radius: 12px; background: var(--white); transition: all 0.3s var(--ease); }
.capability-card:hover { border-color: rgba(32,120,136,0.35); box-shadow: 0 8px 28px rgba(14,40,65,0.08); transform: translateY(-4px); }
.cap-icon { width: 44px; height: 44px; background: var(--off); border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; color: var(--teal); margin-bottom: 1rem; }
.capability-card h4 { font-size: 1rem; font-weight: 700; color: var(--navy); margin-bottom: 0.5rem; }
.capability-card p  { font-size: 0.86rem; color: var(--muted); line-height: 1.65; }

.service-cta-section { padding: 80px 0; border-top: 1px solid var(--border); text-align: center; }
.service-cta-section h2 { font-size: 2.2rem; margin-bottom: 1rem; }
.service-cta-section p { color: var(--muted); max-width: 520px; margin: 0 auto 2rem; line-height: 1.7; }

/* ═══════════════════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════════════════ */
@keyframes fadeIn  { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .service-strip { grid-template-columns: 1fr; }
  .service-strip.strip-reverse { direction: ltr; }
  .strip-visual { min-height: 320px; }
  .strip-content { padding: 60px 40px; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .sph-grid { grid-template-columns: 1fr; }
  .sph-visual { display: none; }
  .industries-grid { grid-template-columns: repeat(2, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 3rem; }
  .process-grid::before { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .capabilities-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: 1fr; border-radius: 0; }
  .stat-item { border-right: none !important; border-bottom: 1px solid rgba(255,255,255,0.07); }
  .stat-item:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  /* ── General ─────────────────────────────── */
  .container { padding: 0 1.2rem; }

  /* ── Header ──────────────────────────────── */
  .header-top-bar { display: none; }
  /* Logo es absolute — solo reducimos el padding para que no tape el contenido */
  .logo-full    { height: 48px; }
  .header-main-bar .container,
  header.scrolled .header-main-bar .container { padding-left: 130px; padding-right: 1rem; }
  /* Hamburger al extremo derecho, antes del CTA */
  .hamburger { display: flex; margin-left: auto; }
  #header-cta-btn { margin-left: 0.6rem; }
  #navbar-links {
    position: fixed; top: 60px; left: 0; right: 0;
    background: rgba(255,255,255,0.98);
    border-bottom: 1px solid var(--border);
    padding: 1.5rem; display: none; z-index: 999;
  }
  #navbar-links.active { display: flex; }
  #navbar-links ul { flex-direction: column; align-items: center; gap: 1.5rem; }

  /* ── Hero ────────────────────────────────── */
  .hero { padding: 120px 1.2rem 60px; }
  .hero-h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .hero-btns { flex-direction: column; align-items: center; }

  /* ── About, industries, process ─────────── */
  .about-grid     { grid-template-columns: 1fr; gap: 2rem; }
  .about-feature-grid { grid-template-columns: 1fr 1fr; }
  .industries-grid{ grid-template-columns: 1fr 1fr; }
  .process-grid   { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .process-grid::before { display: none; }
  .capabilities-grid { grid-template-columns: 1fr; }

  /* ── Stats ───────────────────────────────── */
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-right: none !important; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }

  /* ── Contact ─────────────────────────────── */
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .form-group-row { grid-template-columns: 1fr; }
  .contact-form   { padding: 1.5rem 1rem; }

  /* ── Footer ──────────────────────────────── */
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-grid div:not(.footer-brand) { display: none; }
}

@media (max-width: 480px) {
  .industries-grid { grid-template-columns: 1fr; }
  .capabilities-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .about-feature-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
}


/* ═══════════════════════════════════════════════════════════
   INTEL-STYLE CUBE SECTION
═══════════════════════════════════════════════════════════ */
.cube-section {
  height: 400vh;
  position: relative;
}

.cube-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  background: var(--off);
  display: flex;
  align-items: center;
  justify-content: center;
  /* No overflow:hidden — cube faces extend beyond card bounds during rotation */
}

.cube-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: background 0.7s ease;
  background: radial-gradient(ellipse 85% 55% at 50% 50%, rgba(32,120,136,0.08) 0%, transparent 70%);
}

/* Pagination dots */
.cube-dots {
  position: absolute;
  left: 3.5rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  z-index: 20;
}
.cube-dot {
  width: 8px; height: 8px;
  border-radius: 4px;
  background: rgba(14,40,65,0.18);
  border: none;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.4,0,0.2,1);
  padding: 0;
}
.cube-dot.active { height: 28px; background: var(--navy); }

/* 3D perspective wrapper */
.cube-wrap {
  perspective: 1000px;
  perspective-origin: 50% 42%;
  position: relative;
  z-index: 10;
}

/* Backlit glow — lives behind the card */
.cube-wrap::before {
  content: '';
  position: absolute;
  inset: -80px;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(32,120,136,0.22) 0%, transparent 65%);
  filter: blur(40px);
  transition: background 0.8s ease;
  pointer-events: none;
}

/* The cube rotates as a whole — faces are fixed in place on each side */
.cube-card {
  width:  min(460px, 58vw);
  height: min(460px, 58vw); /* square */
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}

/* Each face */
.cube-face {
  position: absolute;
  inset: 0;
  background: #fff;
  border: 1px solid rgba(14,40,65,0.08);
  border-radius: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  backface-visibility: hidden;
  overflow: hidden;
  box-shadow:
    0 2px 4px rgba(14,40,65,0.04),
    0 12px 32px rgba(14,40,65,0.10),
    0 40px 80px rgba(14,40,65,0.12);
}

/* ── Image area (full-bleed, takes ~65% of face) */
.cf-img {
  flex: 1;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

/* Software: dark code window */
.cf-sw { background: #0D1117; padding: 1.5rem 1.8rem; align-items: flex-start; }
.cf-sw .code-window { max-width: 100%; width: 100%; box-shadow: none; }

/* Hardware: off-white with big centered icon */
.cf-hw-img {
  background: var(--off);
  border-bottom: 1px solid var(--border);
}
.cf-big-icon { font-size: 7rem; color: rgba(14,40,65,0.10); }

/* ICT: off-white with branded icon */
.cf-ict-img {
  background: var(--off);
  border-bottom: 1px solid var(--border);
  flex-direction: column;
  gap: 0.8rem;
}
.cf-ict-hero { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; }
.cf-ict-hero i { font-size: 5rem; color: var(--teal); opacity: 0.5; }
.cf-ict-hero span { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* ── Bottom content strip */
.cf-body {
  flex: 0 0 auto;
  padding: 1.2rem 1.6rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.cf-tagline { font-size: 0.85rem; line-height: 1.55; color: var(--muted); margin: 0; }

.cf-cta {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 700; color: #fff;
  background: var(--navy); border: none;
  padding: 0.55rem 1.2rem; border-radius: 50px;
  transition: all 0.22s ease; width: fit-content;
}
.cf-cta:hover { background: var(--teal); gap: 0.8rem; }

/* Ghost background label — large glowing text like Intel */
.cube-bglabel {
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(9rem, 16vw, 18rem);
  font-weight: 900; letter-spacing: -0.05em;
  color: rgba(32,120,136,0.07);
  text-shadow:
    0 0  30px rgba(32,120,136,0.18),
    0 0  70px rgba(32,120,136,0.12),
    0 0 130px rgba(32,120,136,0.07);
  filter: blur(0.5px);
  white-space: nowrap; pointer-events: none; user-select: none;
  line-height: 1;
}

/* ── Cube responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
  /* Full-width 3D cube on mobile — same effect, screen-wide card */
  .cube-card {
    width:  min(92vw, 420px) !important;
    height: min(92vw, 420px) !important; /* square = viewport width */
  }
  .cube-bglabel { font-size: clamp(4rem, 22vw, 8rem); bottom: 1rem; }
  .cube-dots { left: 0.6rem; }
  .cf-img { flex: 0 0 52% !important; }
}
