/* ============================================================== */
/*          GROEW. MASTER STYLESHEET (GLOBAL & RESPONSIVE CORE)   */
/* ============================================================== */

/* 1. ARCHITECTURAL ENGINE (VARIABLES) */
:root {
  --cosmic-indigo: #0F172A; 
  --mercury-teal: #43D1BC;  
  --kuber-emerald: #2ECC71; 
  --solar-white: #F8FAFC;   
  --platinum-grey: #E2E8F0; 
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --radius: 12px; 
}

/* 2. GLOBAL RESET & BASE */
* { margin: 0; padding: 0; box-sizing: border-box; outline: none; }
html { scroll-behavior: smooth; }

body { 
  background-color: var(--cosmic-indigo); 
  color: var(--platinum-grey); 
  font-family: var(--font-body); 
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  overflow-y: hidden; 
}

.container { max-width: 1300px; margin: 0 auto; padding: 0 40px; }
h1, h2, h3 { font-family: var(--font-heading); color: var(--solar-white); }

.site-wrapper {
  transition: transform 0.6s cubic-bezier(0.2, 1, 0.3, 1), filter 0.6s ease;
  transform-origin: center top;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.ambient-glow {
  position: fixed; top: -10%; right: -10%;
  width: 70vw; height: 70vw;
  background: radial-gradient(circle, rgba(67, 209, 188, 0.08) 0%, rgba(15, 23, 42, 0) 70%);
  pointer-events: none; z-index: 0;
}

/* 3. BUTTONS & INTERACTIONS */
.btn-primary, .btn-nav {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--mercury-teal); color: #000;
  text-decoration: none; font-family: var(--font-heading);
  font-weight: 800; border-radius: var(--radius); border: none; cursor: pointer;
  transition: all 300ms ease-in-out;
}
.btn-primary { font-size: 16px; padding: 18px 36px; }
.btn-nav { font-size: 14px; padding: 10px 24px; margin-left: 15px; }

.btn-primary:hover, .btn-nav:hover {
  transform: translate(3px, -3px);
  box-shadow: -5px 5px 25px rgba(67, 209, 188, 0.4);
}
.btn-full { width: 100%; }

/* 4. HEADER & NAVIGATION */
.site-header { position: fixed; top: 30px; left: 0; width: 100%; z-index: 1000; }
.header-inner {
  display: flex; justify-content: space-between; align-items: center;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px) saturate(180%); -webkit-backdrop-filter: blur(20px) saturate(180%);
  padding: 16px 30px; border-radius: var(--radius);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}
.nav-logo img { transition: 0.3s; object-fit: contain; width: auto; height: 45px; }
.nav-links { display: flex; align-items: center; gap: 40px; }
.nav-links a { color: var(--platinum-grey); text-decoration: none; font-weight: 500; font-size: 15px; transition: 0.3s; }
.nav-links a:hover { color: var(--solar-white); }

/* DROPDOWN MENUS */
.nav-dropdown { position: relative; display: inline-block; height: 100%; }
.drop-trigger { color: var(--platinum-grey); font-weight: 500; font-size: 15px; cursor: pointer; transition: 0.3s; padding: 10px 0; }
.nav-dropdown:hover .drop-trigger { color: var(--solar-white); }
.dropdown-content {
  position: absolute; top: 100%; left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: rgba(15, 23, 42, 0.9); backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius);
  min-width: 240px; display: flex; flex-direction: column;
  padding: 8px; opacity: 0; visibility: hidden;
  transition: all 0.2s cubic-bezier(0.2, 1, 0.3, 1);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
}
.nav-dropdown:hover .dropdown-content { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(10px); }
.dropdown-content a { padding: 12px 16px; color: var(--platinum-grey) !important; border-radius: 8px; font-size: 14px; white-space: nowrap; text-align: left; }
.dropdown-content a:hover { background: rgba(255, 255, 255, 0.05); color: var(--mercury-teal) !important; transform: translateX(4px); }
.sub-label { font-size: 11px; color: var(--platinum-grey); opacity: 0.5; font-family: var(--font-body); font-weight: 400; margin-left: 5px; }
.dropdown-content a:hover .sub-label, .mobile-group a:hover .sub-label { opacity: 0.8; }

