@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Space+Grotesk:wght@400;500;600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --blue: #01A3D1;
  --blue-hover: #0084AC;
  --blue-light: #33B5DB;
  --blue-bg: rgba(1, 163, 209, 0.08);
  --blue-gradient: linear-gradient(135deg, #0077B6 0%, #01A3D1 100%);
  --ink: #0b0e17;
  --dark: #080a14;
  --dark-2: #0e1222;
  --dark-footer: #050710;
  --paper: #f8fafc;
  --paper-alt: #f1f5f9;
  --muted: #57657a;
  --line: #e2e8f0;
  --line-dark: #1e293b;
  --max-width: 1320px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.65 'Poppins', 'DM Sans', -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-family: 'Space Grotesk', -apple-system, sans-serif;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--ink);
}

p {
  margin-top: 0;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

button {
  font: inherit;
  cursor: pointer;
}

a:focus-visible, button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

.grad-text, .blue-text, .brand .blue-text, .logo .blue-text, .brand span span, .logo span span {
  color: var(--blue);
  -webkit-text-fill-color: var(--blue);
}

/* ==========================================================================
   HEADER & NAVIGATION
   ========================================================================== */
.site-header {
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 3.5vw, 64px);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font: 700 1.05rem/1 'Space Grotesk', sans-serif;
  letter-spacing: 0.12em;
  color: var(--ink);
}

.brand-logo {
  display: block;
  width: 42px;
  height: 42px;
  object-fit: contain;
}

.desktop-nav {
  display: flex;
  gap: clamp(14px, 1.6vw, 28px);
  align-items: center;
}

.desktop-nav a {
  font-size: 0.88rem;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

.desktop-nav a:hover, .desktop-nav a.current {
  color: var(--blue);
}

.header-cta {
  background: var(--blue);
  color: #ffffff;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 0.88rem;
  font-weight: 700;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 14px rgba(0, 82, 255, 0.25);
}

.header-cta:hover {
  background: var(--blue-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(0, 82, 255, 0.4);
}

.menu-toggle, .mobile-nav {
  display: none;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero {
  min-height: 600px;
  background: var(--dark);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  padding: clamp(80px, 8vw, 120px) clamp(20px, 4vw, 64px) clamp(60px, 6vw, 90px);
}

.hero:before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(0, 82, 255, 0.25) 0%, rgba(0, 64, 204, 0.12) 35%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #cbd5e1;
  margin-bottom: 24px;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 3px;
  background: var(--blue);
  border-radius: 2px;
}

.eyebrow.light {
  color: #f1f5f9;
}

.hero h1 {
  font-size: clamp(3.2rem, 5.8vw, 5.8rem);
  font-weight: 600;
  margin-bottom: 26px;
  color: #ffffff;
  letter-spacing: -0.04em;
  line-height: 1.06;
  max-width: 1050px;
}

.hero h1 em {
  font-style: normal;
  color: var(--blue-light);
}

.hero-lead {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
  line-height: 1.6;
  color: #cbd5e1;
  max-width: 780px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 60px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 32px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 999px;
  line-height: 1.2;
  transition: transform 0.25s ease, background-color 0.25s ease, box-shadow 0.25s ease;
}

.btn-primary {
  background: var(--blue);
  color: #ffffff;
  border: 0;
  box-shadow: 0 10px 28px rgba(0, 82, 255, 0.3);
}

.btn-primary:hover {
  background: var(--blue-hover);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0, 82, 255, 0.45);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  background: transparent;
}

.btn-ghost:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-3px);
}

/* STATS COUNTER */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-num {
  font: 700 clamp(2.2rem, 3.5vw, 3.6rem)/1 'Space Grotesk', sans-serif;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
  color: var(--blue-light);
}

.stat-label {
  font-size: 0.88rem;
  color: #94a3b8;
  font-weight: 500;
}

/* ==========================================================================
   CARDS & GRID LAYOUTS
   ========================================================================== */
