/* =========================================
   TECHXLNS – Global Styles (White + Navy Theme)
   ========================================= */

:root {
  --bg:        #ffffff;
  --bg-2:      #f4f5fb;
  --bg-card:   #ffffff;
  --bg-dark:   #1a1c5e;
  --bg-navy:   #252778;

  --navy:      #282974;
  --navy-dark: #1a1c5e;
  --navy-deep: #282974;
  --navy-light:#3a3db5;
  --accent:    #282974;
  --figma-hover: #044ed5;
  --figma-focus: #049ffe;
  --figma-grey:  #535261;
  --figma-bg:    #f2faff;
  --accent-2:  #4f52d0;
  --accent-3:  #6b6ee8;

  --text:      #282974;
  --text-muted:#535261;
  --text-light:#8a90b0;

  --font-display: 'Montserrat', sans-serif;
  --font-ui: 'Inter', sans-serif;

  --white:     #ffffff;
  --border:    rgba(37, 39, 120, 0.12);
  --border-strong: rgba(37, 39, 120, 0.25);

  --radius:    14px;
  --radius-sm: 8px;
  --transition: 0.3s ease;

  --shadow-sm:  0 2px 12px rgba(37,39,120,0.08);
  --shadow-md:  0 8px 30px rgba(37,39,120,0.12);
  --shadow-lg:  0 20px 60px rgba(37,39,120,0.18);
}

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

html { scroll-behavior: smooth; }

[data-feature]:not(.is-on) { display: none !important; }

section[id],
.who-section,
.home-products-section,
.services-section,
.contact-section {
  scroll-margin-top: 110px;
}

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}

/* ---- TYPOGRAPHY (Figma) ---- */
h1, h2, h3, h4 {
  font-family: var(--font-ui);
  line-height: 1;
  letter-spacing: 0;
  color: var(--navy);
}

h1 { font-family: var(--font-display); font-size: 60px; font-weight: 600; }
h2 { font-size: 64px; font-weight: 700; }
h3 { font-size: 24px; font-weight: 700; line-height: 32px; }

p { color: var(--figma-grey); font-size: 18px; font-weight: 200; line-height: 24.63px; }

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* ---- SECTION LAYOUT ---- */
.section-container {
  max-width: 1440px;
  margin: 0 auto;
  padding: 80px 116px;
}

.section-tag {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--navy);
  border: 1px solid rgba(37, 39, 120, 0.25);
  background: rgba(37, 39, 120, 0.06);
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

.section-title { margin-bottom: 3.5rem; }
.accent { color: var(--navy); }

/* ---- BUTTONS ---- */
.btn-primary {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--navy);
  color: #f2faff;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 11px;
  line-height: 1;
  padding: 7px 20px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  overflow: hidden;
  transition: box-shadow 0.25s ease;
  letter-spacing: 0;
}
/* Shimmer sweep on .btn-primary */
.btn-primary::before {
  content: '';
  position: absolute;
  z-index: 2;
  left: -80%;
  top: -75%;
  width: 50%;
  height: 250%;
  background: linear-gradient(90deg,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.22) 28%,
    rgba(255,255,255,0.60) 50%,
    rgba(255,255,255,0.22) 72%,
    rgba(255,255,255,0) 100%);
  mix-blend-mode: screen;
  transform: skewX(-18deg);
  transition: left 0.62s cubic-bezier(0.36, 0, 0.2, 1);
  pointer-events: none;
}
.btn-primary .btn-text,
.btn-primary .btn-loader {
  position: relative;
  z-index: 3;
  transition: transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity  0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
}
/* btn-submit slide-up animation via data span approach */
.btn-submit .btn-text  { transform: translateY(0);    opacity: 1; }
.btn-submit .btn-loader { transform: translateY(100%); opacity: 0; position: absolute; }
.btn-submit:hover .btn-text  { transform: translateY(-100%); opacity: 0; }
.btn-submit:hover .btn-loader { transform: translateY(0);    opacity: 1; }
.btn-primary:hover::before,
.btn-primary:focus-visible::before { left: 140%; }
.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 12px 30px rgba(4, 78, 213, 0.35);
  outline: none;
}
.btn-primary:active {
  transform: scale(0.98);
  box-shadow: 0 4px 14px rgba(4, 78, 213, 0.28);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--navy);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: 2px solid var(--border-strong);
  cursor: pointer;
  transition: var(--transition);
}
.btn-ghost:hover {
  border-color: var(--navy);
  background: rgba(37,39,120,0.06);
  transform: translateY(-2px);
}

