/* ==========================================================================
   Base & Typography (Corporate Futurism Theme)
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-base: #030712;
    /* Deep Space Navy */
    --bg-surface: #111827;
    /* Darker Surface */
    --bg-elevated: #1F2937;
    --text-primary: #F9FAFB;
    --text-secondary: #9CA3AF;
    --accent-blue: #3B82F6;
    --accent-cyan: #06B6D4;
    --accent-indigo: #6366F1;
    --gradient-primary: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-cyan) 100%);
    --border-light: rgba(255, 255, 255, 0.08);
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --transition-smooth: all 0.6s cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-base);
}

body {
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-main);
    overflow-x: hidden;
    cursor: none;
    /* Custom Cursor */
    -webkit-font-smoothing: antialiased;
}

/* Ambient Background Glows */
.ambient-glow {
    position: fixed;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, rgba(3, 7, 18, 0) 70%);
    top: -200px;
    left: -200px;
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

.ambient-glow.right {
    top: auto;
    bottom: -200px;
    left: auto;
    right: -200px;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, rgba(3, 7, 18, 0) 70%);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

a {
    color: inherit;
    text-decoration: none;
    cursor: none;
}

img {
    max-width: 100%;
    display: block;
}

section {
    position: relative;
    padding: 10rem 5%;
}

.text-gradient {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ==========================================================================
   Custom Smooth Cursor
   ========================================================================== */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--text-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
}

.cursor-ring {
    position: fixed;
    top: 0;
    left: 0;
    width: 36px;
    height: 36px;
    border: 1px solid var(--accent-cyan);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s, height 0.3s, background 0.3s;
}

.hover-active .cursor-ring {
    width: 60px;
    height: 60px;
    background: rgba(6, 182, 212, 0.1);
    border-color: transparent;
}

/* ==========================================================================
   Header & Navigation (Strictly Consistent)
   ========================================================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    padding: 1.5rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    transition: var(--transition-smooth);
    border-bottom: 1px solid transparent;
}

header.scrolled {
    background: rgba(3, 7, 18, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-light);
    padding: 1rem 5%;
}

.logo img {
    height: 50px;
    filter: brightness(0) invert(1);
}

.nav-links {
    display: flex;
    gap: 3rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.8rem 2rem;
    border-radius: 50px;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(10px);
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.nav-links a:hover {
    color: var(--text-primary);
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    box-shadow: 0 10px 30px rgba(99, 102, 241, 0.3);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.4);
}

/* ==========================================================================
   Animations
   ========================================================================== */
.fade-up {
    opacity: 0;
    transform: translateY(50px);
    transition: 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.fade-up.active {
    opacity: 1;
    transform: translateY(0);
}

.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

/* ==========================================================================
   Index Layout
   ========================================================================== */
/* 1. Hero */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.hero-content {
    max-width: 1000px;
    z-index: 2;
}

.hero h1 {
    font-size: clamp(3.5rem, 8vw, 6.5rem);
    margin-bottom: 1.5rem;
    line-height: 1.05;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 3rem;
    line-height: 1.6;
}

/* 2. Marquee */
.marquee-container {
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    padding: 2rem 0;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.01);
}

.marquee-content {
    display: flex;
    width: max-content;
    animation: scrollMarquee 30s linear infinite;
}

.marquee-item {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin: 0 3rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.marquee-item span {
    color: var(--accent-cyan);
    font-size: 2rem;
}

@keyframes scrollMarquee {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* 3. About / Value Prop */
.about-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.about-split h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
}

.about-split p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

/* 4. 3D Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    margin-top: 4rem;
    perspective: 1000px;
}

.service-card {
    background: var(--bg-surface);
    padding: 3.5rem 2.5rem;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: 0;
}

.service-card:hover {
    transform: translateY(-15px) rotateX(5deg) rotateY(-5deg);
    border-color: rgba(6, 182, 212, 0.5);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
}

.service-card:hover::before {
    opacity: 0.05;
}

.service-card>* {
    position: relative;
    z-index: 1;
}

.icon-box {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    border: 1px solid var(--border-light);
}

.service-card h3 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* 5. Advanced Calculator */
.calculator-section {
    background: var(--bg-surface);
    border-radius: 40px;
    margin: 0 5%;
    padding: 6rem;
    border: 1px solid var(--border-light);
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
}

.calc-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 6rem;
    align-items: center;
}

.range-group {
    margin-bottom: 3rem;
}

.range-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 600;
}

.slider-styled {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: var(--bg-elevated);
    border-radius: 10px;
    outline: none;
    border: 1px solid var(--border-light);
}

.slider-styled::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--text-primary);
    border: 4px solid var(--accent-indigo);
    cursor: pointer;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.5);
    transition: 0.2s;
}

