/* ClientLoad marketing landing — extracted from /crm/index.php so the
   browser can cache it across visits and so the HTML payload shrinks. */

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
}

.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="0.5"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 30px;
    position: relative;
    z-index: 2;
}

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

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
}

.feature-item i {
    color: #ffd700;
    font-size: 1.2rem;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.btn {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}

/* Visible focus ring for keyboard users (a11y) */
.btn:focus-visible,
a:focus-visible {
    outline: 3px solid #ffd700;
    outline-offset: 3px;
}

.btn-primary {
    background: rgba(255,255,255,0.2);
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.btn-primary:hover { background: rgba(255,255,255,0.3); transform: translateY(-2px); }

.btn-secondary {
    background: white;
    color: #5a4391; /* darker for contrast vs old #667eea (4.5:1+) */
    border: 2px solid white;
}

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

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-container {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    border: 1px solid rgba(255,255,255,0.2);
}

.visual-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.visual-item {
    background: rgba(255,255,255,0.2);
    border-radius: 8px;
    padding: 15px;
    text-align: center;
    border: 1px solid rgba(255,255,255,0.3);
}

.visual-item i { font-size: 24px; margin-bottom: 8px; display: block; }
.visual-item span { font-size: 12px; opacity: 0.9; }

.upload-demo {
    background: rgba(255,255,255,0.15);
    border: 2px dashed rgba(255,255,255,0.4);
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.upload-demo i { font-size: 32px; margin-bottom: 10px; opacity: 0.9; }

.features-section {
    padding: 100px 0;
    background: #f8f9fa;
}

.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    color: #333;
}

.section-title p {
    font-size: 1.1rem;
    color: #555; /* slightly darker for AAA-ish contrast */
    max-width: 600px;
    margin: 0 auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
}

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.2s ease;
}

.feature-card:hover { transform: translateY(-5px); }

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p { color: #555; line-height: 1.6; }

.stats-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.stat-item p { font-size: 1.1rem; opacity: 0.95; }

.footer {
    background: #222;
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
    text-align: left;
}

.footer-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.footer-section p,
.footer-section a {
    color: #ddd;
    text-decoration: none;
    line-height: 1.8;
}

.footer-section a:hover { color: #ffd700; text-decoration: underline; }

.footer-bottom {
    border-top: 1px solid #555;
    padding-top: 20px;
    color: #ccc;
}

@media (max-width: 768px) {
    .hero-content       { grid-template-columns: 1fr; text-align: center; }
    .hero-text h1       { font-size: 2.5rem; }
    .cta-buttons        { justify-content: center; }
    .container          { padding: 0 20px; }
    .features-grid      { grid-template-columns: 1fr; }
    .stats-grid         { grid-template-columns: repeat(2, 1fr); }
    .footer-content     { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .btn, .feature-card { transition: none; }
}
