@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #4D8CE8;
    --primary-dark: #3A6BB8;
    --secondary-color: #FC2B4A;
    --accent-color: #F9AA2B;
    --dark-color: #191817;
    --text-color: #191817;
    --light-bg: #ffffff;
    --white: #ffffff;
    --gray-light: #f5f5f5;
    --gray: #e0e0e0;
    --success: #4D8CE8;
    --warning: #F9AA2B;
    --danger: #FC2B4A;
    --info: #4D8CE8;
    --border-radius: 8px;
    --box-shadow: 0 2px 10px rgba(77, 140, 232, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--light-bg);
    font-size: 16px;
}

/* Title fonts */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Bahnschrift', 'DIN Alternate', 'Franklin Gothic Medium', 'Nimbus Sans Narrow', sans-serif;
    font-weight: 600;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

header {
    background: linear-gradient(135deg, var(--white) 0%, #f8f9fa 100%);
    color: var(--primary-color);
    padding: 4rem 0;
    border-bottom: 1px solid var(--gray);
    box-shadow: 0 2px 8px rgba(77, 140, 232, 0.08);
    position: relative;
    overflow: hidden;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(252, 43, 74, 0.05) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

/* Commercia360 Logo Styling */
.commercia360-logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 12px rgba(77, 140, 232, 0.15));
    animation: slideDown 0.6s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.header-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.header-content .api-subtitle {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.header-content .header-subtitle {
    font-size: 1.15rem;
    max-width: 800px;
    opacity: 0.85;
    color: var(--text-color);
    line-height: 1.8;
    font-weight: 400;
}

.main-content {
    padding: 3rem 0;
}

.card {
    background: var(--white);
    border: 1px solid var(--gray);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(77, 140, 232, 0.08);
    padding: 2.5rem;
    margin-bottom: 2rem;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(77, 140, 232, 0.15);
    border-color: var(--primary-color);
}

.card:hover::before {
    opacity: 1;
}

.card-title {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--gray);
    font-size: 1.6rem;
    font-weight: 600;
}

.btn {
    display: inline-block;
    background: var(--primary-color);
    color: var(--white);
    padding: 1rem 2rem;
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition);
    font-weight: 600;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::before {
    width: 300px;
    height: 300px;
}

.btn:hover {
    background: var(--white);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(77, 140, 232, 0.3);
}

.btn-large {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
}

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

.btn-secondary:hover {
    background: var(--primary-color);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(77, 140, 232, 0.3);
}

.endpoints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.endpoint-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(77, 140, 232, 0.08);
    padding: 1.5rem;
    transition: var(--transition);
    border-left: 4px solid var(--primary-color);
    position: relative;
    overflow: hidden;
}

.endpoint-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(252, 43, 74, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.endpoint-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(77, 140, 232, 0.15);
    border-left-color: var(--secondary-color);
}

.endpoint-card h3 {
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.endpoint-card p {
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.endpoint-url {
    display: block;
    background: var(--gray-light);
    padding: 0.5rem;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--secondary-color);
    word-break: break-all;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.feature {
    background: var(--white);
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 12px rgba(77, 140, 232, 0.08);
    transition: var(--transition);
    text-align: center;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--gray);
}

.feature::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(77, 140, 232, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.feature:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(77, 140, 232, 0.15);
    border-color: var(--primary-color);
}

.feature:hover::before {
    top: -30%;
    right: -30%;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.feature:hover .feature-icon {
    transform: scale(1.1);
}

.feature h3 {
    margin-bottom: 0.75rem;
    color: var(--secondary-color);
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.feature p {
    color: #666;
    font-size: 0.95rem;
    position: relative;
    z-index: 1;
}

.cta-section {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
    margin: 3rem 0;
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(252, 43, 74, 0.2);
}

.cta-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-section h2 {
    margin-bottom: 1rem;
    font-size: 2.2rem;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.cta-section p {
    margin-bottom: 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0.95;
    position: relative;
    z-index: 1;
    font-size: 1.05rem;
}

.footer {
    background: linear-gradient(135deg, var(--dark-color) 0%, #2a2a28 100%);
    color: var(--white);
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid rgba(252, 43, 74, 0.2);
}

.footer p {
    opacity: 0.85;
    font-size: 0.95rem;
}

.footer a {
    color: var(--accent-color);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.footer a:hover {
    color: var(--white);
    text-decoration: underline;
}

@media (max-width: 768px) {
    .endpoints-grid {
        grid-template-columns: 1fr;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .header-content h1 {
        font-size: 2rem;
    }
    
    .header-content p {
        font-size: 1rem;
    }
}
