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

:root {
  --hq-bg: #f8fafc;
  --hq-bg-glow: radial-gradient(circle at 50% 0%, #ffffff 0%, #f1f5f9 100%);
  --hq-border: rgba(0, 0, 0, 0.08);
  --hq-glass: rgba(255, 255, 255, 0.8);
  --hq-glass-hover: rgba(255, 255, 255, 1);
  --hq-text: #0f172a;
  --hq-muted: #64748b;
  --hq-accent: #2563eb;
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  --grad: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
}

body.hq-theme {
  background: var(--hq-bg);
  background-image: var(--hq-bg-glow);
  color: var(--hq-text);
  font-family: var(--font-body);
  margin: 0;
  overflow-x: hidden;
  min-height: 100vh;
}

.hq-main {
  position: relative;
  z-index: 1;
}

/* Background Orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  z-index: 0;
  pointer-events: none;
  animation: orb-float 20s ease-in-out infinite alternate;
}
.orb-1 {
  width: 600px;
  height: 600px;
  background: rgba(37, 99, 235, 0.12); /* Light Blue orb */
  top: -100px;
  left: -200px;
}
.orb-2 {
  width: 500px;
  height: 500px;
  background: rgba(124, 58, 237, 0.08); /* Light Violet orb */
  top: 300px;
  right: -100px;
  animation-delay: -5s;
}

@keyframes orb-float {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(100px, 100px) scale(1.2); }
}

/* Typography & Utils */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 2;
  box-sizing: border-box;
}

.text-center { text-align: center; }
.mb-16 { margin-bottom: 4rem; }

.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Premium Hero */
.hero-premium {
  padding: 200px 0 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.eyebrow-premium {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--hq-border);
  border-radius: 100px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--hq-accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background: #2563eb;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(37,99,235,0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--hq-muted);
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* Buttons */
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.btn-primary {
  padding: 14px 32px;
  background: var(--grad);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 8px 25px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  padding: 14px 32px;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border: 1px solid var(--hq-border);
  color: var(--hq-text);
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}
.btn-outline:hover {
  background: #fff;
  border-color: rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

/* Bento Grid */
.section-premium {
  padding: 100px 0;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
}

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

.span-2 {
  grid-column: span 2;
}

.glass-panel {
  background: var(--hq-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--hq-border);
  border-radius: 24px;
  padding: 40px;
  text-decoration: none;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  display: block;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
}

.glass-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.8) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.4s;
}

.glass-panel:hover {
  transform: translateY(-8px);
  background: var(--hq-glass-hover);
  border-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

.glass-panel:hover::before {
  opacity: 1;
}

.bento-icon {
  width: 56px;
  height: 56px;
  background: #fff;
  border: 1px solid var(--hq-border);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--hq-accent);
  margin-bottom: 24px;
  transition: all 0.3s;
}

/* Footer Responsive Grid */
.shell-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
}
@media (max-width: 1024px) {
  .shell-footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 40px;
  }
}
@media (max-width: 768px) {
  .shell-footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}


.glass-panel:hover .bento-icon {
  background: var(--grad);
  color: #fff;
  border-color: transparent;
  transform: scale(1.1);
}

.glass-panel h3 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--hq-text);
  margin-bottom: 12px;
}