/* MOBILE MENU */
.hamburger { display: none; background: none; border: none; cursor: pointer; }
.hamburger span { display: block; width: 26px; height: 2px; background: var(--solar-white); margin: 6px 0; transition: 0.3s; }
.mobile-menu { position: fixed; inset: 0; background: var(--cosmic-indigo); z-index: 900; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: 0.4s; }
.mobile-menu.active { opacity: 1; visibility: visible; }
.mobile-menu.active .mobile-nav-links { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; width: 100%; height: 100%; padding: 40px; }
.mobile-main-link { font-family: var(--font-heading); font-size: 28px; font-weight: 700; color: var(--solar-white); text-decoration: none; transition: color 0.3s; }
.mobile-main-link:hover { color: var(--mercury-teal); }
.mobile-group { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 320px; text-align: center; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 25px; margin-top: 10px; }
.mobile-label { font-size: 11px; text-transform: uppercase; letter-spacing: 2px; color: var(--mercury-teal); margin-bottom: 8px; opacity: 0.7; }
.mobile-group a { font-family: var(--font-body); font-size: 18px !important; font-weight: 500 !important; color: var(--platinum-grey) !important; text-decoration: none; transition: color 0.3s; }
.mobile-group a:hover { color: var(--solar-white) !important; }
.mobile-socials { display: flex; gap: 20px; justify-content: center; margin: 20px 0; }
.social-link { font-size: 14px; color: var(--platinum-grey); text-decoration: none; border-bottom: 1px solid transparent; }
.social-link:hover { color: var(--mercury-teal); border-color: var(--mercury-teal); }
.mobile-menu .btn-primary { margin-top: 20px; }

/* 5. HERO & SECTIONS (OPTIMIZED FOR ALL SCREENS) */
.hero { 
  min-height: 85vh; /* Adjusted from 100vh to fix 15-inch screen overlap */
  display: flex; 
  align-items: center; 
  position: relative; 
  padding-top: 140px; /* Increased padding to clear header safely */
  padding-bottom: 40px;
  z-index: 1; 
}

.hero-grid { 
  display: grid; 
  grid-template-columns: 1.1fr 0.9fr; 
  gap: 60px; 
  align-items: center; 
  width: 100%; 
  max-width: 1200px; 
  margin: 0 auto; 
}

.hero-title { 
  font-size: clamp(40px, 5vw, 68px); 
  font-weight: 800; 
  line-height: 1.1; 
  margin-bottom: 24px; 
  letter-spacing: -2px; 
}

.text-outline { 
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, 0.7); 
  color: transparent; 
}

.hero-subtitle { 
  font-size: 18px; 
  line-height: 1.7; 
  max-width: 540px;
  margin-bottom: 40px; 
  color: var(--platinum-grey); 
}

/* Glass Pill Design */
.hero-micro-text { 
  font-family: var(--font-heading); 
  font-size: 10px; 
  font-weight: 800;
  text-transform: uppercase; 
  letter-spacing: 1.5px;
  color: rgba(255, 255, 255, 0.5); 
  margin-bottom: 35px; 
  display: inline-block; 
  line-height: 1.6;
  background: rgba(255, 255, 255, 0.03); 
  padding: 12px 20px;
  border-radius: var(--radius); 
  border: 1px solid rgba(255, 255, 255, 0.08);
}

#geoTarget { 
  color: var(--mercury-teal); 
  font-weight: 800; 
  transition: opacity 0.5s ease; 
  display: inline; 
}

/* Give CTA Button breathing room */
.hero-text .reveal-up.delay-4 {
  margin-top: 20px;
}

.anchor-3d { 
  position: relative; 
  width: 340px; 
  height: 340px; 
  margin: 0 auto; 
  border-radius: 50%; 
  background: linear-gradient(135deg, rgba(67, 209, 188, 0.15), rgba(15, 23, 42, 0.05)); 
  box-shadow: inset 20px 20px 40px rgba(255,255,255,0.05), inset -20px -20px 40px rgba(0,0,0,0.5), 0 0 60px rgba(67, 209, 188, 0.15); 
  backdrop-filter: blur(10px); 
  animation: floatGeometry 6s ease-in-out infinite; 
}

