@import url('https://fonts.googleapis.com/css2?family=Anton&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
   --bg-base: #050505;
   --bg-panel: #111111;
   --ruby-red: #e6192b;
   --text-primary: #f4f4f4;
   --text-muted: #777777;
   --grid-line: rgba(255, 255, 255, 0.1);
   --nav-height: 100px;
   --ease-brutal: cubic-bezier(0.77, 0, 0.175, 1);
}

* {
   margin: 0;
   padding: 0;
   box-sizing: border-box;
}

html {
   scroll-behavior: smooth;
   font-size: 16px;
}

body {
   font-family: 'Space Grotesk', sans-serif;
   background-color: var(--bg-base);
   color: var(--text-primary);
   overflow-x: hidden;
   cursor: none;
}

/* Typography */
h1,
h2,
h3,
h4,
.kinetic-font {
   font-family: 'Anton', sans-serif;
   text-transform: uppercase;
   letter-spacing: 1px;
}

a {
   text-decoration: none;
   color: inherit;
}

ul {
   list-style: none;
}

/* Cinematic Noise */
.noise {
   position: fixed;
   inset: 0;
   pointer-events: none;
   z-index: 9999;
   opacity: 0.04;
   background: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="n"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.7" numOctaves="4" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23n)"/%3E%3C/svg%3E');
}

/* Brutalist Custom Cursor */
.cursor-block {
   position: fixed;
   top: 0;
   left: 0;
   width: 20px;
   height: 20px;
   background: var(--ruby-red);
   pointer-events: none;
   z-index: 10000;
   transform: translate(-50%, -50%);
   transition: width 0.3s, height 0.3s, border-radius 0.3s;
   mix-blend-mode: difference;
}

body.cursor-hover .cursor-block {
   width: 60px;
   height: 60px;
   border-radius: 50%;
   background: #fff;
}

/* ================= 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: var(--bg-base);
   border-bottom: 1px solid var(--grid-line);
   transition: transform 0.4s var(--ease-brutal), height 0.4s var(--ease-brutal);
}

.site-header.scrolled {
   height: 80px;
}

.site-header.hidden {
   transform: translateY(-100%);
}

.logo img {
   height: 50px;
   filter: invert(1);
}

.nav-desktop {
   display: flex;
   height: 100%;
   border-left: 1px solid var(--grid-line);
   border-right: 1px solid var(--grid-line);
}

.nav-desktop a {
   display: flex;
   align-items: center;
   padding: 0 30px;
   border-right: 1px solid var(--grid-line);
   font-size: 14px;
   font-weight: 600;
   text-transform: uppercase;
   letter-spacing: 2px;
   position: relative;
   overflow: hidden;
   transition: color 0.3s;
}

.nav-desktop a:last-child {
   border-right: none;
}

.nav-desktop a::before {
   content: '';
   position: absolute;
   bottom: 0;
   left: 0;
   width: 100%;
   height: 0%;
   background: var(--text-primary);
   transition: height 0.4s var(--ease-brutal);
   z-index: -1;
}

.nav-desktop a:hover {
   color: var(--bg-base);
}

.nav-desktop a:hover::before {
   height: 100%;
}

.btn-brutal {
   padding: 16px 36px;
   background: var(--ruby-red);
   color: #fff;
   font-family: 'Anton', sans-serif;
   font-size: 1.1rem;
   text-transform: uppercase;
   letter-spacing: 2px;
   border: none;
   cursor: pointer;
   position: relative;
   overflow: hidden;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   transition: 0.3s;
}

.btn-brutal:hover {
   background: #fff;
   color: var(--ruby-red);
   box-shadow: 8px 8px 0px var(--ruby-red);
   transform: translate(-4px, -4px);
}

/* Proper Brutalist Mobile Menu */
.menu-btn {
   display: none;
   flex-direction: column;
   justify-content: center;
   gap: 8px;
   width: 50px;
   height: 50px;
   background: transparent;
   border: 1px solid var(--grid-line);
   cursor: pointer;
   z-index: 2002;
}

.menu-btn span {
   display: block;
   width: 24px;
   height: 2px;
   background: var(--text-primary);
   margin: 0 auto;
   transition: 0.3s var(--ease-brutal);
}

.menu-btn.active span:nth-child(1) {
   transform: translateY(10px) rotate(45deg);
   background: var(--ruby-red);
}

.menu-btn.active span:nth-child(2) {
   opacity: 0;
}

.menu-btn.active span:nth-child(3) {
   transform: translateY(-10px) rotate(-45deg);
   background: var(--ruby-red);
}

