/* 
======================================================================
   PROJECT: DOMAIN NAME - DIGITAL MARKETING INTELLIGENCE
   THEME: DEEP NEURAL (AI / DATA / INTELLIGENCE)
   AUTHOR: AI DEV
   VERSION: 1.0.0
======================================================================
*/

/* -------------------------------------------------------------------
   1. VARIABLES & CONFIGURATION
------------------------------------------------------------------- */
:root {
    /* -- PALETTE: DEEP NEURAL -- */
    --bg-void: #060B16;
    --bg-depth: #0F172A;
    --bg-surface: #1E293B;

    /* -- ACCENTS -- */
    --cyan-primary: #22D3EE;
    --cyan-dim: rgba(34, 211, 238, 0.1);
    --cyan-glow: rgba(34, 211, 238, 0.5);

    --indigo-primary: #818CF8;
    --indigo-dim: rgba(129, 140, 248, 0.1);
    --indigo-glow: rgba(129, 140, 248, 0.5);

    /* -- TEXT -- */
    --text-white: #F8FAFC;
    --text-silver: #94A3B8;
    --text-dark: #0F172A;

    /* -- GLASSMORPHISM -- */
    --glass-bg: rgba(15, 23, 42, 0.65);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-blur: 12px;
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    /* -- DIMENSIONS -- */
    --header-height: 90px;
    --container-max: 1280px;
    --radius-sm: 4px;
    --radius-md: 12px;
    --radius-lg: 24px;
    --radius-full: 999px;

    /* -- ANIMATION -- */
    --ease-out-quart: cubic-bezier(0.165, 0.84, 0.44, 1);
    --ease-elastic: cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* -------------------------------------------------------------------
   2. RESET & BASE TYPOGRAPHY
------------------------------------------------------------------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--bg-void);
    color: var(--text-white);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

/* Neural Background Mesh */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background:
        radial-gradient(circle at 10% 20%, rgba(34, 211, 238, 0.05) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(129, 140, 248, 0.05) 0%, transparent 40%);
    z-index: -1;
    pointer-events: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-white);
    margin-bottom: 1rem;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.75rem;
    letter-spacing: -0.01em;
}

h3 {
    font-size: 1.75rem;
}

h4 {
    font-size: 1.25rem;
}

p {
    color: var(--text-silver);
    margin-bottom: 1.5rem;
    font-weight: 300;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* -------------------------------------------------------------------
   3. UTILITY CLASSES
------------------------------------------------------------------- */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 15px;
    position: relative;
}

.section-padding {
    padding: 120px 0;
    position: relative;
}

.text-gradient {
    background: linear-gradient(135deg, var(--cyan-primary) 0%, var(--indigo-primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.text-center {
    text-align: center;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none;
}

/* -------------------------------------------------------------------
   4. BUTTONS & INTERACTIONS
------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.4s var(--ease-out-quart);
    letter-spacing: 0.02em;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn i {
    margin-left: 8px;
    font-size: 0.9em;
    transition: transform 0.3s ease;
}

.btn:hover i {
    transform: translateX(4px);
}

/* Primary Button - Neon Glow */
.btn-primary {
    background: transparent;
    color: var(--cyan-primary);
    border: 1px solid var(--cyan-primary);
    box-shadow: 0 0 10px rgba(34, 211, 238, 0.1);
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--cyan-primary), var(--indigo-primary));
    z-index: -1;
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.4s var(--ease-out-quart);
}

.btn-primary:hover {
    color: var(--bg-void);
    border-color: transparent;
    box-shadow: 0 0 30px rgba(34, 211, 238, 0.4);
}

.btn-primary:hover::before {
    transform: scaleX(1);
    transform-origin: left;
}

/* Secondary Button - Glass */
.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-silver);
    transform: translateY(-2px);
}

/* -------------------------------------------------------------------
   5. HEADER (STRICT CONSISTENCY)
------------------------------------------------------------------- */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    z-index: 1000;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

.main-header.scrolled {
    background: rgba(6, 11, 22, 0.85);
    backdrop-filter: blur(16px);
    height: 70px;
    border-bottom: 1px solid var(--glass-border);
}

