/* RESPONSIVE LAYOUT SYSTEM */
.container {
  width: 100%;
  max-width: 1320px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* GRIDS */
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 64px;
  align-items: center;
}

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

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

/* SECTOR GRID & BUNDLES */
.sector-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px; /* Enhanced from 2px for better visual balance and glassmorphic separation */
  margin-top: 40px;
}

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

.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px; /* Enhanced from 2px for gorgeous visual margin */
}

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

/* NAVIGATION MENU */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(2, 2, 2, 0.75);
  border-bottom: 1px solid rgba(0, 240, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: all 0.3s ease;
}

.nav-container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  cursor: pointer;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo-icon {
  height: 32px;
  width: auto;
  display: block;
}

.nav-logo-txt {
  height: 14px;
  width: auto;
  display: block;
  opacity: 0.92;
}

.nav-logo-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cherenkov);
  box-shadow: 0 0 12px var(--cherenkov);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 12px var(--cherenkov); }
  50% { box-shadow: 0 0 24px var(--cherenkov), 0 0 40px rgba(0,240,255,.4); }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
  list-style: none;
}

.nav-links > li {
  position: relative;
}

.nav-links a {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0 !important;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s;
  display: block;
  padding: 10px 0;
}

.nav-links a:hover, .nav-links li.active a {
  color: #fff;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--cherenkov);
  transition: width 0.3s;
  box-shadow: 0 0 8px var(--cherenkov);
}

.nav-links a:hover::after, .nav-links li.active a::after {
  width: 100%;
}

.nav-dd-bridge {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 240px;
  height: 18px;
  background: transparent;
  z-index: 1009;
}

.nav-dd-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: rgba(4, 4, 14, 0.97);
  border: 1px solid var(--border);
  padding: 12px 0;
  min-width: 230px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 14px !important;
  z-index: 1010;
  box-shadow: 0 16px 48px rgba(0,0,0,0.5), 0 0 1px rgba(0,240,255,0.1);
}

.nav-links li:hover .nav-dd-menu,
.nav-links li:hover .nav-dd-bridge:hover + .nav-dd-menu {
  opacity: 1;
  pointer-events: all;
  transform: translateX(-50%) translateY(0);
}

.nav-dd-menu a {
  display: block;
  padding: 11px 24px;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0 !important;
  color: var(--text-dim) !important;
  white-space: nowrap;
}

.nav-dd-menu a::after {
  display: none !important;
}

.nav-dd-menu a:hover {
  color: var(--cherenkov) !important;
  background: rgba(0, 240, 255, 0.06);
}

.nav-cta {
  padding: 11px 28px;
  border: 1.5px solid var(--cherenkov);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0 !important;
  color: var(--cherenkov);
  cursor: pointer;
  text-decoration: none;
  background: transparent;
  border-radius: 24px;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--cherenkov);
  color: var(--void);
  box-shadow: 0 0 30px rgba(0,240,255,.35);
}

/* SECTION PADDINGS */
section.sect {
  padding: 120px 0;
  position: relative;
}

section.sect.compact {
  padding: 80px 0;
}

.sec-label {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0 !important;
  color: var(--cherenkov);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.sec-label::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--cherenkov);
  box-shadow: 0 0 8px var(--cherenkov);
}

h2.sec-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 58px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: 0 !important;
}

.sec-desc {
  font-size: 16px;
  font-weight: 300;
  line-height: 1.85;
  color: var(--text-dim);
  max-width: 580px;
}

/* ENTROPY SPLIT SYSTEM */
.ent-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 380px;
  overflow: hidden;
  gap: 24px; /* Enhanced from 2px for perfect glassmorphism spacing */
  background: transparent;
}

.ent-chaos {
  background: rgba(4, 4, 12, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border);
}

.ent-order {
  background: rgba(4, 4, 14, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  border-radius: 20px;
  border: 1px solid var(--border);
}

/* DIAGNOSTIC GRID */
.diag-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px; /* Enhanced gap */
  margin-top: 48px;
}

/* STATS ROW */
.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px; /* Glassmorphism gap instead of solid grid line */
  background: transparent;
  padding: 40px 0;
}

.stat {
  background: rgba(4, 4, 12, 0.4);
  backdrop-filter: blur(12px);
  padding: 56px;
  text-align: center;
  border-radius: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.stat:hover {
  border-color: rgba(0, 240, 255, 0.3);
  transform: translateY(-4px);
}

.stat-n {
  font-family: var(--font-display);
  font-size: 60px;
  font-weight: 900;
  color: var(--cherenkov);
  line-height: 1;
  margin-bottom: 10px;
  text-shadow: 0 0 40px rgba(0,240,255,.35);
}

.stat-l {
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0 !important;
  color: var(--text-muted);
}

/* PROCESS STRIP */
.proc {
  position: relative;
  padding-left: 64px;
}

.proc::before {
  content: '';
  position: absolute;
  left: 18px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--cherenkov) 15%, var(--cherenkov) 85%, transparent);
  box-shadow: 0 0 12px var(--cherenkov);
}

