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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #fafafa;
}

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

.hero {
    text-align: center;
    padding: 60px 20px;
    margin-bottom: 60px;
}

.badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #ff6b4a;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 56px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
    line-height: 1.1;
}

.highlight {
    color: #ff6b4a;
}

.subtitle {
    font-size: 18px;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

.search-container {
    max-width: 800px;
    margin: 0 auto 40px;
    padding: 0 20px;
}

.search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e5e5e5;
    border-radius: 12px;
    padding: 16px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-wrapper:focus-within {
    border-color: #ff6b4a;
    box-shadow: 0 4px 16px rgba(255, 107, 74, 0.15);
}

.search-icon {
    color: #999;
    margin-right: 12px;
    flex-shrink: 0;
    transition: color 0.3s ease;
}

.search-wrapper:focus-within .search-icon {
    color: #ff6b4a;
}

.search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: #1a1a1a;
    background: transparent;
    font-family: inherit;
}

.search-input::placeholder {
    color: #999;
}

.clear-search {
    display: none;
    background: #f0f0f0;
    border: none;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    font-size: 20px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-left: 8px;
    line-height: 1;
    padding: 0;
}

.clear-search:hover {
    background: #e0e0e0;
    color: #1a1a1a;
}

.clear-search.visible {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-results-info {
    text-align: center;
    margin-top: 12px;
    font-size: 14px;
    color: #666;
    min-height: 20px;
}

.search-results-info.no-results {
    color: #ff6b4a;
    font-weight: 600;
}

.gem-card.hidden,
.sales-stage.hidden {
    display: none;
}

.gem-card.fade-out {
    animation: fadeOut 0.2s ease forwards;
}

.gem-card.fade-in {
    animation: fadeIn 0.2s ease forwards;
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.stage-nav {
    background: white;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    margin-bottom: 40px;
    z-index: 50;
    transition: box-shadow 0.3s ease;
}

.stage-nav.is-sticky {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    overflow-x: auto;
    scrollbar-width: none;
}

.nav-container::-webkit-scrollbar {
    display: none;
}

.nav-item {
    flex: 1;
    min-width: 150px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px 16px;
    text-decoration: none;
    text-align: center;
    border-bottom: 3px solid transparent;
    transition: all 0.2s ease;
    position: relative;
}

.nav-item:hover {
    background: #fafafa;
    border-bottom-color: #ff6b4a;
}

.nav-item.active {
    border-bottom-color: #ff6b4a;
    background: #fff5f3;
}

.nav-stage-name {
    font-size: 15px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 4px;
    display: block;
}

.nav-stage-desc {
    font-size: 12px;
    color: #666;
    display: block;
    line-height: 1.3;
}

.nav-item.active .nav-stage-name {
    color: #ff6b4a;
}

.nav-item.active .nav-stage-desc {
    color: #ff5533;
}

.tools-section {
    animation: fadeIn 0.4s ease;
    scroll-margin-top: 100px;
}

.sales-stage {
    scroll-margin-top: 100px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 16px;
    color: #1a1a1a;
    text-align: center;
}

.workflow-section {
    margin-bottom: 60px;
}

.workflow-title {
    font-size: 28px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.workflow-description {
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
}

.gem-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 24px;
    border: 2px solid #e5e5e5;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.gem-card:hover {
    border-color: #ff6b4a;
    box-shadow: 0 8px 20px rgba(255, 107, 74, 0.12);
}

.gem-card.featured {
    border-color: #ff6b4a;
    background: linear-gradient(135deg, #fff 0%, #fff5f3 100%);
}

.gem-card.compact {
    padding: 24px;
}

.gem-card.compact:not(.internal-tool):not(.customer-tool):not(.product-tool) {
    border-left: 4px solid #ff6b4a;
}

.gem-card.compact:not(.internal-tool):not(.customer-tool):not(.product-tool):hover {
    border-color: #ff6b4a;
    border-left-color: #ff6b4a;
}

.gem-badge {
    display: inline-block;
    background: #ff6b4a;
    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 6px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.gem-badge.coach {
    background: #4a90ff;
}

.gem-badge.generator {
    background: #6b4aff;
}

.gem-badge.coming-soon-badge {
    background: #999;
}

.gem-badge.internal {
    background: #4a90ff;
}

.gem-card h3, .gem-card h4 {
    font-size: 24px;
    margin-bottom: 12px;
    color: #1a1a1a;
}

.gem-card h4 {
    font-size: 20px;
}

.gem-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.gem-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ff6b4a;
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
}

.gem-button:hover {
    background: #ff5533;
    transform: translateX(2px);
}

.gem-button.secondary {
    background: #f0f0f0;
    color: #1a1a1a;
}

.gem-button.secondary:hover {
    background: #e0e0e0;
}

.arrow {
    font-size: 18px;
    transition: transform 0.2s;
}

.gem-button:hover .arrow {
    transform: translateX(4px);
}

.value-engine-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.internal-tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.planning-gems-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.gem-card.internal-tool {
    background: white;
    border: 2px solid #e5e5e5;
    border-left: 4px solid #4a90ff;
}

.gem-card.internal-tool:hover {
    border-color: #4a90ff;
    border-left-color: #4a90ff;
    box-shadow: 0 8px 20px rgba(74, 144, 255, 0.15);
}

.gem-card.coming-soon-card {
    opacity: 0.6;
    background: #fafafa;
    border-color: #ddd;
}

.gem-card.coming-soon-card:hover {
    border-color: #ddd;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transform: none;
}

.gem-card.coming-soon-card h4,
.gem-card.coming-soon-card p {
    color: #999;
}

.gem-button:disabled,
.gem-button[disabled] {
    background: #ddd;
    color: #999;
    cursor: not-allowed;
    opacity: 0.6;
}

.gem-button:disabled:hover,
.gem-button[disabled]:hover {
    background: #ddd;
    transform: none;
}

.gem-card.value-engine-card {
    border-left: 4px solid #6b4aff;
}

.gem-card.value-engine-card:hover {
    border-color: #6b4aff;
    border-left-color: #6b4aff;
    box-shadow: 0 8px 20px rgba(107, 74, 255, 0.15);
}

.gem-card.customer-tool {
    border-left: 4px solid #4a90ff;
}

.gem-card.customer-tool:hover {
    border-color: #4a90ff;
    border-left-color: #4a90ff;
    box-shadow: 0 8px 20px rgba(74, 144, 255, 0.15);
}

.gem-card.product-tool {
    border-left: 4px solid #4a90ff;
}

.gem-card.product-tool:hover {
    border-color: #4a90ff;
    border-left-color: #4a90ff;
    box-shadow: 0 8px 20px rgba(74, 144, 255, 0.15);
}

.tool-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
}

.tool-icon {
    font-size: 28px;
}

.tool-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.tool-name.blue {
    color: #4a90ff;
}

.tool-name.orange {
    color: #ff6b4a;
}

.tool-name.blue-dark {
    color: #2563eb;
}

.gem-badge.internal {
    background: #4a90ff;
}

.pro-tip {
    background: #fff9f0;
    border-left: 4px solid #ff6b4a;
    padding: 24px;
    border-radius: 8px;
    margin-top: 30px;
}

.tip-badge {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #ff6b4a;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.pro-tip p {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.subtitle-description {
    text-align: center;
    font-size: 18px;
    color: #666;
    margin-bottom: 50px;
}

.tool-legend {
    position: fixed;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    background: white;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.legend-title {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    color: #999;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.legend-item:last-child {
    margin-bottom: 0;
}

.legend-color {
    width: 4px;
    height: 24px;
    border-radius: 2px;
}

.legend-color.internal {
    background: #4a90ff;
}

.legend-color.ai-gem {
    background: #ff6b4a;
}

.legend-color.coming-soon {
    background: #999;
}

.legend-label {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.sales-stage {
    margin-bottom: 60px;
    padding-bottom: 40px;
    border-bottom: 2px solid #f0f0f0;
}

.sales-stage:last-child {
    border-bottom: none;
}

.stage-header {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    margin-bottom: 32px;
}

.stage-number {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #ff6b4a 0%, #ff8566 100%);
    color: white;
    font-size: 28px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(255, 107, 74, 0.25);
}

.stage-info {
    flex: 1;
}

.stage-title {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.stage-description {
    font-size: 16px;
    color: #666;
    line-height: 1.6;
}

.stage-tools {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.sub-phase {
    margin-top: 32px;
    margin-bottom: 32px;
}

.sub-phase-header {
    margin-bottom: 24px;
}

.value-engine-banner {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #f5f3ff 0%, #faf5ff 100%);
    border: 2px solid #e9d5ff;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 8px rgba(107, 74, 255, 0.08);
}

.ve-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.ve-info {
    flex: 1;
}

.sub-phase-title {
    font-size: 20px;
    font-weight: 700;
    color: #6b4aff;
    margin: 0 0 4px 0;
}

.sub-phase-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

.ve-link {
    font-size: 14px;
    font-weight: 600;
    color: #6b4aff;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s;
}

.ve-link:hover {
    color: #5a3ad9;
    text-decoration: underline;
}

.tool-use-case {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.tool-use-case strong {
    color: #1a1a1a;
    font-weight: 600;
}

.footer {
    text-align: center;
    margin-top: 80px;
    padding-top: 40px;
    border-top: 1px solid #e5e5e5;
    color: #999;
    font-size: 14px;
}

.footer a {
    color: #ff6b4a;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 36px;
    }
    
    .value-engine-grid {
        grid-template-columns: 1fr;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .stage-header {
        gap: 16px;
    }
    
    .stage-number {
        width: 48px;
        height: 48px;
        font-size: 24px;
    }
    
    .stage-title {
        font-size: 24px;
    }
    
    .stage-description {
        font-size: 14px;
    }
    
    .stage-tools {
        grid-template-columns: 1fr;
    }
    
    .subtitle-description {
        font-size: 16px;
    }
    
    .tool-legend {
        display: none;
    }
    
    .value-engine-banner {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    
    .ve-link {
        align-self: flex-start;
    }
    
    .nav-container {
        justify-content: flex-start;
        padding: 0 12px;
    }
    
    .nav-item {
        min-width: 130px;
        padding: 16px 12px;
    }
    
    .nav-stage-name {
        font-size: 14px;
    }
    
    .nav-stage-desc {
        font-size: 11px;
    }
    
    .search-container {
        padding: 0 12px;
        margin-bottom: 30px;
    }
    
    .search-wrapper {
        padding: 12px 16px;
    }
    
    .search-input {
        font-size: 15px;
    }
    
    .search-icon {
        width: 18px;
        height: 18px;
    }
}
