:root {
    --bg-color: #050505;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a0;
    --text-tertiary: #666666;
    --accent: #F05138;
    --accent-glow: rgba(240, 81, 56, 0.5);
    --success: #00ff41;
    --warning: #ffcc00;
    --error: #ff3b30;
    --glass-bg: rgba(20, 20, 20, 0.6);
    --glass-border: rgba(255, 255, 255, 0.1);
    --font-mono: 'JetBrains Mono', monospace;
    --font-sans: 'Inter', sans-serif;
    --section-spacing: 8rem;
    --container-width: 1200px;
    --header-height: 80px;
    --promo-gradient: linear-gradient(135deg, #F05138 0%, #ff8a65 100%);
}

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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-color);
    color: var(--text-primary);
    overflow-x: hidden;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

/* Background & Texture */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, #111111 0%, #000000 100%);
    opacity: 0.8;
}

.overlay {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Utilities */
.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 5%;
    width: 100%;
}

.highlight {
    background: linear-gradient(120deg, var(--accent), #ff8a65);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
    padding: 0 1rem;
}

.section-header h2 {
    font-size: clamp(2rem, 5vw, 2.5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.section-header p {
    color: var(--text-secondary);
    font-size: clamp(1rem, 2vw, 1.1rem);
}

/* Buttons */
.btn {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.95rem;
    white-space: nowrap;
}

.btn.primary {
    background: var(--text-primary);
    color: var(--bg-color);
    border: 1px solid transparent;
}

.btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.15);
}

.btn.secondary {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    backdrop-filter: blur(10px);
}

.btn.secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--text-primary);
}

.btn.full-width {
    width: 100%;
}

.btn.pulse-animation {
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
    }

    70% {
        box-shadow: 0 0 0 10px rgba(255, 255, 255, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.arrow {
    margin-left: 0.5rem;
    transition: transform 0.3s;
}

.btn:hover .arrow {
    transform: translateX(4px);
}

/* Button Icons */
.btn-icon {
    width: 20px;
    height: 20px;
    margin-right: 0.5rem;
    object-fit: contain;
}

.btn-icon.invert {
    filter: invert(1);
}

.nav-btn {
    border: 1px solid var(--glass-border);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    color: var(--text-primary) !important;
    display: flex;
    align-items: center;
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    height: var(--header-height);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    background: rgba(5, 5, 5, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: -0.5px;
    z-index: 101;
    /* Above mobile menu */
}

/* Desktop Nav */
.desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.desktop-nav a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s;
}

.desktop-nav a:hover {
    color: var(--text-primary);
}



.nav-btn:hover {
    border-color: var(--text-primary);
}

/* Mobile Menu & Nav */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    z-index: 101;
}

.mobile-menu-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--text-primary);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: var(--bg-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    z-index: 99;
    padding: 2rem;
}

.mobile-nav.active {
    transform: translateY(0);
}

.mobile-nav a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Hero Section */
.hero {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: var(--header-height);
    margin-bottom: 2rem;
}

.hero-content {
    max-width: 800px;
    padding: 0 5%;
    width: 100%;
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 5rem);
    line-height: 1.1;
    font-weight: 900;
    margin-bottom: 1.5rem;
    letter-spacing: -2px;
}

