/* =========================================
   1. CORE VARIABLES & RESET
   ========================================= */
:root {
    /* Brand Colors - Theme: "Ruby + Teal + Ink" (high contrast, premium) */
    --brand-primary: #be123c;
    /* Ruby */
    --brand-secondary: #14b8a6;
    /* Teal */
    --brand-accent: #f59e0b;
    /* Amber accent */
    --brand-dark: #0b1020;
    /* Ink */
    --brand-light: #f8fafc;
    --brand-white: #ffffff;

    /* Functional Colors */
    --text-main: #0f172a;
    /* Slate 900 */
    --text-muted: #475569;
    /* Slate 600 */
    --border-color: #e2e8f0;
    /* Slate 200 */

    /* Gradients */
    --gradient-hero: linear-gradient(135deg, #fdf2f8 0%, #ffffff 100%);
    --gradient-primary: linear-gradient(to right, var(--brand-primary), var(--brand-secondary));
    --gradient-cta: linear-gradient(to right, var(--brand-accent), #fb7185);

    /* Spacing */
    --section-spacing: 120px;
    --container-max: 1280px;

    /* Effects */
    --shadow-sm: 0 1px 3px rgba(2, 6, 23, 0.10);
    --shadow-md: 0 6px 12px -6px rgba(2, 6, 23, 0.18);
    --shadow-lg: 0 14px 24px -12px rgba(2, 6, 23, 0.22);
    --shadow-hover: 0 22px 32px -16px rgba(2, 6, 23, 0.24), 0 12px 14px -12px rgba(2, 6, 23, 0.10);
}



*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--text-main);
    background-color: var(--brand-white);
    line-height: 1.7;
    overflow-x: hidden;
}

ul,
ol {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

img {
    max-width: 100%;
    display: block;
}

/* =========================================
   2. REUSABLE COMPONENTS
   ========================================= */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.85rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
}

.btn-primary {
    background: var(--gradient-cta);
    color: white;
    box-shadow: 0 4px 6px rgba(249, 115, 22, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(249, 115, 22, 0.4);
}

.btn-outline {
    background: transparent;
    color: var(--brand-primary);
    border: 2px solid var(--brand-primary);
}

.btn-outline:hover {
    background: var(--brand-primary);
    color: white;
}

/* Typography */
h1,
h2,
h3,
h4,
h5 {
    color: var(--brand-dark);
    line-height: 1.2;
    font-weight: 800;
}

.section-header {
    margin-bottom: 80px;
    text-align: center;
}

.section-header .sub-heading {
    display: inline-block;
    padding: 8px 16px;
    background: #eff6ff;
    color: var(--brand-accent);
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    border-radius: 50px;
    margin-bottom: 20px;
    letter-spacing: 1.5px;
}

.section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto;
}

/* =========================================
   3. HEADER
   ========================================= */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
}

.main-header.scrolled {
    padding: 10px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 90px;
    transition: height 0.4s;
}

.main-header.scrolled .nav-container {
    height: 70px;
}

.logo img {
    height: 55px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: 600;
    color: var(--brand-dark);
    font-size: 0.95rem;
    position: relative;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: var(--brand-secondary);
    transition: width 0.3s ease;
}

.nav-links a:hover::before {
    width: 100%;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
}

.mobile-toggle span {
    width: 30px;
    height: 3px;
    background: var(--brand-dark);
    border-radius: 3px;
    transition: 0.3s;
}

/* =========================================
   4. HERO SECTION (Slanted Design)
   ========================================= */
.hero-section {
    position: relative;
    padding: 220px 0 180px;
    background: var(--brand-dark);
    color: white;
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% 85%, 0 100%);
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at top right, #3b82f6 0%, transparent 40%),
        radial-gradient(circle at bottom left, #1e3a8a 0%, transparent 40%);
    opacity: 0.4;
    z-index: 1;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    position: relative;
    z-index: 2;
    align-items: center;
}