.btn-white {
  display: inline-flex;
  align-items: center;
  background: #fff;
  color: var(--navy);
  font-family: var(--font-ui);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}
.btn-white:hover {
  background: var(--bg-2);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(255,255,255,0.25);
}

/* ---- BADGE ---- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-family: var(--font-ui);
  font-weight: 600;
  color: #fff;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  padding: 0.4rem 1rem;
  border-radius: 50px;
  margin-bottom: 1.5rem;
}

/* ---- NAVBAR (Figma pill) ---- */
.navbar {
  position: fixed;
  top: 54px;
  left: 50%;
  transform: translateX(-50%);
  width: 1120px;
  max-width: calc(100% - 32px);
  height: 72px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 16px 0 16px;
  background: #ffffff;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 36px rgba(40, 41, 116, 0.10);
  transition: var(--transition);
}

.navbar.scrolled,
.navbar.page-nav {
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 12px 40px rgba(27, 31, 74, 0.14);
}

.btn-nav-contact {
  margin-left: auto;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #f2faff;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 14px;
  line-height: 1;
  padding: 12px 22px;
  border-radius: 999px;
  white-space: nowrap;
  overflow: hidden;
  transition: box-shadow 0.32s ease, transform 0.18s ease;
  text-decoration: none;
}
/* Wave — primary layer */
.btn-nav-contact::before {
  content: '';
  position: absolute;
  z-index: 1;
  left:   -20%;
  width:  140%;
  bottom: -160%;
  height: 220%;
  border-radius: 50% 50% 0 0 / 60% 60% 0 0;
  background: linear-gradient(
    180deg,
    rgba(100, 210, 255, 0.90) 0%,
    rgba(70,  180, 240, 0.75) 45%,
    rgba(40,  41,  116, 0.00) 100%
  );
  transform: translateY(0);
  transition: transform 0.62s cubic-bezier(0.22, 0.61, 0.36, 1),
              border-radius 0.62s cubic-bezier(0.22, 0.61, 0.36, 1);
  pointer-events: none;
}
/* Wave — secondary softer layer */
.btn-nav-contact::after {
  content: '';
  position: absolute;
  z-index: 1;
  left:   -30%;
  width:  160%;
  bottom: -180%;
  height: 220%;
  border-radius: 48% 52% 0 0 / 55% 55% 0 0;
  background: rgba(160, 230, 255, 0.30);
  transform: translateY(0);
  transition: transform 0.72s cubic-bezier(0.22, 0.61, 0.36, 1) 0.06s,
              border-radius 0.72s cubic-bezier(0.22, 0.61, 0.36, 1) 0.06s;
  pointer-events: none;
}
.btn-nav-contact:hover::before,
.btn-nav-contact:focus-visible::before {
  transform: translateY(-165%);
  border-radius: 40% 40% 0 0 / 30% 30% 0 0;
}
.btn-nav-contact:hover::after,
.btn-nav-contact:focus-visible::after {
  transform: translateY(-160%);
  border-radius: 45% 55% 0 0 / 25% 25% 0 0;
}
/* Slide-up labels */
.btn-nav-contact .btn-label-a,
.btn-nav-contact .btn-label-b {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  transition: transform 0.38s cubic-bezier(0.22, 0.61, 0.36, 1),
              opacity  0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
  font-weight: 600;
  font-size: 14px;
}
.btn-nav-contact .btn-label-a { transform: translateY(0);    opacity: 1; }
.btn-nav-contact .btn-label-b { transform: translateY(100%); opacity: 0; }
.btn-nav-contact:hover .btn-label-a,
.btn-nav-contact:focus-visible .btn-label-a { transform: translateY(-100%); opacity: 0; }
.btn-nav-contact:hover .btn-label-b,
.btn-nav-contact:focus-visible .btn-label-b { transform: translateY(0);    opacity: 1; }
.btn-nav-contact:hover,
.btn-nav-contact:focus-visible {
  box-shadow: 0 8px 20px rgba(40,41,116,0.35);
  outline: none;
}
.btn-nav-contact:active { transform: scale(0.98); }