.subheadline {
    font-size: clamp(1rem, 2vw, 1.4rem);
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    font-weight: 300;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

.cta-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.micro-copy {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

/* Problem Section */
.problem-section {
    padding: var(--section-spacing) 0;
    border-bottom: 1px solid var(--glass-border);
}

.problem-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.problem-text {
    min-width: 0;
    width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
    /* Force break if necessary */
    hyphens: auto;
    /* Optional: adds hyphens */
}

.problem-text h2 {
    font-size: clamp(1.8rem, 5vw, 2.5rem);
    /* Reduced min size */
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.1;
    width: 100%;
}

.pain-points {
    list-style: none;
    margin-top: 2rem;
    padding: 0;
    width: 100%;
}

.pain-points li {
    margin-bottom: 1.5rem;
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.pain-points strong {
    color: var(--text-primary);
}

.problem-visual {
    width: 100%;
    min-width: 0;
    /* CRITICAL: Allows grid child to shrink below content size */
}

.code-window {
    background: #1e1e1e;
    border-radius: 12px;
    overflow: hidden;
    font-family: var(--font-mono);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    /* Ensure it shrinks */
}

.window-header {
    background: #2d2d2d;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
    /* Allow title to wrap if absurdly small */
}

.highlight {
    background: linear-gradient(120deg, var(--accent), #ff8a65);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background: #ff5f56;
}

.yellow {
    background: #ffbd2e;
}

.green {
    background: #27c93f;
}

.title {
    margin-left: 0.5rem;
    font-size: 0.8rem;
    color: #999;
}

.code-window pre {
    padding: 1.5rem;
    color: #ccc;
    font-size: 0.9rem;
    overflow-x: auto;
    /* Important for mobile */
    white-space: pre;
}

.comment {
    color: #6a9955;
}

/* Social Proof */
.social-proof {
    padding: 3rem 1rem;
    text-align: center;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(255, 255, 255, 0.02);
    width: 100%;
}

.social-proof p {
    color: var(--text-tertiary);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

.logos {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    opacity: 0.5;
    padding: 0 1rem;
}

.logo-item {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text-secondary);
    filter: grayscale(100%);
}

.partner-logo {
    height: 32px;
    width: auto;
    border-radius: 8px;
    opacity: 0.8;
}

/* Features Section */
.features-section {
    padding: var(--section-spacing) 0;
}

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

.feature-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2rem;
    border-radius: 16px;
    transition: transform 0.3s, border-color 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent);
}

.feature-card .icon {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.mid-cta-container {
    text-align: center;
    margin-top: 2rem;
}

/* Pricing Section */
.pricing-section {
    padding: 2rem 5% var(--section-spacing);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    flex-wrap: wrap;
}

.pricing-card {
    background: linear-gradient(145deg, rgba(25, 25, 25, 0.95), rgba(10, 10, 10, 0.98));
    border: 1px solid var(--glass-border);
    padding: 3rem;
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.6);
    text-align: center;
}

.pricing-card.featured {
    border: 1px solid var(--accent);
}

.badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: rgba(240, 81, 56, 0.2);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.price {
    font-size: clamp(3.5rem, 6vw, 4.5rem);
    font-weight: 900;
    margin: 1.5rem 0 0.5rem;
    font-family: var(--font-mono);
    letter-spacing: -2px;
}

.period {
    font-size: 1.5rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.benefits {
    list-style: none;
    margin: 2.5rem 0;
    text-align: left;
}

.benefits li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    gap: 0.5rem;
}

.benefits li::before {
    content: '✓';
    color: var(--accent);
    font-weight: bold;
    flex-shrink: 0;
}

.guarantee {
    margin-top: 1rem;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

/* FAQ Section */
.faq-section {
    padding: 8rem 0;
    position: relative;
    z-index: 2;
}

/* Demo Section */
.demo-section {
    padding: 4rem 0;
    text-align: center;
}

.video-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.video-wrapper video {
    display: block;
    width: 100%;
    height: auto;
}

.accordion {
    max-width: 800px;
    margin: 0 auto;
}

details {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    margin-bottom: 1rem;
    overflow: hidden;
    transition: all 0.3s;
}

summary {
    padding: 1.5rem;
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 3rem;
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: '+';
    position: absolute;
    right: 1.5rem;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 300;
    font-size: 1.5rem;
    color: var(--text-secondary);
}

details[open] summary::after {
    content: '-';
}

details[open] {
    background: rgba(255, 255, 255, 0.05);
}

details p {
    padding: 0 1.5rem 1.5rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Footer */
footer {
    border-top: 1px solid var(--glass-border);
    background: #000;
    padding: 4rem 5% 6rem;
}

.footer-content {
    max-width: var(--container-width);
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 4rem;
}

.footer-brand strong {
    font-size: 1.5rem;
    display: block;
    margin-bottom: 0.5rem;
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    padding-top: 2rem;
    border-top: 1px solid #222;
}

/* Sticky CTA Mobile */
.sticky-cta-mobile {
    display: none;
    position: fixed;
    bottom: 20px;
    left: 5%;
    width: 90%;
    z-index: 1000;
}

.sticky-cta-mobile .btn {
    width: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Responsive Breakpoints */

/* Tablet & Mobile */
@media (max-width: 900px) {
    :root {
        --section-spacing: 5rem;
    }

    .problem-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
}

/* Mobile Only */
@media (max-width: 768px) {
    .desktop-nav {
        display: none;
    }

    .mobile-menu-btn {
        display: flex;
    }

    .mobile-menu-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 6px);
    }

    .mobile-menu-btn.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -6px);
    }

    .hero {
        padding-top: calc(var(--header-height) + 2rem);
        min-height: auto;
        padding-bottom: 4rem;
    }

    .section-header h2 {
        font-size: 2rem;
    }

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

    .pricing-card {
        padding: 2rem;
    }

    .footer-top {
        flex-direction: column;
        gap: 3rem;
    }

    .footer-links {
        flex-direction: column;
        gap: 1.5rem;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 1.5rem;
        text-align: center;
    }

    .sticky-cta-mobile {
        display: block;
    }

    /* Dashboard specific mobile fixes */
    .dashboard-container {
        padding: 1rem;
        padding-top: 100px;
    }

    .welcome-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.5rem;
    }

    .action-area {
        width: 100%;
    }

    .action-area>div {
        align-items: flex-start;
        width: 100%;
    }

    .full-width-mobile {
        width: 100%;
        text-align: center;
    }

    #api-key-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .card {
        padding: 1.5rem;
    }

    .card>div {
        /* Flex containers inside cards */
        flex-direction: column;
        align-items: flex-start !important;
        text-align: left;
    }

    #user-avatar {
        margin-bottom: 1rem;
    }
}
/* Promotion & Giveaway Styles */
.promo-section {
    padding: 6rem 0;
    background: radial-gradient(circle at top right, rgba(240, 81, 56, 0.1), transparent 40%);
    border-bottom: 1px solid var(--glass-border);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.promo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 2rem;
}

