@import url('https://fonts.googleapis.com/css2?family=Clash+Display:wght@400;500;600;700&family=Inter:wght@300;400;500;600&display=swap');

:root {
   --bg-dark: #020617;
   --bg-card: #0f172a;
   --bg-elevated: #1e293b;
   --neon-coral: #ff4d4d;
   --neon-indigo: #6366f1;
   --text-main: #f8fafc;
   --text-muted: #94a3b8;
   --nav-height: 90px;
   --border-subtle: rgba(255, 255, 255, 0.08);
   --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

html {
   scroll-behavior: smooth;
}

body {
   font-family: 'Inter', sans-serif;
   background-color: var(--bg-dark);
   color: var(--text-main);
   overflow-x: hidden;
   cursor: none;
}

h1,
h2,
h3,
h4,
h5,
.display-font {
   font-family: 'Clash Display', sans-serif;
   text-transform: uppercase;
}

a {
   text-decoration: none;
   color: inherit;
   outline: none;
}

ul {
   list-style: none;
}

/* Custom Blend Cursor */
.cursor-follower {
   position: fixed;
   top: 0;
   left: 0;
   width: 40px;
   height: 40px;
   background-color: var(--text-main);
   border-radius: 50%;
   transform: translate(-50%, -50%);
   pointer-events: none;
   z-index: 10000;
   mix-blend-mode: difference;
   transition: width 0.3s, height 0.3s;
}

.cursor-hover .cursor-follower {
   width: 80px;
   height: 80px;
   background-color: var(--neon-coral);
}

/* Background Abstract Meshes */
.bg-mesh {
   position: fixed;
   top: -20vh;
   left: -10vw;
   width: 60vw;
   height: 60vh;
   background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 60%);
   filter: blur(90px);
   z-index: -1;
   pointer-events: none;
}

.bg-mesh-2 {
   position: fixed;
   bottom: -20vh;
   right: -10vw;
   width: 60vw;
   height: 60vh;
   background: radial-gradient(ellipse at center, rgba(255, 77, 77, 0.1) 0%, transparent 60%);
   filter: blur(90px);
   z-index: -1;
   pointer-events: none;
}

/* ================= STRICT HEADER ================= */
.site-header {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: var(--nav-height);
   display: flex;
   align-items: center;
   justify-content: space-between;
   padding: 0 4vw;
   z-index: 2000;
   background: rgba(2, 6, 23, 0.6);
   backdrop-filter: blur(16px);
   -webkit-backdrop-filter: blur(16px);
   border-bottom: 1px solid var(--border-subtle);
   transition: transform 0.5s var(--ease-out-expo), background 0.5s;
}

.site-header.hidden {
   transform: translateY(-100%);
}