.proc-step {
  position: relative;
  margin-bottom: 56px;
}

.proc-step::before {
  content: '';
  position: absolute;
  left: -52px;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cherenkov);
  box-shadow: 0 0 20px var(--cherenkov), 0 0 40px rgba(0,240,255,.3);
}

.proc-step-inner {
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.6s, transform 0.6s;
}

.proc-step-inner.vis {
  opacity: 1;
  transform: translateX(0);
}

.proc-num {
  font-family: var(--font-display);
  font-size: 9px;
  letter-spacing: 0 !important;
  color: rgba(0, 240, 255, 0.6);
  margin-bottom: 8px;
}

.proc-t {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.proc-d {
  font-size: 14px;
  font-weight: 300;
  line-height: 1.8;
  color: var(--text-dim);
}

/* SERVICES TABLE */
.svc-table {
  display: flex;
  flex-direction: column;
  gap: 16px; /* Enhanced from 2px */
  background: transparent;
}

.svc-row {
  background: rgba(4, 4, 14, 0.45);
  display: grid;
  grid-template-columns: 70px 1fr 1fr;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 16px;
}

.svc-row:hover {
  background: rgba(0, 240, 255, 0.05);
}

.svc-n {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: rgba(0, 240, 255, 0.15);
  padding: 28px 20px;
  border-right: 1px solid var(--border);
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.svc-name {
  padding: 28px 32px;
  border-right: 1px solid var(--border);
}

.svc-name h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.svc-sub {
  font-size: 11px;
  color: var(--cherenkov);
  letter-spacing: 0 !important;
}

.svc-desc {
  padding: 28px 32px;
  font-size: 13px;
  font-weight: 300;
  color: var(--text-dim);
  line-height: 1.7;
  display: flex;
  align-items: center;
}

/* FOOTER */
footer {
  border-top: 1px solid var(--border);
  background: rgba(2, 2, 2, 0.85);
  backdrop-filter: blur(16px);
  padding: 80px 56px 40px;
  position: relative;
  z-index: 1;
}

.foot-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 52px;
}

.foot-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.foot-logo-icon {
  height: 28px;
  width: auto;
}

.foot-logo-txt {
  height: 13px;
  width: auto;
  opacity: 0.85;
}

.foot-tag {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  line-height: 1.85;
  max-width: 260px;
}

.foot-col-t {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0 !important;
  color: var(--cherenkov);
  margin-bottom: 18px;
}

.foot-col ul {
  list-style: none;
}

.foot-col ul li {
  margin-bottom: 12px;
}

.foot-col ul li a {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s;
}

.foot-col ul li a:hover {
  color: #fff;
}

.foot-bottom {
  border-top: 1px solid rgba(0, 240, 255, 0.08);
  padding-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.foot-copy {
  font-size: 11px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0 !important;
}

.foot-socials {
  display: flex;
  gap: 20px;
}

.foot-socials a {
  font-size: 11px;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
  text-decoration: none;
  letter-spacing: 0 !important;
  cursor: pointer;
  transition: color 0.3s;
}

.foot-socials a:hover {
  color: var(--cherenkov);
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 1024px) {
  .grid3, .pkg-grid, .cases-grid {
    grid-template-columns: 1fr 1fr;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .foot-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  nav {
    padding: 18px 0;
  }
  .nav-links {
    display: none;
  }
  section.sect {
    padding: 80px 0;
  }
  section.sect.compact {
    padding: 56px 0;
  }
  .grid2, .sector-grid, .ent-split, .diag-grid, .grid3, .pkg-grid, .cases-grid, .stats-row {
    grid-template-columns: 1fr;
  }
  .team-grid {
    grid-template-columns: 1fr;
  }
  .stats-row {
    gap: 16px;
  }
  .modal-box {
    padding: 36px 24px !important;
  }
  .svc-row {
    grid-template-columns: 1fr;
  }
  .svc-n {
    display: none;
  }
  .foot-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .foot-bottom {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
}

/* HERO SECTION OVERHAUL */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 160px 48px 80px 48px; /* Increased top padding to prevent fixed nav collision */
  position: relative;
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1350px;
}

.sector-tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0 !important; /* Premium normal letter spacing */
  text-transform: uppercase;
  color: var(--cherenkov);
  border: 1px solid rgba(0, 240, 255, 0.25);
  padding: 6px 18px;
  margin-bottom: 36px;
  position: relative;
}

.sector-tag::before {
  content: '';
  position: absolute;
  left: -1px;
  top: -1px;
  width: 10px;
  height: 10px;
  border-top: 1px solid var(--cherenkov);
  border-left: 1px solid var(--cherenkov);
}

.sector-tag::after {
  content: '';
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 10px;
  height: 10px;
  border-bottom: 1px solid var(--cherenkov);
  border-right: 1px solid var(--cherenkov);
}

h1.hero-title, .hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 7.5vw, 100px) !important;
  font-weight: 900 !important;
  line-height: 1.05 !important;
  letter-spacing: 0 !important;
  margin-bottom: 36px !important;
  background: linear-gradient(135deg, #fff 0%, rgba(0, 240, 255, 0.9) 55%, #fff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(15px, 1.5vw, 19px) !important;
  font-weight: 300 !important;
  line-height: 1.8 !important;
  color: rgba(255, 255, 255, 0.65) !important;
  max-width: 600px !important;
  margin: 0 auto 56px !important;
  letter-spacing: 0 !important;
}

.hero-btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(0, 240, 255, 0.25), transparent);
  pointer-events: none;
  animation: scanAnim 3.5s linear infinite;
}