.promo-badge {
    background: var(--promo-gradient);
    color: white;
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 4px 15px rgba(240, 81, 56, 0.3);
}

.promo-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    max-width: 900px;
    line-height: 1.1;
}

.promo-stats {
    display: flex;
    gap: 3rem;
    margin: 2rem 0;
    flex-wrap: wrap;
    justify-content: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-value {
    font-size: 3rem;
    font-weight: 800;
    font-family: var(--font-mono);
    color: var(--text-primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.promo-cta-box {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 2.5rem;
    border-radius: 24px;
    max-width: 600px;
    width: 100%;
    backdrop-filter: blur(20px);
}

/* Dashboard Specific Giveaway Styles */
.giveaway-card {
    background: linear-gradient(135deg, rgba(240, 81, 56, 0.05) 0%, rgba(20, 20, 20, 0.8) 100%) !important;
    border: 1px solid rgba(240, 81, 56, 0.2) !important;
}

.token-progress-container {
    margin-top: 1.5rem;
}

.token-progress-bar {
    height: 10px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.token-progress-fill {
    height: 100%;
    background: var(--promo-gradient);
    box-shadow: 0 0 15px rgba(240, 81, 56, 0.4);
    transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.token-count-fancy {
    font-family: var(--font-mono);
    color: var(--accent);
    font-weight: 700;
}

/* Comparison Section */
.comparison-section {
    padding: var(--section-spacing) 0;
    background: linear-gradient(180deg, var(--bg-color) 0%, rgba(30, 30, 30, 0.4) 100%);
    border-bottom: 1px solid var(--glass-border);
}

.badge-pill {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.comparison-query-box {
    background: #111;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 3rem auto 4rem;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}

.query-label {
    font-size: 0.8rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.query-text {
    font-family: var(--font-mono);
    color: var(--text-primary);
    font-size: 1.1rem;
    text-align: center;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: stretch;
}

.comparison-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.comparison-card:hover {
    transform: translateY(-5px);
}

.comparison-card.loser {
    opacity: 0.8;
}

.comparison-card.winner {
    border-color: var(--accent);
    box-shadow: 0 0 40px rgba(240, 81, 56, 0.15);
}

.card-header {
    background: rgba(0,0,0,0.2);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid var(--glass-border);
}

.card-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.status-indicator.red { background: var(--error); box-shadow: 0 0 10px var(--error); }
.status-indicator.green { background: var(--success); box-shadow: 0 0 10px var(--success); }

.image-wrapper {
    flex: 1;
    background: #000;
    overflow: hidden;
    display: flex; /* Centers image if aspect ratio differs */
    align-items: start;
    justify-content: center;
}

.image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* or contain depending on image consistency */
}

.card-footer {
    padding: 1rem 1.5rem;
    background: rgba(0,0,0,0.2);
    border-top: 1px solid var(--glass-border);
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.result-tag {
    font-size: 0.8rem;
    color: var(--text-secondary);
    background: rgba(255,255,255,0.05);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}

.result-tag.success {
    color: var(--success);
    background: rgba(0, 255, 65, 0.1);
}

@media (max-width: 768px) {
    .comparison-grid {
        grid-template-columns: 1fr;
    }
}
