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

:root {
  --bg: #152238; /* A darker space-cadet variant for deep background */
  --bg-surface: #223659; /* Brand exact: User's Glance Navy */
  --primary: #3bbdd6; /* Brand exact: Five Cyan */
  --primary-glow: rgba(59, 189, 214, 0.5); /* Cyan glow */
  --accent: #f4bf31; /* Brand exact: Yellow Growth Bar */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(244, 191, 49, 0.3);
  --glass: rgba(34, 54, 89, 0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; background: var(--bg); }
body { font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text-main); background: var(--bg); overflow-x: hidden; line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 5px; }

/* Trending Animations */
.reveal-up { opacity: 0; transform: translateY(50px); transition: all 1s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal-up.in-view { opacity: 1; transform: translateY(0); }

.stagger-1 { transition-delay: 0.1s; }
.stagger-2 { transition-delay: 0.2s; }
.stagger-3 { transition-delay: 0.3s; }
.stagger-4 { transition-delay: 0.4s; }

/* Typography */
h1, h2, h3, h4 { font-weight: 800; line-height: 1.1; letter-spacing: -0.03em; }
.text-gradient { background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.text-accent { color: var(--accent); }

/* Premium Navigation */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 5vw; transition: all 0.4s ease;
  background: transparent;
}
nav.scrolled {
  background: rgba(3, 7, 18, 0.85);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.logo { font-size: 1.5rem; font-weight: 900; color: white; text-decoration: none; display: flex; align-items: center; gap: 8px; letter-spacing: -1px; }
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 2.5rem; list-style: none; display: none; }
@media (min-width: 900px) { .nav-links { display: flex; } }
.nav-links a { text-decoration: none; color: var(--text-muted); font-weight: 600; font-size: 0.95rem; transition: color 0.3s ease; position: relative; }
.nav-links a:hover { color: var(--accent); }

.btn-premium {
  background: transparent;
  color: var(--accent) !important;
  border: 1.5px solid var(--accent);
  padding: 0.875rem 1.75rem; border-radius: 100px;
  font-weight: 800; font-size: 0.95rem; text-decoration: none;
  transition: all 0.3s ease; cursor: pointer;
  box-shadow: 0 0 10px rgba(244, 191, 49, 0.05) inset;
  display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1;
}
.btn-premium:hover { 
  background: linear-gradient(135deg, var(--accent) 0%, #eab308 100%);
  color: #0b1426 !important;
  box-shadow: 0 6px 20px rgba(244, 191, 49, 0.4); 
  transform: translateY(-2px); 
}

.btn-ghost {
  background: transparent; color: white; border: 1px solid rgba(255,255,255,0.2);
  padding: 0.875rem 1.75rem; border-radius: 100px; font-weight: 700; font-size: 0.95rem;
  text-decoration: none; transition: all 0.3s ease; cursor: pointer; backdrop-filter: blur(10px);
  display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1;
}
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }

.btn-outline-accent {
  background: transparent; color: var(--accent) !important; border: 1.5px solid var(--accent);
  padding: 0.875rem 1.75rem; border-radius: 100px; font-weight: 700; font-size: 0.95rem; 
  display: inline-flex; align-items: center; justify-content: center; text-align: center; line-height: 1;
  text-decoration: none; transition: all 0.3s ease; cursor: pointer;
  box-shadow: 0 0 10px rgba(244, 191, 49, 0.05) inset;
}
.btn-outline-accent:hover { background: rgba(244, 191, 49, 0.1); box-shadow: 0 0 20px rgba(244, 191, 49, 0.2) inset, 0 4px 15px rgba(244, 191, 49, 0.2); transform: translateY(-2px); }

/* Hero Section */
.hero {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  position: relative; padding: 160px 5vw 100px; text-align: center;
  background: radial-gradient(circle at 50% -20%, rgba(3, 52, 127, 0.4) 0%, transparent 60%);
}
.hero::after {
  content: ''; position: absolute; width: 100%; height: 100%; top: 0; left: 0;
  background-image: url('data:image/svg+xml,%3Csvg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"%3E%3Cg fill="none" fill-rule="evenodd"%3E%3Cg fill="%23ffffff" fill-opacity="0.03"%3E%3Cpath d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/%3E%3C/g%3E%3C/g%3E%3C/svg%3E');
  z-index: -1; pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.05);
  border: 1px solid var(--border); padding: 8px 20px; border-radius: 100px;
  font-size: 0.85rem; font-weight: 600; color: var(--text-muted); margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2); backdrop-filter: blur(10px);
}
.hero-badge span { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 10px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 0% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(1.5); } 100% { opacity: 1; transform: scale(1); } }