.calc-results-box {
    background: var(--bg-base);
    padding: 4rem;
    border-radius: 30px;
    border: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.calc-results-box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(6, 182, 212, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.res-item {
    margin-bottom: 2.5rem;
}

.res-item:last-child {
    margin-bottom: 0;
}

.res-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.res-value {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1;
}

/* 6. Industry Tabs */
.industry-nav {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.ind-tab {
    background: var(--bg-surface);
    border: 1px solid var(--border-light);
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition-fast);
}

.ind-tab.active,
.ind-tab:hover {
    background: var(--text-primary);
    color: var(--bg-base);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

.ind-content {
    display: none;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    animation: slideUp 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.ind-content.active {
    display: block;
}

.ind-content h3 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.ind-content p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 7. CSS Analytics Rings */
.analytics-grid {
    display: flex;
    justify-content: center;
    gap: 4rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.ring-box {
    text-align: center;
}

.ring {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: conic-gradient(var(--accent-cyan) var(--perc), var(--bg-surface) 0);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 30px rgba(6, 182, 212, 0.2);
}

.ring::before {
    content: '';
    position: absolute;
    width: 180px;
    height: 180px;
    background: var(--bg-base);
    border-radius: 50%;
}

.ring-val {
    position: relative;
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.ring-label {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* 8. Testimonials */
.testi-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.testi-card {
    background: var(--bg-surface);
    padding: 4rem;
    border-radius: 24px;
    border: 1px solid var(--border-light);
    position: relative;
}

.quote-icon {
    font-size: 4rem;
    color: var(--accent-indigo);
    opacity: 0.2;
    position: absolute;
    top: 2rem;
    left: 2rem;
    font-family: serif;
    line-height: 1;
}

.testi-card p {
    font-size: 1.3rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

.testi-author {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--accent-cyan);
}

.testi-role {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* 9. Live Chat Orb */
.chat-cta {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.orb-hologram {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #fff, var(--accent-cyan), var(--bg-base));
    box-shadow: 0 0 50px var(--accent-cyan), inset 0 0 20px #fff;
    margin-bottom: 3rem;
    animation: floatOrb 4s ease-in-out infinite;
}

@keyframes floatOrb {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-20px);
    }
}

/* 10. Contact Section */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 6rem;
}

.contact-info h2 {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.contact-info p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
}

.contact-form {
    background: var(--bg-surface);
    padding: 4rem;
    border-radius: 30px;
    border: 1px solid var(--border-light);
}

.input-group {
    margin-bottom: 2rem;
}

.input-group label {
    display: block;
    margin-bottom: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.input-control {
    width: 100%;
    background: var(--bg-base);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.2rem;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 1rem;
    transition: var(--transition-fast);
    outline: none;
}

.input-control:focus {
    border-color: var(--accent-cyan);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
}

/* ==========================================================================
   Footer (Strictly Consistent)
   ========================================================================== */
footer {
    background: var(--bg-surface);
    border-top: 1px solid var(--border-light);
    padding: 6rem 5% 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 5rem;
    margin-bottom: 4rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1.5rem;
    max-width: 350px;
    line-height: 1.7;
}

.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.footer-contact p {
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    transition: var(--transition-fast);
    display: inline-block;
}

.footer-links a:hover {
    color: var(--accent-cyan);
    transform: translateX(5px);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-light);
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* ==========================================================================
   Legal Pages Specific
   ========================================================================== */
.legal-wrapper {
    max-width: 900px;
    margin: 0 auto;
    padding-top: 160px;
    padding-bottom: 80px;
}

.legal-header {
    text-align: center;
    margin-bottom: 5rem;
}

.legal-header h1 {
    font-size: 4.5rem;
    margin-bottom: 1.5rem;
}

.legal-header p {
    font-size: 1.2rem;
    color: var(--text-secondary);
}

.legal-content h2 {
    font-size: 2rem;
    margin: 4rem 0 1.5rem;
    color: var(--text-primary);
}

.legal-content p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.legal-content ul {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.15rem;
    line-height: 1.8;
}

.legal-content li {
    margin-bottom: 0.8rem;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {

    .about-split,
    .calc-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .hero h1 {
        font-size: 4rem;
    }

    .calculator-section {
        padding: 4rem;
    }

    .nav-links {
        display: none;
    }
}

@media (max-width: 768px) {
    .testi-wrapper {
        grid-template-columns: 1fr;
    }

    section {
        padding: 6rem 5%;
    }

    .calculator-section {
        padding: 2rem;
        margin: 0;
        border-radius: 20px;
    }

    .calc-results-box {
        padding: 2rem;
    }
}