@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;700;800&family=Inter:wght@300;400;600&display=swap');

:root {
    --bg-dark: #050505;
    --bg-light: #111111;
    --bg-glass: rgba(17, 17, 17, 0.7);
    --primary: #00f0ff;
    --secondary: #8a2be2;
    --text-main: #ffffff;
    --text-muted: #888888;
    --border: rgba(255, 255, 255, 0.1);
    --gradient: linear-gradient(135deg, var(--primary), var(--secondary));
    --font-display: 'Syne', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-body);
    overflow-x: hidden;
    line-height: 1.6;
}

/* Custom Cursor */
.cursor-dot,
.cursor-outline {
    position: fixed;
    top: 0;
    left: 0;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    z-index: 9999;
    pointer-events: none;
}

.cursor-dot {
    width: 8px;
    height: 8px;
    background-color: var(--primary);
}

.cursor-outline {
    width: 40px;
    height: 40px;
    border: 1px solid var(--primary);
    transition: width 0.2s, height 0.2s, background-color 0.2s;
}

.hovering .cursor-outline {
    width: 60px;
    height: 60px;
    background-color: rgba(0, 240, 255, 0.1);
}

/* Typography */
h1,
h2,
h3,
h4 {
    font-family: var(--font-display);
    font-weight: 800;
    line-height: 1.1;
}

h1 {
    font-size: clamp(3rem, 8vw, 6rem);
    text-transform: uppercase;
    letter-spacing: -2px;
}

h2 {
    font-size: clamp(2rem, 5vw, 4rem);
    margin-bottom: 2rem;
}

.text-gradient {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

p {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

/* Header (STRICT CONSISTENCY) */
header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 1.5rem 2rem;
}

.logo img {
    height: 40px;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.3));
}

.nav-links {
    display: flex;
    gap: 3rem;
    list-style: none;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--gradient);
    transform: translateX(-100%);
    transition: var(--transition);
}

.nav-links a:hover::after {
    transform: translateX(0);
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: 30px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    transition: var(--transition);
    border: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-dark);
    z-index: -1;
    transition: var(--transition);
    opacity: 0;
}

.btn-primary:hover::before {
    opacity: 0.2;
}

.btn-primary:hover {
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
    transform: translateY(-2px);
}

/* Utility Layouts */
section {
    padding: 8rem 2rem;
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

/* 3D Glass Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 3rem;
    backdrop-filter: blur(10px);
    transform-style: preserve-3d;
    transition: transform 0.1s ease;
}

.glass-card h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    transform: translateZ(30px);
}

.glass-card p {
    transform: translateZ(20px);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.hero-content {
    text-align: center;
    z-index: 2;
    position: relative;
}

.hero-bg-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(138, 43, 226, 0.15) 0%, rgba(0, 240, 255, 0.05) 50%, transparent 70%);
    z-index: 0;
    filter: blur(60px);
    animation: pulseGlow 8s infinite alternate;
}

@keyframes pulseGlow {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
    }

    100% {
        transform: translate(-50%, -50%) scale(1.2);
    }
}

/* Marquee / Industries */
.marquee-container {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    overflow: hidden;
    padding: 4rem 0;
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.marquee {
    display: flex;
    width: max-content;
    animation: scroll 20s linear infinite;
}

.marquee span {
    font-size: 4rem;
    font-family: var(--font-display);
    font-weight: 800;
    color: transparent;
    -webkit-text-stroke: 1px var(--border);
    text-transform: uppercase;
    padding: 0 3rem;
    transition: var(--transition);
}

.marquee span:hover {
    color: var(--primary);
    -webkit-text-stroke: 0px;
    text-shadow: 0 0 20px var(--primary);
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* ROI Calculator */
.calc-container {
    background: var(--bg-light);
    padding: 4rem;
    border-radius: 30px;
    border: 1px solid var(--border);
}

.range-slider {
    width: 100%;
    margin: 2rem 0;
    appearance: none;
    height: 4px;
    background: var(--border);
    outline: none;
}

.range-slider::-webkit-slider-thumb {
    appearance: none;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--primary);
    cursor: pointer;
    box-shadow: 0 0 15px var(--primary);
}

.calc-result {
    font-size: 3rem;
    font-family: var(--font-display);
    font-weight: 800;
    color: var(--secondary);
    margin-top: 1rem;
}

/* Interactive Reports (Charts) */
.chart-container {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    height: 300px;
    padding: 2rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 20px;
}

.chart-bar {
    flex: 1;
    background: var(--gradient);
    border-radius: 10px 10px 0 0;
    position: relative;
    transform-origin: bottom;
    transform: scaleY(0);
    transition: transform 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.chart-bar::after {
    content: attr(data-val);
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-main);
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.5s 1.5s;
}

.chart-bar.in-view {
    transform: scaleY(1);
}

.chart-bar.in-view::after {
    opacity: 1;
}

/* Live Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(0, 240, 255, 0.3);
    border: none;
    font-size: 1.5rem;
    color: #fff;
    transition: var(--transition);
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-box {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    background: var(--bg-light);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
    transition: var(--transition);
}

.chat-box.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.chat-header {
    background: var(--gradient);
    padding: 1rem;
    color: #fff;
    font-weight: bold;
}

.chat-body {
    padding: 1rem;
    height: 250px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.chat-msg {
    background: rgba(255, 255, 255, 0.05);
    padding: 0.8rem;
    border-radius: 10px;
    font-size: 0.9rem;
}

.chat-input {
    display: flex;
    border-top: 1px solid var(--border);
}

.chat-input input {
    flex: 1;
    background: none;
    border: none;
    padding: 1rem;
    color: #fff;
    outline: none;
}

.chat-input button {
    background: var(--primary);
    border: none;
    padding: 0 1rem;
    color: #000;
    font-weight: bold;
}

/* Forms & Legal Pages */
.form-group {
    margin-bottom: 2rem;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 2px solid var(--border);
    padding: 1rem 0;
    color: var(--text-main);
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    border-bottom-color: var(--primary);
}

.legal-content {
    max-width: 900px;
    margin: 12rem auto 8rem;
}

.legal-content h2 {
    color: var(--primary);
    margin-top: 3rem;
    font-size: 2rem;
}

.legal-content p,
.legal-content li {
    margin-bottom: 1rem;
    color: #ccc;
}

/* Scroll Reveal Classes */
.reveal {
    opacity: 0;
    transform: translateY(50px);
    transition: 1s cubic-bezier(0.25, 1, 0.5, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Footer (STRICT CONSISTENCY) */
footer {
    background: var(--bg-light);
    border-top: 1px solid var(--border);
    padding: 6rem 2rem 2rem;
    margin-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 0 10px rgba(0, 240, 255, 0.3));
}

.footer-col h4 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--text-main);
}

.footer-col ul {
    list-style: none;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col a {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.footer-bottom {
    max-width: 1400px;
    margin: 4rem auto 0;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

/* Responsive */
@media (max-width: 1024px) {

    .grid-2,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        display: none;
    }

    /* Add hamburger logic for prod */
    h1 {
        font-size: 3rem;
    }
}