/* 
  CSS Document: style.css
  Design: Modern Corporate B2B/SaaS Template
*/

:root {
    /* Color Palette */
    --primary-color: #2ECC71;
    --primary-hover: #27ae60;
    --secondary-color: #1A1A1A;
    --heading-color: #111111;
    --text-color: #666666;
    --bg-white: #FFFFFF;
    --bg-light: #F8F9FA;
    --border-color: #EEEEEE;
    --white: #FFFFFF;

    /* Typography */
    --font-family: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-weight-bold: 700;
    --font-weight-medium: 500;
    --font-weight-regular: 400;

    /* Spacing & Layout */
    --section-padding: 100px 0;
    --container-width: 1200px;
    --border-radius-pill: 50px;
    --border-radius-card: 20px;
    
    /* Effects */
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 20px 50px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 1. Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1, h2, h3, h4 {
    color: var(--heading-color);
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* 2. Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--border-radius-pill);
    font-weight: var(--font-weight-medium);
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 15px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.3);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.4);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--white);
}

.btn-secondary:hover {
    background-color: #000;
    transform: translateY(-2px);
}

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

.btn-outline:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* 3. Header & Navigation */
.header {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

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

.logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--secondary-color);
}

.nav-links {
    display: flex;
    gap: 40px;
}

.nav-links a {
    font-weight: var(--font-weight-medium);
    color: var(--heading-color);
    font-size: 15px;
}

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

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.member-login {
    font-weight: var(--font-weight-medium);
    color: var(--heading-color);
}

/* 4. Hero Section */
.hero {
    padding: 80px 0;
    overflow: hidden;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 56px;
    margin-bottom: 24px;
}

.hero-content h1 span {
    color: var(--primary-color);
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 32px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
}

.hero-trust {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatars {
    display: flex;
}

.user-avatars img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--white);
    margin-right: -12px;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image {
    border-radius: 30px;
    width: 100%;
    object-fit: cover;
    box-shadow: var(--shadow-soft);
}

.floating-card {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: var(--white);
    padding: 16px 24px;
    border-radius: 16px;
    box-shadow: var(--shadow-hover);
    display: flex;
    align-items: center;
    gap: 12px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: var(--primary-color);
    border-radius: 50%;
}

/* 5. Components & Cards */
.section-title {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

/* Service Grid (Asymmetric) */
.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--border-radius-card);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-hover);
    border-color: transparent;
}

.card-icon {
    width: 60px;
    height: 60px;
    background: rgba(46, 204, 113, 0.1);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    color: var(--primary-color);
    font-size: 24px;
}

.card-large {
    grid-column: span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--secondary-color);
    color: var(--white);
}

.card-large h3 {
    color: var(--white);
    font-size: 28px;
}

/* 6. CTA Section */
.cta-section {
    padding: var(--section-padding);
    background: var(--secondary-color);
    color: var(--white);
    border-radius: 40px;
    margin: 40px 24px;
    text-align: center;
}

.cta-section h2 {
    color: var(--white);
    font-size: 42px;
    margin-bottom: 24px;
}

.cta-section p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 40px;
    font-size: 18px;
}

/* 7. Footer */
.footer {
    background: var(--bg-light);
    padding: 80px 0 30px;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand p {
    margin-top: 20px;
    font-size: 14px;
}

.footer-column h4 {
    margin-bottom: 24px;
    font-size: 18px;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-color);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--primary-color);
}

.subscribe-form {
    display: flex;
    margin-top: 20px;
    background: var(--white);
    padding: 6px;
    border-radius: var(--border-radius-pill);
    border: 1px solid var(--border-color);
}

.subscribe-form input {
    flex: 1;
    border: none;
    padding: 0 20px;
    outline: none;
    background: transparent;
}

.copyright {
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 14px;
}

/* 8. Utility Classes */
.mt-20 { margin-top: 20px; }
.mb-40 { margin-bottom: 40px; }
.text-center { text-align: center; }
.text-primary { color: var(--primary-color); }

/* 9. Responsive Design */

/* Tablet */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 42px;
    }
    
    .hero-content p {
        margin: 0 auto 32px;
    }
    
    .hero-btns {
        justify-content: center;
    }
    
    .hero-trust {
        justify-content: center;
    }

    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .header .nav-links {
        display: none; /* In real project, implement hamburger menu */
    }
    
    .hero-content h1 {
        font-size: 32px;
    }
    
    .section-title h2 {
        font-size: 28px;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .card-large {
        grid-column: span 1;
    }
    
    .cta-section {
        margin: 20px 15px;
        padding: 60px 20px;
    }
    
    .cta-section h2 {
        font-size: 28px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .floating-card {
        right: 10px;
        bottom: 10px;
        padding: 10px 16px;
    }
}