.hero h1 { font-size: clamp(3rem, 7vw, 6rem); max-width: 1100px; margin: 0 auto 1.5rem; letter-spacing: -0.04em; }
.hero p { font-size: clamp(1.1rem, 2vw, 1.35rem); color: var(--text-muted); max-width: 650px; margin: 0 auto 3rem; font-weight: 500; }
.hero-cta-group { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-bottom: 5rem; }

/* Dashboard UI Glow Shot */
.hero-dashboard-shot {
  position: relative; max-width: 1000px; margin: 0 auto;
  border-radius: 24px; border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.8) 0%, rgba(3, 7, 18, 0.9) 100%);
  box-shadow: 0 30px 100px -20px var(--primary-glow);
  overflow: hidden; backdrop-filter: blur(20px);
  transform: perspective(1000px) rotateX(10deg) translateY(0);
  transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-dashboard-shot:hover { transform: perspective(1000px) rotateX(0deg) translateY(-10px); }
.dashboard-top-bar { height: 16px; background: rgba(255,255,255,0.03); border-bottom: 1px solid var(--border); display: flex; align-items: center; padding: 0 20px; gap: 6px; }
.dash-dot { width: 8px; height: 8px; border-radius: 50%; background: #334155; }
.dash-dot:nth-child(1) { background: #ef4444; } .dash-dot:nth-child(2) { background: #eab308; } .dash-dot:nth-child(3) { background: #22c55e; }

/* Infinite Marquee Sliders */
.slider-section { padding: 4rem 0; background: rgba(255,255,255,0.02); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow: hidden; }
.slider-title { text-align: center; font-size: 0.9rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 2px; margin-bottom: 2rem; }
.marquee { display: flex; width: max-content; animation: scroll 15s linear infinite; }
.marquee-content { display: flex; gap: 4rem; padding: 0 2rem; align-items: center; }
.marquee-item { font-size: 2rem; font-weight: 900; color: rgba(255,255,255,0.2); letter-spacing: -1px; display: inline-block; }
.marquee:hover { animation-play-state: paused; }
@keyframes scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Global Sections */
.section { padding: 120px 5vw; position: relative; }
.section-tag { font-size: 0.9rem; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 2px; display: block; margin-bottom: 1rem; }
.section-title { font-size: clamp(2.5rem, 5vw, 4rem); font-weight: 800; margin-bottom: 1.5rem; max-width: 800px; }
.section-desc { font-size: 1.15rem; color: var(--text-muted); max-width: 600px; margin-bottom: 4rem; }

/* Bento Box Grid (Trending UI) */
.bento-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 300px); gap: 20px; }
.bento-box {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 24px; padding: 40px;
  position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end;
  transition: all 0.4s ease;
}
.bento-box:hover { border-color: rgba(249, 191, 33, 0.4); box-shadow: 0 10px 40px rgba(0,0,0,0.5); transform: translateY(-5px); }
.bento-box::before { content:''; position:absolute; top:0; left:0; width:100%; height:100%; background: radial-gradient(circle at top right, rgba(3,52,127,0.3), transparent 70%); opacity:0; transition: opacity 0.4s; }
.bento-box:hover::before { opacity: 1; }
.bento-span-2 { grid-column: span 2; }
.bento-row-2 { grid-row: span 2; }

.bento-num { font-size: 4rem; font-weight: 900; color: white; line-height: 1; letter-spacing: -2px; margin-bottom: 1rem; }
.bento-num.accent { color: var(--accent); }
.bento-label { font-size: 1.1rem; font-weight: 600; color: var(--text-muted); }

