/* ==========================================================================
   Variables, Resets, & Advanced Typography
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Clash+Display:wght@400;500;600;700&family=Inter:wght@300;400;600&display=swap');

:root {
    --bg-space: #040814;
    --bg-surface: #0a1128;
    --bg-glass: rgba(10, 17, 40, 0.5);

    --neon-cyan: #00E5FF;
    --neon-magenta: #FF007A;
    --chrome: #E2E8F0;
    --muted: #8492A6;

    --border-glow: rgba(0, 229, 255, 0.3);
    --border-glass: rgba(226, 232, 240, 0.1);

    --font-heading: 'Clash Display', sans-serif;
    --font-body: 'Inter', sans-serif;

    --ease-quantum: cubic-bezier(0.19, 1, 0.22, 1);
    --transition-fast: all 0.3s var(--ease-quantum);
    --transition-slow: all 0.8s var(--ease-quantum);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    cursor: none !important;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background: var(--bg-space);
}

body {
    background-color: var(--bg-space);
    color: var(--chrome);
    font-family: var(--font-body);
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-space);
}

::-webkit-scrollbar-thumb {
    background: var(--neon-cyan);
    border-radius: 4px;
}

/* Custom Quantum Cursor */
.cursor-core {
    position: fixed;
    top: 0;
    left: 0;
    width: 8px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99999;
    box-shadow: 0 0 15px var(--neon-cyan);
    transition: width 0.2s, height 0.2s;
}

.cursor-trail {
    position: fixed;
    top: 0;
    left: 0;
    width: 50px;
    height: 50px;
    border: 1px solid var(--neon-magenta);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 99998;
    transition: 0.1s linear;
    mix-blend-mode: screen;
}

body.hover-active .cursor-core {
    width: 60px;
    height: 60px;
    background: rgba(0, 229, 255, 0.1);
    border: 1px solid var(--neon-cyan);
}

body.hover-active .cursor-trail {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.5);
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.1;
}

.glitch-text {
    position: relative;
    display: inline-block;
    color: var(--chrome);
    font-weight: 700;
    text-transform: uppercase;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s;
}

.glitch-text:hover::before {
    left: 2px;
    text-shadow: -2px 0 var(--neon-magenta);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
    opacity: 1;
}

.glitch-text:hover::after {
    left: -2px;
    text-shadow: 2px 0 var(--neon-cyan);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
    opacity: 1;
}

.title-xl {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    letter-spacing: 2px;
}

.title-lg {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: 1px;
}

.text-cyan {
    color: var(--neon-cyan);
    text-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 5%;
}

.section-pad {
    padding: 140px 0;
    position: relative;
}

.text-center {
    text-align: center;
}

/* ==========================================================================
   Header (Strict Consistency)
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 25px 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-slow);
    background: transparent;
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(4, 8, 20, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 15px 5%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.logo img {
    height: 50px;
    object-fit: contain;
    filter: invert(1);
}

.nav-links {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-links a {
    color: var(--chrome);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    padding: 5px 0;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: -100%;
    width: 100%;
    height: 2px;
    background: var(--neon-cyan);
    transition: var(--transition-fast);
}

.nav-links a:hover::before {
    left: 0;
}

.nav-links a:hover {
    color: var(--neon-cyan);
}

.btn-neon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: transparent;
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    font-family: var(--font-heading);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    z-index: 1;
    transition: var(--transition-fast);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.1), inset 0 0 10px rgba(0, 229, 255, 0.1);
}

.btn-neon::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--neon-cyan);
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-quantum);
}

.btn-neon:hover::after {
    transform: scaleX(1);
    transform-origin: left;
}

.btn-neon:hover {
    color: var(--bg-space);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.6);
}

/* ==========================================================================
   Hero Section & Pure CSS 3D Data Cube
   ========================================================================== */
#hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 100px;
    overflow: hidden;
    position: relative;
}

/* Grid Background */
#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(1000px) rotateX(60deg) translateY(-100px) translateZ(-200px);
    animation: grid-scroll 20s linear infinite;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 700px;
}

.hero-tag {
    display: inline-block;
    padding: 6px 15px;
    border: 1px solid var(--neon-magenta);
    color: var(--neon-magenta);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    margin-bottom: 30px;
    box-shadow: 0 0 15px rgba(255, 0, 122, 0.2);
}

.hero-desc {
    font-size: 1.2rem;
    color: var(--muted);
    margin: 30px 0 40px;
    font-weight: 300;
}

/* CSS 3D Cube */
.scene {
    width: 300px;
    height: 300px;
    perspective: 1000px;
    position: relative;
    z-index: 2;
    margin-right: 5%;
}