@keyframes scanAnim {
  from { top: 0; opacity: 1; }
  to { top: 100%; opacity: 0; }
}

.orb-ring {
  border: 1px solid rgba(0, 240, 255, 0.06);
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  animation: orbAnim 25s linear infinite;
  pointer-events: none;
}

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

/* ==================================================
   TILDA ZERO-BLOCK RESPONSIVE GRID ENGINE
================================================== */
.grid-row {
  display: grid;
  width: 100%;
  border-radius: 20px;
  box-sizing: border-box;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

/* Background Types */
.grid-row.bg-transparent {
  background: transparent;
  border: none !important;
  box-shadow: none !important;
}
.grid-row.bg-glass-card {
  background: var(--card-bg) !important;
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid var(--border) !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.4), 0 0 1px 1px rgba(0, 240, 255, 0.05);
  padding: 40px !important;
}
.grid-row.bg-void-deep {
  background: rgba(2, 2, 8, 0.98) !important;
  border: 1.5px solid rgba(0, 240, 255, 0.25) !important;
  box-shadow: 0 0 80px rgba(0, 240, 255, 0.12);
  padding: 40px !important;
}

/* Vertical alignments */
.grid-row.align-items-top {
  align-items: start;
}
.grid-row.align-items-center {
  align-items: center;
}
.grid-row.align-items-bottom {
  align-items: end;
}

/* Padding Top settings */
.grid-row.pt-none { padding-top: 0 !important; }
.grid-row.pt-small { padding-top: 20px !important; }
.grid-row.pt-medium { padding-top: 48px !important; }
.grid-row.pt-large { padding-top: 80px !important; }

/* Padding Bottom settings */
.grid-row.pb-none { padding-bottom: 0 !important; }
.grid-row.pb-small { padding-bottom: 20px !important; }
.grid-row.pb-medium { padding-bottom: 48px !important; }
.grid-row.pb-large { padding-bottom: 80px !important; }

/* Grid columns layout configurations */
.grid-layout-1-col {
  grid-template-columns: 1fr;
}
.grid-layout-2-col-equal {
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.grid-layout-2-col-37 {
  grid-template-columns: 3fr 7fr;
  gap: 32px;
}
.grid-layout-2-col-73 {
  grid-template-columns: 7fr 3fr;
  gap: 32px;
}
.grid-layout-3-col-equal {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
}

/* Grid cell alignment and internal items styling */
.grid-cell {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  width: 100%;
}

/* Cell alignment */
.cell-align-left { text-align: left; align-items: flex-start; }
.cell-align-center { text-align: center; align-items: center; }
.cell-align-right { text-align: right; align-items: flex-end; }
.cell-align-justify { text-align: justify; }

/* Cell text sizes */
.cell-text-small { font-size: 13.5px !important; line-height: 1.8; }
.cell-text-medium { font-size: 16.5px !important; line-height: 1.85; }
.cell-text-large { font-size: 20px !important; line-height: 1.6; font-family: var(--font-display); font-weight: 700; }
.cell-text-huge { font-size: clamp(24px, 3.5vw, 44px) !important; line-height: 1.2; font-family: var(--font-display); font-weight: 900; }

/* Cell text colors */
.cell-color-white { color: #fff !important; }
.cell-color-dim { color: var(--text-dim) !important; }
.cell-color-cyan { color: var(--cherenkov) !important; }

/* Media styling inside cell dimensions */
.grid-cell .gallery-img-box {
  width: 100%;
  margin-bottom: 8px;
}
.grid-cell .custom-video-player {
  width: 100%;
  margin-bottom: 8px;
}
.grid-cell .custom-audio-player {
  width: 100%;
}

/* Dynamic responsive media block description subtitle text inside cells */
.cell-media-caption {
  font-family: var(--font-body);
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 300;
  margin-top: 8px;
  text-align: center;
  width: 100%;
}

/* Responsive collapse bounds */
@media (max-width: 960px) {
  .grid-layout-2-col-equal,
  .grid-layout-2-col-37,
  .grid-layout-2-col-73,
  .grid-layout-3-col-equal {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}