/* Split Services Cards (Premium Standard) */
.service-split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; margin-bottom: 120px; }
.service-split:nth-child(even) { direction: rtl; }
.service-split:nth-child(even) .ss-content { direction: ltr; }
.ss-image { background: white; border-radius: 30px; overflow: hidden; position: relative; border: 1px solid rgba(255,255,255,0.2); box-shadow: 0 30px 60px rgba(3,52,127,0.15); }
.ss-image img { width: 100%; height: auto; display: block; transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.ss-image:hover img { transform: scale(1.05); }
.ss-icon { width: 64px; height: 64px; border-radius: 20px; background: rgba(3,52,127,0.2); border: 1px solid rgba(3,52,127,0.4); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin-bottom: 2rem; color: var(--accent); }
.ss-content h3 { font-size: 2.5rem; margin-bottom: 1.5rem; }
.ss-content p { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 2rem; }
.ss-list { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.ss-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 1.05rem; font-weight: 500; color: #cbd5e1; }
.ss-list li i { color: var(--accent); font-weight: bold; }

/* Swiper Slider Testimonials */
.swiper { width: 100%; padding-bottom: 50px !important; }
.swiper-slide { height: auto; display: flex; }
.testimonial-card {
  background: linear-gradient(135deg, var(--bg-surface) 0%, rgba(15,23,42,0.4) 100%);
  border: 1px solid var(--border); border-radius: 24px; padding: 40px;
  display: flex; flex-direction: column; gap: 20px; width: 100%;
}
.test-quote { font-size: 1.25rem; font-weight: 500; font-style: italic; color: white; line-height: 1.6; flex-grow: 1; }
.test-author { display: flex; align-items: center; gap: 16px; margin-top: 20px; border-top: 1px solid var(--border); padding-top: 20px; }
.ta-avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--primary); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.2rem; }
.ta-info h4 { font-size: 1.05rem; margin-bottom: 4px; }
.ta-info p { font-size: 0.85rem; color: var(--accent); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

/* Pricing Cards */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.price-card {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: 24px; padding: 50px 40px;
  position: relative; overflow: hidden; transition: all 0.3s ease;
}
.price-card:hover { border-color: rgba(255,255,255,0.2); transform: translateY(-5px); }
.price-card.pro { background: linear-gradient(180deg, var(--bg-surface) 0%, #020C21 100%); border-color: rgba(249,191,33,0.3); box-shadow: 0 0 40px rgba(3,52,127,0.3); transform: scale(1.05); }
.price-card.pro:hover { transform: scale(1.05) translateY(-5px); }
.price-name { font-size: 1.1rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); margin-bottom: 1rem; }
.price-card.pro .price-name { color: var(--accent); }
.price-val { font-size: 3.5rem; font-weight: 900; letter-spacing: -2px; margin-bottom: 0.5rem; }
.price-val span { font-size: 1.2rem; font-weight: 500; color: var(--text-muted); letter-spacing: 0; }
.price-features { margin: 30px 0 40px; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.price-features li { display: flex; align-items: center; gap: 12px; font-weight: 500; color: #cbd5e1; }
.price-features li svg { width: 20px; height: 20px; color: var(--accent); }
.btn-price { width: 100%; border: 1px solid rgba(255,255,255,0.2); background: transparent; color: white; padding: 1rem; border-radius: 12px; font-weight: 700; font-size: 1rem; cursor: pointer; transition: all 0.3s; }
.price-card.pro .btn-price { background: var(--accent); color: var(--bg); border: none; }
.btn-price:hover { background: white; color: var(--bg); }
.price-card.pro .btn-price:hover { background: #eab308; }

/* Large Footer */
footer { border-top: 1px solid var(--border); padding: 120px 5vw 40px; background: #020617; position: relative; overflow: hidden; }
footer::before { content: ''; position: absolute; bottom: 0; width: 100%; height: 500px; background: radial-gradient(circle at 50% 150%, rgba(3,52,127,0.3) 0%, transparent 60%); pointer-events: none; }
.footer-massive { font-size: clamp(4rem, 15vw, 12rem); font-weight: 900; text-align: center; letter-spacing: -0.05em; background: linear-gradient(180deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 100%); -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 0.8; margin-bottom: 80px; user-select: none; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; position:relative; z-index:1; }
.f-col h4 { color: white; margin-bottom: 1.5rem; font-size: 1.1rem; }
.f-col p { color: var(--text-muted); max-width: 300px; }
.f-col ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.f-col a { color: var(--text-muted); text-decoration: none; transition: color 0.2s; font-weight: 500; }
.f-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 30px; display: flex; justify-content: space-between; align-items: center; color: var(--text-muted); font-size: 0.9rem; position:relative; z-index:1; }

/* Mobile Menu Toggle */
.menu-toggle { display: none; flex-direction: column; gap: 6px; cursor: pointer; z-index: 1001; }
.menu-toggle span { width: 30px; height: 3px; background: white; border-radius: 2px; transition: 0.3s; }

/* Mobile Navigation Overlay */
.mobile-nav {
  position: fixed; top: 0; right: -100%; width: 300px; height: 100vh; 
  background: #020617; z-index: 1000; padding: 100px 40px;
  display: flex; flex-direction: column; gap: 30px;
  transition: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -20px 0 60px rgba(0,0,0,0.5);
}
.mobile-nav.active { right: 0; }
.mobile-nav a { font-size: 1.5rem; font-weight: 700; color: white; text-decoration: none; transition: 0.3s; }
.mobile-nav a:hover { color: var(--accent); }

.mobile-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px);
  z-index: 999; display: none; opacity: 0; transition: 0.3s;
}
.mobile-overlay.active { display: block; opacity: 1; }

#form-success { pointer-events: none; }
#form-success.active { pointer-events: auto; }

@media (max-width: 1024px) {
  .nav-links { display: none; }
  .menu-toggle { display: flex; }
  
  .about-grid { grid-template-columns: 1fr !important; }
  .bento-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 500px; margin: 0 auto; }
  .price-card.pro { transform: none; }
  .price-card.pro:hover { transform: translateY(-5px); }
  .service-split { grid-template-columns: 1fr; gap: 40px; }
  .contact-split { grid-template-columns: 1fr !important; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .bento-span-2 { grid-column: span 1; }
  .bento-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 120px; }
  .footer-massive { display: none !important; }
  footer { padding: 40px 5vw 20px !important; }
  .footer-grid { 
    grid-template-columns: 1fr 1fr !important; 
    text-align: left !important; 
    gap: 25px !important; 
    margin-bottom: 30px !important;
  }
  .f-col { display: block !important; text-align: left !important; width: 100%; }
  .f-col:first-child { grid-column: span 2; margin-bottom: 20px; }
  .f-col:nth-child(5) { grid-column: span 2; margin-top: 10px; } 
  .f-col p { margin: 0; max-width: 100%; font-size: 0.95rem; }
  .f-col h4 { margin-bottom: 1rem; font-size: 1rem; }
  .f-col ul { gap: 8px; }
  .f-col .logo { justify-content: flex-start !important; font-size: 1.5rem !important; }
  .f-col div[style*="display:flex"] { justify-content: flex-start !important; }
  
  .footer-bottom { flex-direction: column !important; gap: 20px !important; text-align: left !important; align-items: flex-start !important; padding-top: 20px !important; }
  .footer-bottom > div { flex-direction: column !important; align-items: flex-start !important; gap: 20px !important; }
  .footer-bottom .copyright-text, .footer-bottom .footer-disclaimer { text-align: left !important; width: 100%; }
  .footer-bottom div[style*="gap:20px"] { 
    flex-wrap: wrap !important; 
    justify-content: flex-start !important; 
    gap: 10px 20px !important; 
    width: 100%;
  }
  .marquee { gap: 40px; }
  .marquee-content { gap: 40px; }
}

.mobile-only { display: none; }
@media (max-width: 500px) {
  .mobile-only { display: block; }
}

/* Interactive Premium Animations */
.interactive-element {
  transition: transform 0.1s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.1s ease;
  transform-style: preserve-3d;
  will-change: transform;
}

.idle-float {
  animation: float 6s ease-in-out infinite;
  transition: transform 0.5s ease;
}

.service-split:nth-of-type(1).idle-float { animation-delay: 0s; }
.service-split:nth-of-type(2).idle-float { animation-delay: -2s; }
.service-split:nth-of-type(3).idle-float { animation-delay: -4s; }

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-12px); }
  100% { transform: translateY(0px); }
}

