.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(34px, 5vw, 54px);
    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-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;
}

.pf-photo-wrap {
    padding: 16px;
}

.pf-photo {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: top center;
    border-radius: var(--tb-radius);
    background: var(--tb-surface-2);
}

.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:hover {
    color: var(--tb-text-muted);
}

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

.pf-filter {
    max-width: 440px;
    margin-bottom: 24px;
}

.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;
}

.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[hidden] {
    display: none;
}

.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;
}

.pf-logo {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    object-fit: cover;
    background: var(--tb-surface-2);
}

.pf-about {
    font-size: var(--tb-text-base);
    color: var(--tb-text-muted);
    line-height: 1.75;
    max-width: 560px;
    margin-bottom: 18px;
}

.pf-skills {
    background: var(--tb-surface);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius-lg);
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pf-skill-head {
    display: flex;
    justify-content: space-between;
    font-size: var(--tb-text-sm);
    font-weight: 500;
    margin-bottom: 7px;
}

.pf-skill-head .tb-font-mono {
    font-size: 12px;
    font-weight: 400;
}

.pf-bar {
    height: 6px;
    background: var(--tb-surface-2);
    border-radius: var(--tb-radius-full);
    overflow: hidden;
}

.pf-bar-fill {
    height: 100%;
    border-radius: var(--tb-radius-full);
}

.pf-fill-primary {
    background: var(--tb-primary);
}

.pf-fill-secondary {
    background: var(--tb-secondary);
}

.pf-fill-green {
    background: var(--tb-green);
}

.pf-fill-amber {
    background: var(--tb-amber);
}

.pf-fill-coral {
    background: var(--tb-coral);
}

.pf-section-alt {
    background: var(--tb-surface);
    border-top: 1px solid var(--tb-border);
    border-bottom: 1px solid var(--tb-border);
}

.pf-section-alt .tb-tool-item {
    background: var(--tb-surface);
}

.pf-section-alt .tb-tool-item:hover {
    background: var(--tb-surface-2);
}

.pf-projects {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.pf-project {
    display: flex;
    flex-direction: column;
    background: var(--tb-bg);
    border: 1px solid var(--tb-border);
    border-radius: var(--tb-radius-lg);
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: border-color var(--tb-transition);
}

.pf-project:hover {
    border-color: var(--tb-primary-border);
    color: inherit;
}

.pf-project-img {
    aspect-ratio: 16 / 10;
    background: var(--tb-surface-2);
    border-bottom: 1px solid var(--tb-border);
    overflow: hidden;
}

.pf-project-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.pf-project-body {
    padding: 16px 18px 20px;
}

.pf-project:focus-visible,
.tb-tool-item:focus-visible,
.tb-tab-btn:focus-visible,
.btn-tb-ghost:focus-visible,
.btn-tb-primary:focus-visible {
    outline: 2px solid var(--tb-primary);
    outline-offset: 2px;
}

@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,
    .pf-projects {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

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

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

    .pf-filter {
        max-width: none;
    }
}

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