/* Base Styles */
:root {
    /* Color Palette */
    --primary: #0056b3;
    --primary-dark: #004494;
    --primary-light: #e6f0fa;
    --secondary: #2ecc71;
    --secondary-dark: #27ae60;
    --accent: #f39c12;
    --dark: #333333;
    --gray-dark: #555555;
    --gray: #777777;
    --gray-light: #eeeeee;
    --white: #ffffff;
    
    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    --h1-size: 3rem;
    --h2-size: 2.5rem;
    --h3-size: 1.75rem;
    --h4-size: 1.25rem;
    --body-size: 1.125rem;
    --small-size: 0.875rem;
    --line-height: 1.6;
    
    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 8rem;
    
    /* Borders & Shadows */
    --border-radius: 8px;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
    
    /* Container */
    --container-width: 1200px;
}

/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    font-size: var(--body-size);
    line-height: var(--line-height);
    color: var(--dark);
    background-color: var(--white);
}

img {
    max-width: 100%;
    height: auto;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--primary-dark);
}

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

section {
    padding: var(--spacing-lg) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    font-size: var(--h2-size);
    margin-bottom: var(--spacing-xs);
    color: var(--dark);
}

.section-header p {
    font-size: var(--h4-size);
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: var(--h1-size);
}

h2 {
    font-size: var(--h2-size);
}

h3 {
    font-size: var(--h3-size);
}

h4 {
    font-size: var(--h4-size);
}

p {
    margin-bottom: var(--spacing-sm);
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-outline {
    display: inline-block;
    padding: 14px 28px;
    font-weight: 600;
    border-radius: var(--border-radius);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    border: 2px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    color: var(--white);
    border-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background-color: var(--secondary);
    color: var(--white);
    border: 2px solid var(--secondary);
}

.btn-secondary:hover {
    background-color: var(--secondary-dark);
    color: var(--white);
    border-color: var(--secondary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Header Styles */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--white);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-sm) 0;
    z-index: 100;
    transition: all 0.3s ease;
}

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

.logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary);
}

nav ul {
    display: flex;
    align-items: center;
}

nav ul li {
    margin-left: var(--spacing-md);
}

nav ul li a {
    color: var(--dark);
    font-weight: 500;
    position: relative;
    padding-bottom: 5px;
}

nav ul li a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary);
}

nav ul li a:hover::after {
    width: 100%;
}

nav ul li a.btn-secondary {
    padding: 10px 20px;
    color: var(--white);
}

nav ul li a.btn-secondary::after {
    display: none;
}

/* Hero Section */
.hero {
    padding-top: calc(76px + var(--spacing-lg));
    padding-bottom: var(--spacing-lg);
    background: linear-gradient(to right, var(--white) 0%, var(--primary-light) 100%);
}

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

.hero-content {
    flex: 1;
    padding-right: var(--spacing-lg);
}

.hero-content h1 {
    margin-bottom: var(--spacing-sm);
    color: var(--dark);
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--gray-dark);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-sm);
}

.hero-image {
    flex: 1;
}

/* Stats Section */
.stats {
    padding: var(--spacing-md) 0;
    background-color: var(--primary);
    color: var(--white);
}

.stats .container {
    display: flex;
    justify-content: space-between;
}

.stat-item {
    text-align: center;
    flex: 1;
    padding: var(--spacing-sm);
}

.stat-item h3 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-xs);
    color: var(--white);
}

stat-item p {
    font-size: 1rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0;
}

/* Benefits Section */
.benefits {
    background-color: var(--white);
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
}

.benefit-card {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--gray-light);
}

.benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.benefit-card .icon {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: var(--spacing-sm);
}

.benefit-card h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--dark);
}

.benefit-card p {
    color: var(--gray);
    margin-bottom: 0;
}

/* Features Section */
.features {
    background-color: var(--primary-light);
}

.features-wrapper {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
}

.feature {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.feature.reverse {
    flex-direction: row-reverse;
}

.feature-content {
    flex: 1;
}

.feature-content h3 {
    margin-bottom: var(--spacing-sm);
    color: var(--dark);
}

.feature-content p {
    margin-bottom: var(--spacing-sm);
    color: var(--gray-dark);
}

.feature-list {
    margin-top: var(--spacing-sm);
}

.feature-list li {
    margin-bottom: var(--spacing-xs);
    position: relative;
    padding-left: 1.5rem;
    color: var(--gray-dark);
}

.feature-list li::before {
    content: "✓";
    color: var(--secondary);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.feature-image img {
    max-width: 90%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-md);
}

/* Workflow Section */
.workflow {
    background-color: var(--white);
}

.workflow-steps {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
}

.step {
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-sm);
    padding: var(--spacing-md);
    width: calc(33.333% - var(--spacing-md));
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    border: 1px solid var(--gray-light);
    transition: all 0.3s ease;
}

