/* ============================================================
   AI TECHNOVERSE — Main Stylesheet
   Theme: Light / Professional / Clean
   Brand: #2C6EE8 (Blue) | #0F1117 (Dark) | #FFFFFF (White)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600&display=swap');

/* ── CSS Variables ── */
:root {
  --blue:         #2C6EE8;
  --blue-hover:   #1a5cd6;
  --blue-light:   #EBF2FF;
  --blue-mid:     #4F89F0;
  --dark:         #0F1117;
  --text-primary: #111827;
  --text-sec:     #4B5563;
  --text-muted:   #9CA3AF;
  --white:        #FFFFFF;
  --off-white:    #F8FAFC;
  --surface:      #F3F6FB;
  --border:       #E5E9F2;

  --font-head: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  14px;

  --shadow-sm:   0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:   0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.10);
  --shadow-blue: 0 4px 20px rgba(44,110,232,0.22);

  --nav-height: 70px;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 11px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.875rem;
  transition: var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: var(--white); box-shadow: var(--shadow-blue); }
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(44,110,232,0.3); }
.btn-outline { background: transparent; color: var(--blue); border: 1.5px solid var(--blue); }
.btn-outline:hover { background: var(--blue-light); }
.btn-sm { padding: 9px 20px; font-size: 0.83rem; }

/* ============================================================
   HEADER
   ============================================================ */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255,255,255,0.97);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: box-shadow var(--transition);
}
.site-header.scrolled {
  box-shadow: var(--shadow-md);
  border-bottom-color: transparent;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  gap: 12px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.logo-mark {
  width: 40px; height: 40px;
  background: var(--blue);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-head);
  font-weight: 800; font-size: 1rem;
  color: var(--white);
  flex-shrink: 0;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.15; }
.logo-name { font-family: var(--font-head); font-weight: 700; font-size: 0.95rem; color: var(--text-primary); }
.logo-sub { font-size: 0.62rem; color: var(--text-muted); letter-spacing: 0.04em; }

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 1px;
  flex: 1;
  justify-content: center;
}
.nav-links > li { position: relative; }

.nav-links > li > a {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-sec);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.nav-links > li > a:hover,
.nav-links > li:hover > a {
  color: var(--blue);
  background: var(--blue-light);
}
.nav-links > li > a.active { color: var(--blue); }

.chev {
  width: 13px; height: 13px;
  stroke: currentColor; fill: none;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.nav-links > li:hover > a .chev { transform: rotate(180deg); }

/* ── Level-1 dropdown ── */
.drop-l1 {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  padding-top: 14px;
  min-width: 230px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 100;
}
/* Bridge the gap so mouse movement from link to menu doesn't close it */
.drop-l1::before {
  content: '';
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}
.nav-links > li:hover > .drop-l1 {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}
.drop-l1 > li { position: relative; }

.drop-l1 > li > a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--text-sec);
  transition: background var(--transition), color var(--transition);
}
.drop-l1 > li > a:hover,
.drop-l1 > li:hover > a {
  background: var(--blue-light);
  color: var(--blue);
}
.drop-l1-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  color: var(--blue);
  flex-shrink: 0;
  transition: background var(--transition);
}
.drop-l1 > li:hover > a .drop-l1-icon { background: rgba(44,110,232,0.14); }

.chev-r {
  width: 13px; height: 13px;
  stroke: currentColor; fill: none;
  stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round;
  margin-left: auto; flex-shrink: 0;
  transition: transform var(--transition);
}
.drop-l1 > li:hover > a .chev-r { transform: translateX(2px); }

.drop-divider { height: 1px; background: var(--border); margin: 5px 8px; }

/* ── Level-2 flyout ── */
.drop-l2 {
  position: absolute;
  top: -6px;
  left: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 6px;
  padding-left: 14px;
  min-width: 210px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-6px);
  transition: opacity var(--transition), transform var(--transition);
  z-index: 101;
}
/* Bridge the gap so mouse can travel from L1 item into L2 panel */
.drop-l2::before {
  content: '';
  position: absolute;
  top: 0;
  left: -12px;
  width: 12px;
  height: 100%;
}
.drop-l1 > li:hover > .drop-l2 {
  opacity: 1;
  pointer-events: all;
  transform: translateX(0);
}
.drop-l2 > li > a {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.86rem;
  font-weight: 400;
  color: var(--text-sec);
  transition: background var(--transition), color var(--transition);
}
.drop-l2 > li > a:hover { background: var(--blue-light); color: var(--blue); }

.nav-cta { flex-shrink: 0; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.nav-hamburger:hover { background: var(--surface); }
.nav-hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0; bottom: 0;
  background: var(--white);
  overflow-y: auto;
  z-index: 999;
  padding: 12px 16px 40px;
  flex-direction: column;
  gap: 1px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
  border-top: 1px solid var(--border);
}
.mobile-nav.open { display: flex; opacity: 1; pointer-events: all; }

