/* ==========================================================================
   Base, Variables & Architectural Grid
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Syne:wght@400;500;600;700;800&display=swap');

:root {
   --bg-void: #020203;
   --bg-surface: #0a0a0c;
   --bg-glass: rgba(20, 20, 22, 0.6);
   --chrome-light: #f5f5f7;
   --chrome-mid: #a1a1aa;
   --chrome-dark: #3f3f46;
   --gradient-chrome: linear-gradient(135deg, #ffffff 0%, #a1a1aa 50%, #3f3f46 100%);
   --font-display: 'Anton', sans-serif;
   --font-ui: 'Syne', sans-serif;
   --header-height: 100px;
   --transition-liquid: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
   --transition-snappy: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
   cursor: none !important;
}

html {
   scroll-behavior: smooth;
   font-size: 16px;
   background-color: var(--bg-void);
   color: var(--chrome-light);
   overflow-x: hidden;
}

body {
   font-family: var(--font-ui);
   line-height: 1.6;
   overflow-x: hidden;
   -webkit-font-smoothing: antialiased;
}

a {
   text-decoration: none;
   color: inherit;
}

ul {
   list-style: none;
}

img {
   max-width: 100%;
   height: auto;
   display: block;
}

::selection {
   background: var(--chrome-light);
   color: var(--bg-void);
}

::-webkit-scrollbar {
   width: 6px;
}

::-webkit-scrollbar-track {
   background: var(--bg-void);
}

::-webkit-scrollbar-thumb {
   background: var(--chrome-dark);
   border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
   background: var(--chrome-light);
}

/* Architectural Background Grid */
.grid-bg {
   position: fixed;
   top: 0;
   left: 0;
   width: 100vw;
   height: 100vh;
   pointer-events: none;
   z-index: -2;
   background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
   background-size: 100px 100px;
   background-position: center center;
}

/* ==========================================================================
   Magnetic Blend-Mode Cursor
   ========================================================================== */
.cursor-main {
   position: fixed;
   top: 0;
   left: 0;
   width: 20px;
   height: 20px;
   background: var(--chrome-light);
   border-radius: 50%;
   pointer-events: none;
   z-index: 10000;
   transform: translate(-50%, -50%);
   mix-blend-mode: difference;
   transition: width 0.3s, height 0.3s, border-radius 0.3s;
}

.cursor-trail {
   position: fixed;
   top: 0;
   left: 0;
   width: 60px;
   height: 60px;
   border: 1px solid rgba(255, 255, 255, 0.2);
   border-radius: 50%;
   pointer-events: none;
   z-index: 9999;
   transform: translate(-50%, -50%);
   transition: width 0.4s, height 0.4s, background 0.4s;
}

.cursor-main.hover {
   width: 80px;
   height: 80px;
}

.cursor-trail.hover {
   opacity: 0;
}

/* ==========================================================================
   Typography & Core UI Elements
   ========================================================================== */
h1,
h2,
h3,
h4,
h5 {
   font-family: var(--font-display);
   text-transform: uppercase;
   font-weight: 400;
   line-height: 1;
   letter-spacing: 0.02em;
}

.text-chrome {
   background: var(--gradient-chrome);
   -webkit-background-clip: text;
   -webkit-text-fill-color: transparent;
}

.title-giant {
   font-size: clamp(4rem, 12vw, 11rem);
   letter-spacing: 0.01em;
   margin-bottom: 20px;
   text-transform: uppercase;
}

.title-section {
   font-size: clamp(3rem, 7vw, 6rem);
   margin-bottom: 40px;
}

.text-lead {
   font-family: var(--font-ui);
   font-size: clamp(1.1rem, 2vw, 1.4rem);
   color: var(--chrome-mid);
   max-width: 600px;
   font-weight: 400;
}

/* Liquid Chrome Button */
.btn-chrome {
   position: relative;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 18px 45px;
   background: transparent;
   color: var(--chrome-light);
   font-family: var(--font-ui);
   font-weight: 700;
   font-size: 0.9rem;
   text-transform: uppercase;
   letter-spacing: 2px;
   border: 1px solid rgba(255, 255, 255, 0.2);
   border-radius: 100px;
   overflow: hidden;
   transition: var(--transition-snappy);
   z-index: 1;
}

.btn-chrome::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: var(--chrome-light);
   z-index: -1;
   transform: scaleX(0);
   transform-origin: right;
   transition: transform 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

.btn-chrome:hover::before {
   transform: scaleX(1);
   transform-origin: left;
}

