/* ==========================================================================
   Base Variables & Reset (Neobrutalist Theme: Black, White, Electric Volt)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;600;700;800&family=Inter:wght@400;500;700&display=swap');

:root {
    --bg-dark: #09090b;
    --bg-light: #ffffff;
    --volt: #ccff00; /* Electric Volt Green/Yellow */
    --volt-dim: #99cc00;
    --text-main: #ffffff;
    --text-inv: #09090b;
    --border-thick: 3px solid #ffffff;
    --border-thin: 1px solid rgba(255, 255, 255, 0.2);
    --shadow-solid: 8px 8px 0px var(--volt);
    --shadow-solid-hover: 4px 4px 0px var(--volt);
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-snap: 0.2s cubic-bezier(0, 0, 0, 1);
    --transition-smooth: 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; background-color: var(--bg-dark); }

body {
    font-family: var(--font-body); color: var(--text-main); line-height: 1.6;
    overflow-x: hidden; position: relative; -webkit-font-smoothing: antialiased;
}

/* Raw Grid Background Overlay */
body::before {
    content: ''; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 50px 50px; z-index: -2; pointer-events: none;
}

h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 800; line-height: 1.1; text-transform: uppercase; }
a { text-decoration: none; color: inherit; transition: var(--transition-snap); }
ul { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

/* ==========================================================================
   Typography & Brutalist Utilities
   ========================================================================== */
.container { width: 100%; max-width: 1300px; margin: 0 auto; padding: 0 2rem; }
.text-center { text-align: center; }
.text-volt { color: var(--volt); }
.text-inv { color: var(--text-inv); }

.title-xl { font-size: clamp(3.5rem, 7vw, 7.5rem); letter-spacing: -2px; margin-bottom: 1.5rem; line-height: 0.9; }
.title-lg { font-size: clamp(2.5rem, 5vw, 5rem); letter-spacing: -1.5px; margin-bottom: 1.5rem; }
.subtitle { font-size: 1.25rem; color: #a1a1aa; max-width: 700px; margin-bottom: 3rem; }
.subtitle.center { margin: 0 auto 4rem; }

/* Brutalist Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 1.2rem 2.5rem; font-family: var(--font-heading); font-size: 1.1rem; font-weight: 800;
    text-transform: uppercase; letter-spacing: 1px; cursor: pointer; transition: var(--transition-snap);
    border: var(--border-thick); background: var(--bg-dark); color: var(--text-main);
    box-shadow: var(--shadow-solid); position: relative; z-index: 1;
}

.btn-primary { background: var(--volt); color: var(--text-inv); border-color: var(--volt); box-shadow: 8px 8px 0px #ffffff; }
.btn-primary:hover { transform: translate(4px, 4px); box-shadow: 4px 4px 0px #ffffff; }

.btn-outline { background: var(--bg-dark); color: var(--text-main); border-color: var(--text-main); box-shadow: 8px 8px 0px var(--volt); }
.btn-outline:hover { transform: translate(4px, 4px); box-shadow: 4px 4px 0px var(--volt); background: var(--volt); color: var(--text-inv); border-color: var(--volt); }

/* Brutalist Card */
.brutal-card {
    background: var(--bg-dark); border: var(--border-thick); padding: 3rem;
    box-shadow: var(--shadow-solid); transition: var(--transition-snap); position: relative;
}
.brutal-card:hover { transform: translate(4px, 4px); box-shadow: var(--shadow-solid-hover); }

/* ==========================================================================
   STRICT HEADER CONSISTENCY
   ========================================================================== */
.site-header {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 9999;
    padding: 1.5rem 0; transition: all 0.2s ease; border-bottom: 3px solid transparent; background: transparent;
}
.site-header.scrolled {
    padding: 1rem 0; background: var(--bg-dark); border-bottom: 3px solid var(--text-main);
}
.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo-container img { height: 45px; width: auto; filter: brightness(0) invert(1); transition: 0.2s; }
.logo-container:hover img { transform: translate(-2px, -2px); filter: drop-shadow(4px 4px 0px var(--volt)) brightness(0) invert(1); }

.nav-links { display: flex; gap: 3rem; align-items: center; }
.nav-links a:not(.btn) {
    font-family: var(--font-heading); font-size: 1rem; font-weight: 700; text-transform: uppercase;
    color: var(--text-main); position: relative; padding: 0.5rem 0;
}
.nav-links a:not(.btn)::before {
    content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 3px; background: var(--volt);
    transform: scaleX(0); transform-origin: right; transition: transform 0.3s cubic-bezier(0.86, 0, 0.07, 1);
}
.nav-links a:not(.btn):hover::before { transform: scaleX(1); transform-origin: left; }
.nav-links a:not(.btn):hover { color: var(--volt); }

.mobile-menu-btn { display: none; background: none; border: none; color: #fff; font-size: 2.5rem; cursor: pointer; line-height: 1; }

/* ==========================================================================
   Global Animations
   ========================================================================== */
.snap-up { opacity: 0; transform: translateY(40px); transition: 0.6s cubic-bezier(0, 0.55, 0.45, 1); }
.snap-up.active { opacity: 1; transform: translateY(0); }

.stagger-group .stagger-item { opacity: 0; transform: translate(20px, 20px); transition: 0.5s cubic-bezier(0, 0.55, 0.45, 1); }
.stagger-group.active .stagger-item { opacity: 1; transform: translate(0, 0); }

/* ==========================================================================
   Index Section 1: Hero & 3D CSS Wireframe Cube
   ========================================================================== */
.hero { min-height: 100vh; display: flex; align-items: center; padding-top: 120px; position: relative; border-bottom: 3px solid var(--text-main); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 4rem; align-items: center; }
.hero-alert { display: inline-flex; padding: 0.5rem 1rem; border: 2px solid var(--volt); background: var(--text-inv); color: var(--volt); font-family: var(--font-heading); font-weight: 700; text-transform: uppercase; margin-bottom: 2rem; box-shadow: 4px 4px 0px var(--volt); }
.hero-actions { display: flex; gap: 1.5rem; margin-top: 3rem; }

/* 3D Wireframe Cube CSS */
.hero-3d-scene { perspective: 1000px; width: 100%; height: 500px; display: flex; align-items: center; justify-content: center; }
.cube { width: 250px; height: 250px; position: relative; transform-style: preserve-3d; animation: rotateCube 15s infinite linear; }
.cube-face { position: absolute; width: 250px; height: 250px; border: 4px solid var(--volt); background: rgba(204, 255, 0, 0.05); box-shadow: inset 0 0 20px rgba(204, 255, 0, 0.2); }
.face-front  { transform: translateZ(125px); }
.face-back   { transform: rotateY(180deg) translateZ(125px); }
.face-right  { transform: rotateY(90deg) translateZ(125px); }
.face-left   { transform: rotateY(-90deg) translateZ(125px); }
.face-top    { transform: rotateX(90deg) translateZ(125px); }
.face-bottom { transform: rotateX(-90deg) translateZ(125px); }

@keyframes rotateCube {
    0% { transform: rotateX(0deg) rotateY(0deg) rotateZ(0deg); }
    100% { transform: rotateX(360deg) rotateY(360deg) rotateZ(360deg); }
}

/* ==========================================================================
   Index Section 2: Aggressive Ticker Tape
   ========================================================================== */
.ticker-section { background: var(--volt); padding: 1.5rem 0; border-bottom: 3px solid var(--text-main); overflow: hidden; display: flex; white-space: nowrap; }
.ticker-track { display: flex; animation: tickerScroll 15s linear infinite; }
.ticker-item { font-family: var(--font-heading); font-size: 2.5rem; font-weight: 800; color: var(--text-inv); text-transform: uppercase; padding: 0 3rem; }
.ticker-item span { color: transparent; -webkit-text-stroke: 2px var(--text-inv); margin-right: 1rem; }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ==========================================================================
   Index Section 3: Philosophy / Contrast Block
   ========================================================================== */
.philosophy { padding: 8rem 0; border-bottom: 3px solid var(--text-main); }
.phil-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; align-items: center; }
.phil-text h2 { margin-bottom: 2rem; }
.phil-text p { font-size: 1.2rem; color: #d4d4d8; margin-bottom: 1.5rem; }

.phil-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 3rem; }
.stat-block { border: var(--border-thick); padding: 2rem; background: var(--volt); color: var(--text-inv); box-shadow: 8px 8px 0px #ffffff; }
.stat-block h4 { font-size: 4rem; line-height: 1; margin-bottom: 0.5rem; }
.stat-block span { font-weight: 700; font-size: 1rem; text-transform: uppercase; }

/* ==========================================================================
   Index Section 4: Services (Brutalist Grid)
   ========================================================================== */
.services { padding: 8rem 0; background: #18181b; border-bottom: 3px solid var(--text-main); }
.srv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.srv-icon { font-size: 3.5rem; margin-bottom: 1.5rem; color: var(--volt); line-height: 1; }
.brutal-card h3 { font-size: 1.8rem; margin-bottom: 1rem; }
.brutal-card p { color: #a1a1aa; font-size: 1.1rem; }

/* ==========================================================================
   Index Section 5: Process Zig-Zag
   ========================================================================== */
.process { padding: 8rem 0; border-bottom: 3px solid var(--text-main); }
.process-list { max-width: 900px; margin: 0 auto; display: flex; flex-direction: column; gap: 4rem; }
.process-item { display: flex; align-items: center; gap: 4rem; }
.process-item:nth-child(even) { flex-direction: row-reverse; }
.p-num { font-size: 8rem; font-family: var(--font-heading); font-weight: 800; color: transparent; -webkit-text-stroke: 4px var(--volt); line-height: 0.8; }
.p-content { border: var(--border-thick); padding: 3rem; box-shadow: var(--shadow-solid); background: var(--bg-dark); flex: 1; }
.p-content h3 { font-size: 2rem; color: var(--volt); margin-bottom: 1rem; }

/* ==========================================================================
   Index Section 6: Hard-Edged ROI Calculator
   ========================================================================== */
.calculator { padding: 8rem 0; background: var(--volt); border-bottom: 3px solid var(--text-main); color: var(--text-inv); }
.calc-container { background: var(--text-inv); border: 4px solid var(--text-inv); box-shadow: 12px 12px 0px #ffffff; display: grid; grid-template-columns: 1fr 1fr; color: var(--text-main); }
.calc-inputs { padding: 4rem; border-right: 4px solid var(--text-inv); }
.calc-output { padding: 4rem; background: #18181b; display: flex; flex-direction: column; justify-content: center; }

.range-box { margin-bottom: 3rem; }
.range-label { display: flex; justify-content: space-between; font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; margin-bottom: 1rem; text-transform: uppercase; }
.range-val { color: var(--volt); }

input[type=range] { -webkit-appearance: none; width: 100%; background: transparent; }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 8px; background: #3f3f46; border: 2px solid var(--text-main); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 30px; width: 30px; background: var(--volt); border: 3px solid var(--text-inv); cursor: pointer; margin-top: -12px; border-radius: 0; box-shadow: 4px 4px 0px var(--text-main); }

.out-block { margin-bottom: 3rem; }
.out-lbl { font-size: 1rem; font-weight: 700; text-transform: uppercase; margin-bottom: 0.5rem; display: block; color: #a1a1aa; }
.out-val { font-size: 4.5rem; font-family: var(--font-heading); font-weight: 800; line-height: 1; }
.out-val.volt { color: var(--volt); }

/* ==========================================================================
   Index Section 7: CSS Data Bar Chart
   ========================================================================== */
.reports { padding: 8rem 0; border-bottom: 3px solid var(--text-main); }
.chart-box { border: var(--border-thick); padding: 4rem; box-shadow: var(--shadow-solid); background: #18181b; margin-top: 4rem; }
.chart-header { display: flex; justify-content: space-between; border-bottom: 3px solid var(--text-main); padding-bottom: 1rem; margin-bottom: 3rem; }
.css-bars { display: flex; align-items: flex-end; justify-content: space-between; height: 350px; gap: 2rem; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; height: 100%; justify-content: flex-end; }
.bar-fill { width: 100%; background: var(--volt); border: 3px solid var(--text-main); border-bottom: none; transition: height 1s cubic-bezier(0, 0, 0, 1); position: relative; }
.bar-fill::after { content: attr(data-val); position: absolute; top: -35px; left: 50%; transform: translateX(-50%); font-family: var(--font-heading); font-weight: 800; font-size: 1.1rem; }
.bar-lbl { margin-top: 1.5rem; font-weight: 700; text-transform: uppercase; font-size: 1rem; }

/* ==========================================================================
   Index Section 8: Industries Grid
   ========================================================================== */
.industries { padding: 8rem 0; background: var(--bg-dark); border-bottom: 3px solid var(--text-main); }
.ind-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; }
.ind-item { border: var(--border-thick); padding: 3rem 2rem; text-align: center; box-shadow: var(--shadow-solid); transition: var(--transition-snap); background: #18181b; cursor: pointer; }
.ind-item:hover { transform: translate(4px, 4px); box-shadow: var(--shadow-solid-hover); background: var(--volt); color: var(--text-inv); }
.ind-icon { font-size: 3.5rem; margin-bottom: 1rem; }
.ind-item h4 { font-size: 1.2rem; }

/* ==========================================================================
   Index Section 9: Testimonials
   ========================================================================== */
.testimonials { padding: 8rem 0; border-bottom: 3px solid var(--text-main); }
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3rem; }
.testi-card { border: var(--border-thick); padding: 3rem; background: var(--bg-dark); position: relative; box-shadow: 8px 8px 0px #ffffff; }
.t-quote { font-size: 1.2rem; font-weight: 500; margin-bottom: 2rem; border-left: 4px solid var(--volt); padding-left: 1.5rem; }
.t-author h5 { font-size: 1.4rem; color: var(--volt); margin-bottom: 0.2rem; }
.t-author span { font-weight: 700; text-transform: uppercase; font-size: 0.9rem; }

/* ==========================================================================
   Index Section 10: Aggressive CTA
   ========================================================================== */
.cta-section { padding: 10rem 0; text-align: center; background: #ffffff; color: var(--text-inv); position: relative; }
.cta-content { max-width: 900px; margin: 0 auto; }
.cta-content h2 { font-size: clamp(4rem, 6vw, 6rem); margin-bottom: 2rem; }
.cta-form { display: flex; justify-content: center; gap: 0; margin-top: 4rem; }
.cta-input { width: 400px; padding: 1.5rem; border: 4px solid var(--text-inv); background: #ffffff; font-family: var(--font-heading); font-size: 1.2rem; font-weight: 700; outline: none; }
.cta-input:focus { background: var(--volt); }
.cta-form .btn { box-shadow: none; border-left: none; }
.cta-form .btn:hover { transform: none; box-shadow: none; background: var(--text-inv); color: #fff; }

/* ==========================================================================
   STRICT FOOTER CONSISTENCY
   ========================================================================== */
.site-footer { background: var(--bg-dark); padding: 6rem 0 2rem; border-top: 4px solid var(--text-main); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 4rem; margin-bottom: 5rem; }
.footer-brand img { height: 50px; margin-bottom: 1.5rem; filter: brightness(0) invert(1); }
.footer-brand p { color: #a1a1aa; font-size: 1.05rem; max-width: 320px; font-weight: 500; }
.footer-title { font-family: var(--font-heading); font-size: 1.4rem; color: var(--volt); margin-bottom: 2rem; text-transform: uppercase; }
.footer-links li { margin-bottom: 1rem; }
.footer-links a, .footer-links span { color: #ffffff; font-size: 1.05rem; font-weight: 700; text-transform: uppercase; transition: 0.2s; }
.footer-links a:hover { color: var(--volt); margin-left: 10px; }
.footer-bottom { text-align: center; padding-top: 2rem; border-top: 2px solid rgba(255,255,255,0.1); font-weight: 700; text-transform: uppercase; }

/* ==========================================================================
   Inner Pages (Contact, Legal)
   ========================================================================== */
.page-hero { padding: 14rem 0 6rem; background: var(--volt); color: var(--text-inv); border-bottom: 4px solid var(--text-main); text-align: center; }

/* Contact Form */
.contact-section { padding: 8rem 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 6rem; }
.c-info-block { border: var(--border-thick); padding: 3rem; background: #18181b; box-shadow: var(--shadow-solid); margin-bottom: 3rem; }
.c-info-block h4 { color: var(--volt); font-size: 1.5rem; margin-bottom: 1rem; }
.c-info-block p { font-size: 1.2rem; font-weight: 600; }

.brutal-form { border: var(--border-thick); padding: 4rem; background: var(--bg-dark); box-shadow: 12px 12px 0px #ffffff; }
.form-group { margin-bottom: 2.5rem; }
.form-label { display: block; font-family: var(--font-heading); font-weight: 800; font-size: 1.2rem; margin-bottom: 0.5rem; text-transform: uppercase; }
.form-control { width: 100%; border: 3px solid var(--text-main); background: #18181b; color: #fff; padding: 1.2rem; font-size: 1.1rem; font-family: var(--font-body); font-weight: 500; outline: none; transition: 0.2s; }
.form-control:focus { background: var(--text-inv); border-color: var(--volt); box-shadow: 6px 6px 0px var(--volt); }
textarea.form-control { resize: vertical; min-height: 150px; }

/* Legal Content */
.legal-wrapper { padding: 8rem 0; }
.legal-content { max-width: 900px; margin: 0 auto; color: #d4d4d8; font-size: 1.15rem; }
.legal-content h2 { color: var(--volt); font-size: 2.5rem; margin: 4rem 0 1.5rem; text-transform: uppercase; border-bottom: 2px solid var(--text-main); padding-bottom: 1rem; }
.legal-content p { margin-bottom: 1.5rem; line-height: 1.8; }

/* ==========================================================================
   Media Queries
   ========================================================================== */
@media (max-width: 1024px) {
    .hero-grid, .phil-grid, .calc-container, .contact-grid { grid-template-columns: 1fr; gap: 4rem; }
    .hero-3d-scene { height: 400px; display: none;} /* Hide on tablet for space */
    .calc-inputs { border-right: none; border-bottom: 4px solid var(--text-inv); }
    .srv-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
    .ind-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
    .nav-links {
        position: fixed; top: 0; right: -100%; width: 100%; height: 100vh;
        background: var(--bg-dark); border-left: 4px solid var(--text-main);
        flex-direction: column; justify-content: center; transition: 0.3s ease; z-index: 999;
    }
    .nav-links.active { right: 0; }
    .mobile-menu-btn { display: block; z-index: 1001; position: relative; }
    .srv-grid, .testi-grid, .ind-grid, .phil-stats, .footer-grid { grid-template-columns: 1fr; }
    .process-item, .process-item:nth-child(even) { flex-direction: column; gap: 2rem; align-items: flex-start; }
    .calc-inputs, .calc-output, .brutal-form, .chart-box { padding: 2rem; }
    .cta-form { flex-direction: column; }
    .cta-input { width: 100%; border-bottom: none; }
    .cta-form .btn { border-left: 4px solid var(--text-inv); border-top: none; }
    .css-bars { overflow-x: auto; justify-content: flex-start; }
    .bar-col { min-width: 60px; }
}