.hero-text h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 30px;
    color: white;
    letter-spacing: -1px;
}

.hero-text h1 span {
    color: var(--brand-secondary);
}

.hero-text p {
    font-size: 1.25rem;
    color: #cbd5e1;
    margin-bottom: 40px;
    max-width: 600px;
}

.hero-stats {
    display: flex;
    gap: 50px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.stat-item h3 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 5px;
}

.stat-item p {
    font-size: 0.9rem;
    color: var(--brand-secondary);
    margin: 0;
    text-transform: uppercase;
    font-weight: 700;
}

/* Hero abstract visual */
.hero-visual-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    transform: rotate(3deg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: float 6s ease-in-out infinite;
}

/* =========================================
   5. SERVICES (Cards with Hover Lift)
   ========================================= */
.services-section {
    padding: var(--section-spacing) 0;
    background: var(--brand-light);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 50px 40px;
    border-radius: 8px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-bottom: 4px solid transparent;
    box-shadow: var(--shadow-sm);
    position: relative;
    z-index: 1;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-bottom-color: var(--brand-secondary);
}

.card-icon {
    width: 70px;
    height: 70px;
    background: #eff6ff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 30px;
    color: var(--brand-primary);
    font-size: 1.8rem;
    transition: 0.3s;
}

.service-card:hover .card-icon {
    background: var(--brand-primary);
    color: white;
    transform: rotate(-10deg);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.service-card p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 25px;
}

.learn-more-link {
    color: var(--brand-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.learn-more-link:hover {
    gap: 12px;
}

/* =========================================
   6. CALCULATOR (Dark Section)
   ========================================= */
.calculator-section {
    padding: var(--section-spacing) 0;
    background: var(--brand-dark);
    color: white;
    position: relative;
    /* Reverse clip path */
    clip-path: polygon(0 10%, 100% 0, 100% 100%, 0 100%);
    margin-top: -80px;
}

.calc-wrapper {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-wrap: wrap;
    color: var(--text-main);
}

.calc-form {
    flex: 1;
    padding: 60px;
    min-width: 320px;
}

.calc-output {
    flex: 1;
    padding: 60px;
    background: var(--brand-secondary);
    /* Orange */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 320px;
    position: relative;
}

.calc-output::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iMSIgY3k9IjEiIHI9IjEiIGZpbGw9InJnYmEoMjU1LDI1NSwyNTUsMC4yKSIvPjwvc3ZnPg==');
    opacity: 0.3;
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--brand-dark);
}

.range-wrap {
    position: relative;
}

input[type="range"] {
    width: 100%;
    cursor: pointer;
    accent-color: var(--brand-primary);
}

.range-value {
    margin-top: 10px;
    font-weight: 600;
    color: var(--brand-primary);
}

.output-row {
    margin-bottom: 40px;
    position: relative;
    z-index: 2;
}