.glass-panel p {
  color: var(--hq-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.bento-arrow {
  position: absolute;
  top: 40px;
  right: 40px;
  font-size: 1.2rem;
  color: var(--hq-muted);
  opacity: 0;
  transform: translate(-10px, 10px);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-panel:hover .bento-arrow {
  opacity: 1;
  transform: translate(0, 0);
  color: var(--hq-accent);
}

@media (max-width: 992px) {
  .bento-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .hero-premium { padding: 160px 0 80px; }
}

/* NO SHELL OVERRIDES (Leaves Header/Footer untouched for a clean light theme) */
main { padding-top: 80px; }

/* ── SHELL HEADER REFINEMENTS ── */
.shell-header {
  height: 90px !important; /* Slightly taller for better balance */
  display: flex !important;
  align-items: center !important;
}

.shell-wrap {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 100% !important;
  gap: 0 !important; /* gap handled by children flex */
}

.shell-brand {
  display: flex !important;
  align-items: center !important;
}

.shell-brand-mark {
  background: var(--grad) !important;
  border-radius: 8px !important;
  width: 38px !important;
  height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.shell-brand-copy {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  line-height: 1.1 !important;
  margin-top: 2px !important; /* Visual nudge */
}

.shell-brand-copy strong {
  font-family: var(--font-heading) !important;
  font-size: 1.05rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em;
  color: var(--hq-text) !important;
}

.shell-brand-copy small {
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  color: var(--hq-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.shell-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 4px !important;
  flex: 1 !important; /* fill space between brand and actions, centering the links */
  padding: 0 16px !important;
}

.nav-link {
  font-family: var(--font-body);
  font-weight: 600 !important;
  font-size: 0.88rem !important;
  color: var(--hq-muted) !important;
  padding: 10px 18px !important;
  border-radius: 12px !important;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.nav-link:hover {
  color: var(--hq-text) !important;
  background: rgba(0,0,0,0.04) !important;
}

.nav-link.active {
  background: #fff !important;
  color: var(--hq-accent) !important;
  border: 1px solid var(--hq-border) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05) !important;
}

.shell-header.scrolled {
  height: 72px !important;
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  border-bottom: 1px solid rgba(0,0,0,0.05) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.02) !important;
}

/* ── MODERN MOBILE HAMBURGER ── */
.shell-toggle {
  width: 44px !important;
  height: 44px !important;
  background: #fff !important;
  border: 1px solid var(--hq-border) !important;
  border-radius: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 4px !important;
  cursor: pointer !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
  padding: 0 !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03) !important;
  position: relative !important;
  z-index: 1001 !important;
}

.shell-toggle span {
  display: block !important;
  width: 20px !important;
  height: 2px !important;
  background: var(--hq-text) !important;
  border-radius: 2px !important;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Animation on Open */
.shell-toggle.open span:nth-child(1) {
  transform: translateY(3px) rotate(45deg) !important;
  width: 20px !important;
}

.shell-toggle.open span:nth-child(2) {
  transform: translateY(-3px) rotate(-45deg) !important;
  width: 20px !important;
}

.shell-toggle:hover {
  border-color: var(--hq-accent) !important;
  transform: translateY(-1px) !important;
}

/* ── PREMIUM MOBILE NAV ── */
.mobile-nav {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 100vh !important;
  background: rgba(255, 255, 255, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  z-index: 1000 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 20px !important;
  padding: 40px !important;
  opacity: 0 !important;
  visibility: hidden !important;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
  transform: scale(1.1) !important;
}

.mobile-nav.open {
  opacity: 1 !important;
  visibility: visible !important;
  transform: scale(1) !important;
}

.mobile-nav-link {
  font-family: var(--font-heading) !important;
  font-size: 2.2rem !important;
  font-weight: 800 !important;
  color: var(--hq-text) !important;
  text-decoration: none !important;
  transition: all 0.3s !important;
  opacity: 0 !important;
  transform: translateY(20px) !important;
}

.mobile-nav.open .mobile-nav-link {
  opacity: 1 !important;
  transform: translateY(0) !important;
}

/* Sequential Animation for links */
.mobile-nav-link:nth-child(1) { transition-delay: 0.1s !important; }
.mobile-nav-link:nth-child(2) { transition-delay: 0.2s !important; }
.mobile-nav-link:nth-child(3) { transition-delay: 0.3s !important; }
.mobile-nav-link:nth-child(4) { transition-delay: 0.4s !important; }
.mobile-nav-link:nth-child(5) { transition-delay: 0.5s !important; }

.mobile-nav-link:hover {
  color: var(--hq-accent) !important;
  transform: scale(1.05) !important;
}

/* Social links in mobile nav */
.mobile-nav::after {
  content: 'TWEELABS HQ' !important;
  position: absolute !important;
  bottom: 40px !important;
  font-size: 0.7rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.2em !important;
  color: var(--hq-border) !important;
}

/* ── RESPONSIVE HEADER VISIBILITY ── */
@media (min-width: 993px) {
  .shell-toggle {
    display: none !important;
  }
}

@media (max-width: 992px) {
  .shell-nav {
    display: none !important;
  }
  .shell-actions {
    display: none !important;
  }
  .shell-brand-copy small {
    display: none !important; /* Hide 'Parent Holding Enterprise' on small screens to save space */
  }
}
