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

body {
    font-family: "Ubuntu", "Arial", sans-serif;
    background-color: #ffffff;
    color: #333;
    line-height: 1.6;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 99999;
    padding: 20px 30px 0;
}

.header-block {
    width: 100%;
    max-width: 1200px;
}

.header-box {
    background-color: #ffffff;
    padding: 16px 24px;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

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

.logo a {
    display: flex;
    align-items: center;
    text-decoration: none;
    gap: 8px;
}

.logo h1 {
    font-size: 24px;
    color: #ff5a50;
    margin: 0;
    margin-bottom: 2px;
}

.txt-primary {
    color: #ff5a50;
}

.logo-icon {
    width: 30px;
    height: 22px;
}

.menu-desktop {
    display: none;
}

.menu-desktop__item {
    color: #333;
    text-decoration: none;
    padding: 12px 16px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.menu-desktop__item:hover {
    background-color: #f8f9fa;
}

.header-buttons {
    display: none;
}

@media (min-width: 768px) {
    .menu-desktop {
        display: flex;
        width: 60%;
    }

    .header-buttons {
        display: flex;
        gap: 12px;
    }
}

.login, .join {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-wrap: nowrap;
}

.login {
    background-color: #ff5a50;
    color: white;
}

.login:hover {
    background-color: #e54a40;
    transform: translateY(-1px);
}

.join {
    background-color: #404040;
    color: white;
}

.join:hover {
    background-color: #000000;
    transform: translateY(-1px);
}

.menu-button {
    display: flex;
    cursor: pointer;
    align-items: center;
}

@media (min-width: 768px) {
    .menu-button {
        display: none;
    }
}

/* Mobile Menu */
.c-menu {
    display: none;
    background-color: #ffffff;
    margin-top: 12px;
    border-radius: 16px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.c-menu__container {
    list-style: none;
}

.c-menu__item {
    padding: 16px 20px;
    cursor: pointer;
}

.c-menu__item:hover {
    background-color: #f8f9fa;
}

.c-menu__item a {
    color: #333;
    text-decoration: none;
}

.c-menu__item .o-link {
    display: block;
    padding: 10px 15px; /* Adjust padding as needed */
    text-decoration: none;
    color: inherit;
}

/* Common Section Styles */
.section {
    padding: 40px;
    display: flex;
    justify-content: center;
}

.section:first-of-type {
    margin-top: 100px;
}

.section + .section {
    border-top: 1px solid #e5e7eb;
}

.section-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 60px;
}

@media (min-width: 768px) {
    .section-content {
        flex-direction: row;
        gap: 80px;
    }

    .flex-reverse {
        flex-direction: row-reverse;
    }

    .section-content {
        align-items: self-start;
    }
}

.section-text {
    flex: 1;
}

.section-visual {
    flex: 1;
}

/* Typography */
h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    color: #333;
}

.color-primary {
    color: #ff5a50;
}

.text-decoration-none {
    text-decoration: none;
}

p {
    font-size: 18px;
    margin-bottom: 24px;
    color: #666;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #404040, #404040);
    color: white;
    box-shadow: 0 4px 20px rgba(99, 102, 241, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35);
    background: linear-gradient(135deg, #000000, #000000);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 0;
    margin-top: 75px;
}

@media (min-width: 768px) {
    .hero {
        text-align: center;
        padding: 0;
        margin-top: 95px;
    }
}

.subtitle {
    font-size: 24px;
    color: #ff5a50;
    margin-bottom: 16px;
    font-weight: 600;
}

.description {
    font-size: 20px;
    color: #666;
    margin-bottom: 25px;
}

/* Stats Grid */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
    margin-top: 10px;
}

.stat {
    padding: 24px;
    background: rgba(255, 90, 80, 0.05);
    border-radius: 16px;
    border: 2px solid #ff5a50;
    text-align: center;
}

.stat-number {
    font-size: 24px;
    font-weight: 700;
    color: #ff5a50;
}

.stat-label {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
}

.highlight-box {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid #6366f1;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    color: #6366f1;
    text-align: center;
    font-weight: 600;
}

/* Feature Visual */
.feature-visual {
    background: #f8f9fa;
    border-radius: 16px;
    padding: 32px;
    border: 2px solid #e5e7eb;
}

@media (max-width: 768px) {
    .feature-visual {
        background: none;
        border-radius: 0;
        padding: 0;
        border: none;
    }
}

.search-preview {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e5e7eb;
}

.search-query {
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid #6366f1;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
    font-family: monospace;
    color: #6366f1;
}

.search-result {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
    border-left: 4px solid #ff5a50;
}

/* Code Tabs */
.code-tabs {
    background: #f8f9fa;
    border-radius: 16px;
    border: 2px solid #e5e7eb;
    overflow: hidden;
}

/* Tab Header - New container for tab buttons and copy button */
.tab-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
    padding-right: 16px;
}

.tab-buttons {
    display: flex;
    flex: 1;
}