.cube {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: rotateCube 20s infinite linear;
}

.cube-face {
    position: absolute;
    width: 300px;
    height: 300px;
    background: rgba(0, 229, 255, 0.05);
    border: 2px solid var(--neon-cyan);
    box-shadow: inset 0 0 50px rgba(0, 229, 255, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--neon-cyan);
    text-transform: uppercase;
    backdrop-filter: blur(5px);
}

.face-front {
    transform: rotateY(0deg) translateZ(150px);
}

.face-right {
    transform: rotateY(90deg) translateZ(150px);
}

.face-back {
    transform: rotateY(180deg) translateZ(150px);
}

.face-left {
    transform: rotateY(-90deg) translateZ(150px);
}

.face-top {
    transform: rotateX(90deg) translateZ(150px);
}

.face-bottom {
    transform: rotateX(-90deg) translateZ(150px);
}

/* ==========================================================================
   Infinite Marquee
   ========================================================================== */
.ticker-wrap {
    background: var(--bg-surface);
    padding: 20px 0;
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    overflow: hidden;
}

.ticker-track {
    display: flex;
    white-space: nowrap;
    animation: ticker-anim 40s linear infinite;
}

.ticker-item {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke: 1px var(--muted);
    margin: 0 40px;
}

.ticker-item span {
    color: var(--neon-cyan);
    -webkit-text-stroke: 0;
}

/* ==========================================================================
   Services (Holographic Cards + Tilt)
   ========================================================================== */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
    margin-top: 60px;
    perspective: 1000px;
}

.holo-card {
    background: linear-gradient(145deg, rgba(10, 17, 40, 0.8), rgba(4, 8, 20, 0.9));
    border: 1px solid var(--border-glass);
    padding: 50px 40px;
    border-radius: 20px;
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s, transform 0.1s;
    transform-style: preserve-3d;
}

.holo-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(transparent, var(--neon-cyan), transparent 30%);
    animation: rotate-conic 4s linear infinite;
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.holo-card::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: var(--bg-surface);
    border-radius: 18px;
    z-index: 1;
}

.holo-card:hover {
    box-shadow: 0 20px 50px rgba(0, 229, 255, 0.15);
}

.holo-card:hover::before {
    opacity: 1;
}

.holo-content {
    position: relative;
    z-index: 2;
    transform: translateZ(30px);
}

.holo-icon {
    font-size: 3rem;
    color: var(--neon-magenta);
    margin-bottom: 25px;
    display: inline-block;
    text-shadow: 0 0 20px rgba(255, 0, 122, 0.4);
}

.holo-content h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--chrome);
}

.holo-content p {
    color: var(--muted);
}

/* ==========================================================================
   Interactive Calculator
   ========================================================================== */
.calc-section {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-glass);
    border-bottom: 1px solid var(--border-glass);
}

.calc-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.slider-wrap {
    margin-bottom: 40px;
}

.slider-label {
    display: flex;
    justify-content: space-between;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: var(--chrome);
}

.slider-label span {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 229, 255, 0.4);
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: var(--border-glass);
    outline: none;
    border-radius: 2px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: var(--neon-magenta);
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px var(--neon-magenta);
    transition: transform 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.3);
}

.calc-output-box {
    background: rgba(4, 8, 20, 0.8);
    border: 1px solid var(--border-glow);
    padding: 60px;
    border-radius: 20px;
    text-align: center;
    position: relative;
    box-shadow: inset 0 0 50px rgba(0, 229, 255, 0.05);
}

.calc-output-box h4 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--muted);
    margin-bottom: 15px;
}

.output-revenue {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-family: var(--font-heading);
    color: var(--neon-cyan);
    line-height: 1;
    text-shadow: 0 0 30px rgba(0, 229, 255, 0.5);
}

/* ==========================================================================
   Data Dashboard (Pure CSS Bar/Radar Charts)
   ========================================================================== */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    margin-top: 60px;
}

.dash-panel {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 40px;
}

/* Staggered CSS Bars */
.css-bars {
    display: flex;
    align-items: flex-end;
    gap: 20px;
    height: 250px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.css-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    position: relative;
}

.css-bar-fill {
    width: 100%;
    background: linear-gradient(to top, rgba(0, 229, 255, 0.1), var(--neon-cyan));
    border-radius: 4px 4px 0 0;
    height: 0;
    transition: height 1.5s var(--ease-quantum);
    box-shadow: 0 -5px 15px rgba(0, 229, 255, 0.2);
}

.css-bar-col span {
    position: absolute;
    top: -30px;
    font-weight: 600;
    font-family: var(--font-heading);
    color: var(--chrome);
}