.section {
  padding: clamp(80px, 8vw, 130px) clamp(20px, 4vw, 64px);
}

.section-container {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-head {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 40px;
  align-items: end;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: clamp(2.6rem, 4vw, 4.4rem);
  font-weight: 600;
  margin: 0;
  line-height: 1.1;
}

.section-head p {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 0;
}

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

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
}

.card, .cinfo-card, .service-card, .stat-item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 36px 32px;
  background: #ffffff;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.card::before, .cinfo-card::before, .service-card::before {
  content: '';
  position: absolute;
  top: var(--mouse-y, 50%);
  left: var(--mouse-x, 50%);
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, rgba(0, 82, 255, 0.1) 0%, transparent 65%);
  transform: translate(-50%, -50%);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
  border-radius: 50%;
  z-index: 1;
}

.card:hover::before, .cinfo-card:hover::before, .service-card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 82, 255, 0.4);
  box-shadow: 0 20px 40px -10px rgba(0, 82, 255, 0.12), 0 0 0 1px rgba(0, 82, 255, 0.1);
}

.card-ico, .cinfo-ico {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(0, 82, 255, 0.08);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, color 0.3s ease;
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}

.card-ico svg, .cinfo-ico svg {
  width: 26px;
  height: 26px;
  stroke: var(--blue);
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), stroke 0.3s ease;
}

.card:hover .card-ico, .cinfo-card:hover .cinfo-ico {
  background: var(--blue);
  color: #ffffff;
  transform: scale(1.08) rotate(3deg);
}

.card:hover .card-ico svg, .cinfo-card:hover .cinfo-ico svg {
  stroke: #ffffff;
  transform: scale(1.1);
}

.card h3 {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}

.card p {
  color: var(--muted);
  font-size: 1rem;
  margin-bottom: 24px;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  position: relative;
  z-index: 2;
}

.tag {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 6px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #475569;
  background: var(--paper-alt);
  transition: all 0.25s ease;
}

.tag:hover {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
  transform: translateY(-1px);
}

.card-link {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 2;
}

.card:hover .card-link {
  color: var(--blue-hover);
}

/* ==========================================================================
   CXE GLOBAL STYLE CONTACT FORM & INFO CARD
   ========================================================================== */
.cform {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 48px);
  box-shadow: 0 14px 40px rgba(0, 82, 255, 0.04);
}

.cform .full {
  grid-column: 1 / -1;
}

.cform label {
  display: block;
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}

.cform input, .cform textarea, .cform select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  font-size: 0.95rem;
  background: #ffffff;
  color: var(--ink);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.cform input:focus, .cform textarea:focus, .cform select:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-bg);
}

.cform textarea {
  min-height: 150px;
  resize: vertical;
}

.cinfo-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 48px);
  display: flex;
  flex-direction: column;
  gap: 32px;
  box-shadow: 0 14px 40px rgba(0, 82, 255, 0.04);
}

.cinfo-item {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.cinfo-ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue-bg);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.cinfo-title {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.cinfo-val {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
}

.cinfo-val a:hover {
  color: var(--blue);
}

/* ==========================================================================
   CLOSING BANNER
   ========================================================================== */
.closing-band {
  background: var(--dark);
  color: #ffffff;
  padding: clamp(80px, 8vw, 120px) clamp(20px, 4vw, 64px);
  position: relative;
  overflow: hidden;
}

.closing-band:before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 82, 255, 0.25) 0%, rgba(0, 64, 204, 0.15) 100%);
  pointer-events: none;
}

.closing-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.closing-inner h2 {
  font-size: clamp(2.6rem, 4.5vw, 4.8rem);
  color: #ffffff;
  margin-bottom: 16px;
}

.closing-inner p {
  font-size: 1.2rem;
  color: #cbd5e1;
  max-width: 640px;
  margin: 0;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--dark-footer);
  color: #cbd5e1;
  padding: 80px clamp(20px, 4vw, 64px) 30px;
  border-top: 1px solid var(--line-dark);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
}

