/* ── Hero ───────────────────────────────────────────────────── */
.tb-hero {
    padding: 140px max(24px, calc((100vw - 1100px) / 2)) 80px;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.tb-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--tb-space-sm);
    font-family: var(--tb-font-mono);
    font-size: 12px;
    color: var(--tb-primary);
    background: var(--tb-primary-dim);
    border: 1px solid var(--tb-primary-border);
    border-radius: var(--tb-radius-full);
    padding: 4px 12px;
    margin-bottom: var(--tb-space-lg);
}

.tb-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--tb-primary);
    animation: tb-pulse 2s infinite;
    flex-shrink: 0;
}

@keyframes tb-pulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.4;
        transform: scale(0.8);
    }
}

.tb-hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--tb-text);
    margin-bottom: 20px;
}

.tb-hero-title .dim {
    color: var(--tb-text-faint);
}

.tb-hero-sub {
    font-size: var(--tb-text-lg);
    color: var(--tb-text-muted);
    line-height: 1.65;
    max-width: 460px;
    margin-bottom: 36px;
}

.tb-stat-divider {
    width: 1px;
    height: 32px;
    background: var(--tb-border);
    flex-shrink: 0;
}

.tb-stat-num {
    font-size: var(--tb-text-xl);
    font-weight: 600;
    font-family: var(--tb-font-mono);
    color: var(--tb-text);
}

.tb-stat-label {
    font-size: var(--tb-text-xs);
    color: var(--tb-text-faint);
    margin-top: 2px;
}

/* ── Demo card ──────────────────────────────────────────────── */
.tb-demo-wrap {
    position: relative;
}

.tb-float-badge {
    position: absolute;
    display: flex;
    align-items: center;
    gap: var(--tb-space-sm);
    background: var(--tb-surface-2);
    border: 1px solid var(--tb-border-hover);
    border-radius: var(--tb-radius-full);
    padding: 7px 13px;
    font-size: 12px;
    font-weight: 500;
    color: var(--tb-text);
    white-space: nowrap;
    pointer-events: none;
    z-index: 2;
}

.tb-float-badge.top-right {
    top: -18px;
    right: -16px;
}

.tb-float-badge.bot-left {
    bottom: -18px;
    left: -16px;
}

.tb-float-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.tb-demo-card {
    background: var(--tb-surface);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius-lg);
    overflow: hidden;
}

.tb-demo-bar {
    display: flex;
    align-items: center;
    gap: var(--tb-space-sm);
    padding: 12px 16px;
    border-bottom: 1px solid var(--tb-border);
    background: rgba(255, 255, 255, 0.02);
}

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

.tb-demo-url {
    font-family: var(--tb-font-mono);
    font-size: 12px;
    color: var(--tb-text-faint);
    margin-left: 4px;
}

.tb-tabs {
    display: flex;
    gap: 4px;
    background: var(--tb-surface-2);
    border-radius: var(--tb-radius);
    padding: 4px;
    margin-bottom: 16px;
}

.tb-tab-btn {
    flex: 1;
    font-size: 12px;
    font-weight: 500;
    font-family: var(--tb-font-sans);
    padding: 6px 10px;
    border-radius: 7px;
    border: none;
    cursor: pointer;
    background: transparent;
    color: var(--tb-text-faint);
    transition: all var(--tb-transition);
}

.tb-tab-btn.active {
    background: var(--tb-surface);
    color: var(--tb-text);
    box-shadow: var(--tb-shadow-sm);
}

/* Link pembungkus dropzone + tombol (area border merah) */
.tb-demo-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.tb-demo-link:hover {
    color: inherit;
}

.tb-dropzone {
    border: 1.5px dashed var(--tb-border-hover);
    border-radius: var(--tb-radius);
    padding: 32px 20px;
    text-align: center;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.01);
    transition: border-color var(--tb-transition), background var(--tb-transition);
}

.tb-dropzone:hover {
    border-color: var(--tb-primary);
    background: var(--tb-primary-dim);
}

.tb-dropzone-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--tb-radius);
    background: var(--tb-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
    font-size: 20px;
}

