/* css/style.css */

/* ------------------- */
/* Design System & Resets */
/* ------------------- */
:root {
    --primary-color: #4A6BFF;
    --primary-hover: #3858E5;
    --secondary-color: #1AE5B5;
    --dark-color: #121A3E;
    --light-color: #ffffff;
    --text-color: #555B79;
    --border-color: #E2E6F2;
    --background-light: #F7F9FF;

    --font-primary: 'Inter', sans-serif;
    --spacing-unit: 8px;
    --border-radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--light-color);
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 calc(var(--spacing-unit) * 3);
}

h1, h2, h3 {
    color: var(--dark-color);
    line-height: 1.3;
    margin-bottom: calc(var(--spacing-unit) * 2);
    font-weight: 600;
}

h1 { font-size: 3.25rem; }
h2 { font-size: 2.5rem; }
h3 { font-size: 1.5rem; }

p {
    margin-bottom: calc(var(--spacing-unit) * 2);
}

ul {
    list-style-type: none;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 500; 
}

section {
    padding: calc(var(--spacing-unit) * 10) 0;
}

/* ------------------- */
/* Utility Classes */
/* ------------------- */
.btn {
    display: inline-block;
    padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 4);
    border-radius: var(--border-radius);
    font-weight: 500;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--light-color);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.btn-secondary {
    background-color: transparent;
    color: var(--dark-color);
    border-color: var(--border-color);
}

.btn-secondary:hover {
    background-color: var(--dark-color);
    color: var(--light-color);
    border-color: var(--dark-color);
}

/* ------------------- */
/* Header & Navigation */
/* ------------------- */
.site-header {
    background: var(--light-color);
    border-bottom: 1px solid transparent;
    padding: calc(var(--spacing-unit) * 2) 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.site-header.scrolled {
    box-shadow: 0 2px 20px rgba(18, 26, 62, 0.07);
    border-bottom-color: var(--border-color);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--dark-color);
}

/* NEW rule for the "SaaS" part of the logo */
.logo span {
    color: var(--primary-color);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: calc(var(--spacing-unit) * 3);
}

.main-nav ul {
    display: flex;
    gap: calc(var(--spacing-unit) * 4);
}

.main-nav a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
    padding: var(--spacing-unit) 0;
}

/* NEW rule for the second word in nav links */
.main-nav a span {
    color: var(--primary-color);
    font-weight: 600; /* Make the colored part slightly bolder */
}

.main-nav a:hover {
    color: var(--primary-color);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1001;
    width: 24px;
    height: 24px;
    position: relative;
}

.mobile-nav-toggle span {
    display: block;
    width: 100%;
    height: 3px;
    background: var(--dark-color);
    border-radius: 3px;
    transition: all 0.3s ease-in-out;
    position: absolute;
}

.mobile-nav-toggle span:nth-child(1) { top: 3px; }
.mobile-nav-toggle span:nth-child(2) { top: 11px; }
.mobile-nav-toggle span:nth-child(3) { top: 19px; }

.mobile-nav-toggle.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.mobile-nav-toggle.active span:nth-child(2) { opacity: 0; }
.mobile-nav-toggle.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }


/* ------------------- */
/* Hero Section */
/* ------------------- */
.hero-section {
    text-align: center;
    padding: calc(var(--spacing-unit) * 12) 0;
    background-color: var(--background-light);
    background-image: linear-gradient(180deg, #FFFFFF 0%, var(--background-light) 100%);
}

.hero-section h1 {
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero-section .subtitle {
    font-size: 1.25rem;
    max-width: 700px;
    margin: calc(var(--spacing-unit) * 2) auto calc(var(--spacing-unit) * 5) auto;
}

.hero-cta {
    display: flex;
    justify-content: center;
    gap: calc(var(--spacing-unit) * 2);
}

/* ------------------- */
/* How It Works Section */
/* ------------------- */
.how-it-works-section {
    text-align: center;
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: calc(var(--spacing-unit) * 4);
    margin-top: calc(var(--spacing-unit) * 6);
}

.step {
    padding: calc(var(--spacing-unit) * 3);
}

.step-icon {
    width: 60px;
    height: 60px;
    background-color: var(--primary-color);
    color: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 auto calc(var(--spacing-unit) * 3) auto;
}

/* ------------------- */
/* Value Props Section */
/* ------------------- */
.value-props-section {
    background-color: var(--background-light);
    text-align: center;
}

.audience-tabs {
    display: flex;
    justify-content: center;
    margin-bottom: calc(var(--spacing-unit) * 5);
    border-bottom: 1px solid var(--border-color);
}

.tab-link {
    padding: calc(var(--spacing-unit) * 2) calc(var(--spacing-unit) * 4);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
}

.tab-link.active, .tab-link:hover {
    color: var(--primary-color);
}
.tab-link.active {
    border-bottom-color: var(--primary-color);
}

.tab-content {
    display: none;
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.tab-content.active {
    display: block;
}

.tab-content ul {
    margin-top: calc(var(--spacing-unit) * 3);
}

.tab-content li {
    padding-left: calc(var(--spacing-unit) * 4);
    position: relative;
    margin-bottom: var(--spacing-unit);
}

.tab-content li::before {
    content: '✓';
    color: var(--secondary-color);
    position: absolute;
    left: 0;
    top: 2px;
    font-weight: 700;
    font-size: 1.25rem;
}

/* ------------------- */
/* Featured SaaS Section */
/* ------------------- */
.featured-saas-section {
    text-align: center;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    justify-content: center;
    align-items: center;
    gap: calc(var(--spacing-unit) * 4);
    margin-top: calc(var(--spacing-unit) * 6);
}

.logo-placeholder {
    padding: calc(var(--spacing-unit) * 3);
    border: 1px solid var(--border-color);
    background-color: var(--background-light);
    border-radius: var(--border-radius);
    color: var(--text-color);
    font-weight: 500;
    font-size: 1.1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 80px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(18, 26, 62, 0.03);
}

.logo-placeholder:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(18, 26, 62, 0.08);
}


/* ------------------- */
/* Testimonials Section */
/* ------------------- */
.testimonials-section {
    background-color: var(--dark-color);
    color: var(--light-color);
    text-align: center;
}

.testimonials-section h2 {
    color: var(--light-color);
}

.testimonial {
    max-width: 750px;
    margin: 0 auto;
}

.testimonial blockquote {
    font-size: 1.75rem;
    font-style: italic;
    line-height: 1.5;
    margin-bottom: calc(var(--spacing-unit) * 3);
}

.testimonial cite {
    font-weight: 500;
    color: var(--secondary-color);
}

/* ------------------- */
/* Final CTA Section */
/* ------------------- */
.final-cta-section {
    text-align: center;
}

.cta-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--spacing-unit) * 4);
    margin-top: calc(var(--spacing-unit) * 6);
}

.cta-box {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: calc(var(--spacing-unit) * 5);
    transition: all 0.3s ease;
}

.cta-box:hover {
    box-shadow: 0 8px 30px rgba(18, 26, 62, 0.1);
    transform: translateY(-5px);
}

.cta-box p {
    margin: calc(var(--spacing-unit) * 2) 0 calc(var(--spacing-unit) * 4) 0;
}

/* ------------------- */
/* Animation Utilities */
/* ------------------- */
.animated-item {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animated-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ------------------- */
/* Modal & Form Styles */
/* ------------------- */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 26, 62, 0.7);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background-color: var(--light-color);
    padding: calc(var(--spacing-unit) * 5);
    border-radius: var(--border-radius);
    width: 90%;
    max-width: 500px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.modal.active .modal-content {
    transform: scale(1);
}

.close-modal {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-color);
    cursor: pointer;
    line-height: 1;
}

.contact-form {
    margin-top: calc(var(--spacing-unit) * 3);
    display: flex;
    flex-direction: column;
    gap: calc(var(--spacing-unit) * 2);
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: var(--spacing-unit);
}

.form-group input {
    padding: calc(var(--spacing-unit) * 1.5);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-primary);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(74, 107, 255, 0.2);
}

.contact-form button {
    margin-top: var(--spacing-unit);
    width: 100%;
}


/* ------------------- */
/* Footer */
/* ------------------- */
.site-footer {
    background-color: var(--background-light);
    border-top: 1px solid var(--border-color);
    padding: calc(var(--spacing-unit) * 4) 0;
    text-align: center;
}

.site-footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-nav {
    display: flex;
    gap: calc(var(--spacing-unit) * 3);
}

/* ------------------- */
/* Responsive Design */
/* ------------------- */
@media (max-width: 768px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 2rem; }

   .main-nav {
        position: fixed;
        top: 0;
        right: 0;
        width: 80%;
        height: 100vh;
        background: var(--light-color);
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: calc(var(--spacing-unit) * 4);
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.1);
    }

    .main-nav.active { transform: translateX(0); }
    
    .main-nav ul {
        flex-direction: column;
        align-items: center;
        gap: calc(var(--spacing-unit) * 3);
    }

   .mobile-nav-toggle { display: block; }
   .steps-container, .cta-split { grid-template-columns: 1fr; }
   .site-footer .container {
        flex-direction: column;
        gap: calc(var(--spacing-unit) * 2);
    }
   .audience-tabs {
        flex-direction: column;
        border-bottom: none;
   }
   .tab-link { border-bottom: 1px solid var(--border-color); }
   .tab-link.active {
        border-bottom-color: var(--primary-color);
        border-width: 3px;
   }
}