.output-row h4 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.output-row .big-text {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

/* =========================================
   7. REPORTING & SAMPLE
   ========================================= */
.reporting-section {
    padding: var(--section-spacing) 0;
    overflow: hidden;
}

.report-flex {
    display: flex;
    align-items: center;
    gap: 80px;
}

.report-content {
    flex: 1;
}

.report-visual {
    flex: 1;
    position: relative;
}

.browser-mockup {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.browser-header {
    background: #f1f5f9;
    padding: 12px 20px;
    display: flex;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red {
    background: #ef4444;
}

.dot.yellow {
    background: #eab308;
}

.dot.green {
    background: #22c55e;
}

.browser-body {
    padding: 30px;
    min-height: 300px;
}

/* Simulated Chart */
.chart-bars {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 200px;
    padding-top: 30px;
    border-bottom: 1px solid var(--border-color);
}

.c-bar {
    width: 12%;
    background: #eff6ff;
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: height 1.5s cubic-bezier(0.22, 1, 0.36, 1);
    height: 0;
}

.c-bar.filled {
    background: var(--brand-primary);
}

/* =========================================
   8. TESTIMONIALS
   ========================================= */
.testimonials-section {
    padding: var(--section-spacing) 0;
    background: linear-gradient(to bottom, #fff, #f8fafc);
}

.testimonial-track {
    display: flex;
    gap: 30px;
    overflow-x: auto;
    padding-bottom: 40px;
    scroll-snap-type: x mandatory;
}

.testimonial-box {
    min-width: 400px;
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    scroll-snap-align: center;
    border-left: 5px solid var(--brand-secondary);
}

.quote-icon {
    font-size: 4rem;
    color: #e2e8f0;
    line-height: 0;
    margin-bottom: 20px;
    display: block;
    height: 20px;
}

.t-author {
    display: flex;
    align-items: center;
    margin-top: 20px;
}

.t-avatar {
    width: 50px;
    height: 50px;
    background: #cbd5e1;
    border-radius: 50%;
    margin-right: 15px;
}

/* =========================================
   9. FOOTER
   ========================================= */
footer {
    background: #0b1120;
    color: #94a3b8;
    padding: 80px 0 0;
    font-size: 0.95rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand h4 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 20px;
}

.footer-links h5 {
    color: white;
    margin-bottom: 25px;
    font-size: 1.1rem;
}

.footer-links ul li {
    margin-bottom: 12px;
}

.footer-links a:hover {
    color: var(--brand-secondary);
    padding-left: 5px;
}

.footer-bottom {
    background: #020617;
    padding: 25px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.legal-nav a {
    margin: 0 15px;
    font-size: 0.85rem;
}

/* =========================================
   10. PAGE SPECIFIC: LEGAL & CONTACT
   ========================================= */
.page-banner {
    background: var(--brand-dark);
    padding: 180px 0 80px;
    color: white;
    text-align: center;
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    margin-bottom: 60px;
}

.legal-body {
    max-width: 800px;
    margin: 0 auto 100px;
    padding: 0 20px;
}

.legal-body h2 {
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--brand-primary);
    font-size: 1.8rem;
}

.legal-body p {
    margin-bottom: 15px;
    color: var(--text-main);
}

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    padding-bottom: 100px;
}

.contact-info-box {
    background: #f8fafc;
    padding: 40px;
    border-radius: 12px;
}

.info-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 30px;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: rgba(30, 58, 138, 0.1);
    color: var(--brand-primary);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    font-size: 1.2rem;
}

.form-classic input,
.form-classic textarea,
.form-classic select {
    width: 100%;
    padding: 15px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    font-size: 1rem;
    font-family: inherit;
    transition: 0.3s;
    background: #f8fafc;
}

.form-classic input:focus,
.form-classic textarea:focus {
    border-color: var(--brand-secondary);
    background: white;
    outline: none;
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* =========================================
   11. ANIMATIONS
   ========================================= */
@keyframes float {

    0%,
    100% {
        transform: rotate(3deg) translateY(0);
    }

    50% {
        transform: rotate(3deg) translateY(-20px);
    }
}

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 0.8s ease-out;
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================
   12. MEDIA QUERIES
   ========================================= */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 3.5rem;
    }

    .hero-text p {
        margin: 0 auto 40px;
    }

    .hero-stats {
        justify-content: center;
    }

    .hero-visual-card {
        display: none;
    }

    .report-flex {
        flex-direction: column;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .mobile-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        height: 100vh;
        background: white;
        flex-direction: column;
        padding: 100px 40px;
        box-shadow: -10px 0 20px rgba(0, 0, 0, 0.1);
        transition: 0.4s;
    }

    .nav-links.active {
        right: 0;
    }

    .hero-section {
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

    .calc-wrapper {
        flex-direction: column;
    }

    .footer-top {
        grid-template-columns: 1fr;
    }
}