/* ==========================================================================
   CSS Variables & Titanium Glass Theme
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=clash-display@400,500,600,700&display=swap');

:root {
    /* Color Palette - Carbon & Titanium */
    --bg-void: #000000;
    /* Pure Black for Master Header/Footer */
    --bg-carbon: #0A0A0C;
    /* Deep Carbon Base */
    --bg-surface: #121215;
    /* Elevated Surface */

    --primary: #00F0FF;
    /* Neon Data Cyan */
    --primary-glow: rgba(0, 240, 255, 0.3);
    --secondary: #FFFFFF;
    /* Titanium White */

    /* Gradients */
    --grad-titanium: linear-gradient(180deg, #FFFFFF 0%, #71717A 100%);
    --grad-chrome: linear-gradient(135deg, #E4E4E7 0%, #A1A1AA 50%, #52525B 100%);

    /* Typography */
    --text-pure: #FFFFFF;
    --text-main: #D4D4D8;
    --text-muted: #71717A;

    /* Structural Elements */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-border-hover: rgba(255, 255, 255, 0.2);

    /* Shadows */
    --shadow-float: 0 20px 40px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    --shadow-glow: 0 0 20px var(--primary-glow);

    /* Fonts */
    --font-heading: 'Clash Display', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Layout & Animation */
    --max-width: 1400px;
    --nav-height: 90px;
    --radius-lg: 24px;
    --radius-md: 12px;
    --section-gap: 150px;

    --transition-fast: 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    --transition-smooth: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-void);
}

body {
    font-family: var(--font-body);
    color: var(--text-main);
    background-color: var(--bg-carbon);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Ambient Radial Glow */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80vw;
    height: 80vh;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.03) 0%, transparent 60%);
    z-index: 0;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.1;
    color: var(--text-pure);
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-fast);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 5%;
    position: relative;
    z-index: 2;
}

/* Custom Selection & Scrollbar */
::selection {
    background: var(--primary);
    color: #000;
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-carbon);
}

::-webkit-scrollbar-thumb {
    background: #3F3F46;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-pure);
}

/* ==========================================================================
   Typography & Titanium Components
   ========================================================================== */
.text-titanium {
    background: var(--grad-titanium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.text-cyan {
    color: var(--primary);
    text-shadow: 0 0 15px var(--primary-glow);
}

.display-title {
    font-size: clamp(3.5rem, 7vw, 7rem);
    letter-spacing: 0.02em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    margin-bottom: 1.5rem;
}

.subtitle {
    font-size: 1.25rem;
    color: var(--text-muted);
    font-weight: 400;
    max-width: 650px;
    margin-bottom: 3rem;
}

.tag-pill {
    display: inline-flex;
    align-items: center;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-pure);
    margin-bottom: 1.5rem;
    backdrop-filter: blur(10px);
}

.btn-glass {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 36px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-pure);
    font-family: var(--font-heading);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 100px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    cursor: pointer;
    overflow: hidden;
    transition: var(--transition-fast);
}

.btn-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--text-pure);
    transition: left var(--transition-fast);
    z-index: -1;
}

.btn-glass:hover {
    color: #000;
    border-color: var(--text-pure);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(255, 255, 255, 0.1);
}

.btn-glass:hover::before {
    left: 0;
}

/* ==========================================================================
   Master Header (Pure Void Black)
   ========================================================================== */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--nav-height);
    background-color: var(--bg-void);
    /* Explicitly pure black */
    border-bottom: 1px solid var(--glass-border);
    z-index: 9999;
    display: flex;
    align-items: center;
    transition: var(--transition-smooth);
}

.site-header.scrolled {
    height: 75px;
    background-color: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo img {
    height: 50px;
    filter: invert(1);
    object-fit: contain;
}

.nav-links {
    display: flex;
    gap: 3rem;
    align-items: center;
}

.nav-links a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-pure);
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 10000;
}

.hamburger span {
    display: block;
    width: 32px;
    height: 1.5px;
    background-color: var(--text-pure);
    transition: var(--transition-fast);
}

/* ==========================================================================
   Hero Section (Titanium Typography)
   ========================================================================== */