.mobile-nav-panel {
   position: fixed;
   inset: 0;
   background: var(--bg-panel);
   z-index: 2001;
   display: flex;
   flex-direction: column;
   justify-content: center;
   padding-left: 10vw;
   clip-path: polygon(0 0, 100% 0, 100% 0, 0 0);
   transition: clip-path 0.8s var(--ease-brutal);
}

.mobile-nav-panel.active {
   clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.mobile-nav-panel a {
   font-family: 'Anton', sans-serif;
   font-size: 4rem;
   color: var(--text-primary);
   text-transform: uppercase;
   line-height: 1.2;
   opacity: 0;
   transform: translateY(50px);
   transition: 0.5s var(--ease-brutal);
   -webkit-text-stroke: 1px transparent;
}

.mobile-nav-panel.active a {
   opacity: 1;
   transform: translateY(0);
}

.mobile-nav-panel.active a:hover {
   color: transparent;
   -webkit-text-stroke: 2px var(--ruby-red);
}

.mobile-nav-panel.active a:nth-child(1) {
   transition-delay: 0.2s;
}

.mobile-nav-panel.active a:nth-child(2) {
   transition-delay: 0.3s;
}

.mobile-nav-panel.active a:nth-child(3) {
   transition-delay: 0.4s;
}

.mobile-nav-panel.active a:nth-child(4) {
   transition-delay: 0.5s;
}

@media (max-width: 1024px) {

   .nav-desktop,
   .btn-brutal.header-btn {
      display: none;
   }

   .menu-btn {
      display: flex;
   }
}

/* ================= GLOBALS ================= */
section {
   padding: 140px 4vw;
   position: relative;
   border-bottom: 1px solid var(--grid-line);
}

.section-title {
   font-size: clamp(4rem, 8vw, 9rem);
   line-height: 0.85;
   margin-bottom: 40px;
   color: var(--text-primary);
}

.text-ruby {
   color: var(--ruby-red);
}

.reveal {
   clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
   opacity: 0;
   transform: translateY(60px);
   transition: 1s var(--ease-brutal);
}

.reveal.active {
   opacity: 1;
   transform: translateY(0);
}

/* ================= INDEX SECTIONS ================= */
/* Hero */
.hero {
   height: 100vh;
   display: flex;
   flex-direction: column;
   justify-content: center;
   padding-top: var(--nav-height);
   border-bottom: 1px solid var(--grid-line);
}

.hero-content {
   max-width: 1400px;
   display: grid;
   grid-template-columns: 1fr;
   gap: 40px;
}

.hero h1 {
   font-size: clamp(4rem, 11vw, 12rem);
   line-height: 0.85;
   margin-bottom: 20px;
}

.hero-sub {
   display: flex;
   justify-content: space-between;
   align-items: flex-end;
   border-top: 1px solid var(--grid-line);
   padding-top: 30px;
}

.hero p {
   font-size: 1.5rem;
   color: var(--text-muted);
   max-width: 500px;
   font-weight: 500;
}

/* Marquee */
.marquee-wrap {
   background: var(--ruby-red);
   padding: 20px 0;
   overflow: hidden;
   display: flex;
   border-bottom: 1px solid var(--grid-line);
}

.marquee-track {
   display: flex;
   white-space: nowrap;
   animation: scrollLeft 15s linear infinite;
}

.marquee-track span {
   font-family: 'Anton';
   font-size: 3rem;
   padding: 0 40px;
   color: var(--bg-base);
   text-transform: uppercase;
}

@keyframes scrollLeft {
   to {
      transform: translateX(-50%);
   }
}

/* Ethos Grid */
.ethos-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 80px;
   align-items: center;
}

.ethos-text {
   font-size: 2rem;
   line-height: 1.4;
   color: var(--text-muted);
}

.ethos-text span {
   color: var(--text-primary);
   font-weight: 700;
}

/* Services (Accordion Layout) */
.service-list {
   display: flex;
   flex-direction: column;
   border-top: 1px solid var(--grid-line);
   margin-top: 60px;
}

.service-item {
   display: grid;
   grid-template-columns: 100px 1fr 1fr;
   gap: 40px;
   padding: 60px 0;
   border-bottom: 1px solid var(--grid-line);
   transition: 0.4s;
   cursor: pointer;
}

.service-item:hover {
   background: rgba(255, 255, 255, 0.02);
   padding-left: 20px;
}

.service-num {
   font-family: 'Anton';
   font-size: 3rem;
   color: var(--ruby-red);
}

.service-item h3 {
   font-size: 3.5rem;
   letter-spacing: 0;
}

.service-item p {
   font-size: 1.2rem;
   color: var(--text-muted);
   line-height: 1.6;
}

/* Calculator */
.calc-grid {
   display: grid;
   grid-template-columns: 1fr 1.5fr;
   border: 1px solid var(--grid-line);
   margin-top: 60px;
}