.btn-chrome:hover {
   color: var(--bg-void);
   border-color: transparent;
   box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
}

/* Animation Classes */
.mask-reveal {
   clip-path: inset(100% 0 0 0);
   transition: clip-path 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.mask-reveal.in-view {
   clip-path: inset(0 0 0 0);
}

.fade-up {
   opacity: 0;
   transform: translateY(40px);
   transition: 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-up.in-view {
   opacity: 1;
   transform: translateY(0);
}

/* ==========================================================================
   Strict Header & Curtain Mobile Menu
   ========================================================================== */
header {
   position: fixed;
   top: 0;
   left: 0;
   width: 100%;
   height: var(--header-height);
   z-index: 1000;
   border-bottom: 1px solid rgba(255, 255, 255, 0);
   transition: var(--transition-snappy);
}

header.scrolled {
   background: rgba(2, 2, 3, 0.85);
   backdrop-filter: blur(20px);
   border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.header-wrapper {
   display: flex;
   justify-content: space-between;
   align-items: center;
   width: 92%;
   max-width: 1700px;
   margin: 0 auto;
   height: 100%;
   position: relative;
   z-index: 1001;
}

.logo img {
   height: 90px;
   filter: drop-shadow(0 0 15px rgba(255, 255, 255, 0.3));
}

/* Desktop Navigation */
.nav-desktop {
   display: flex;
   gap: 40px;
}

.nav-desktop a {
   font-family: var(--font-ui);
   font-size: 0.85rem;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 1px;
   color: var(--chrome-mid);
   transition: var(--transition-snappy);
   position: relative;
}

.nav-desktop a:hover {
   color: var(--chrome-light);
}

.nav-desktop a::after {
   content: '';
   position: absolute;
   bottom: -5px;
   left: 50%;
   transform: translateX(-50%);
   width: 4px;
   height: 4px;
   background: var(--chrome-light);
   border-radius: 50%;
   opacity: 0;
   transition: var(--transition-snappy);
}

.nav-desktop a:hover::after {
   opacity: 1;
   bottom: -8px;
}

/* Mobile Hamburger Toggle */
.menu-btn {
   display: none;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   width: 50px;
   height: 50px;
   background: transparent;
   border: 1px solid rgba(255, 255, 255, 0.2);
   border-radius: 50%;
   z-index: 1002;
   gap: 5px;
   transition: var(--transition-snappy);
}

.menu-btn span {
   width: 20px;
   height: 2px;
   background: var(--chrome-light);
   transition: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.menu-btn.active span:nth-child(1) {
   transform: translateY(7px) rotate(45deg);
}

.menu-btn.active span:nth-child(2) {
   opacity: 0;
}

.menu-btn.active span:nth-child(3) {
   transform: translateY(-7px) rotate(-45deg);
}

/* Curtain Mobile Menu */
.mobile-curtain {
   position: fixed;
   top: 0;
   left: 0;
   width: 100vw;
   height: 100vh;
   background: var(--bg-void);
   z-index: 1000;
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   transform: translateY(-100%);
   transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
   border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-curtain.active {
   transform: translateY(0);
}

.mobile-nav-list {
   text-align: center;
   display: flex;
   flex-direction: column;
   gap: 30px;
}

.mobile-nav-list li {
   overflow: hidden;
}

.mobile-nav-list a {
   font-family: var(--font-display);
   font-size: 4rem;
   color: transparent;
   -webkit-text-stroke: 1px rgba(255, 255, 255, 0.3);
   text-transform: uppercase;
   display: block;
   transform: translateY(100%);
   transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s;
}

.mobile-curtain.active .mobile-nav-list a {
   transform: translateY(0);
}

.mobile-nav-list a:hover {
   color: var(--chrome-light);
   -webkit-text-stroke: 0px;
}

.mobile-curtain.active .mobile-nav-list li:nth-child(1) a {
   transition-delay: 0.2s;
}

.mobile-curtain.active .mobile-nav-list li:nth-child(2) a {
   transition-delay: 0.3s;
}

.mobile-curtain.active .mobile-nav-list li:nth-child(3) a {
   transition-delay: 0.4s;
}

.mobile-curtain.active .mobile-nav-list li:nth-child(4) a {
   transition-delay: 0.5s;
}

@media (max-width: 1024px) {

   .nav-desktop,
   .btn-chrome.header-btn {
      display: none;
   }

   .menu-btn {
      display: flex;
   }
}

/* ==========================================================================
   Layout, Components & Sections
   ========================================================================== */
section {
   padding: 150px 4%;
   position: relative;
   z-index: 2;
}

.container {
   max-width: 1500px;
   margin: 0 auto;
   position: relative;
}

.grid-2 {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 80px;
   align-items: center;
}

/* Hero Section */
.hero {
   height: 100vh;
   display: flex;
   align-items: center;
   position: relative;
   overflow: hidden;
   padding-top: var(--header-height);
}

.hero-content {
   z-index: 2;
   position: relative;
}

.liquid-sphere {
   position: absolute;
   right: 5%;
   top: 50%;
   transform: translateY(-50%);
   width: 500px;
   height: 500px;
   background: radial-gradient(circle at 30% 30%, #ffffff, #a1a1aa, #000000);
   border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
   box-shadow: inset 20px 20px 50px rgba(255, 255, 255, 0.5), inset -20px -20px 50px rgba(0, 0, 0, 0.8), 0 0 100px rgba(255, 255, 255, 0.1);
   animation: morphSphere 15s ease-in-out infinite alternate;
   z-index: 0;
   pointer-events: none;
}

@keyframes morphSphere {
   0% {
      border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
      transform: translateY(-50%) rotate(0deg);
   }

   100% {
      border-radius: 60% 40% 30% 70% / 50% 60% 40% 50%;
      transform: translateY(-50%) rotate(45deg);
   }
}

/* Infinite Typography Marquee */
.marquee-container {
   width: 100%;
   overflow: hidden;
   background: var(--chrome-light);
   padding: 30px 0;
   transform: rotate(-2deg) scale(1.05);
   z-index: 10;
   position: relative;
   margin: 50px 0;
}

.marquee-track {
   display: flex;
   width: max-content;
   animation: scrollMarquee 25s linear infinite;
}

.marquee-item {
   font-family: var(--font-display);
   font-size: 3rem;
   color: var(--bg-void);
   text-transform: uppercase;
   margin: 0 40px;
   display: flex;
   align-items: center;
   gap: 40px;
}

.marquee-item::after {
   content: '///';
   color: var(--chrome-mid);
}

@keyframes scrollMarquee {
   100% {
      transform: translateX(-50%);
   }
}

/* Holographic Services Grid */
.services-grid {
   display: grid;
   grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
   gap: 30px;
   margin-top: 60px;
}

.service-card {
   background: var(--bg-surface);
   border: 1px solid rgba(255, 255, 255, 0.05);
   padding: 50px 40px;
   position: relative;
   overflow: hidden;
   transition: var(--transition-snappy);
   border-radius: 20px;
}

.service-card::before {
   content: '';
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 100%;
   background: radial-gradient(800px circle at var(--mouse-x) var(--mouse-y), rgba(255, 255, 255, 0.06), transparent 40%);
   opacity: 0;
   transition: opacity 0.3s;
   z-index: 0;
}

.service-card:hover::before {
   opacity: 1;
}

.service-card:hover {
   transform: translateY(-10px);
   border-color: rgba(255, 255, 255, 0.2);
}

.service-card * {
   position: relative;
   z-index: 1;
}

.service-icon {
   font-family: var(--font-display);
   font-size: 3.5rem;
   color: var(--chrome-mid);
   margin-bottom: 20px;
   transition: color 0.3s;
}

.service-card:hover .service-icon {
   color: var(--chrome-light);
}

.service-card h3 {
   font-size: 2rem;
   margin-bottom: 15px;
   font-family: var(--font-ui);
   font-weight: 700;
   text-transform: none;
}

.service-card p {
   color: var(--chrome-mid);
   font-size: 1.05rem;
}

/* Dashboard Terminal UI */
.dashboard-ui {
   background: rgba(10, 10, 12, 0.8);
   backdrop-filter: blur(20px);
   border: 1px solid rgba(255, 255, 255, 0.1);
   border-radius: 30px;
   padding: 50px;
   box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
   position: relative;
   overflow: hidden;
}

.dashboard-ui::after {
   content: '';
   position: absolute;
   top: 0;
   right: 0;
   width: 150px;
   height: 150px;
   background: rgba(255, 255, 255, 0.05);
   filter: blur(40px);
   border-radius: 50%;
}

.dash-header {
   display: flex;
   justify-content: space-between;
   align-items: flex-end;
   border-bottom: 1px solid rgba(255, 255, 255, 0.1);
   padding-bottom: 20px;
   margin-bottom: 40px;
}

.dash-header h4 {
   font-size: 1.5rem;
   letter-spacing: 1px;
}

.metric-group {
   margin-bottom: 30px;
}

.metric-info {
   display: flex;
   justify-content: space-between;
   font-family: var(--font-ui);
   font-size: 1rem;
   color: var(--chrome-mid);
   margin-bottom: 10px;
   font-weight: 600;
}

.metric-track {
   width: 100%;
   height: 6px;
   background: rgba(255, 255, 255, 0.05);
   border-radius: 3px;
   overflow: hidden;
}

.metric-fill {
   height: 100%;
   background: var(--gradient-chrome);
   border-radius: 3px;
   width: 0%;
   transition: width 2s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Minimalist ROI Calculator */
.calc-section {
   text-align: center;
   max-width: 900px;
   margin: 0 auto;
   background: var(--bg-surface);
   padding: 80px;
   border-radius: 30px;
   border: 1px solid rgba(255, 255, 255, 0.05);
}

.calc-display {
   font-family: var(--font-display);
   font-size: 6rem;
   color: var(--chrome-light);
   line-height: 1;
   margin: 30px 0;
}

.slider-container {
   position: relative;
   margin: 40px 0;
}

.line-slider {
   width: 100%;
   -webkit-appearance: none;
   height: 2px;
   background: rgba(255, 255, 255, 0.2);
   outline: none;
}

.line-slider::-webkit-slider-thumb {
   -webkit-appearance: none;
   width: 24px;
   height: 24px;
   border-radius: 50%;
   background: var(--bg-void);
   border: 2px solid var(--chrome-light);
   cursor: pointer;
   transition: transform 0.2s, background 0.2s;
}

.line-slider::-webkit-slider-thumb:hover {
   transform: scale(1.5);
   background: var(--chrome-light);
}

.calc-outputs {
   display: flex;
   justify-content: space-between;
   border-top: 1px solid rgba(255, 255, 255, 0.1);
   padding-top: 40px;
   text-align: left;
}

.output-box h5 {
   font-family: var(--font-ui);
   font-weight: 500;
   color: var(--chrome-mid);
   text-transform: none;
   font-size: 1.1rem;
   margin-bottom: 10px;
}

.output-box .val {
   font-family: var(--font-display);
   font-size: 3.5rem;
}

/* Verticals List */
.verticals-list {
   border-top: 1px solid rgba(255, 255, 255, 0.1);
   margin-top: 60px;
}

.vertical-item {
   padding: 50px 0;
   border-bottom: 1px solid rgba(255, 255, 255, 0.1);
   display: grid;
   grid-template-columns: auto 1fr auto;
   gap: 40px;
   align-items: center;
   transition: var(--transition-snappy);
}

.vertical-item:hover {
   padding-left: 30px;
   padding-right: 30px;
   background: rgba(255, 255, 255, 0.02);
}

.v-num {
   font-family: var(--font-ui);
   font-weight: 700;
   font-size: 1.5rem;
   color: var(--chrome-dark);
}

.v-title {
   font-family: var(--font-display);
   font-size: 4rem;
   text-transform: uppercase;
}

.v-desc {
   color: var(--chrome-mid);
   max-width: 400px;
   text-align: right;
   font-size: 1.1rem;
}

/* Testimonials Minimal */
.testi-wrapper {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 40px;
   margin-top: 60px;
}

.testi-card {
   padding: 40px;
   border: 1px solid rgba(255, 255, 255, 0.05);
   border-radius: 20px;
   background: var(--bg-surface);
}

.testi-card p {
   font-size: 1.3rem;
   color: var(--chrome-light);
   margin-bottom: 30px;
   font-weight: 400;
   line-height: 1.5;
}

.testi-card h6 {
   font-family: var(--font-ui);
   color: var(--chrome-mid);
   text-transform: uppercase;
   letter-spacing: 1px;
   font-weight: 600;
   font-size: 0.9rem;
}

/* High-Tech Form */
.form-box {
   background: var(--bg-surface);
   padding: 60px;
   border-radius: 30px;
   border: 1px solid rgba(255, 255, 255, 0.05);
}

.input-row {
   position: relative;
   margin-bottom: 40px;
}

.input-row input,
.input-row textarea,
.input-row select {
   width: 100%;
   background: transparent;
   border: none;
   border-bottom: 1px solid rgba(255, 255, 255, 0.2);
   padding: 15px 0;
   color: var(--chrome-light);
   font-family: var(--font-ui);
   font-size: 1.1rem;
   outline: none;
   transition: 0.3s;
}

.input-row label {
   position: absolute;
   top: 15px;
   left: 0;
   color: var(--chrome-mid);
   pointer-events: none;
   transition: 0.3s;
   font-size: 1.1rem;
}

.input-row input:focus,
.input-row input:valid,
.input-row textarea:focus,
.input-row textarea:valid {
   border-bottom-color: var(--chrome-light);
}

.input-row input:focus~label,
.input-row input:valid~label,
.input-row textarea:focus~label,
.input-row textarea:valid~label {
   top: -20px;
   font-size: 0.85rem;
   color: var(--chrome-light);
}

/* Chat FAB */
.chat-fab {
   position: fixed;
   bottom: 40px;
   right: 40px;
   width: 65px;
   height: 65px;
   border-radius: 50%;
   background: var(--chrome-light);
   display: flex;
   align-items: center;
   justify-content: center;
   z-index: 1000;
   box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2);
   transition: transform 0.3s;
}

.chat-fab:hover {
   transform: scale(1.1) translateY(-5px);
}

.chat-fab svg {
   width: 30px;
   height: 30px;
   fill: var(--bg-void);
}

/* ==========================================================================
   Strict Footer Structure
   ========================================================================== */
footer {
   padding: 120px 4% 40px;
   background: #010101;
   border-top: 1px solid rgba(255, 255, 255, 0.05);
   position: relative;
   z-index: 2;
}

.footer-grid {
   max-width: 1700px;
   margin: 0 auto;
   display: grid;
   grid-template-columns: 2fr 1fr 1fr 1fr;
   gap: 80px;
   margin-bottom: 100px;
}

.footer-logo img {
   height: 90px;
   opacity: 0.8;
}

.footer-text {
   color: var(--chrome-mid);
   margin-top: 30px;
   max-width: 400px;
   font-size: 1.1rem;
   line-height: 1.6;
}

.footer-col h4 {
   font-family: var(--font-ui);
   color: var(--chrome-light);
   margin-bottom: 30px;
   font-size: 1rem;
   font-weight: 700;
   letter-spacing: 1px;
}

.footer-col li {
   margin-bottom: 15px;
}

.footer-col a,
.footer-col span {
   color: var(--chrome-mid);
   font-family: var(--font-ui);
   font-size: 1rem;
   transition: 0.3s;
}

.footer-col a:hover {
   color: var(--chrome-light);
   padding-left: 8px;
}

.footer-bottom {
   max-width: 1700px;
   margin: 0 auto;
   padding-top: 40px;
   border-top: 1px solid rgba(255, 255, 255, 0.05);
   display: flex;
   justify-content: space-between;
   align-items: center;
   color: var(--chrome-mid);
   font-family: var(--font-ui);
   font-size: 0.95rem;
}

.legal-nav a {
   margin-left: 40px;
   transition: 0.3s;
}

.legal-nav a:hover {
   color: var(--chrome-light);
}

/* Legal Pages Architecture */
.legal-hero {
   padding-top: calc(var(--header-height) + 120px);
   padding-bottom: 80px;
   border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-container {
   max-width: 900px;
   margin: 0 auto;
   padding: 80px 4%;
}

.legal-container h2 {
   font-family: var(--font-display);
   font-size: 2.5rem;
   margin: 60px 0 20px;
   color: var(--chrome-light);
}

.legal-container p {
   color: var(--chrome-mid);
   font-size: 1.15rem;
   margin-bottom: 25px;
   line-height: 1.8;
}

/* Responsive Constraints */
@media (max-width: 1200px) {

   .grid-2,
   .footer-grid {
      grid-template-columns: 1fr;
      gap: 60px;
   }

   .liquid-sphere {
      display: none;
   }

   .title-giant {
      font-size: 5rem;
   }

   .vertical-item {
      grid-template-columns: auto 1fr;
      gap: 20px;
   }

   .v-num {
      grid-column: 1;
      grid-row: 1;
   }

   .v-title {
      grid-column: 2;
      grid-row: 1;
      font-size: 2.5rem;
   }

   .v-desc {
      grid-column: 1 / -1;
      grid-row: 2;
      text-align: left;
   }
}

@media (max-width: 768px) {

   .calc-outputs,
   .testi-wrapper {
      flex-direction: column;
      gap: 40px;
   }

   .testi-wrapper {
      display: flex;
   }

   .footer-bottom {
      flex-direction: column;
      gap: 20px;
      text-align: center;
   }

   .legal-hero {
      padding-top: 140px;
      text-align: center;
   }
}