.hero {
    padding-top: calc(var(--nav-height) + 80px);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-content {
    max-width: 1000px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content p {
    font-size: 1.3rem;
    color: var(--text-muted);
    max-width: 700px;
    margin-bottom: 3rem;
    line-height: 1.8;
}

/* ==========================================================================
   Infinite Tech Marquee
   ========================================================================== */
.marquee-wrapper {
    padding: 3rem 0;
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.01);
    overflow: hidden;
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee 30s linear infinite;
}

.mq-item {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 4rem;
    opacity: 0.5;
    transition: var(--transition-fast);
}

.mq-item:hover {
    opacity: 1;
    color: var(--text-pure);
}

/* ==========================================================================
   About / Data Telemetry
   ========================================================================== */
.about {
    padding: var(--section-gap) 0;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.metric-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
}

.metric-box:hover {
    border-color: var(--glass-border-hover);
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

.m-val {
    font-family: var(--font-heading);
    font-size: 4rem;
    background: var(--grad-titanium);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.m-lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   Services (Frosted Glass Cards)
   ========================================================================== */
.services {
    padding: var(--section-gap) 0;
}

.srv-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 5rem;
}

.srv-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 4rem 3rem;
    backdrop-filter: blur(20px);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.srv-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--grad-chrome);
    opacity: 0;
    transition: var(--transition-fast);
}

.srv-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-float);
    border-color: var(--glass-border-hover);
}

.srv-card:hover::before {
    opacity: 1;
}

.srv-icon {
    font-size: 2rem;
    color: var(--text-pure);
    margin-bottom: 2rem;
    display: inline-block;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.srv-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
}

.srv-card p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
}

/* ==========================================================================
   Analytics Dashboard (CSS glowing bar chart)
   ========================================================================== */
.analytics {
    padding: var(--section-gap) 0;
    border-top: 1px solid var(--glass-border);
}

.analytics-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
    align-items: center;
}

.dash-ui {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-float);
}

.dash-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1.5rem;
    margin-bottom: 3rem;
}

.css-bar-chart {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 250px;
}

.c-bar-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    height: 100%;
}

.c-bar {
    width: 100%;
    background: var(--text-muted);
    border-radius: 4px 4px 0 0;
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.c-bar.cyan {
    background: var(--primary);
    box-shadow: var(--shadow-glow);
}

.dash-ui.in-view .c-bar {
    transform: scaleY(1);
}

.dash-ui.in-view .c-bar-wrap:nth-child(1) .c-bar {
    transition-delay: 0.1s;
}

.dash-ui.in-view .c-bar-wrap:nth-child(2) .c-bar {
    transition-delay: 0.2s;
}

.dash-ui.in-view .c-bar-wrap:nth-child(3) .c-bar {
    transition-delay: 0.3s;
}

.dash-ui.in-view .c-bar-wrap:nth-child(4) .c-bar {
    transition-delay: 0.4s;
}

.c-lbl {
    margin-top: 15px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    text-transform: uppercase;
    font-family: var(--font-heading);
}

/* ==========================================================================
   Investment Estimator
   ========================================================================== */
.calculator {
    padding: var(--section-gap) 0;
}

.calc-wrap {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    box-shadow: var(--shadow-float);
}

.slider-group {
    margin-bottom: 3rem;
}

.sl-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.sl-lbl {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.sl-val {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--text-pure);
}

/* Titanium Slider */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    background: var(--text-pure);
    border-radius: 50%;
    cursor: pointer;
    margin-top: -11px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.4);
    transition: transform var(--transition-fast);
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.calc-results {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3rem;
    border-left: 1px solid var(--glass-border);
    padding-left: 4rem;
}

.res-item h4 {
    font-size: 4rem;
    color: var(--primary);
    text-shadow: var(--shadow-glow);
    line-height: 1;
    margin-bottom: 0.5rem;
}

.res-item p {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   Industry Grid (Minimalist Lines)
   ========================================================================== */
.industries {
    padding: var(--section-gap) 0;
    border-top: 1px solid var(--glass-border);
}

.ind-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--glass-border);
    border: 1px solid var(--glass-border);
    margin-top: 4rem;
}

