:root {
    --primary-color: #007aff; /* Apple Blue */
    --primary-hover-color: #005ecb;
    --secondary-color: #1d1d1f; /* Dark Gray / Almost Black */
    --text-color: #1d1d1f;
    --light-text-color: #f5f5f7;
    --background-color: #ffffff;
    --light-gray-bg: #f5f5f7;
    --border-color: #d2d2d7;
    --card-shadow: 0 4px 12px rgba(0,0,0,0.08);
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body {
    font-family: var(--font-family);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
    scroll-behavior: smooth;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header & Nav */
header {
    background-color: rgba(255,255,255,0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    padding-bottom: 15px;
}

nav .logo {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
}
nav .logo-icon {
    height: 30px;
    margin-right: 8px;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
}

nav ul li {
    margin-left: 25px;
}

nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

.cta-button {
    background-color: var(--primary-color);
    color: white !important;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

.cta-button:hover {
    background-color: var(--primary-hover-color);
}

.mobile-nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}


/* Hero Section */
#hero {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 80px 20px 60px; /* More top padding */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
}

.hero-banner-image {
    max-width: 700px; /* Adjust as needed */
    width: 100%;
    height: auto;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}


#hero h1 {
    font-size: 3.5em;
    margin-bottom: 10px;
    font-weight: 700;
    color: var(--light-text-color);
}

#hero .subtitle {
    font-size: 1.4em;
    margin-bottom: 20px;
    max-width: 700px;
    opacity: 0.9;
}

#hero .supported-llms {
    font-size: 0.9em;
    color: #aaa;
    margin-bottom: 30px;
}

#hero .hero-cta {
    font-size: 1.1em;
    padding: 15px 30px;
}

/* Content Sections */
.content-section {
    padding: 60px 20px;
}

.content-section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 15px;
    font-weight: 600;
}
.content-section h3 {
    font-size: 1.8em;
    margin-top: 40px;
    margin-bottom: 15px;
    font-weight: 600;
}
.content-section > p { /* Direct paragraph children of content section */
    text-align: center;
    font-size: 1.1em;
    margin-bottom: 40px;
    color: #555;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}


.alt-bg {
    background-color: var(--light-gray-bg);
}

/* Benefits Grid */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.benefit-item {
    background-color: var(--background-color);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
}

.benefit-item h4 {
    font-size: 1.3em;
    color: var(--primary-color);
    margin-top: 0;
    margin-bottom: 10px;
}

/* Tools Grid */
.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 30px;
}

.tool-card {
    background-color: var(--background-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid var(--border-color);
    position: relative; /* For badges */
}

.tool-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.tool-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9; /* Adjust if images are different */
    object-fit: cover; /* Or 'contain' if aspect ratio varies too much */
    display: block;
}

.tool-card h3 {
    font-size: 1.4em;
    margin: 15px 20px 10px;
    color: var(--text-color);
}

.tool-card p {
    font-size: 0.95em;
    margin: 0 20px 20px;
    color: #444;
    text-align: left; /* Override centered p from content-section */
}

.tool-card-badge {
    position: absolute;
    top: 10px;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    font-weight: bold;
    color: white;
    text-transform: uppercase;
}
.tool-card-badge.new {
    background-color: #ff3b30; /* Apple Red */
    right: 10px;
}
.tool-card-badge.ui-toolkit {
    background-color: var(--primary-color); /* Apple Blue */
    left: 10px;
}


/* Trellis Setup */
.setup-steps {
    list-style-type: decimal;
    padding-left: 20px;
    max-width: 700px;
    margin: 20px auto 30px;
    text-align: left;
}
.setup-steps li {
    margin-bottom: 10px;
}
.small-note {
    font-size: 0.9em;
    color: #666;
    text-align: center;
    margin-top: 15px;
}
#trellis-setup .cta-button {
    display: block;
    width: fit-content;
    margin: 30px auto 0;
}


/* LLM Support */
.llm-categories {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}
.llm-category {
    background: var(--background-color);
    padding: 25px;
    border-radius: 12px;
    box-shadow: var(--card-shadow);
    border: 1px solid var(--border-color);
    flex: 1;
    min-width: 300px;
    max-width: 400px;
}
.llm-category h3 {
    text-align: center;
    margin-top: 0;
    color: var(--primary-color);
}
.llm-category ul {
    list-style-position: inside;
    padding-left: 0;
}
.llm-category li {
    margin-bottom: 5px;
}

/* FAQ Section */
.faq-item {
    margin-bottom: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--background-color);
}

.faq-question {
    background-color: transparent;
    color: var(--text-color);
    cursor: pointer;
    padding: 18px 25px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    font-size: 1.1em;
    font-weight: 500;
    transition: background-color 0.3s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question::after {
    content: '+';
    font-size: 1.3em;
    font-weight: bold;
    color: var(--primary-color);
    transition: transform 0.3s ease;
}

.faq-question.active::after {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0 25px;
    background-color: white;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    border-top: 1px solid transparent;
}
.faq-answer p {
    margin: 15px 0;
    text-align: left;
}
.faq-question.active + .faq-answer {
    max-height: 300px; /* Adjust as needed */
    padding: 15px 25px;
    border-top-color: var(--border-color);
}


/* Support Section */
.support-channels {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.support-button {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease;
    min-width: 200px;
    text-align: center;
}
.support-button:hover {
    background-color: var(--primary-hover-color);
}
.support-button.discord {
    background-color: #5865F2; /* Discord Blue */
}
.support-button.discord:hover {
    background-color: #4752c4;
}

/* Footer */
footer {
    background-color: var(--secondary-color);
    color: var(--light-text-color);
    text-align: center;
    padding: 30px 20px;
    margin-top: 60px;
}
footer p {
    margin: 5px 0;
    opacity: 0.8;
}
footer a {
    color: var(--primary-color);
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

/* Modal Styles */
.modal {
    display: none; 
    position: fixed; 
    z-index: 1001; 
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; 
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto; 
    padding: 30px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    position: relative;
}

.close-button {
    color: #aaa;
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

#modalTitle {
    margin-top: 0;
    font-size: 1.8em;
}
#modalKeyFeatures ul {
    padding-left: 20px;
}
#modalKeyFeatures li {
    margin-bottom: 8px;
}

/* Responsive Design */
@media (max-width: 768px) {
    nav ul {
        display: none; /* Hide desktop nav */
        flex-direction: column;
        position: absolute;
        top: 60px; /* Adjust based on nav height */
        left: 0;
        width: 100%;
        background-color: rgba(255,255,255,0.95);
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    nav ul.active {
        display: flex; /* Show mobile nav */
    }
    nav ul li {
        margin: 0;
        width: 100%;
    }
    nav ul li a {
        display: block;
        padding: 15px 20px;
        border-bottom: 1px solid var(--border-color);
    }
    nav ul li:last-child a {
        border-bottom: none;
    }
    .mobile-nav-toggle {
        display: block;
    }
    .nav-cta {
        display: none; /* Hide CTA button in nav on mobile, or move it into menu */
    }

    #hero h1 {
        font-size: 2.5em;
    }
    #hero .subtitle {
        font-size: 1.1em;
    }
    .content-section h2 {
        font-size: 2em;
    }
    .benefits-grid, .tools-grid {
        grid-template-columns: 1fr; /* Stack items on smaller screens */
    }
    .llm-categories {
        flex-direction: column;
        align-items: center;
    }
    .modal-content {
        width: 90%;
        margin: 15% auto;
    }
}