.calc-controls {
   padding: 80px 60px;
   border-right: 1px solid var(--grid-line);
   background: var(--bg-panel);
}

.calc-row {
   margin-bottom: 50px;
}

.calc-row label {
   display: flex;
   justify-content: space-between;
   font-weight: 600;
   font-size: 1.2rem;
   margin-bottom: 20px;
   text-transform: uppercase;
}

.calc-row label span {
   color: var(--ruby-red);
   font-family: 'Anton';
   font-size: 1.5rem;
   letter-spacing: 1px;
}

input[type="range"] {
   width: 100%;
   -webkit-appearance: none;
   height: 2px;
   background: var(--text-muted);
   outline: none;
}

input[type="range"]::-webkit-slider-thumb {
   -webkit-appearance: none;
   width: 30px;
   height: 30px;
   background: var(--ruby-red);
   cursor: pointer;
   border-radius: 0;
   transition: 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
   transform: scale(1.2);
}

.calc-output {
   display: flex;
   flex-direction: column;
   justify-content: center;
   align-items: center;
   padding: 80px;
   background: var(--bg-base);
   text-align: center;
}

.calc-output h4 {
   color: var(--text-muted);
   font-size: 1.2rem;
   margin-bottom: 20px;
}

.calc-output .total {
   font-family: 'Anton';
   font-size: 8rem;
   color: var(--text-primary);
   line-height: 1;
}

/* Analytics Dashboard (Harsh Grid) */
.dashboard-wrap {
   display: grid;
   grid-template-columns: 1fr 1fr 1fr;
   border: 1px solid var(--grid-line);
   margin-top: 60px;
}

.dash-block {
   padding: 60px 40px;
   border-right: 1px solid var(--grid-line);
   border-bottom: 1px solid var(--grid-line);
   display: flex;
   flex-direction: column;
   justify-content: space-between;
   min-height: 350px;
}

.dash-block:nth-child(3n) {
   border-right: none;
}

.dash-label {
   font-size: 1.2rem;
   font-weight: 600;
   color: var(--text-muted);
   text-transform: uppercase;
}

.dash-val {
   font-family: 'Anton';
   font-size: 6rem;
   color: var(--ruby-red);
   line-height: 1;
   margin-top: 20px;
}

/* Chart Block */
.chart-container {
   grid-column: span 3;
   padding: 60px;
   display: flex;
   align-items: flex-end;
   gap: 2%;
   height: 400px;
   background: var(--bg-panel);
}

.chart-bar {
   flex: 1;
   background: var(--text-primary);
   transform-origin: bottom;
   transform: scaleY(0);
   transition: transform 1.5s var(--ease-brutal);
   border-top: 4px solid var(--ruby-red);
}

/* Industries Marquee Cards */
.industry-overflow {
   display: flex;
   gap: 40px;
   overflow-x: auto;
   padding: 40px 0;
   scrollbar-width: none;
   border-top: 1px solid var(--grid-line);
   border-bottom: 1px solid var(--grid-line);
}

.industry-overflow::-webkit-scrollbar {
   display: none;
}

.ind-card {
   min-width: 450px;
   padding: 60px;
   background: var(--bg-panel);
   border: 1px solid var(--grid-line);
   flex-shrink: 0;
}

.ind-card h3 {
   font-size: 3rem;
   margin-bottom: 20px;
   color: var(--ruby-red);
}

.ind-card p {
   font-size: 1.1rem;
   color: var(--text-muted);
   line-height: 1.6;
}

/* Testimonials (Masonry feel) */
.testi-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 40px;
   margin-top: 60px;
}

.t-card {
   border: 1px solid var(--grid-line);
   padding: 60px;
   background: var(--bg-panel);
   position: relative;
}

.t-card::before {
   content: '"';
   position: absolute;
   top: 20px;
   right: 40px;
   font-family: 'Anton';
   font-size: 8rem;
   color: var(--grid-line);
   line-height: 1;
}

.t-card p {
   font-size: 1.4rem;
   line-height: 1.6;
   margin-bottom: 40px;
   position: relative;
   z-index: 2;
}

.t-author h4 {
   font-size: 1.5rem;
   color: var(--ruby-red);
}

/* Pages: Contact & Legal */
.page-hero {
   padding: 250px 4vw 100px;
   border-bottom: 1px solid var(--grid-line);
   background: var(--bg-panel);
}

.contact-grid {
   display: grid;
   grid-template-columns: 1fr 1fr;
   gap: 80px;
   max-width: 1400px;
   margin: 0 auto;
}

