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

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: #ffffff;
    background-color: #000000;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* Scrollbar Dark Mode */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
    background: #2a2a2a;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #3a3a3a;
}

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #2a2a2a #0a0a0a;
}

html {
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header and Navigation */
header {
    background-color: transparent;
    color: white;
    padding: 20px 0;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-img {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(100%);
}

.logo span {
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.login-link {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    padding: 8px 16px;
    transition: opacity 0.2s ease;
}

.login-link:hover {
    opacity: 0.8;
}

.btn-primary {
    background-color: #ffffff;
    color: #000000;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
    display: inline-block;
}

.btn-primary:hover {
    background-color: #f0f0f0;
    transform: translateY(-1px);
}

.btn-secondary {
    background-color: transparent;
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: border-color 0.2s ease, background-color 0.2s ease;
    display: inline-block;
}

.btn-secondary:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background-color: rgba(255, 255, 255, 0.05);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    padding: 200px 24px 80px;
    position: relative;
    background: transparent;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

.hero-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 16px;
    letter-spacing: 0.02em;
}

.hero-title {
    font-size: 56px;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.hero-description {
    font-size: 16px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    align-items: center;
}

/* Stop Paying Section */
.stop-paying-section {
    padding: 120px 0;
    background-color: #000000;
}

.stop-paying-section .container {
    padding: 0 24px;
    margin-bottom: 64px;
}

.section-title {
    font-size: 40px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
    color: #ffffff;
}

.section-description {
    font-size: 16px;
    line-height: 1.6;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    max-width: 700px;
    margin: 0 auto;
}

.scroll-container {
    width: 100%;
    overflow: hidden;
    margin-bottom: 16px;
    position: relative;
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    width: 100vw;
}

.scroll-track {
    display: flex;
    gap: 16px;
    animation: scroll-left 40s linear infinite;
    width: fit-content;
    will-change: transform;
}

.scroll-reverse .scroll-track {
    animation: scroll-right 40s linear infinite;
}

@keyframes scroll-left {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes scroll-right {
    from {
        transform: translateX(-50%);
    }
    to {
        transform: translateX(0);
    }
}

.prompt-card {
    background-color: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 12px;
    padding: 24px 32px;
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: space-between;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 280px;
    transition: background-color 0.2s ease;
}

.prompt-card:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.prompt-card .arrow {
    color: rgba(255, 255, 255, 0.4);
    margin-left: 16px;
    flex-shrink: 0;
    font-size: 18px;
}

/* Repeating Prompts Section */
.repeating-prompts-section {
    padding: 120px 24px;
    background-color: #000000;
    text-align: center;
}

.repeating-prompts-section .section-description {
    margin-bottom: 32px;
}

.repeating-prompts-section .btn-primary {
    margin-bottom: 64px;
}

.dashboard-preview {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Get Started Section */
.get-started-section {
    padding: 120px 24px;
    background-color: #000000;
    text-align: center;
}

.get-started-section .section-description {
    margin-bottom: 48px;
}

.code-tabs {
    max-width: 900px;
    margin: 0 auto;
}

.tab-buttons {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    justify-content: center;
}

#openai-icon {
    filter: brightness(0) invert(100%);
}

.tab-btn {
    background-color: transparent;
    color: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Poppins', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.tab-btn:hover {
    background-color: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.8);
    border-color: rgba(255, 255, 255, 0.2);
}

.tab-btn.active {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
}

.tab-content {
    display: none;
}

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

.code-block {
    max-width: 900px;
    margin: 0 auto;
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    overflow: hidden;
    text-align: left;
}

.code-header {
    padding: 16px 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(255, 255, 255, 0.02);
}

.code-lang {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.code-content {
    padding: 24px;
    overflow-x: auto;
}

.code-content code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 14px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
}

.keyword {
    color: #ff6b9d;
}

.module {
    color: #67d9f6;
}

.variable {
    color: #ffffff;
}

.function {
    color: #a8c7fa;
}

.param {
    color: #ffa657;
}

.string {
    color: #91d988;
}

.diff-add {
    color: #4ade80;
    font-weight: 600;
    animation: fadeInOut 5s ease-in-out infinite;
}

@keyframes fadeInOut {
    0%, 100% {
        opacity: 0.05;
    }
    50% {
        opacity: 1;
    }
}

/* Pricing Section */
.pricing-section {
    padding: 120px 24px;
    background-color: #000000;
}

#free-price {
    background: -webkit-linear-gradient(#eee, #3c3c3c);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.pricing-section .section-description {
    margin-bottom: 64px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 32px;
    max-width: 1400px;
    margin: 0 auto;
}

.pricing-card {
    background-color: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 40px 32px;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.05);
}

.pricing-featured {
    border-color: rgba(255, 255, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.06);
}

.pricing-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    background-color: #ffffff;
    color: #000000;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}

.pricing-header {
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-tier {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 16px;
    color: #ffffff;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.price-amount {
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Manrope', sans-serif;
}

.price-period {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.6);
}

.pricing-features {
    list-style: none;
    margin-bottom: 32px;
    flex-grow: 1;
}

.pricing-features li {
    padding: 12px 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 15px;
    position: relative;
    padding-left: 24px;
}

.pricing-features li:before {
    content: "•";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: #f9ff20;
    font-weight: 600;
    font-size: 20px;
    line-height: 1;
}

.pricing-btn {
    width: 100%;
    text-align: center;
    display: block;
}

/* Final CTA Section */
.final-cta-section {
    padding: 240px 24px;
    background: #000000;
    text-align: center;
    position: relative;
}

.final-cta-section .container {
    position: relative;
    z-index: 10;
}

.final-cta-section .section-title {
    margin-bottom: 32px;
}

/* Footer */
footer {
    background-color: #000000;
    padding: 80px 24px 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
    margin-bottom: 60px;
}

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #ffffff;
}

.footer-column a,
.footer-column p {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 12px;
    transition: color 0.2s ease;
}

.footer-column a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.footer-contact,
.footer-email {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}

.footer-social {
    display: flex;
    gap: 16px;
    padding-bottom: 40px;
}

.footer-social-right {
    display: flex;
    gap: 16px;
    position: absolute;
    right: 0;
    bottom: 100px;
}

.social-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.6);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.social-icon:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.footer-bottom {
    text-align: center;
    padding-top: 40px;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    /* Hide login link on mobile */
    .login-link {
        display: none;
    }

    /* Adjust hero section for mobile */
    .hero {
        min-height: 100vh;
        padding: 120px 24px 80px;
        align-items: flex-start;
    }

    .hero-title {
        font-size: 40px;
    }

    .section-title {
        font-size: 32px;
    }

    /* Fix vendor tabs overflow */
    .tab-buttons {
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
    }

    .tab-btn {
        padding: 8px 16px;
        font-size: 13px;
        flex: 1 1 auto;
        min-width: fit-content;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-features {
        min-height: auto;
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .footer-social-right {
        position: static;
        padding-top: 20px;
    }

    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }

    .hero-buttons .btn-primary,
    .hero-buttons .btn-secondary {
        width: 100%;
    }

    .prompt-card {
        min-width: 220px;
        padding: 20px 24px;
        font-size: 14px;
    }

    /* Hide over-time graphs on dashboard mobile view */
    .chart-container-full {
        display: none;
    }

    /* Center text in dashboard metric cards on mobile */
    .metric-card {
        text-align: center;
    }
}

@media (max-width: 480px) {
    /* Hide login link on mobile */
    .login-link {
        display: none;
    }

    /* Adjust hero section for smaller mobile */
    .hero {
        min-height: 100vh;
        padding: 100px 24px 60px;
    }

    .hero-title {
        font-size: 32px;
    }

    .section-title {
        font-size: 28px;
    }

    nav {
        flex-direction: row;
        gap: 16px;
    }

    /* Ensure vendor tabs fit on very small screens */
    .tab-buttons {
        flex-direction: column;
        width: 100%;
    }

    .tab-btn {
        width: 100%;
        justify-content: center;
    }

    .prompt-card {
        min-width: 200px;
        padding: 18px 20px;
        font-size: 13px;
    }

    /* Hide over-time graphs on dashboard mobile view */
    .chart-container-full {
        display: none;
    }

    /* Center text in dashboard metric cards on mobile */
    .metric-card {
        text-align: center;
    }
}