.logo {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 4px 8px;
  border-radius: 8px;
}
.logo-img {
  height: 44px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: opacity 0.3s ease;
}
.logo-img:hover { opacity: 0.8; }
.footer-logo { height: 44px; margin-bottom: 0.5rem; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.25rem;
  align-items: center;
}
@media (min-width: 901px) {
  .nav-links {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
}

.nav-links a {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--navy);
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--navy-deep);
  background: rgba(4, 78, 213, 0.10);
  outline: none;
}

.nav-links a:active {
  background: rgba(4, 78, 213, 0.18);
  color: var(--figma-hover);
}

.nav-links a.active {
  color: var(--navy-deep);
  background: rgba(40, 41, 116, 0.12);
  box-shadow: inset 0 -2px 0 var(--figma-hover);
}

/* ---- DROPDOWN ---- */
.dropdown { position: relative; }
.dropdown-toggle .arrow {
  font-size: 0.7rem;
  transition: transform 0.25s;
  display: inline-block;
}
.dropdown:hover .arrow { transform: rotate(180deg); }

.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 14px;
  background: transparent;
  min-width: 200px;
  list-style: none;
}
.dropdown-menu-inner {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.5rem;
  box-shadow: var(--shadow-lg);
}
.dropdown:hover .dropdown-menu {
  display: block;
  animation: fadeDown 0.2s ease;
}
.dropdown-menu li a {
  display: block;
  padding: 0.65rem 1rem;
  font-size: 0.88rem;
  font-family: var(--font-ui);
  font-weight: 600;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: var(--transition);
}
.dropdown-menu li a:hover {
  background: rgba(37,39,120,0.07);
  color: var(--navy);
}

@keyframes fadeDown {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ---- HAMBURGER ---- */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 24px; height: 2px;
  background: var(--navy);
  border-radius: 2px;
  transition: var(--transition);
}

.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ---- PAGE HERO (inner pages) ---- */
.page-hero {
  position: relative;
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 120px;
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 50%, var(--accent-2) 100%);
}
.page-hero-content {
  position: relative;
  z-index: 2;
  padding: 4rem 2rem;
}
.page-hero h1 { margin-bottom: 1rem; color: #fff; }
.page-hero p { font-size: 1.15rem; max-width: 560px; margin: 0 auto; color: rgba(255,255,255,0.75); }
.page-hero .accent { color: rgba(255,255,255,0.9); }

/* ---- HERO BG ---- */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.3;
}
.glow-1 {
  width: 600px; height: 600px;
  background: rgba(255,255,255,0.2);
  top: -200px; left: -100px;
}
.glow-2 {
  width: 400px; height: 400px;
  background: rgba(79, 82, 208, 0.5);
  bottom: -100px; right: -50px;
}

