:root {
    --bg-color: #0f1419;
    --card-bg: #1c252f;
    --accent: #00bfa6;
    --text-light: #e8ecf1;
    --text-muted: #9aa5b1;
}

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

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

/* Landing page - no container box */
.landing-page {
    max-width: 1200px;
    margin: 0 auto;
}

/* Product detail pages - keep the box */
.container {
    max-width: 1100px;
    margin: 60px auto;
    padding: 40px;
    background: var(--card-bg);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Header Styles for Landing Page */
header {
    text-align: center;
    padding: 60px 20px 40px;
}

.brand {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 5px;
    letter-spacing: -1px;
    color: var(--accent);
}

.brand-secondary {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.tagline {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 300;
}

/* Publisher label on product pages */
.publisher {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* Product page title */
.container > h1 {
    font-size: 2.5rem;
    color: var(--accent);
    margin-bottom: 30px;
    line-height: 1.2;
}

/* Back Navigation */
.back-nav {
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

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

.back-nav a:hover {
    text-decoration: underline;
}

/* Product Grid on Landing Page */
.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 20px 0;
    max-width: 1100px;
    margin: 0 auto;
}

.product-card {
    background: var(--card-bg);
    border: 1px solid rgba(0, 191, 166, 0.2);
    border-radius: 12px;
    padding: 30px;
    text-decoration: none;
    color: var(--text-light);
    transition: all 0.3s ease;
    display: block;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 191, 166, 0.2);
    border-color: var(--accent);
    background: rgba(0, 191, 166, 0.08);
}

.product-card h2 {
    color: var(--accent);
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.product-card .description {
    color: var(--text-muted);
    margin-bottom: 20px;
    line-height: 1.8;
}

.product-card .cta {
    color: var(--accent);
    font-weight: 600;
    display: inline-block;
}

/* Video Grid */
.video-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-bottom: 40px;
}

.video-container {
    flex: 1 1 48%;
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
    background: #000;
    border-radius: 8px;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Documentation Navigation */
.documentation-nav {
    background: var(--card-bg);
    border: 1px solid rgba(0, 191, 166, 0.2);
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0 40px 0;
}

.documentation-nav h3 {
    color: var(--accent);
    font-size: 1.3rem;
    margin: 0 0 20px 0;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.nav-grid a {
    background: rgba(0, 191, 166, 0.05);
    color: var(--text-light);
    text-decoration: none;
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid rgba(0, 191, 166, 0.2);
    transition: all 0.3s ease;
    text-align: center;
    font-weight: 500;
}

.nav-grid a:hover {
    background: rgba(0, 191, 166, 0.15);
    border-color: var(--accent);
    transform: translateY(-2px);
    color: var(--accent);
}

/* Description Section */
.description {
    font-size: 1.1rem;
    color: var(--text-light);
    line-height: 1.8;
}

.description h2 {
    font-size: 1.5rem;
    color: var(--accent);
    margin: 35px 0 15px 0;
}

.description h3 {
    font-size: 1.3rem;
    color: var(--accent);
    margin: 25px 0 12px 0;
}

.description p {
    margin-bottom: 15px;
    color: var(--text-muted);
}

.description pre {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 191, 166, 0.2);
    border-radius: 8px;
    padding: 15px;
    overflow-x: auto;
    margin: 15px 0;
}

.description code {
    color: var(--accent);
    font-family: 'Courier New', monospace;
    font-size: 0.95em;
}

.features {
    margin-top: 15px;
    padding-left: 20px;
}

.features li {
    margin-bottom: 10px;
    color: var(--text-light);
}

.features li strong {
    color: var(--accent);
}

/* Contact Info */
.contact-info {
    margin-bottom: 15px;
}

.contact-info a {
    color: var(--accent);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-info a:hover {
    text-decoration: underline;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px 20px;
    color: var(--text-muted);
    font-size: 0.9rem;
    max-width: 1100px;
    margin: 0 auto;
}

.container footer {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 40px;
    padding-top: 30px;
}

footer a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

footer p {
    margin: 5px 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        padding: 25px 20px;
        margin: 20px auto;
    }

    .brand {
        font-size: 2rem;
    }

    .products {
        grid-template-columns: 1fr;
        padding: 10px 0;
    }

    .video-grid {
        flex-direction: column;
    }

    .video-container {
        flex: 1 1 100%;
        padding-bottom: 56.25%;
    }

    .container > h1 {
        font-size: 2rem;
    }
}