/* --- Mobile Specific Refinements (Under 500px) --- */
@media (max-width: 500px) {
  nav { padding: 0.8rem 1rem !important; gap: 8px; }
  .logo { font-size: 1.2rem !important; gap: 4px !important; }
  .logo .bar-container { height: 14px !important; }
  
  nav .btn-premium { 
    padding: 0.5rem 0.8rem !important; 
    font-size: 0.75rem !important; 
    letter-spacing: 0;
    white-space: nowrap;
    min-width: fit-content;
  }

  .hero { padding-top: 100px !important; }
  .hero h1 { font-size: 2.8rem !important; }
  .hero-cta-group { flex-direction: column !important; width: 100%; max-width: 280px; margin: 0 auto 4rem; }
  .btn-premium, .btn-ghost { width: 100% !important; }

  /* Bento Box Stacking */
  .stack-mobile { flex-direction: column !important; text-align: center !important; gap: 1.5rem !important; }
  .bento-num { font-size: 3rem !important; }

  /* Footer Links Wrap */
  .footer-bottom > div { flex-direction: column !important; gap: 20px !important; align-items: center !important; }
  .footer-bottom div[style*="gap:20px"] { 
    flex-wrap: wrap !important; 
    justify-content: center !important; 
    gap: 15px 25px !important; 
    width: 100%;
  }

  .footer-disclaimer { text-align: center !important; width: 100% !important; margin-top: 10px !important; }
  .copyright-text { text-align: center !important; width: 100% !important; }
  
  .footer-grid { gap: 40px !important; }
}
