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

:root {
    /* Approved Contact Brand Colors - matching logo */
    --primary-color: #0066CC;
    --secondary-color: #004C99;
    --accent-color: #00A3E0;
    --text-color: #333;
    --text-light: #666;
    --bg-color: #fff;
    --bg-light: #f5f7f9;
    --border-color: #e0e0e0;
    --code-bg: #f8f8f8;
    --success-color: #4CAF50;
    --error-color: #f44336;
    --warning-color: #FF9800;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

/* Landing page specific container - centered with max-width */
body.landing-page .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Documentation pages - full width */
.container {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 40px;
}

/* Navigation */
.navbar {
    background: var(--bg-color);
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 1rem 0;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo {
    height: 40px;
}

.nav-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 80px 0;
}

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

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: 2px solid transparent;
    cursor: pointer;
    font-size: 1rem;
}

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

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

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

.btn-secondary:hover {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.125rem;
}

/* Code Window */
.hero-code {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}

.code-window {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
}

.code-header {
    background: #2d2d2d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.code-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ff5f56;
}

.code-dot:nth-child(2) {
    background: #ffbd2e;
}

.code-dot:nth-child(3) {
    background: #27c93f;
}

.code-title {
    margin-left: auto;
    color: #888;
    font-size: 0.875rem;
}

.code-window pre {
    margin: 0;
    padding: 20px;
    overflow-x: auto;
}

.code-window code {
    color: #d4d4d4;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--bg-light);
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--text-color);
}

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

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.feature-icon i {
    font-size: 24px;
    color: white;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-light);
    line-height: 1.7;
}

/* Quick Links Section */
.quick-links {
    padding: 80px 0;
}

.quick-links h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.link-card {
    background: white;
    padding: 28px;
    border-radius: 12px;
    border: 2px solid var(--border-color);
    text-decoration: none;
    color: var(--text-color);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.link-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.link-card i {
    font-size: 32px;
    color: var(--primary-color);
}

.link-card h3 {
    font-size: 1.25rem;
    margin: 0;
}

.link-card p {
    color: var(--text-light);
    margin: 0;
    font-size: 0.9375rem;
}

/* Use Cases Section */
.use-cases {
    padding: 80px 0;
    background: var(--bg-light);
}

.use-cases h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.use-case {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.use-case h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.375rem;
}

.use-case p {
    color: var(--text-light);
    line-height: 1.7;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 60px 0 30px;
}

.footer .container {
    max-width: 1400px;
    margin: 0 auto;
}

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

.footer-section h4 {
    color: white;
    margin-bottom: 16px;
    font-size: 1.125rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #333;
}

/* Responsive Design */
@media (max-width: 968px) {
    .hero .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .nav-menu {
        gap: 1rem;
    }

    .features-grid,
    .links-grid,
    .use-cases-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .hero {
        padding: 40px 0;
    }

    .hero h1 {
        font-size: 1.875rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .nav-menu {
        flex-direction: column;
        gap: 0.5rem;
    }

    .features h2,
    .quick-links h2,
    .use-cases h2,
    .cta h2 {
        font-size: 1.875rem;
    }
    
    body.landing-page .container,
    .navbar .container,
    .footer .container {
        padding: 0 20px;
    }
}