/* ── Feature strip ──────────────────────────────────────────── */
.tb-feature-strip {
    padding: 60px max(24px, calc((100vw - 1100px) / 2));
    border-top: 1px solid var(--tb-border);
    border-bottom: 1px solid var(--tb-border);
}

.tb-feat-icon {
    font-size: 22px;
    margin-bottom: 14px;
}

.tb-feat-title {
    font-size: var(--tb-text-base);
    font-weight: 500;
    margin-bottom: 6px;
}

.tb-feat-desc {
    font-size: var(--tb-text-sm);
    color: var(--tb-text-muted);
    line-height: 1.65;
}

/* ── Tools grid ─────────────────────────────────────────────── */
.tb-cat-label {
    font-size: var(--tb-text-sm);
    color: var(--tb-text-faint);
    margin-bottom: 12px;
}

.tb-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--tb-border);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius-lg);
    overflow: hidden;
}

.tb-tool-item {
    background: var(--tb-bg);
    padding: 20px 18px;
    cursor: pointer;
    transition: background var(--tb-transition);
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.tb-tool-item:hover {
    background: var(--tb-surface);
    color: inherit;
}

.tb-tool-item.featured {
    grid-column: span 2;
    background: var(--tb-surface);
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
}

.tb-tool-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--tb-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.tb-tool-name {
    font-size: 14px;
    font-weight: 500;
    color: var(--tb-text);
    margin-bottom: 3px;
}

.tb-tool-desc {
    font-size: 12px;
    color: var(--tb-text-muted);
    line-height: 1.5;
}

/* ── Popular cards ──────────────────────────────────────────── */
.tb-pop-card {
    background: var(--tb-surface);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius-lg);
    padding: 22px;
    text-decoration: none;
    color: inherit;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: border-color var(--tb-transition);
}

.tb-pop-card:hover {
    border-color: var(--tb-border-hover);
    color: inherit;
}

.tb-pop-card.featured {
    border-color: var(--tb-primary-border);
}

.tb-pop-icon {
    width: 46px;
    height: 46px;
    border-radius: var(--tb-radius);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}

.tb-pop-name {
    font-size: var(--tb-text-base);
    font-weight: 500;
    margin-bottom: 4px;
}

.tb-pop-desc {
    font-size: var(--tb-text-sm);
    color: var(--tb-text-muted);
    line-height: 1.5;
}

.tb-pop-arrow {
    margin-left: auto;
    font-size: 20px;
    color: var(--tb-text-faint);
    flex-shrink: 0;
    transition: transform var(--tb-transition), color var(--tb-transition);
}

.tb-pop-card:hover .tb-pop-arrow {
    transform: translateX(3px);
    color: var(--tb-primary);
}

/* ── CTA ────────────────────────────────────────────────────── */
.tb-cta-wrap {
    padding: 80px max(24px, calc((100vw - 1100px) / 2));
}

.tb-cta-box {
    background: var(--tb-surface);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius-xl);
    padding: 60px 40px;
    max-width: 600px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.tb-cta-glow {
    position: absolute;
    top: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: var(--tb-primary-glow);
    filter: blur(60px);
    pointer-events: none;
}

.tb-cta-title {
    font-size: 30px;
    font-weight: 600;
    letter-spacing: -0.02em;
    position: relative;
    margin-bottom: 10px;
}

.tb-cta-sub {
    font-size: var(--tb-text-base);
    color: var(--tb-text-muted);
    position: relative;
    margin-bottom: 28px;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 991.98px) {
    .tb-hero {
        grid-template-columns: 1fr;
        min-height: auto;
        padding-top: 100px;
    }

    .tb-demo-wrap {
        display: none;
    }

    .tb-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .tb-tool-item.featured {
        grid-column: span 2;
        flex-direction: column;
    }
}

@media (max-width: 575.98px) {
    .tb-hero {
        padding: 90px 20px 60px;
    }

    .tb-feature-strip {
        padding: 48px 20px;
    }

    .tb-tools-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tb-cta-box {
        padding: 40px 20px;
    }
}

/* ── Reduced motion ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .tb-pulse-dot {
        animation: none;
    }
}