.site-header.scrolled {
   background: rgba(2, 6, 23, 0.95);
   box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.logo img {
   height: 55px;
   filter: brightness(0) invert(1);
}

.nav-desktop {
   display: flex;
   gap: 40px;
   align-items: center;
}

.nav-desktop a {
   font-size: 14px;
   font-weight: 500;
   letter-spacing: 1.5px;
   text-transform: uppercase;
   position: relative;
   padding: 5px 0;
   overflow: hidden;
   color: var(--text-main);
}

.nav-desktop a::before {
   content: attr(data-text);
   position: absolute;
   top: 100%;
   left: 0;
   color: var(--neon-coral);
   transition: top 0.4s var(--ease-out-expo);
}

.nav-desktop a:hover::before {
   top: 5px;
}

.nav-desktop a:hover {
   color: transparent;
}

.btn-primary {
   padding: 14px 32px;
   background: var(--text-main);
   color: var(--bg-dark);
   font-family: 'Clash Display';
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 1px;
   border-radius: 4px;
   transition: 0.4s var(--ease-out-expo);
   cursor: pointer;
   border: none;
   position: relative;
   overflow: hidden;
   z-index: 1;
   display: inline-flex;
   align-items: center;
   justify-content: center;
}

.btn-primary::after {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 100%;
   height: 0%;
   background: var(--neon-coral);
   transition: height 0.4s var(--ease-out-expo);
   z-index: -1;
}

.btn-primary:hover {
   color: var(--text-main);
}

.btn-primary:hover::after {
   height: 100%;
}

/* Proper Mobile Navbar (Diagonal Sweep) */
.nav-toggle {
   display: none;
   flex-direction: column;
   justify-content: center;
   gap: 6px;
   width: 40px;
   height: 40px;
   background: transparent;
   border: none;
   cursor: pointer;
   z-index: 2002;
}

.nav-toggle span {
   display: block;
   width: 100%;
   height: 2px;
   background: var(--text-main);
   transition: 0.4s var(--ease-out-expo);
}

.nav-mobile-overlay {
   position: fixed;
   top: 0;
   left: 0;
   width: 100vw;
   height: 100vh;
   background: var(--bg-card);
   z-index: 2001;
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   clip-path: polygon(100% 0, 100% 0, 100% 100%, 100% 100%);
   transition: clip-path 0.8s var(--ease-out-expo);
}

.nav-mobile-overlay.active {
   clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.nav-toggle.active span:nth-child(1) {
   transform: translateY(8px) rotate(45deg);
   background: var(--neon-coral);
}

.nav-toggle.active span:nth-child(2) {
   opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
   transform: translateY(-8px) rotate(-45deg);
   background: var(--neon-coral);
}

.mobile-nav-list {
   display: flex;
   flex-direction: column;
   gap: 30px;
   text-align: center;
}

.mobile-nav-list a {
   font-family: 'Clash Display';
   font-size: 3.5rem;
   font-weight: 700;
   color: var(--text-main);
   opacity: 0;
   transform: translateX(50px);
   transition: 0.5s var(--ease-out-expo);
}

.nav-mobile-overlay.active .mobile-nav-list a {
   opacity: 1;
   transform: translateX(0);
}

.nav-mobile-overlay.active .mobile-nav-list a:hover {
   color: var(--neon-coral);
}

.nav-mobile-overlay.active .mobile-nav-list a:nth-child(1) {
   transition-delay: 0.2s;
}

.nav-mobile-overlay.active .mobile-nav-list a:nth-child(2) {
   transition-delay: 0.3s;
}

.nav-mobile-overlay.active .mobile-nav-list a:nth-child(3) {
   transition-delay: 0.4s;
}

.nav-mobile-overlay.active .mobile-nav-list a:nth-child(4) {
   transition-delay: 0.5s;
}

@media (max-width: 1024px) {

   .nav-desktop,
   .btn-primary.header-btn {
      display: none;
   }

   .nav-toggle {
      display: flex;
   }
}

/* ================= LAYOUT GLOBALS ================= */
section {
   padding: 160px 4vw;
   position: relative;
}

.section-title {
   font-size: clamp(3.5rem, 7vw, 7rem);
   line-height: 0.9;
   margin-bottom: 25px;
   font-weight: 700;
   letter-spacing: 1px;
}

.text-highlight {
   color: var(--neon-coral);
}

.reveal {
   opacity: 0;
   transform: translateY(60px);
   transition: 1.2s var(--ease-out-expo);
}

.reveal.active {
   opacity: 1;
   transform: translateY(0);
}

/* ================= INDEX SECTIONS ================= */
/* Hero */
.hero {
   height: 100vh;
   display: flex;
   align-items: center;
   justify-content: center;
   text-align: center;
   padding-top: var(--nav-height);
}

.hero-content {
   max-width: 1100px;
   z-index: 2;
}

.hero h1 {
   margin-bottom: 30px;
}

.hero p {
   font-size: 1.2rem;
   color: var(--text-muted);
   max-width: 600px;
   margin: 0 auto 50px;
   line-height: 1.6;
}

/* Marquee */
.marquee-bar {
   background: var(--bg-card);
   padding: 40px 0;
   overflow: hidden;
   display: flex;
   border-block: 1px solid var(--border-subtle);
   transform: rotate(-2deg) scale(1.05);
}

.marquee-track {
   display: flex;
   white-space: nowrap;
   animation: scrollLeft 25s linear infinite;
}

.marquee-track span {
   font-family: 'Clash Display';
   font-size: 2.5rem;
   font-weight: 600;
   padding: 0 50px;
   color: transparent;
   -webkit-text-stroke: 1px var(--text-muted);
   transition: 0.3s;
   cursor: default;
}

.marquee-track span:hover {
   color: var(--neon-coral);
   -webkit-text-stroke: 0;
}

@keyframes scrollLeft {
   to {
      transform: translateX(-50%);
   }
}

/* Services (Sticky Stacked Cards) */
.services-stack {
   position: relative;
   margin-top: 60px;
   padding-bottom: 50px;
}

.stack-card {
   position: sticky;
   top: 120px;
   background: var(--bg-card);
   border: 1px solid var(--border-subtle);
   border-radius: 12px;
   padding: 60px;
   margin-bottom: 40px;
   box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
   transition: transform 0.5s;
   display: flex;
   justify-content: space-between;
   align-items: center;
   gap: 40px;
}

.stack-card:nth-child(1) {
   top: 120px;
   z-index: 1;
}

.stack-card:nth-child(2) {
   top: 140px;
   z-index: 2;
}

.stack-card:nth-child(3) {
   top: 160px;
   z-index: 3;
}

.stack-card:nth-child(4) {
   top: 180px;
   z-index: 4;
}

.stack-content {
   max-width: 600px;
}

.stack-content h3 {
   font-size: 2.5rem;
   color: var(--text-main);
   margin-bottom: 20px;
}

.stack-content p {
   color: var(--text-muted);
   font-size: 1.1rem;
   line-height: 1.6;
}

.stack-number {
   font-family: 'Clash Display';
   font-size: 6rem;
   color: var(--border-subtle);
   font-weight: 700;
   line-height: 1;
}

@media (max-width: 768px) {
   .stack-card {
      flex-direction: column;
      align-items: flex-start;
      padding: 40px;
   }

   .stack-number {
      display: none;
   }
}

/* ROI Calculator */
.calculator-section {
   background: var(--bg-elevated);
   border-radius: 16px;
   padding: 80px;
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 60px;
   align-items: center;
   margin-top: 50px;
   border: 1px solid var(--border-subtle);
}

.calc-control {
   margin-bottom: 40px;
}

.calc-control label {
   display: flex;
   justify-content: space-between;
   font-size: 1.1rem;
   font-weight: 500;
   margin-bottom: 15px;
}

.calc-control label span {
   color: var(--neon-coral);
   font-family: 'Clash Display';
}

input[type="range"] {
   width: 100%;
   -webkit-appearance: none;
   height: 4px;
   background: var(--bg-dark);
   border-radius: 2px;
   outline: none;
}

input[type="range"]::-webkit-slider-thumb {
   -webkit-appearance: none;
   width: 24px;
   height: 24px;
   background: var(--text-main);
   border-radius: 50%;
   cursor: pointer;
   transition: 0.3s;
   border: 4px solid var(--neon-coral);
}

input[type="range"]::-webkit-slider-thumb:hover {
   transform: scale(1.2);
}

.calc-display {
   background: var(--bg-dark);
   padding: 60px 40px;
   border-radius: 12px;
   text-align: center;
   border: 1px solid var(--border-subtle);
   box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.5);
}

.calc-display h4 {
   color: var(--text-muted);
   text-transform: uppercase;
   letter-spacing: 2px;
   font-size: 1rem;
   margin-bottom: 20px;
}

.calc-display .val {
   font-size: 4.5rem;
   font-family: 'Clash Display';
   color: var(--neon-coral);
   font-weight: 700;
   line-height: 1;
}

/* Analytics Report (SVG Draw) */
.analytics-grid {
   display: grid;
   grid-template-columns: 350px 1fr;
   gap: 40px;
   margin-top: 60px;
}

.analytics-cards {
   display: flex;
   flex-direction: column;
   gap: 20px;
}

.a-card {
   background: var(--bg-card);
   padding: 40px;
   border-radius: 12px;
   border: 1px solid var(--border-subtle);
}

.a-card h5 {
   color: var(--text-muted);
   font-size: 1rem;
   margin-bottom: 15px;
}

.a-card .stat {
   font-size: 3.5rem;
   font-family: 'Clash Display';
   color: var(--text-main);
   line-height: 1;
}

.svg-chart-container {
   background: var(--bg-card);
   border-radius: 12px;
   border: 1px solid var(--border-subtle);
   padding: 40px;
   display: flex;
   align-items: center;
   justify-content: center;
   position: relative;
   overflow: hidden;
}

.chart-path {
   stroke-dasharray: 1000;
   stroke-dashoffset: 1000;
   transition: stroke-dashoffset 2s var(--ease-out-expo);
}

.svg-chart-container.active .chart-path {
   stroke-dashoffset: 0;
}

/* Industries (Hover Cards) */
.industry-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
   gap: 30px;
   margin-top: 60px;
}