.mobile-nav a {
  display: block;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-sec);
  transition: background var(--transition), color var(--transition);
}
.mobile-nav a:hover { background: var(--blue-light); color: var(--blue); }

.mobile-section-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 14px 14px 4px;
  font-family: var(--font-head);
}
.mobile-sub { padding-left: 34px !important; font-size: 0.855rem !important; font-weight: 400 !important; }
.mobile-sub2 { padding-left: 54px !important; font-size: 0.83rem !important; font-weight: 400 !important; color: var(--text-muted) !important; }
.mobile-divider { height: 1px; background: var(--border); margin: 6px 0; }
.mobile-nav .btn-primary { margin-top: 16px; justify-content: center; width: 100%; }

/* ============================================================
   FOOTER
   ============================================================ */

.site-footer { background: var(--dark); color: var(--white); padding-top: 64px; }

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .nav-logo { margin-bottom: 16px; }
.footer-logo-name { color: var(--white) !important; }
.footer-tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.75;
  margin-bottom: 20px;
  max-width: 280px;
}
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.71rem;
  padding: 5px 10px;
  border-radius: 20px;
  background: rgba(44,110,232,0.14);
  color: #82AAFF;
  border: 1px solid rgba(44,110,232,0.22);
  font-weight: 500;
}
.footer-social { display: flex; gap: 8px; }
.social-link {
  width: 34px; height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 0.9rem;
  transition: border-color var(--transition), color var(--transition), background var(--transition);
}
.social-link:hover { border-color: var(--blue); color: var(--white); background: rgba(44,110,232,0.2); }

.footer-col h4 {
  font-family: var(--font-head);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: rgba(255,255,255,0.52); font-size: 0.875rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--white); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 13px;
  color: rgba(255,255,255,0.52);
  font-size: 0.875rem;
}
.footer-contact-item a { color: rgba(255,255,255,0.52); transition: color var(--transition); }
.footer-contact-item a:hover { color: var(--white); }
.contact-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: rgba(44,110,232,0.18);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #82AAFF;
  font-size: 0.8rem;
  margin-top: 1px;
}

.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 0.8rem; color: rgba(255,255,255,0.25); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.8rem; color: rgba(255,255,255,0.25); transition: color var(--transition); }
.footer-bottom-links a:hover { color: rgba(255,255,255,0.55); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1060px) {
  .nav-links > li > a { padding: 8px 10px; font-size: 0.845rem; }
}
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
}
@media (max-width: 580px) {
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .container { padding: 0 18px; }
}

/* ============================================================
   GLOBAL ANIMATION UTILITIES  (shared across all pages)
   ============================================================ */

/* Keyframes */
@keyframes hero-enter {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes slow-drift {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(28px, 18px) scale(1.07); }
}
@keyframes float-up {
  0%   { transform: translateY(0) rotate(0deg); opacity: 0; }
  8%   { opacity: 1; }
  92%  { opacity: 0.6; }
  100% { transform: translateY(-110vh) rotate(540deg); opacity: 0; }
}

/* Floating particles */
.hero-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.hero-particle {
  position: absolute;
  border-radius: 50%;
  background: rgba(122, 171, 255, 0.18);
  animation: float-up linear infinite;
}

/* Scroll-reveal base */
[data-reveal] {
  opacity: 0;
  transition: opacity 0.78s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.78s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
[data-reveal="up"]    { transform: translateY(50px); }
[data-reveal="left"]  { transform: translateX(-55px); }
[data-reveal="right"] { transform: translateX(55px); }
[data-reveal="scale"] { transform: scale(0.88); }
[data-reveal="fade"]  {}
[data-reveal].revealed { opacity: 1; transform: translate(0, 0) scale(1) !important; }

/* Stagger children */
[data-stagger] > * {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.66s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.66s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
[data-stagger].revealed > *:nth-child(1) { transition-delay: 0.04s; }
[data-stagger].revealed > *:nth-child(2) { transition-delay: 0.13s; }
[data-stagger].revealed > *:nth-child(3) { transition-delay: 0.22s; }
[data-stagger].revealed > *:nth-child(4) { transition-delay: 0.31s; }
[data-stagger].revealed > *:nth-child(5) { transition-delay: 0.40s; }
[data-stagger].revealed > *:nth-child(6) { transition-delay: 0.49s; }
[data-stagger].revealed > * { opacity: 1; transform: none; }

/* Delay helpers */
.d1 { transition-delay: 0.08s !important; }
.d2 { transition-delay: 0.17s !important; }
.d3 { transition-delay: 0.28s !important; }
.d4 { transition-delay: 0.40s !important; }

/* Honour reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-stagger] > *, .hero-particle {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
    transition: none !important;
  }
}