.header-container {
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-logo {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-img {
    height: 60px;
    width: auto;
    filter: invert(1);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    color: var(--text-silver);
    position: relative;
    padding: 5px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--cyan-primary);
    box-shadow: 0 0 10px var(--cyan-primary);
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-white);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Mobile Toggle */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    width: 40px;
    height: 40px;
    position: relative;
    z-index: 1002;
}

.hamburger-line {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--text-white);
    margin: 6px 0;
    transition: 0.4s;
}

/* Mobile Menu Overlay */
.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: var(--bg-depth);
    z-index: 1001;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    opacity: 0;
    visibility: hidden;
    transition: 0.5s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-link {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    color: var(--text-white);
    opacity: 0;
    transform: translateY(20px);
    transition: 0.4s ease;
}

.mobile-overlay.active .mobile-link {
    opacity: 1;
    transform: translateY(0);
}

/* -------------------------------------------------------------------
   6. HERO SECTION
------------------------------------------------------------------- */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--header-height);
    overflow: hidden;
}

#neural-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    opacity: 0.5;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(34, 211, 238, 0.1);
    border: 1px solid rgba(34, 211, 238, 0.3);
    border-radius: 50px;
    color: var(--cyan-primary);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
    box-shadow: 0 0 20px rgba(34, 211, 238, 0.1);
}

.hero-title {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    max-width: 600px;
    margin-bottom: 3rem;
}

.hero-cta-group {
    display: flex;
    gap: 20px;
    margin-bottom: 60px;
}

/* Stats Row in Hero */
.hero-stats {
    display: flex;
    gap: 60px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-block strong {
    display: block;
    font-size: 2.5rem;
    color: var(--text-white);
    font-family: 'Outfit', sans-serif;
    line-height: 1;
    margin-bottom: 5px;
}

.stat-block span {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: var(--text-silver);
    letter-spacing: 1px;
}

/* -------------------------------------------------------------------
   7. SERVICES SECTION
------------------------------------------------------------------- */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 40px 30px;
    transition: transform 0.4s ease, box-shadow 0.4s ease, border-color 0.4s ease;
    position: relative;
    overflow: hidden;
    height: 100%;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--cyan-primary), var(--indigo-primary));
    opacity: 0;
    transition: opacity 0.3s;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    border-color: rgba(34, 211, 238, 0.3);
}

.service-card:hover::before {
    opacity: 1;
}

.service-icon {
    width: 64px;
    height: 64px;
    background: rgba(34, 211, 238, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--cyan-primary);
    font-size: 1.75rem;
    transition: 0.3s;
}

.service-card:hover .service-icon {
    background: var(--cyan-primary);
    color: var(--bg-void);
    box-shadow: 0 0 20px var(--cyan-glow);
}

.service-features {
    margin-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 20px;
}

.service-features li {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: var(--text-silver);
}

.service-features li i {
    color: var(--cyan-primary);
    margin-right: 10px;
    font-size: 0.8rem;
}

/* -------------------------------------------------------------------
   8. CALCULATOR SECTION (Interactive)
------------------------------------------------------------------- */
.calculator-section {
    background: linear-gradient(180deg, var(--bg-void) 0%, var(--bg-depth) 100%);
}

.calc-wrapper {
    background: rgba(15, 23, 42, 0.4);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 50px;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    box-shadow: var(--glass-shadow);
}

.calc-inputs h3 {
    margin-bottom: 30px;
}

.range-group {
    margin-bottom: 30px;
}

.range-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.range-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-white);
}

.range-value {
    color: var(--cyan-primary);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
}

/* Custom Range Slider */
input[type=range] {
    -webkit-appearance: none;
    width: 100%;
    background: transparent;
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--bg-void);
    border: 2px solid var(--cyan-primary);
    cursor: pointer;
    margin-top: -10px;
    box-shadow: 0 0 10px var(--cyan-glow);
    transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.calc-display {
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.05), rgba(129, 140, 248, 0.05));
    border-radius: var(--radius-md);
    border: 1px solid rgba(34, 211, 238, 0.2);
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
}