.ind-card {
   height: 350px;
   background: var(--bg-elevated);
   border-radius: 12px;
   border: 1px solid var(--border-subtle);
   padding: 40px;
   display: flex;
   flex-direction: column;
   justify-content: flex-end;
   position: relative;
   overflow: hidden;
   transition: 0.4s;
   cursor: pointer;
}

.ind-card::before {
   content: '';
   position: absolute;
   inset: 0;
   background: linear-gradient(to top, var(--bg-dark), transparent);
   z-index: 1;
}

.ind-card:hover {
   transform: translateY(-10px);
   border-color: var(--neon-indigo);
}

.ind-card-content {
   position: relative;
   z-index: 2;
}

.ind-card-content h3 {
   font-size: 2rem;
   margin-bottom: 10px;
   color: var(--text-main);
}

.ind-card-content p {
   color: var(--text-muted);
   font-size: 1rem;
   transform: translateY(20px);
   opacity: 0;
   transition: 0.4s;
}

.ind-card:hover .ind-card-content p {
   transform: translateY(0);
   opacity: 1;
}

/* Forms & Legal Pages */
.page-hero {
   padding: 220px 4vw 100px;
   text-align: center;
   border-bottom: 1px solid var(--border-subtle);
   background: radial-gradient(circle at top, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
}

.form-section {
   max-width: 1200px;
   margin: 0 auto;
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 80px;
}

.input-group {
   margin-bottom: 30px;
}

.custom-input {
   width: 100%;
   background: var(--bg-card);
   border: 1px solid var(--border-subtle);
   padding: 20px;
   border-radius: 4px;
   color: var(--text-main);
   font-family: 'Inter';
   font-size: 1.1rem;
   outline: none;
   transition: border-color 0.3s;
}

.custom-input:focus {
   border-color: var(--neon-coral);
}

.custom-select {
   appearance: none;
   color: var(--text-muted);
}

.hq-box {
   background: var(--bg-elevated);
   padding: 60px;
   border-radius: 12px;
   border: 1px solid var(--border-subtle);
}

.hq-box h3 {
   font-size: 2.5rem;
   color: var(--neon-indigo);
   margin-bottom: 40px;
}

.hq-detail {
   margin-bottom: 30px;
}

.hq-detail h5 {
   font-size: 0.9rem;
   color: var(--text-muted);
   letter-spacing: 1px;
   margin-bottom: 10px;
}

.hq-detail p {
   font-size: 1.2rem;
   color: var(--text-main);
}

.legal-prose {
   max-width: 850px;
   margin: 0 auto;
   font-size: 1.15rem;
   line-height: 1.8;
   color: var(--text-muted);
}

.legal-prose h2 {
   font-size: 2.2rem;
   color: var(--text-main);
   margin: 60px 0 25px;
   font-family: 'Clash Display';
}

/* Live Chat Toggle */
.chat-wrapper {
   position: fixed;
   bottom: 30px;
   right: 30px;
   z-index: 1999;
}

.chat-icon {
   width: 60px;
   height: 60px;
   background: var(--neon-indigo);
   border-radius: 50%;
   display: flex;
   align-items: center;
   justify-content: center;
   cursor: pointer;
   border: none;
   box-shadow: 0 10px 20px rgba(99, 102, 241, 0.4);
   transition: 0.3s;
}

.chat-icon:hover {
   transform: scale(1.05);
}

.chat-window {
   position: absolute;
   bottom: 80px;
   right: 0;
   width: 340px;
   background: var(--bg-card);
   border: 1px solid var(--border-subtle);
   border-radius: 12px;
   padding: 25px;
   display: none;
   box-shadow: 0 20px 40px rgba(0, 0, 0, 0.8);
}

.chat-window.active {
   display: block;
   animation: popup 0.4s var(--ease-out-expo);
}

@keyframes popup {
   from {
      opacity: 0;
      transform: translateY(20px) scale(0.95);
   }

   to {
      opacity: 1;
      transform: translateY(0) scale(1);
   }
}

/* ================= STRICT FOOTER ================= */
.site-footer {
   background: var(--bg-card);
   border-top: 1px solid var(--border-subtle);
   padding: 120px 4vw 40px;
   margin-top: 100px;
}

.footer-grid {
   display: grid;
   grid-template-columns: 2fr 1fr 1fr 1fr;
   gap: 60px;
   margin-bottom: 80px;
   max-width: 1400px;
   margin-inline: auto;
}

.footer-brand img {
   height: 55px;
   filter: brightness(0) invert(1);
   margin-bottom: 25px;
}

.footer-brand p {
   color: var(--text-muted);
   line-height: 1.6;
   max-width: 350px;
}

.footer-nav h4 {
   font-size: 1.2rem;
   font-family: 'Clash Display';
   margin-bottom: 25px;
   color: var(--text-main);
}

.footer-nav ul li {
   margin-bottom: 15px;
}

.footer-nav ul li a {
   color: var(--text-muted);
   transition: 0.3s;
   font-size: 1rem;
}

.footer-nav ul li a:hover {
   color: var(--neon-coral);
}

.footer-base {
   border-top: 1px solid var(--border-subtle);
   padding-top: 30px;
   display: flex;
   justify-content: space-between;
   align-items: center;
   color: var(--text-muted);
   font-size: 0.9rem;
   max-width: 1400px;
   margin-inline: auto;
}

/* Responsive Adjustments */
@media (max-width: 1200px) {

   .analytics-grid,
   .calculator-section,
   .form-section {
      grid-template-columns: 1fr;
   }

   .calculator-section {
      padding: 50px;
      gap: 40px;
   }
}

@media (max-width: 991px) {
   .footer-grid {
      grid-template-columns: 1fr 1fr;
   }
}

@media (max-width: 768px) {
   .section-title {
      font-size: 3rem;
   }

   section {
      padding: 100px 5vw;
   }

   .footer-grid {
      grid-template-columns: 1fr;
   }

   .footer-base {
      flex-direction: column;
      gap: 15px;
      text-align: center;
   }
}