.bar-labels {
    display: flex;
    gap: 20px;
}

.bar-labels div {
    flex: 1;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
    text-transform: uppercase;
}

/* Radial Performance Ring */
.radial-chart {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    border-radius: 50%;
    background: conic-gradient(var(--neon-magenta) 0deg, rgba(255, 0, 122, 0.1) 0deg);
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background 2s;
}

.radial-inner {
    width: 160px;
    height: 160px;
    background: var(--bg-surface);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--border-glass);
}

.radial-inner h3 {
    font-size: 2.5rem;
    color: var(--chrome);
    line-height: 1;
}

.radial-inner p {
    font-size: 0.8rem;
    color: var(--muted);
    text-transform: uppercase;
    margin-top: 5px;
}

/* ==========================================================================
   Industries (Accordion)
   ========================================================================== */
.ind-wrap {
    border-top: 1px solid var(--border-glass);
    margin-top: 60px;
}

.ind-row {
    padding: 40px 0;
    border-bottom: 1px solid var(--border-glass);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition-fast);
    position: relative;
    overflow: hidden;
}

.ind-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 4px;
    height: 100%;
    background: var(--neon-cyan);
    transform: scaleY(0);
    transition: var(--transition-fast);
}

.ind-row:hover::before {
    transform: scaleY(1);
}

.ind-row:hover {
    padding-left: 30px;
    background: rgba(0, 229, 255, 0.02);
}

.ind-row h3 {
    font-size: clamp(1.5rem, 3vw, 2.5rem);
    color: var(--muted);
    transition: var(--transition-fast);
}

.ind-row:hover h3 {
    color: var(--chrome);
}

.ind-row i {
    font-size: 2rem;
    color: var(--neon-magenta);
    opacity: 0;
    transform: translateX(-20px);
    transition: var(--transition-fast);
}

.ind-row:hover i {
    opacity: 1;
    transform: translateX(0);
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.test-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
    margin-top: 60px;
}

.test-card {
    background: rgba(255, 255, 255, 0.02);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    position: relative;
}

.test-card::before {
    content: '\f10d';
    font-family: 'FontAwesome';
    position: absolute;
    top: 30px;
    right: 30px;
    font-size: 3rem;
    color: rgba(255, 255, 255, 0.05);
}

.test-card p {
    font-size: 1.1rem;
    color: var(--chrome);
    margin-bottom: 30px;
    font-weight: 300;
}

.test-meta {
    display: flex;
    align-items: center;
    gap: 15px;
}

.test-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--border-glass);
    border: 1px solid var(--neon-cyan);
}

.test-info h6 {
    color: var(--neon-cyan);
    font-size: 1.1rem;
}

.test-info span {
    color: var(--muted);
    font-size: 0.85rem;
}

/* ==========================================================================
   Contact / Lead Form
   ========================================================================== */
.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.contact-info-list {
    margin-top: 40px;
}

.info-row {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 1.1rem;
}

.info-row i {
    width: 50px;
    height: 50px;
    background: rgba(255, 0, 122, 0.1);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--neon-magenta);
    border: 1px solid rgba(255, 0, 122, 0.3);
}

.quantum-form {
    background: var(--bg-surface);
    padding: 50px;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.input-group {
    position: relative;
    margin-bottom: 35px;
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--muted);
    padding: 15px 0;
    color: var(--chrome);
    font-family: var(--font-body);
    font-size: 1rem;
    outline: none;
    transition: var(--transition-fast);
}

.input-group label {
    position: absolute;
    top: 15px;
    left: 0;
    color: var(--muted);
    pointer-events: none;
    transition: var(--transition-fast);
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.input-group input:focus,
.input-group textarea:focus {
    border-bottom-color: var(--neon-cyan);
}

.input-group input:focus~label,
.input-group input:valid~label,
.input-group textarea:focus~label,
.input-group textarea:valid~label {
    top: -15px;
    font-size: 0.75rem;
    color: var(--neon-cyan);
}

/* ==========================================================================
   Live Chat Widget
   ========================================================================== */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.chat-btn {
    width: 65px;
    height: 65px;
    background: var(--neon-cyan);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--bg-space);
    font-size: 1.5rem;
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
    transition: transform 0.3s;
}

.chat-btn:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 85px;
    right: 0;
    width: 350px;
    background: var(--bg-surface);
    border: 1px solid var(--border-glow);
    border-radius: 15px;
    overflow: hidden;
    transform: scale(0.9);
    opacity: 0;
    pointer-events: none;
    transition: var(--transition-fast);
    transform-origin: bottom right;
}