.footer-brand p {
  color: #94a3b8;
  max-width: 320px;
  margin-top: 20px;
  font-size: 0.95rem;
}

.footer-col-title {
  font: 700 0.85rem 'Space Grotesk', sans-serif;
  color: #ffffff;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 22px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 0.92rem;
}

.footer-links a {
  color: #94a3b8;
}

.footer-links a:hover {
  color: #ffffff;
}

.footer-bottom {
  max-width: var(--max-width);
  margin: 60px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--line-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: #64748b;
  font-size: 0.85rem;
}

/* ==========================================================================
   INTERACTIVE ARCHITECTURE MATRIX WIDGET
   ========================================================================== */
.matrix-widget {
  background: var(--dark-2);
  border: 1px solid var(--line-dark);
  border-radius: 20px;
  padding: clamp(28px, 4vw, 44px);
  color: #ffffff;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.3);
}

.matrix-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding-bottom: 16px;
  margin-bottom: 32px;
  overflow-x: auto;
}

.matrix-tab-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #94a3b8;
  padding: 10px 22px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.matrix-tab-btn:hover {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.4);
}

.matrix-tab-btn.active {
  background: var(--blue);
  color: #ffffff;
  border-color: var(--blue);
  box-shadow: 0 6px 18px rgba(0, 82, 255, 0.45);
}

.matrix-panel {
  display: none;
}

.matrix-panel.active {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
  animation: matrixFade 0.35s ease-in-out;
}

@keyframes matrixFade {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.matrix-info h3 {
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.matrix-info p {
  color: #cbd5e1;
  font-size: 1.02rem;
  line-height: 1.6;
  margin-bottom: 24px;
}

.matrix-spec-box {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  padding: 24px;
  font-family: 'Space Grotesk', monospace;
  font-size: 0.88rem;
  color: #38bdf8;
  line-height: 1.7;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1100px) {
  .desktop-nav, .header-cta {
    display: none;
  }
  .menu-toggle {
    display: block;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 1.2rem;
    padding: 10px;
  }
  .mobile-nav:not([hidden]) {
    display: flex;
    position: absolute;
    left: 0;
    right: 0;
    top: 88px;
    z-index: 999;
    flex-direction: column;
    background: #ffffff;
    padding: 24px 32px;
    gap: 16px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-bottom: 1px solid var(--line);
  }
  .mobile-nav a {
    font-size: 1.05rem;
    font-weight: 600;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3, .grid-4, .grid-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 750px) {
  .site-header {
    height: 76px;
  }
  .mobile-nav:not([hidden]) {
    top: 76px;
  }
  .hero-stats {
    grid-template-columns: 1fr;
  }
  .section-head {
    grid-template-columns: 1fr;
  }
  .grid-3, .grid-4, .grid-2 {
    grid-template-columns: 1fr;
  }
  .cform {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   INTERACTIVE CURSOR FOLLOWER & SPOTLIGHT EFFECTS
   ========================================================================== */
.cursor-dot, .cursor-ring {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  border-radius: 50%;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), height 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease, border-color 0.25s ease, opacity 0.25s ease;
  will-change: transform;
}

.cursor-dot {
  width: 7px;
  height: 7px;
  background-color: var(--blue);
}

.cursor-ring {
  width: 38px;
  height: 38px;
  border: 1.5px solid rgba(0, 82, 255, 0.45);
  background: rgba(0, 82, 255, 0.03);
}

body.hovering-clickable .cursor-ring {
  width: 60px;
  height: 60px;
  border-color: var(--blue);
  background: rgba(0, 82, 255, 0.12);
  backdrop-filter: blur(2px);
}

body.hovering-clickable .cursor-dot {
  background-color: var(--blue-light);
  transform: translate(-50%, -50%) scale(1.6);
}

@media (pointer: coarse), (max-width: 900px) {
  .cursor-dot, .cursor-ring {
    display: none !important;
  }
}