.anchor-3d::after { 
  content: ""; 
  position: absolute; 
  top: 15%; left: 15%; right: 15%; bottom: 15%; 
  border-radius: 50%; 
  background: linear-gradient(45deg, transparent, rgba(67, 209, 188, 0.3)); 
  transform: rotate(45deg); 
}

@keyframes floatGeometry { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(2deg); } }

.scroll-indicator { position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; opacity: 0; animation: fadeIn 1s ease forwards 3s; }
.mouse-track { width: 26px; height: 40px; border: 2px solid rgba(255, 255, 255, 0.2); border-radius: 20px; position: relative; display: flex; justify-content: center; padding-top: 6px; }
.scroller { width: 4px; height: 8px; background: var(--mercury-teal); border-radius: 2px; animation: scrollPulse 2s infinite; }
.scroll-text { font-family: var(--font-heading); font-size: 10px; text-transform: uppercase; letter-spacing: 2px; color: rgba(255, 255, 255, 0.4); }
@keyframes scrollPulse { 0% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(10px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }

/* Fixes the collision where the mouse icon hits the button on shorter screens */
@media (max-height: 850px) {
  .scroll-indicator { display: none !important; }
}

.tech-marquee { background: var(--cosmic-indigo); border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding: 30px 0; overflow: hidden; position: relative; z-index: 2; }
.marquee-track { display: flex; gap: 60px; width: max-content; animation: scrollMarquee 30s linear infinite; }
.tech-logo { font-family: var(--font-heading); font-weight: 700; font-size: 18px; color: rgba(203, 213, 225, 0.6); text-transform: uppercase; letter-spacing: 1px; white-space: nowrap; }
.marquee-fade { position: absolute; inset: 0; background: linear-gradient(to right, var(--cosmic-indigo), transparent 20%, transparent 80%, var(--cosmic-indigo)); pointer-events: none; }
@keyframes scrollMarquee { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

.section-header { margin-bottom: 60px; max-width: 600px; }
.section-title { font-size: clamp(32px, 4vw, 48px); letter-spacing: -1px; margin-bottom: 15px; }
.section-subtitle { color: var(--platinum-grey); font-size: 18px; }

/* Services */
.services-architecture { padding: 100px 0 60px 0; position: relative; z-index: 2; }
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.service-card { background: rgba(15, 23, 42, 0.4); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: var(--radius); padding: 40px; transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1); position: relative; overflow: hidden; backdrop-filter: blur(10px); cursor: pointer; }
.service-card:hover { transform: translate(8px, -8px); background: rgba(15, 23, 42, 0.6); border-color: rgba(67, 209, 188, 0.2); box-shadow: -10px 10px 40px rgba(0,0,0,0.3); }
.service-number { font-family: var(--font-heading); font-size: 14px; color: var(--kuber-emerald); border: 1px solid rgba(46, 204, 113, 0.3); padding: 5px 12px; border-radius: 6px; background: rgba(46, 204, 113, 0.05); display: inline-block; margin-bottom: 25px; }
.service-title { font-size: 24px; margin-bottom: 15px; color: var(--solar-white); }
.service-desc { font-size: 15px; color: var(--platinum-grey); line-height: 1.6; margin-bottom: 30px; }
.service-list { list-style: none; border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 20px; }
.service-list li { font-size: 14px; color: rgba(203, 213, 225, 0.85); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.service-list li::before { content: ""; width: 6px; height: 6px; background: var(--mercury-teal); border-radius: 50%; }

/* Bento Grid */
.authority-proof { padding: 120px 0; position: relative; z-index: 2; }
.bento-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.bento-card { position: relative; background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: var(--radius); padding: 40px; overflow: hidden; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1), background 0.4s ease, border-color 0.4s ease; }
.bento-card:hover { transform: translate(5px, -5px); background: rgba(255, 255, 255, 0.04); border-color: rgba(67, 209, 188, 0.15); box-shadow: -8px 8px 30px rgba(0,0,0,0.2); }
.span-1 { grid-column: span 1; } .span-2 { grid-column: span 2; }
.bento-content { position: relative; z-index: 2; }
.bento-metric { display: block; font-family: var(--font-heading); font-size: 48px; font-weight: 800; color: var(--solar-white); margin-bottom: 10px; letter-spacing: -2px; }
.bento-heading { font-size: 20px; margin-bottom: 15px; color: var(--mercury-teal); }
.bento-text { font-size: 15px; line-height: 1.6; }
.bento-glow-top { position: absolute; top: -50px; right: -50px; width: 150px; height: 150px; background: radial-gradient(circle, rgba(67, 209, 188, 0.15) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.bento-heavy { background: linear-gradient(135deg, rgba(15, 23, 42, 0.4), rgba(46, 204, 113, 0.05)); border: 1px solid rgba(46, 204, 113, 0.15); }
.bento-heavy:hover { border-color: rgba(46, 204, 113, 0.4); box-shadow: 0 20px 40px rgba(0,0,0,0.4); }
.heavy-badge { display: inline-block; padding: 6px 12px; background: rgba(46, 204, 113, 0.1); color: var(--kuber-emerald); font-size: 12px; font-weight: 700; border-radius: 6px; margin-bottom: 20px; text-transform: uppercase; letter-spacing: 1px; }
.heavy-heading { font-size: 32px; color: var(--solar-white); letter-spacing: -1px; line-height: 1.2; }
.bento-glow-heavy { position: absolute; bottom: -100px; right: -50px; width: 300px; height: 300px; background: radial-gradient(circle, rgba(46, 204, 113, 0.1) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.visual-proof-container { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; margin-bottom: 80px; }
.proof-card-3d { perspective: 1000px; }
.card-glass { background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: var(--radius); padding: 30px; transform: rotateY(-10deg) rotateX(5deg); box-shadow: 20px 20px 50px rgba(0,0,0,0.3); transition: transform 0.5s ease; position: relative; }
.proof-card-3d:hover .card-glass { transform: rotateY(0deg) rotateX(0deg); border-color: rgba(67, 209, 188, 0.3); }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 40px; }
.dot-group { display: flex; gap: 6px; }
.dot { width: 10px; height: 10px; border-radius: 50%; }
.red { background: #FF5F56; } .yellow { background: #FFBD2E; } .green { background: #27C93F; }
.card-label { font-size: 12px; color: rgba(255,255,255,0.4); text-transform: uppercase; letter-spacing: 1px; }
.graph-area { position: relative; height: 100px; width: 100%; border-bottom: 1px solid rgba(255,255,255,0.1); margin-bottom: 20px; }
.graph-line { position: absolute; bottom: 0; left: 0; width: 100%; height: 80%; background: linear-gradient(90deg, transparent, var(--mercury-teal)); mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,100 Q30,90 50,50 T100,0" stroke="white" stroke-width="4" fill="none"/></svg>'); -webkit-mask-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><path d="M0,100 Q30,90 50,50 T100,0" stroke="black" stroke-width="4" fill="none"/></svg>'); mask-size: 100% 100%; -webkit-mask-size: 100% 100%; }
.data-point { width: 8px; height: 8px; background: var(--kuber-emerald); border-radius: 50%; position: absolute; box-shadow: 0 0 10px var(--kuber-emerald); }
.p1 { bottom: 10%; left: 10%; } .p2 { bottom: 50%; left: 50%; } .p3 { top: 0%; right: 0%; }
.stat-num { font-family: var(--font-heading); font-size: 32px; color: var(--solar-white); display: block; }
.stat-label { font-size: 12px; color: var(--mercury-teal); }
.proof-text h3 { font-size: 32px; margin-bottom: 20px; }
.proof-text p { font-size: 16px; line-height: 1.6; color: var(--platinum-grey); }

/* Client Voices */
.client-voices { padding: 80px 0; position: relative; z-index: 2; }
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; }
.review-card { background: rgba(15, 23, 42, 0.6); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: var(--radius); padding: 30px; backdrop-filter: blur(10px); transition: transform 0.3s ease; }
.review-card:hover { transform: translateY(-5px); border-color: rgba(67, 209, 188, 0.2); }
.review-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); padding-bottom: 15px; }
.reviewer-name { font-family: var(--font-heading); font-size: 16px; color: var(--solar-white); }
.reviewer-role { font-size: 12px; color: var(--platinum-grey); opacity: 0.7; }
.review-stars { color: var(--kuber-emerald); font-size: 14px; letter-spacing: 2px; }
.review-text { font-size: 14px; line-height: 1.6; color: var(--platinum-grey); font-style: italic; }
.review-text strong { color: var(--mercury-teal); font-weight: 500; }

/* Manifesto */
.founder-manifesto { padding: 60px 0 100px; position: relative; z-index: 2; }
.manifesto-box { max-width: 900px; margin: 0 auto; background: linear-gradient(135deg, rgba(15, 23, 42, 0.8), rgba(67, 209, 188, 0.05)); border: 1px solid rgba(67, 209, 188, 0.15); border-radius: var(--radius); padding: 60px; text-align: center; backdrop-filter: blur(10px); }
.manifesto-headline { font-size: 32px; color: var(--solar-white); margin-bottom: 30px; letter-spacing: -1px; }
.manifesto-text { font-size: 18px; line-height: 1.8; color: var(--platinum-grey); margin-bottom: 40px; font-style: italic; }
.manifesto-author { display: flex; flex-direction: column; gap: 5px; }
.author-name { font-family: var(--font-heading); font-size: 18px; color: var(--solar-white); font-weight: 800; }
.author-role { font-size: 14px; color: var(--mercury-teal); text-transform: uppercase; letter-spacing: 1px; }

/* Methodology */
.methodology { padding: 100px 0; position: relative; z-index: 2; }
.timeline-wrapper { position: relative; max-width: 800px; margin: 60px auto 0; padding-left: 50px; }
.timeline-line { position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: linear-gradient(to bottom, var(--mercury-teal), transparent); }
.timeline-step { position: relative; margin-bottom: 60px; }
.step-marker { position: absolute; left: -50px; width: 32px; height: 32px; background: var(--cosmic-indigo); border: 1px solid var(--mercury-teal); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-heading); font-size: 12px; color: var(--mercury-teal); z-index: 2; box-shadow: 0 0 15px rgba(67, 209, 188, 0.2); }
.step-title { font-size: 22px; margin-bottom: 10px; color: var(--solar-white); }
.step-text { font-size: 16px; color: var(--platinum-grey); line-height: 1.6; }

/* FAQ */
.faq-section { padding: 80px 0 120px; position: relative; z-index: 2; }
.faq-grid { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.faq-item { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: var(--radius); overflow: hidden; transition: all 0.3s ease; }
.faq-question { width: 100%; padding: 24px; display: flex; justify-content: space-between; align-items: center; background: none; border: none; text-align: left; cursor: pointer; font-family: var(--font-heading); font-size: 16px; color: var(--solar-white); outline: none; }
.faq-question:hover { background: rgba(255, 255, 255, 0.02); }
.faq-icon { font-size: 24px; color: var(--mercury-teal); transition: transform 0.3s ease; font-weight: 300; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s cubic-bezier(0.2, 1, 0.3, 1), padding 0.4s ease; padding: 0 24px; color: var(--platinum-grey); font-size: 15px; line-height: 1.6; }
.faq-item.active { background: rgba(15, 23, 42, 0.6); border-color: rgba(67, 209, 188, 0.2); }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-item.active .faq-answer { padding-bottom: 24px; max-height: 200px; }

/* Intelligence Feed */
.intelligence-feed { padding: 80px 0; position: relative; z-index: 2; }
.insights-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.insight-card { background: rgba(255, 255, 255, 0.02); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: var(--radius); padding: 40px; display: flex; flex-direction: column; text-decoration: none; transition: all 0.4s cubic-bezier(0.2, 1, 0.3, 1); }
.insight-card:hover { transform: translate(8px, -8px); background: rgba(15, 23, 42, 0.6); border-color: rgba(67, 209, 188, 0.3); box-shadow: -10px 10px 40px rgba(0,0,0,0.3); }
.insight-tag { font-size: 12px; color: var(--kuber-emerald); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 20px; font-weight: 700; }
.insight-title { font-size: 22px; color: var(--solar-white); margin-bottom: 15px; line-height: 1.3; }
.insight-excerpt { font-size: 15px; color: var(--platinum-grey); line-height: 1.6; margin-bottom: 30px; flex-grow: 1; }
.insight-link { font-family: var(--font-heading); font-size: 14px; color: var(--mercury-teal); font-weight: 700; }

/* Newsletter */
.newsletter-capture { padding: 40px 0 100px; position: relative; z-index: 2; }
.newsletter-box { background: rgba(15, 23, 42, 0.4); border: 1px solid rgba(255, 255, 255, 0.05); border-radius: var(--radius); padding: 50px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.newsletter-content { flex: 1; }
.newsletter-title { font-size: 28px; color: var(--solar-white); margin-bottom: 15px; }
.newsletter-desc { font-size: 15px; color: var(--platinum-grey); line-height: 1.6; max-width: 500px; }
.newsletter-form { display: flex; gap: 15px; flex: 1; max-width: 500px; }
.newsletter-input { flex: 1; padding: 16px 20px; }
.spam-note { font-size: 12px; color: rgba(255,255,255,0.3); text-align: center; margin-top: 15px; display: block; }

/* Footer */
.site-footer { background: #0B1120; padding: 80px 0 30px; border-top: 1px solid rgba(255, 255, 255, 0.05); position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 50px; margin-bottom: 60px; }
.footer-logo { object-fit: contain; width: auto; height: 35px; margin-bottom: 20px; opacity: 0.8; }
.footer-desc { font-size: 14px; color: rgba(203, 213, 225, 0.7); line-height: 1.6; }
.footer-heading { font-size: 14px; text-transform: uppercase; letter-spacing: 2px; color: var(--solar-white); margin-bottom: 20px; }
.footer-link { display: block; color: rgba(203, 213, 225, 0.85); text-decoration: none; font-size: 14px; margin-bottom: 12px; transition: 0.3s; }
.footer-link:hover { color: var(--mercury-teal); transform: translateX(5px); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.05); padding-top: 40px; padding-bottom: 40px; text-align: center; font-size: 13px; color: rgba(255, 255, 255, 0.5); display: flex; flex-direction: column; align-items: center; gap: 15px; }
.system-status { display: flex; align-items: center; justify-content: center; gap: 10px; background: rgba(46, 204, 113, 0.05); padding: 8px 16px; border-radius: 20px; border: 1px solid rgba(46, 204, 113, 0.1); margin-bottom: 10px; }
.status-dot { width: 8px; height: 8px; background-color: var(--kuber-emerald); border-radius: 50%; box-shadow: 0 0 10px var(--kuber-emerald); animation: pulseGreen 2s infinite; }
.status-text { font-family: var(--font-body); font-size: 11px; color: var(--kuber-emerald); letter-spacing: 1px; text-transform: uppercase; font-weight: 700; }
.founder-sig { font-size: 11px; color: rgba(255, 255, 255, 0.4); font-family: var(--font-heading); letter-spacing: 0.5px; }
@keyframes pulseGreen { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.9); } 100% { opacity: 1; transform: scale(1); } }

/* 6. MODALS & OVERLAYS
-------------------------------------------------------------- */
.lead-modal { position: fixed; inset: 0; z-index: 4000; display: flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transition: all 0.5s ease; }
.lead-modal.active { opacity: 1; visibility: visible; }
body.modal-open .site-wrapper { transform: scale(0.95); filter: blur(8px); border-radius: 20px; overflow: hidden; pointer-events: none; }
.modal-content { background: rgba(15, 23, 42, 0.75); backdrop-filter: blur(25px) saturate(200%); border: 1px solid rgba(255, 255, 255, 0.1); padding: 50px; border-radius: var(--radius); width: 100%; max-width: 500px; transform: translateY(30px); transition: transform 0.5s cubic-bezier(0.2, 1, 0.3, 1); box-shadow: 0 30px 60px rgba(0,0,0,0.5); }
.lead-modal.active .modal-content { transform: translateY(0); }
.modal-close { position: absolute; top: 20px; right: 20px; background: none; border: none; color: var(--solar-white); font-size: 24px; cursor: pointer; }
.modal-title { font-family: var(--font-heading); color: var(--solar-white); font-size: 24px; margin-bottom: 10px; }
.modal-subtitle { color: var(--platinum-grey); font-size: 14px; margin-bottom: 30px; }
.audit-form { display: flex; flex-direction: column; gap: 20px; }
.input-group { display: flex; flex-direction: column; }
.input-label { font-size: 12px; color: var(--mercury-teal); margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.glass-input { width: 100%; padding: 16px; background: rgba(255, 255, 255, 0.03); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--radius); color: var(--solar-white); font-family: var(--font-body); font-size: 16px; transition: 0.3s; }
.glass-input:focus { border-color: var(--mercury-teal); background: rgba(255, 255, 255, 0.05); box-shadow: 0 0 15px rgba(67, 209, 188, 0.1); }
select.glass-input { appearance: none; color: var(--platinum-grey); }

/* ================= COMMAND PALETTE (FINAL MASTER) ================= */
.command-palette-overlay {
  position: fixed;
  inset: 0;
  z-index: 30000; /* High enough to sit above everything but the cursor */
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(20px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 15vh;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s cubic-bezier(0.2, 1, 0.3, 1);
}

.command-palette-overlay.active {
  opacity: 1;
  visibility: visible;
}

.palette-box {
  width: 100%;
  max-width: 600px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7);
  transform: scale(0.95) translateY(-20px);
  transition: transform 0.3s cubic-bezier(0.2, 1, 0.3, 1);
  overflow: hidden;
}

.command-palette-overlay.active .palette-box {
  transform: scale(1) translateY(0);
}

.palette-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.palette-input {
  background: transparent;
  border: none;
  color: var(--solar-white);
  font-family: var(--font-body);
  font-size: 18px;
  width: 100%;
  outline: none;
}

.palette-close {
  font-size: 10px;
  color: var(--platinum-grey);
  border: 1px solid rgba(255,255,255,0.2);
  padding: 4px 8px;
  border-radius: 4px;
}

.palette-content { padding: 12px; }

.palette-group {
  font-size: 11px;
  color: var(--mercury-teal);
  text-transform: uppercase;
  letter-spacing: 2px;
  padding: 15px 12px 8px;
  font-weight: 800;
}

.palette-item {
  display: flex;
  align-items: center;
  width: 100%;
  text-align: left;
  padding: 14px 12px;
  background: transparent;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  text-decoration: none;
  color: var(--platinum-grey);
  transition: 0.2s;
  gap: 15px;
  font-family: var(--font-body);
}

/* Hover and Keyboard Selection States */
.palette-item:hover, 
.palette-item.selected {
  background: rgba(255, 255, 255, 0.05);
  color: var(--solar-white);
}

.palette-item.selected {
  border-left: 3px solid var(--mercury-teal);
  background: rgba(67, 209, 188, 0.1) !important;
  padding-left: 15px;
}

.palette-shortcut {
  margin-left: auto;
  font-size: 12px;
  color: rgba(255,255,255,0.2);
}

.cmd-k-badge {
  display: flex; align-items: center; gap: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 6px 10px; border-radius: 6px;
  font-family: var(--font-body); font-size: 11px;
  color: var(--platinum-grey); cursor: pointer;
  transition: 0.3s ease; margin-left: 10px;
}
.cmd-k-badge:hover { background: rgba(255, 255, 255, 0.1); color: var(--solar-white); }


/* CUSTOM CURSOR */
.cursor-follower { position: fixed; width: 20px; height: 20px; border: 1px solid var(--mercury-teal); border-radius: 50%; pointer-events: none; z-index: 99999; transform: translate(-50%, -50%); transition: width 0.3s, height 0.3s, background 0.3s; mix-blend-mode: difference; }
.cursor-follower.active { width: 50px; height: 50px; background: rgba(67, 209, 188, 0.1); border-color: transparent; }

/* 7. ANIMATION ENGINE
-------------------------------------------------------------- */
/* This is a robust animation engine that waits for the intro to finish */
/* It avoids the 'js-loading' hack and uses pure animation delays for performance */
.reveal-up { opacity: 0; animation: slideUpFade 1.2s cubic-bezier(0.2, 1, 0.3, 1) forwards; }
@keyframes slideUpFade { to { opacity: 1; transform: translateY(0); } }

.scroll-reveal { opacity: 0; transform: translateY(50px); transition: opacity 1s cubic-bezier(0.2, 1, 0.3, 1), transform 1s cubic-bezier(0.2, 1, 0.3, 1); }
.scroll-reveal.is-visible { opacity: 1; transform: translateY(0); }

/* Stagger delays, but they ONLY start after the main intro (2.5s) */
.delay-1 { animation-delay: 2.6s; transition-delay: 0.1s; } 
.delay-2 { animation-delay: 2.7s; transition-delay: 0.2s; } 
.delay-3 { animation-delay: 2.8s; transition-delay: 0.3s; } 
.delay-4 { animation-delay: 2.9s; transition-delay: 0.4s; }

/* 8. RESPONSIVE LAYER (MOBILE/TABLET PERFECTION)                 */
/* ============================================================== */
@media (max-width: 1024px) {
  /* Global Spacing */
  .container { padding: 0 24px !important; }
  
  /* Header Fix */
  .site-header { padding: 0 15px; top: 15px; }
  .header-inner { padding: 12px 20px !important; }
  .nav-logo img { height: 35px; } /* Slightly smaller logo for mobile */
  .desktop-nav { display: none !important; }
  .hamburger { display: flex !important; flex-direction: column; }

  /* Hero Fix (Perfect Centering) */
  .hero { 
    padding-top: 140px; 
    padding-bottom: 60px; 
    min-height: auto; 
    text-align: left; /* Restored to Left */
  }
  .hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .hero-text { 
    display: flex; 
    flex-direction: column; 
    align-items: flex-start; /* Aligns the pill and button to the left */
    padding: 0 20px; /* Ensures it doesn't touch the very edge */
    width: 100%; 
  }
  .hero-title { font-size: clamp(36px, 10vw, 50px); line-height: 1.1; margin-bottom: 20px; }
  .hero-subtitle { margin-bottom: 30px; font-size: 16px; }
  .hero-3d { display: none !important; }
  
  /* Sections & Typography */
  .section-title { font-size: clamp(28px, 8vw, 36px); }
  .services-grid, .bento-grid, .testimonials-grid, .insights-grid, .footer-grid, .visual-proof-container { 
    grid-template-columns: 1fr; 
  }
  .visual-proof-container { gap: 40px; }
  .card-glass { transform: none; }
  .bento-card, .service-card { padding: 30px 24px; }
  .span-1, .span-2 { grid-column: span 1; }
  
  /* Prevent Footer cutting off behind Sticky CTA */
  .site-wrapper { padding-bottom: 90px; }
}

/* ============================================================== */
/* MOBILE STICKY CTA (GRADIENT BACKGROUND FIX)                    */
/* ============================================================== */
.mobile-sticky-cta { 
  position: fixed; 
  bottom: 0; 
  left: 0; 
  right: 0; 
  z-index: 3000; 
  opacity: 0; 
  visibility: hidden; 
  transition: all 0.4s ease; 
  padding: 20px 24px;
  /* Creates a dark gradient so text behind it fades out smoothly */
  background: linear-gradient(to top, rgba(15,23,42,1) 40%, rgba(15,23,42,0));
  pointer-events: none;
}
.mobile-sticky-cta.show { 
  opacity: 1; 
  visibility: visible; 
  pointer-events: auto;
}
.mobile-sticky-cta .btn-full { 
  width: 100%; 
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5); 
}
@media (min-width: 1025px) {
  .mobile-sticky-cta { display: none !important; }
}
/* --- PERFORMANCE-OPTIMIZED ANIMATIONS --- */
.scroll-reveal { 
  opacity: 0; 
  transform: translateY(30px); 
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform, opacity; /* GPU acceleration */
}

/* 3D Card GPU Acceleration */
.glass-card-3d {
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
  will-change: transform;
}
.glass-card-3d {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}