.chat-widget.active .chat-window {
    transform: scale(1);
    opacity: 1;
    pointer-events: auto;
}

.chat-header {
    background: rgba(0, 229, 255, 0.1);
    padding: 20px;
    font-family: var(--font-heading);
    color: var(--neon-cyan);
    font-weight: 600;
    border-bottom: 1px solid var(--border-glow);
}

.chat-body {
    height: 250px;
    padding: 20px;
    overflow-y: auto;
    color: var(--muted);
    font-size: 0.9rem;
}

.chat-input {
    display: flex;
    border-top: 1px solid var(--border-glass);
    padding: 10px;
}

.chat-input input {
    flex: 1;
    background: transparent;
    border: none;
    color: #fff;
    outline: none;
    padding: 5px;
}

.chat-input button {
    background: transparent;
    border: none;
    color: var(--neon-cyan);
    font-size: 1.2rem;
    padding: 0 10px;
}

/* ==========================================================================
   Footer (Strictly Consistent Site-Wide)
   ========================================================================== */
footer {
    background: var(--bg-space);
    border-top: 1px solid var(--border-glass);
    padding: 100px 5% 40px;
    position: relative;
    overflow: hidden;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 80px;
    position: relative;
    z-index: 2;
}

.foot-logo img {
    height: 45px;
    margin-bottom: 25px;
    filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.1));
}

.foot-desc {
    color: var(--muted);
    max-width: 350px;
    font-size: 0.95rem;
}

.foot-col h4 {
    font-size: 1.1rem;
    color: var(--chrome);
    margin-bottom: 30px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.foot-col ul {
    list-style: none;
}

.foot-col ul li {
    margin-bottom: 15px;
}

.foot-col ul li a,
.foot-col ul li span {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s;
    font-size: 0.95rem;
}

.foot-col ul li a:hover {
    color: var(--neon-cyan);
}

.news-box {
    display: flex;
    border-bottom: 1px solid var(--muted);
    padding-bottom: 10px;
    margin-top: 20px;
    transition: border-color 0.3s;
}

.news-box:focus-within {
    border-color: var(--neon-cyan);
}

.news-box input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--chrome);
    font-family: var(--font-body);
}

.news-box button {
    background: transparent;
    border: none;
    color: var(--neon-cyan);
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
}

.footer-bottom {
    border-top: 1px solid var(--border-glass);
    padding-top: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--muted);
    font-size: 0.85rem;
}

.legal-links a {
    color: var(--muted);
    text-decoration: none;
    margin-left: 20px;
    transition: color 0.3s;
}

.legal-links a:hover {
    color: var(--neon-cyan);
}

/* ==========================================================================
   Animations & Reveals
   ========================================================================== */
@keyframes grid-scroll {
    0% {
        background-position: 0 0;
    }

    100% {
        background-position: 60px 60px;
    }
}

@keyframes rotateCube {
    0% {
        transform: rotateX(0deg) rotateY(0deg);
    }

    100% {
        transform: rotateX(360deg) rotateY(360deg);
    }
}

@keyframes ticker-anim {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

@keyframes rotate-conic {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(20% 0 80% 0);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
    }

    40% {
        clip-path: inset(40% 0 50% 0);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
    }

    80% {
        clip-path: inset(10% 0 70% 0);
    }

    100% {
        clip-path: inset(30% 0 20% 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(10% 0 60% 0);
    }

    20% {
        clip-path: inset(30% 0 20% 0);
    }

    40% {
        clip-path: inset(70% 0 10% 0);
    }

    60% {
        clip-path: inset(20% 0 50% 0);
    }

    80% {
        clip-path: inset(50% 0 30% 0);
    }

    100% {
        clip-path: inset(5% 0 80% 0);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: 1s var(--ease-quantum);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Responsive Logic
   ========================================================================== */
@media (max-width: 1024px) {
    #hero {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .scene {
        margin: 50px auto 0;
    }

    .calc-container,
    .dashboard-grid,
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .cursor-core,
    .cursor-trail {
        display: none;
    }

    * {
        cursor: auto !important;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

/* Legal Pages General Rules */
.legal-box {
    max-width: 900px;
    margin: 180px auto 100px;
    background: rgba(10, 17, 40, 0.5);
    padding: 80px;
    border-radius: 20px;
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(20px);
}

.legal-box h1 {
    font-size: 3rem;
    color: var(--neon-cyan);
    margin-bottom: 30px;
}

.legal-box h2 {
    font-size: 1.8rem;
    margin: 40px 0 20px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 10px;
    color: var(--chrome);
}

.legal-box p {
    color: var(--muted);
    margin-bottom: 20px;
    font-size: 1.05rem;
}