/* =========================================
   1. VARIABLES & RESET
   ========================================= */
:root {
    /* Brand Colors - Theme: "Charcoal + Emerald + Gold" */
    --primary: #111827;
    /* Charcoal */
    --secondary: #22c55e;
    /* Emerald */
    --accent: #f59e0b;
    /* Gold */

    /* Backgrounds */
    --bg-body: #ffffff;
    --bg-alt: #f8fafc;
    /* Soft off-white */
    --bg-glass: rgba(255, 255, 255, 0.88);

    /* Text */
    --text-main: #0f172a;
    /* Slate 900 */
    --text-light: #475569;
    /* Slate 600 */
    --text-white: #ffffff;

    /* Dimensions */
    --header-height: 90px;
    --container-max: 1200px;

    /* Easing */
    --ease-out: cubic-bezier(0.215, 0.61, 0.355, 1);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Outfit', 'Helvetica Neue', Arial, sans-serif;
    background-color: var(--bg-body);
    color: var(--text-main);
    line-height: 1.7;
    overflow-x: hidden;
}

/* 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;
}

body:hover .cursor-outline.hovered {
    width: 60px;
    height: 60px;
    background-color: rgba(10, 25, 47, 0.1);
    border-color: transparent;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

ul {
    list-style: none;
}

img {
    display: block;
    max-width: 100%;
}

/* =========================================
   2. UTILITY & LAYOUT
   ========================================= */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 25px;
    position: relative;
    z-index: 2;
}

.section-padding {
    padding: 120px 0;
}

.bg-alt {
    background-color: var(--bg-alt);
}

.bg-navy {
    background-color: var(--primary);
    color: white;
}

.btn {
    display: inline-block;
    padding: 16px 36px;
    border-radius: 4px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.9rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
    border: 1px solid var(--primary);
    transition: color 0.4s ease;
}

.btn-primary {
    background: var(--primary);
    color: var(--secondary);
    border-color: var(--primary);
}

.btn-primary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background-color: var(--secondary);
    transition: all 0.4s var(--ease-out);
    z-index: -1;
}

.btn-primary:hover {
    color: var(--primary);
}

.btn-primary:hover::after {
    height: 100%;
}

.btn-outline {
    background: transparent;
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

/* =========================================
   3. TYPOGRAPHY & HEADINGS
   ========================================= */
h1,
h2,
h3,
h4 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

h1 {
    font-size: 4.5rem;
    letter-spacing: -2px;
}

h2 {
    font-size: 3rem;
    letter-spacing: -1px;
}

h3 {
    font-size: 1.5rem;
}

.section-title {
    margin-bottom: 80px;
    position: relative;
    display: inline-block;
}

.section-title::before {
    content: '';
    position: absolute;
    width: 60px;
    height: 4px;
    background: var(--secondary);
    bottom: -15px;
    left: 0;
}

.text-mint {
    color: var(--secondary);
}

/* =========================================
   4. HEADER
   ========================================= */
.main-header {
    height: var(--header-height);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.main-header.hidden {
    transform: translateY(-100%);
}

.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.logo img {
    height: 50px;
    filter: brightness(0);
    /* Converts white to navy via filter if image is white */
}

.nav-menu {
    display: flex;
    gap: 40px;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    position: relative;
    color: var(--text-main);
}

.nav-link::before {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: var(--secondary);
    /* Mint underline */
    bottom: -5px;
    right: 0;
    transition: width 0.3s ease;
}

.nav-link:hover::before {
    width: 100%;
    left: 0;
}

.hamburger {
    display: none;
    font-size: 1.5rem;
    color: var(--primary);
}

/* =========================================
   5. HERO SECTION
   ========================================= */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #fdfbfb 0%, #ebedee 100%);
    position: relative;
    overflow: hidden;
}

/* Geometric Background Shapes */
.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.6;
    animation: float 10s infinite ease-in-out;
}

.shape-1 {
    top: -10%;
    right: -5%;
    width: 500px;
    height: 500px;
    background: #e0f2fe;
}

.shape-2 {
    bottom: 10%;
    left: -10%;
    width: 400px;
    height: 400px;
    background: #d1fae5;
    animation-delay: 2s;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 span {
    display: block;
    color: var(--primary);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 90%;
}

/* 3D Dashboard Mockup in CSS */
.hero-visual {
    perspective: 1000px;
}

.mockup-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    transform: rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero-visual:hover .mockup-card {
    transform: rotateY(0deg) rotateX(0deg);
}

.mockup-header {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ddd;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.mockup-graph {
    height: 150px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
}

.m-bar {
    width: 100%;
    background: linear-gradient(to top, var(--primary), var(--secondary));
    opacity: 0.8;
    border-radius: 4px 4px 0 0;
    animation: growBar 2s ease-out forwards;
}

@keyframes growBar {
    from {
        height: 0;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-30px);
    }
}

/* =========================================
   6. SERVICES (Cards with Lift)
   ========================================= */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 40px;
}