/* ---- CTA BAND ---- */
.cta-band {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy) 60%, var(--accent-2) 100%);
  padding: 5rem 2rem;
  text-align: center;
}
.cta-content h2 { margin-bottom: 0.75rem; font-size: clamp(1.5rem, 3vw, 2.2rem); color: #fff; }
.cta-content p { margin-bottom: 2rem; font-size: 1.1rem; color: rgba(255,255,255,0.75); }

/* ---- FOOTER ---- */
.footer {
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 4rem 2rem 0;
}
.footer-grid {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-brand p {
  margin-top: 1rem;
  font-size: 0.9rem;
  max-width: 260px;
  color: var(--text-muted);
}
.footer-links h4 {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links ul li a {
  font-size: 0.9rem;
  color: var(--text-muted);
  transition: var(--transition);
}
.footer-links ul li a:hover { color: var(--navy); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.footer-bottom p { font-size: 0.85rem; color: var(--text-muted); }
.footer-legal {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.footer-legal a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: var(--transition);
  font-family: var(--font-ui);
  font-weight: 600;
}
.footer-legal a:hover { color: var(--navy); }

/* ---- STATUS BADGES ---- */
.badge-status {
  font-size: 0.75rem;
  font-family: var(--font-ui);
  font-weight: 700;
  padding: 0.25rem 0.7rem;
  border-radius: 50px;
}
.badge-status.active   { background: rgba(37,39,120,0.1); color: var(--navy); }
.badge-status.pending  { background: rgba(250,190,0,0.12); color: #d4900a; }
.badge-status.upcoming { background: rgba(79,82,208,0.12); color: var(--accent-2); }

/* ---- ANIMATIONS ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-12px); }
}

/* ---- REVEAL ON SCROLL ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---- RESPONSIVE ---- */

/* ---- NAV SOCIAL ICONS ---- */
.nav-social { display: none; }
.footer-social .nav-social-link { display: flex; }
.nav-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--text-muted);
  background: var(--bg-2);
  border: 1px solid var(--border);
  transition: var(--transition);
  flex-shrink: 0;
  text-decoration: none;
}
.nav-social-link:hover,
.nav-social-link:focus-visible {
  color: #fff;
  background: var(--figma-hover);
  border-color: var(--figma-hover);
  transform: translateY(-2px);
  outline: none;
}
.nav-social-link:active {
  transform: translateY(0) scale(0.96);
}
.nav-social-link svg { display: block; }

/* ---- FOOTER 5-COLUMN GRID ---- */
.footer-grid.footer-grid-5 {
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr;
}

/* ---- FOOTER ADDRESS ---- */
.footer-address ul { gap: 0 !important; }
.footer-address ul li { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.75rem; }
.footer-office-label {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
  display: block;
}
.footer-office-addr {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
  display: block;
}
.footer-addr-soon { font-style: italic; color: var(--text-light); }

@media (max-width: 768px) {
  .navbar {
    top: 12px;
    width: calc(100% - 20px);
    padding: 8px 12px;
    gap: 0.75rem;
  }

  .nav-links {
    position: fixed;
    top: 0; right: -100%;
    width: 75vw; max-width: 320px;
    height: 100vh;
    background: #fff;
    border-left: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 2rem 2rem;
    gap: 0.5rem;
    transition: right 0.35s ease;
    border-radius: 0;
  }
  .nav-links.open { right: 0; }
  .hamburger { display: flex; }
  .btn-nav-contact { padding: 0.6rem 1rem; font-size: 0.8rem; }

  .nav-links li { width: 100%; }
  .nav-links a { font-size: 1rem; display: block; padding: 0.6rem 0; color: var(--navy) !important; }

  .dropdown-menu {
    position: static; transform: none;
    display: none; box-shadow: none;
    border: none; background: transparent;
    padding: 0 0 0 1rem;
  }
  .dropdown.open .dropdown-menu { display: block; }

  .nav-social { display: none; }
.footer-social .nav-social-link { display: flex; }
  .footer-grid, .footer-grid.footer-grid-5 { grid-template-columns: 1fr 1fr; gap: 2rem; }
}

@media (max-width: 600px) {
  .footer-grid, .footer-grid.footer-grid-5 { grid-template-columns: 1fr; }
  .section-container { padding: 4rem 1.25rem; }
}

/* ---- Figma postcard footer (used on contact.html and other sub-pages) ---- */
.figma-footer {
  background: #f2faff;
  padding: 48px 68px 0;
  margin: 0;
  position: relative;
}
.figma-footer-inner {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
  padding-bottom: 40px;
}
.figma-footer-logo {
  flex-shrink: 0;
  width: 94px;
}
.figma-footer-logo img { width: 100%; object-fit: contain; }
.figma-footer-addresses {
  display: flex;
  gap: 2.5rem;
  flex: 1;
}
.figma-footer-addr {
  font-size: 13px;
  font-weight: 300;
  line-height: 20px;
  letter-spacing: -0.03em;
  color: #535261;
}
.figma-footer-addr strong {
  font-weight: 600;
  color: #282974;
  display: block;
  margin-bottom: 4px;
}
.figma-footer-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  flex-shrink: 0;
}
.figma-footer-link {
  font-size: 13px;
  font-weight: 500;
  color: #282974;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s ease;
}
.figma-footer-link:hover { opacity: 0.65; text-decoration: underline; }
.figma-footer-social {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.figma-footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #282974;
  transition: transform 0.22s ease, opacity 0.22s ease;
}
.figma-footer-social a:hover { transform: translateY(-2px); opacity: 0.7; }
.figma-footer-rule {
  height: 1px;
  background: #282974;
  margin: 0 -68px;
}
.figma-footer-copy {
  padding: 14px 0 18px;
  text-align: center;
  font-size: 13px;
  font-weight: 300;
  color: #535261;
  letter-spacing: -0.02em;
}
@media (max-width: 768px) {
  .figma-footer { padding: 32px 24px 0; }
  .figma-footer-inner { flex-direction: column; gap: 1.5rem; }
  .figma-footer-addresses { flex-direction: column; gap: 1rem; }
  .figma-footer-right { align-items: flex-start; }
  .figma-footer-rule { margin: 0 -24px; }
}