.step:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.step-number {
    background-color: var(--primary);
    color: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.step-content h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--dark);
}

.step-content p {
    color: var(--gray);
    margin-bottom: 0;
}

/* Signup Section */
.signup {
    background-color: var(--primary);
    color: var(--white);
}

.signup-content {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.signup-content h2 {
    color: var(--white);
    margin-bottom: var(--spacing-xs);
}

.signup-content p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-md);
}

.signup-form {
    background-color: var(--white);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-lg);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-family);
    outline: none;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--primary);
}

.signup-form .btn-primary {
    width: 100%;
    margin-top: var(--spacing-sm);
}

/* Footer Section */
footer {
    background-color: var(--dark);
    color: var(--white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--spacing-lg);
}

.footer-logo h2 {
    color: var(--white);
    margin-bottom: var(--spacing-xs);
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links {
    display: flex;
    gap: var(--spacing-lg);
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: var(--spacing-sm);
}

.footer-col ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.contact-info {
    margin-top: var(--spacing-sm);
}

.contact-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: var(--spacing-xs);
    font-size: var(--small-size);
}

.contact-info a {
    color: rgba(255, 255, 255, 0.7);
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0;
}

.social-links {
    display: flex;
    gap: var(--spacing-sm);
}

.social-links a {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.25rem;
    transition: color 0.3s ease;
}

.social-links a:hover {
    color: var(--white);
}

/* Style for success message after form submission */
.success-message {
    text-align: center;
    padding: var(--spacing-md);
}

.success-message h3 {
    color: var(--dark);
    margin-bottom: var(--spacing-xs);
}

.success-message p {
    color: var(--gray-dark);
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    opacity: 1;
    display: block;
}

.modal-content {
    background-color: var(--white);
    margin: 10% auto;
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-lg);
    width: 90%;
    max-width: 500px;
    position: relative;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.show .modal-content {
    transform: translateY(0);
}

.close-modal {
    color: var(--gray);
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close-modal:hover {
    color: var(--dark);
}

.modal h2 {
    margin-bottom: var(--spacing-md);
    color: var(--dark);
    text-align: center;
}

#contact-form textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--gray-light);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-family: var(--font-family);
    resize: vertical;
    min-height: 100px;
    outline: none;
    transition: border-color 0.3s ease;
}

#contact-form textarea:focus {
    border-color: var(--primary);
}

#contact-form .btn-primary {
    width: 100%;
    margin-top: var(--spacing-sm);
}

/* Back to Top Button */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: auto;
    height: auto;
    padding: 10px 15px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    z-index: 99;
    border-radius: var(--border-radius);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background-color: var(--primary-dark);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.back-to-top i {
    font-size: 1.25rem;
    margin-bottom: 3px;
}

.back-to-top span {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
    vertical-align: middle;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    :root {
        --h1-size: 2.5rem;
        --h2-size: 2rem;
        --h3-size: 1.5rem;
        --h4-size: 1.125rem;
        --body-size: 1rem;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .step {
        width: calc(50% - var(--spacing-md));
    }
}

@media (max-width: 768px) {
    .hero .container {
        flex-direction: column;
    }
    
    .hero-content {
        padding-right: 0;
        margin-bottom: var(--spacing-lg);
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .stats .container {
        flex-wrap: wrap;
    }
    
    .stat-item {
        flex: 0 0 50%;
        margin-bottom: var(--spacing-sm);
    }
    
    .feature {
        flex-direction: column;
    }
    
    .feature.reverse {
        flex-direction: column;
    }
    
    .feature-content,
    .feature-image {
        width: 100%;
    }
    
    .feature-content {
        margin-bottom: var(--spacing-md);
    }
    
    .footer-content {
        flex-direction: column;
    }
    
    .footer-logo {
        margin-bottom: var(--spacing-md);
        text-align: center;
    }
    
    .footer-links {
        gap: var(--spacing-md);
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .footer-col {
        flex: 0 0 calc(50% - var(--spacing-md));
        margin-bottom: var(--spacing-md);
    }
    
    .contact-info {
        text-align: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: var(--spacing-sm);
    }
}

@media (max-width: 576px) {
    header .container {
        flex-direction: column;
    }
    
    .logo {
        margin-bottom: var(--spacing-sm);
    }
    
    nav ul {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav ul li {
        margin: 0 var(--spacing-xs) var(--spacing-xs);
    }
    
    .benefits-grid {
        grid-template-columns: 1fr;
    }
    
    .step {
        width: 100%;
    }
    
    .hero-cta {
        flex-direction: column;
        gap: var(--spacing-sm);
    }
    
    .footer-col {
        flex: 0 0 100%;
    }
}