.ind-box {
    background: var(--bg-carbon);
    padding: 4rem 2rem;
    text-align: center;
    transition: var(--transition-fast);
    cursor: default;
}

.ind-box:hover {
    background: rgba(255, 255, 255, 0.02);
}

.ind-box h3 {
    font-size: 1.25rem;
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--text-muted);
    transition: var(--transition-fast);
}

.ind-box:hover h3 {
    color: var(--text-pure);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.testimonials {
    padding: var(--section-gap) 0;
}

.test-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

.t-quote {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.3;
    color: var(--text-pure);
    margin-bottom: 3rem;
}

.t-author {
    font-size: 0.9rem;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ==========================================================================
   Contact & Chat Interface
   ========================================================================== */
.contact-section {
    padding: var(--section-gap) 0;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
}

.c-form {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.c-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 0;
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--text-pure);
    transition: var(--transition-fast);
}

.c-input:focus {
    outline: none;
    border-bottom-color: var(--text-pure);
}

textarea.c-input {
    height: 100px;
    resize: none;
}

/* Futuristic Chat UI */
.chat-ui {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(20px);
    height: 100%;
    min-height: 450px;
    display: flex;
    flex-direction: column;
}

.chat-head {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.c-dot {
    width: 8px;
    height: 8px;
    background: var(--primary);
    border-radius: 50%;
    box-shadow: var(--shadow-glow);
}

.chat-log {
    flex: 1;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.c-msg {
    max-width: 85%;
    padding: 1.2rem 1.5rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.c-msg.ai {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    align-self: flex-start;
    color: var(--text-muted);
}

.c-msg.user {
    background: var(--text-pure);
    color: var(--bg-void);
    font-weight: 500;
    align-self: flex-end;
    text-align: right;
}

/* ==========================================================================
   Legal Pages Styling
   ========================================================================== */
.legal-main {
    padding: calc(var(--nav-height) + 120px) 5% 120px;
    max-width: 900px;
    margin: 0 auto;
}

.legal-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 5rem;
    backdrop-filter: blur(20px);
}

.legal-box h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 1.5rem;
}

.legal-box h2 {
    font-size: 1.5rem;
    color: var(--text-pure);
    margin: 3rem 0 1rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.legal-box p {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
    line-height: 1.8;
}

/* ==========================================================================
   Master Footer (Strictly Pure Black)
   ========================================================================== */
.site-footer {
    background-color: var(--bg-void);
    /* Exact solid pure black */
    border-top: 1px solid var(--glass-border);
    padding: 100px 5% 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    max-width: var(--max-width);
    margin: 0 auto 4rem;
}

.footer-brand img {
    height: 36px;
    margin-bottom: 2rem;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 320px;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 1.1rem;
    color: var(--text-pure);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col a,
.footer-col li {
    color: var(--text-muted);
    font-size: 0.95rem;
    transition: var(--transition-fast);
}

.footer-col a:hover {
    color: var(--text-pure);
}

.footer-bottom {
    max-width: var(--max-width);
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* ==========================================================================
   Animations & Responsive Adjustments
   ========================================================================== */
@keyframes marquee {
    100% {
        transform: translateX(-50%);
    }
}

.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-up.in-view {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1024px) {

    .about-grid,
    .analytics-grid,
    .calc-wrap,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .srv-grid {
        grid-template-columns: 1fr 1fr;
    }

    .ind-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .calc-results {
        border-left: none;
        padding-left: 0;
        border-top: 1px solid var(--glass-border);
        padding-top: 3rem;
        flex-direction: row;
        justify-content: space-between;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    .hamburger {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: var(--nav-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--nav-height));
        background-color: var(--bg-void);
        flex-direction: column;
        justify-content: center;
        transition: var(--transition-smooth);
    }

    .nav-links.active {
        left: 0;
    }

    .hamburger.active span:nth-child(1) {
        transform: translateY(7.5px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
        transform: translateY(-7.5px) rotate(-45deg);
    }

    .srv-grid,
    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .calc-results {
        flex-direction: column;
        gap: 2rem;
    }

    .legal-box,
    .calc-wrap {
        padding: 2.5rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}