/* =========================
   Landing Page Styles
   ========================= */

.main-content {
    max-width: 900px;
    /* Constrain width for readability on landing */
    margin: 0 auto;
    padding-bottom: 120px;
}

/* Hero */
.hero-section {
    padding: 80px 0 64px 0;
}

.hero-title {
    font-size: 56px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -1.5px;
    margin-bottom: 24px;
    color: var(--fg);
}

.text-gradient {
    color: var(--fg-muted);
    /* Fallback or minimalist style */
}

.hero-desc {
    font-size: 20px;
    line-height: 1.6;
    color: var(--fg-muted);
    max-width: 680px;
}

/* Logos (Infinite Marquee) */
.marquee-container {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 64px 0;
    margin-bottom: 96px;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.marquee-content {
    display: inline-flex;
    animation: scroll 40s linear infinite;
    gap: 80px;
    align-items: center;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    opacity: 0.6;
    transition: opacity 0.3s;
    filter: grayscale(100%);
}

.marquee-item:hover {
    opacity: 1;
    filter: grayscale(0%);
}

.marquee-item img,
.marquee-item svg {
    height: 24px;
    width: 24px;
    color: var(--fg);
}

.marquee-item span {
    font-weight: 500;
    font-size: 18px;
    letter-spacing: -0.3px;
    color: var(--fg);
}

@keyframes scroll {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* Sections */
.content-block {
    margin-bottom: 120px;
}

/* Modern Button System */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s ease;
    /* width: 100%;  <-- REMOVED: Breaks header buttons. Use .w-full for card buttons instead. */
}

/* Secondary Button (Outline/Subtle) */
.btn-secondary {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--fg);
}

.btn-secondary:not([disabled]):hover {
    border-color: var(--fg);
    background: var(--surface-1);
    transform: translateY(-1px);
}

/* Modern Primary Button (Gradient) */
.btn-modern {
    background: linear-gradient(135deg, #111 0%, #333 100%);
    color: #fff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.btn-modern:not([disabled]):hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.btn-modern::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.btn-modern:hover::after {
    transform: translateX(100%);
}

/* Start Disabled State */
.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--surface-2);
    border-color: transparent;
    color: var(--fg-muted);
}

/* End Disabled State */
.content-block.bg-surface {
    background: var(--surface-1);
    padding: 80px 64px;
    border-radius: var(--radius-xl);
    margin: 0 -64px 120px -64px;
    /* breakout */
}

.section-label {
    font-size: 13px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 1px;
    color: var(--fg-muted);
    margin-bottom: 48px;
    display: block;
}

/* Grid */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    /* Reduced from 32px */
}

/* Modern Minimalist Cards */
.card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    /* Reduced from 32px */
    transition: all 0.2s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: var(--fg-muted);
}

.card-icon {
    width: 40px;
    /* Reduced from 48px */
    height: 40px;
    /* Reduced from 48px */
    background: var(--surface-1);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    /* Reduced from 24px */
    color: var(--fg);
}

.card-icon svg {
    width: 20px;
    /* Scaled down slightly */
    height: 20px;
    stroke-width: 2px;
}

.card h3 {
    font-size: 17px;
    /* Slight reduction for balance */
    font-weight: 600;
    margin-bottom: 8px;
    /* Reduced from 12px */
    letter-spacing: -0.3px;
}

.card p {
    font-size: 14px;
    /* Slight reduction for balance */
    line-height: 1.6;
    color: var(--fg-muted);
}

/* Comparison Table */
.table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 15px;
}

.comparison-table th,
.comparison-table td {
    text-align: left;
    padding: 24px;
    border-bottom: 1px solid var(--border);
}

.comparison-table th {
    font-weight: 600;
    color: var(--fg-muted);
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-table .highlight {
    font-weight: 600;
    color: var(--fg);
    background: var(--surface-1);
}

/* FAQ */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    border-bottom: 1px solid var(--border);
    padding-bottom: 16px;
}

.faq-item summary {
    font-weight: 500;
    cursor: pointer;
    font-size: 18px;
    list-style: none;
    /* Hide default triangle */
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-body {
    margin-top: 12px;
    color: var(--fg-muted);
    line-height: 1.6;
    font-size: 15px;
}

/* Footer */
.app-footer {
    display: flex;
    justify-content: space-between;
    padding-top: 64px;
    border-top: 1px solid var(--border);
    margin-top: 64px;
    color: var(--fg-muted);
    font-size: 14px;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    color: var(--fg-muted);
    text-decoration: none;
}

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

/* Mobile Adjustments */
@media (max-width: 768px) {
    .content-block.bg-surface {
        margin: 0 0 80px 0;
        padding: 48px 24px;
        width: 100%;
        box-sizing: border-box;
    }

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

    /* Stack Grids */
    .grid-3,
    .grid {
        grid-template-columns: 1fr !important;
    }

    /* Marquee Tweaks */
    .marquee-content {
        gap: 40px;
    }

    .marquee-container {
        padding: 40px 0;
        margin-bottom: 64px;
    }
}


/* Made By Footer */
.made-by-footer {
    border-top: 1px solid var(--border);
    margin-top: 120px;
    padding-top: 48px;
    padding-bottom: 48px;
    color: var(--fg-muted);
    font-size: 14px;
}

.made-by-link {
    color: var(--fg);
    font-weight: 700;
    /* Bold */
    text-decoration: none;
    border-bottom: 1px solid var(--border);
    transition: all 0.2s ease;
}

.made-by-link:hover {
    border-bottom-color: var(--fg);
    background: var(--surface-1);
}

/* Widget Catalog Cards */
.widget-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    /* Left align content */
    text-align: left;
    align-items: flex-start;
}

.widget-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06);
    border-color: var(--fg-muted);
}

.widget-preview {
    width: 100%;
    aspect-ratio: 16/9;
    border-bottom: 1px solid var(--border);
}

.widget-info {
    padding: 24px;
    width: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Explicitly left align */
    text-align: left;
    align-items: flex-start;
}

.widget-info h4 {
    margin: 0;
    color: var(--fg);
}

.widget-info p {
    margin: 0;
    line-height: 1.5;
    color: var(--fg-muted);
}