.calc-display::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-md);
    box-shadow: inset 0 0 50px rgba(34, 211, 238, 0.05);
    pointer-events: none;
}

.roi-label {
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.8rem;
    color: var(--text-silver);
    margin-bottom: 15px;
}

.roi-number {
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--cyan-primary);
    text-shadow: 0 0 30px var(--cyan-glow);
    margin-bottom: 10px;
}

/* -------------------------------------------------------------------
   9. TESTIMONIALS
------------------------------------------------------------------- */
.testimonials-scroller {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 40px;
    scrollbar-width: none;
    /* Firefox */
}

.testimonials-scroller::-webkit-scrollbar {
    display: none;
}

.testimonial-card {
    min-width: 400px;
    background: var(--bg-surface);
    padding: 35px;
    border-radius: var(--radius-md);
    border-left: 3px solid var(--indigo-primary);
    position: relative;
}

.t-quote {
    font-size: 2rem;
    color: var(--indigo-primary);
    opacity: 0.3;
    position: absolute;
    top: 20px;
    right: 20px;
}

.t-text {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-silver);
    margin-bottom: 25px;
    position: relative;
    z-index: 1;
}

.t-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.t-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--cyan-primary), var(--indigo-primary));
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    color: #fff;
}

/* -------------------------------------------------------------------
   10. LEGAL PAGES & GENERIC CONTENT
------------------------------------------------------------------- */
.page-header {
    padding: 180px 0 80px;
    background: linear-gradient(to bottom, rgba(15, 23, 42, 0.8), var(--bg-void));
    text-align: center;
}

.legal-body {
    background: var(--glass-bg);
    padding: 60px;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
}

.legal-body h2 {
    color: var(--cyan-primary);
    margin-top: 40px;
    font-size: 1.8rem;
}

.legal-body ul {
    list-style: disc;
    margin-left: 20px;
    color: var(--text-silver);
    margin-bottom: 20px;
}

.legal-body li {
    margin-bottom: 10px;
}

/* -------------------------------------------------------------------
   11. CONTACT PAGE
------------------------------------------------------------------- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 60px;
}

.contact-card {
    background: var(--bg-surface);
    padding: 40px;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
}

.info-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.info-icon {
    width: 50px;
    height: 50px;
    background: rgba(34, 211, 238, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cyan-primary);
    font-size: 1.2rem;
}

.form-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 50px;
    border-radius: var(--radius-md);
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--text-silver);
}

.form-control {
    width: 100%;
    background: rgba(6, 11, 22, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 14px;
    color: var(--text-white);
    border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif;
    transition: 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: var(--cyan-primary);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.1);
}

/* -------------------------------------------------------------------
   12. FOOTER (STRICT CONSISTENCY)
------------------------------------------------------------------- */
.main-footer {
    background: var(--bg-depth);
    padding-top: 80px;
    border-top: 1px solid var(--glass-border);
    margin-top: 120px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-info p {
    margin-top: 20px;
    font-size: 0.95rem;
    max-width: 350px;
}

.footer-col h4 {
    color: var(--text-white);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-silver);
    font-size: 0.95rem;
    transition: 0.3s;
}

.footer-col ul li a:hover {
    color: var(--cyan-primary);
    padding-left: 5px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 30px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.4);
}

.legal-links {
    display: flex;
    gap: 25px;
}

/* -------------------------------------------------------------------
   13. MEDIA QUERIES (RESPONSIVENESS)
------------------------------------------------------------------- */
@media (max-width: 1024px) {
    h1 {
        font-size: 3rem;
    }

    .hero-stats {
        gap: 30px;
    }

    .calc-wrapper {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 900px) {

    .nav-menu,
    .header-actions {
        display: none;
    }

    .mobile-toggle {
        display: block;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 600px) {
    h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 20px;
        padding-top: 20px;
    }

    .hero-cta-group {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }

    .legal-links {
        flex-direction: column;
        gap: 10px;
    }
}

/* -------------------------------------------------------------------
   14. ANIMATION KEYFRAMES
------------------------------------------------------------------- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}