.service-item {
    background: white;
    padding: 50px 40px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border-bottom: 3px solid transparent;
}

.service-item:hover {
    transform: translateY(-15px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    border-bottom-color: var(--secondary);
}

.s-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 25px;
    display: inline-block;
}

.service-item p {
    color: var(--text-light);
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.arrow-link {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--primary);
}

/* =========================================
   7. INTERACTIVE ROI CALCULATOR
   ========================================= */
.calculator-section {
    background: var(--primary);
    color: white;
    position: relative;
    overflow: hidden;
}

/* Background Pattern */
.calculator-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(#2e3c50 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.1;
}

.calc-container {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.form-group {
    margin-bottom: 30px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-size: 0.9rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--secondary);
}

.form-group input {
    width: 100%;
    padding: 15px;
    background: transparent;
    border: none;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1.5rem;
    font-family: inherit;
    transition: border 0.3s;
}

.form-group input:focus {
    outline: none;
    border-bottom-color: var(--secondary);
}

.roi-results {
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    padding-left: 60px;
}

.roi-metric {
    margin-bottom: 40px;
}

.roi-metric span {
    display: block;
    font-size: 0.9rem;
    opacity: 0.7;
    margin-bottom: 5px;
}

.roi-metric strong {
    font-size: 3.5rem;
    line-height: 1;
    color: var(--secondary);
    font-weight: 700;
}

/* =========================================
   8. DASHBOARD / REPORTS SECTION
   ========================================= */
.report-interface {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    margin-top: 50px;
}

.ri-header {
    background: #f8f9fa;
    padding: 20px 30px;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ri-body {
    padding: 40px;
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.chart-area {
    height: 300px;
    background: linear-gradient(to bottom, transparent 95%, #f1f5f9 95%);
    background-size: 100% 50px;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    padding-bottom: 10px;
}

.chart-col {
    width: 12%;
    background: var(--primary);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: height 1s cubic-bezier(0.5, 0, 0.5, 1);
}

.chart-col:hover {
    background: var(--secondary);
}

.chart-col::after {
    content: attr(data-val);
    position: absolute;
    top: -25px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.8rem;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s;
}

.chart-col:hover::after {
    opacity: 1;
}

/* =========================================
   9. LEGAL & FORM PAGES
   ========================================= */
.legal-page {
    max-width: 800px;
    margin: 150px auto 100px;
}

.legal-page h1 {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 40px;
}

.legal-page h2 {
    font-size: 1.5rem;
    color: var(--primary);
    margin-top: 40px;
    margin-bottom: 15px;
}

.legal-page p {
    margin-bottom: 15px;
    color: var(--text-light);
}

.contact-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 80vh;
}

.contact-visual {
    background: var(--primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 50px;
}

.contact-form-area {
    padding: 100px 80px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.modern-input {
    width: 100%;
    padding: 15px 0;
    border: none;
    border-bottom: 2px solid #e2e8f0;
    font-family: inherit;
    font-size: 1rem;
    transition: 0.3s;
}

.modern-input:focus {
    outline: none;
    border-color: var(--primary);
}

/* =========================================
   10. FOOTER
   ========================================= */
footer {
    background: #0f172a;
    /* Even darker navy */
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 60px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
    margin-bottom: 20px;
    width: 140px;
    filter: brightness(0) invert(1);
}

.f-link {
    display: block;
    color: #94a3b8;
    margin-bottom: 12px;
    transition: color 0.3s;
}

.f-link:hover {
    color: var(--secondary);
    padding-left: 5px;
}

.footer-btm {
    text-align: center;
    padding-top: 30px;
    color: #64748b;
    font-size: 0.9rem;
}

/* =========================================
   11. RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    h1 {
        font-size: 3.5rem;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-visual {
        display: none;
    }

    .calc-container {
        grid-template-columns: 1fr;
        padding: 40px;
    }

    .roi-results {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-left: 0;
        padding-top: 40px;
    }

    .contact-split {
        grid-template-columns: 1fr;
    }

    .contact-visual {
        padding: 40px;
        min-height: 200px;
    }

    .contact-form-area {
        padding: 40px 20px;
    }
}

@media (max-width: 768px) {
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 20px;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    }

    .nav-menu.active {
        display: flex;
    }

    .hamburger {
        display: block;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .input-row {
        grid-template-columns: 1fr;
    }
}