.tab-button {
    padding: 16px 20px;
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.tab-button.active {
    color: #6366f1;
    background: rgba(99, 102, 241, 0.1);
}

.tab-content {
    padding: 24px;
    font-family: 'Monaco', monospace;
    font-size: 14px;
    line-height: 1.6;
    color: #333;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Updated Copy Button Styles - positioned in tab header */
.copy-button {
    background: #404040;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.copy-button:hover {
    background: #000000;
    transform: translateY(-1px);
}

.copy-button.copied {
    background: #10b981;
}

.copy-icon {
    width: 16px;
    height: 16px;
}

/* Footer */
.section-footer {
    padding: 40px 32px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: center;
    background: rgba(255, 90, 80, 0.05);
}

.section-footer-content {
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

.c-footer {
    margin-bottom: 16px;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.c-footer__item {
    color: #666;
    text-decoration: none;
    font-size: 14px;
}

.o-link {
    color: #ff5a50;
    text-decoration: none;
    font-weight: 500;
}

.o-link:hover {
    color: #e54a40;
}

.legal {
    font-size: 12px;
    color: #999;
}

.frame-border {
    border-radius: 16px;
    width: 100%;
    max-width: 300px;
}

/* Use Cases Section */
.section-content-single {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.use-cases {
    text-align: center;
    width: 100%;
}

.use-cases h1 {
    margin-bottom: 30px;
    margin-top: -10px;
}

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

@media (min-width: 768px) {
    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.use-case {
    background: rgba(255, 90, 80, 0.05);
    border: 2px solid rgba(255, 90, 80, 0.2);
    border-radius: 16px;
    padding: 32px 24px;
    text-align: left;
    transition: all 0.3s ease;
}

.use-case:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(255, 90, 80, 0.15);
    border-color: #ff5a50;
}

.use-case-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.use-case-icon img {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.use-case h2 {
    color: #ff5a50;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    border-bottom: 2px solid rgba(255, 90, 80, 0.3);
    padding-bottom: 8px;
    text-align: center;
}

.use-case p {
    color: #555;
    font-size: 16px;
    line-height: 1.6;
    margin: 0;
}

.use-case strong {
    color: #333;
    font-weight: 600;
}


/* Make the Try Playground buttons bigger */
.btn.btn-primary {
    padding: 16px 32px; /* Increased from default padding */
    font-size: 18px; /* Increased font size */
    font-weight: 600; /* Make text bolder */
    min-width: 180px; /* Ensure consistent minimum width */
}

/* Mobile responsiveness - center align buttons */
@media (max-width: 768px) {
    .btn.btn-primary {
        display: block;
        margin: 0 auto; /* Center the button */
        text-align: center;
        width: fit-content; /* Button only as wide as needed */
        max-width: 280px; /* Prevent button from being too wide */
    }

    /* If the button is inside a section-text div, center that too */
    .section-text {
        text-align: center;
    }

    /* Reset text alignment for paragraphs to keep them left-aligned */
    .section-text p {
        text-align: left;
    }

    /* But keep button container centered */
    .section-text .btn {
        margin: 20px auto 0 auto;
    }
}

/* For very small screens */
@media (max-width: 480px) {
    .btn.btn-primary {
        padding: 14px 24px; /* Slightly smaller padding on very small screens */
        font-size: 16px; /* Adjust font size for small screens */
        width: 90%; /* Take up most of the screen width */
        max-width: none; /* Remove max-width restriction */
    }

    /* Keep tab header as flex row on mobile, but adjust spacing */
    .tab-header {
        padding: 8px 12px;
        gap: 8px;
    }

    .tab-buttons {
        flex-wrap: wrap;
        gap: 2px;
        flex: 1;
    }

    .tab-button {
        padding: 10px 12px;
        font-size: 13px;
        flex: 1;
        min-width: 40px;
        text-align: center;
    }

    .copy-button {
        padding: 10px;
        flex-shrink: 0;
        align-self: flex-start;
    }

    .copy-icon {
        width: 14px;
        height: 14px;
    }
}

/* Integrations Section */
.integrations {
    text-align: center;
    width: 100%;
}

.integrations h1 {
    margin-bottom: 60px;
}

.integrations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
    margin-top: 35px;
}

@media (min-width: 768px) {
    .integrations-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 15px;
    }
}

@media (min-width: 1024px) {
    .integrations-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

.integration-item {
    background: rgba(255, 90, 80, 0.03);
    border: 1px solid rgba(255, 90, 80, 0.15);
    border-radius: 16px;
    padding: 15px 10px;
    text-align: center;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    display: block;
}

.integration-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 32px rgba(255, 90, 80, 0.12);
    border-color: rgba(255, 90, 80, 0.3);
    background: rgba(255, 90, 80, 0.05);
}

.integration-item:hover .integration-icon svg {
    transform: scale(1.1);
}

.integration-icon {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.integration-icon svg {
    transition: transform 0.3s ease;
    border-radius: 8px;
}

.integration-item h2 {
    color: #ff5a50;
    font-size: 14px;
    font-weight: 700;
}

.integration-item p {
    color: #666;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Mobile adjustments for integrations */
@media (max-width: 767px) {
    .integrations-grid {
        grid-template-columns: repeat(2, 1fr); /* Changed to exactly 2 columns */
        gap: 16px; /* Reduced gap for better spacing */
    }

    .integration-item {
        padding: 18px 12px; /* Slightly reduced padding */
    }

    .integration-item h2 {
        font-size: 15px; /* Slightly smaller font */
        margin-bottom: 0; /* Remove bottom margin to save space */
    }

    .integration-item p {
        font-size: 13px;
    }

    .integration-icon {
        margin-bottom: 12px; /* Reduced margin */
    }

    .integration-icon img {
        width: 40px;
        height: 40px;
    }
}