.form-input {
   width: 100%;
   padding: 25px 0;
   background: transparent;
   border: none;
   border-bottom: 2px solid var(--grid-line);
   color: var(--text-primary);
   font-family: 'Space Grotesk';
   font-size: 1.2rem;
   margin-bottom: 30px;
   outline: none;
   transition: 0.3s;
}

.form-input:focus {
   border-color: var(--ruby-red);
}

.hq-block {
   padding: 80px;
   background: var(--bg-panel);
   border: 1px solid var(--grid-line);
}

.hq-block h3 {
   font-size: 4rem;
   color: var(--ruby-red);
   margin-bottom: 50px;
}

.hq-item {
   margin-bottom: 40px;
}

.hq-item h5 {
   font-size: 1rem;
   color: var(--text-muted);
   margin-bottom: 10px;
}

.hq-item p {
   font-size: 1.5rem;
   color: var(--text-primary);
   font-weight: 600;
}

.legal-content {
   max-width: 900px;
   margin: 0 auto;
   line-height: 1.8;
   color: var(--text-muted);
   font-size: 1.2rem;
}

.legal-content h2 {
   font-size: 3rem;
   color: var(--text-primary);
   margin: 80px 0 30px;
}

.legal-content p {
   margin-bottom: 25px;
}

/* Live Chat */
.chat-widget {
   position: fixed;
   bottom: 40px;
   right: 40px;
   z-index: 1999;
}

.chat-btn {
   width: 70px;
   height: 70px;
   background: var(--text-primary);
   border: none;
   cursor: pointer;
   display: flex;
   align-items: center;
   justify-content: center;
   transition: 0.3s;
   box-shadow: 6px 6px 0 var(--ruby-red);
}

.chat-btn:hover {
   transform: translate(-3px, -3px);
   box-shadow: 9px 9px 0 var(--ruby-red);
}

.chat-window {
   position: absolute;
   bottom: 90px;
   right: 0;
   width: 380px;
   background: var(--bg-panel);
   border: 1px solid var(--grid-line);
   padding: 40px;
   display: none;
   box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.5);
}

.chat-window.active {
   display: block;
   animation: slideIn 0.3s var(--ease-brutal);
}

/* ================= STRICT FOOTER ================= */
.site-footer {
   background: var(--bg-base);
   padding: 120px 4vw 40px;
   border-top: 1px solid var(--grid-line);
}

.footer-top {
   display: grid;
   grid-template-columns: 2fr 1fr 1fr 1fr;
   gap: 60px;
   margin-bottom: 100px;
}

.footer-brand img {
   height: 50px;
   filter: invert(1);
   margin-bottom: 30px;
}

.footer-brand p {
   color: var(--text-muted);
   font-size: 1.2rem;
   max-width: 400px;
}

.footer-col h4 {
   font-size: 1.5rem;
   margin-bottom: 30px;
   color: var(--text-primary);
}

.footer-col ul li {
   margin-bottom: 15px;
}

.footer-col ul li a {
   color: var(--text-muted);
   font-size: 1.1rem;
   transition: 0.3s;
}

.footer-col ul li a:hover {
   color: var(--ruby-red);
   padding-left: 10px;
}

.footer-bottom {
   border-top: 1px solid var(--grid-line);
   padding-top: 40px;
   display: flex;
   justify-content: space-between;
   color: var(--text-muted);
   font-size: 1rem;
   text-transform: uppercase;
   letter-spacing: 1px;
}

/* Responsive */
@media (max-width: 1200px) {

   .calc-grid,
   .ethos-grid,
   .dashboard-wrap,
   .testi-grid,
   .contact-grid {
      grid-template-columns: 1fr;
   }

   .calc-controls {
      border-right: none;
      border-bottom: 1px solid var(--grid-line);
   }

   .dash-block {
      border-right: none;
   }

   .hero-sub {
      flex-direction: column;
      align-items: flex-start;
      gap: 30px;
   }
}

@media (max-width: 991px) {
   .footer-top {
      grid-template-columns: 1fr 1fr;
   }

   .service-item {
      grid-template-columns: 1fr;
      gap: 15px;
   }

   .service-num {
      font-size: 2rem;
   }

   .service-item h3 {
      font-size: 2.5rem;
   }
}

@media (max-width: 768px) {
   .section-title {
      font-size: 4rem;
   }

   .footer-top {
      grid-template-columns: 1fr;
   }

   .footer-bottom {
      flex-direction: column;
      gap: 20px;
      text-align: center;
   }

   .chart-container {
      padding: 30px;
      height: 250px;
   }
}

@keyframes slideIn {
   from {
      opacity: 0;
      transform: translateX(50px);
   }

   to {
      opacity: 1;
      transform: translateX(0);
   }
}